joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431c70
Capabilities:
Check mutex on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call sym._GetCurrentProcessId_0
xor edx, edx
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + edx + 0x1c]
mov ecx, eax
and eax, 0xf
shr cl, 4
add eax, 0x61
add ecx, 0x41
mov byte [edx + edx + 0x4e4961], al
mov byte [edx + edx + 0x4e4960], cl
add edx, 1
cmp edx, 4
jne 0x431c82
xor eax, eax
mov edx, 0x5f
jmp 0x431cbf
movzx edx, byte [eax + str.__shmem3_winpthreads_tdm_]
mov byte [eax + 0x4e4968], dl
add eax, 1
cmp eax, 0x1a
jne 0x431cb8
xor eax, eax
mov edx, 0x5f
jmp 0x431ce7
movzx edx, byte [eax + str.__shmem3_winpthreads_tdm_]
mov byte [eax + 0x4e49a0], dl
add eax, 1
cmp eax, 0x19
jne 0x431ce0
mov dword [esp + 8], 0x4e4960
mov dword [esp + 4], 0
mov dword [esp], 0
mov byte [0x4e49b9], 0x2d
mov dword [0x4e49ba], 0x61616161
mov dword [0x4e49be], 0x61616161
mov dword [0x4e49c2], 0x61616161
mov dword [0x4e49c6], 0x61616161
mov dword [0x4e49ca], 0x61616161
mov dword [0x4e49ce], 0x61616161
mov dword [0x4e49d2], 0x61616161
mov dword [0x4e49d6], 0x61616161
mov byte [0x4e49da], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov esi, eax
test eax, eax
jne 0x431eca
mov dword [esp], 0x4e49a0
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x431e20
mov edx, 0x4e4900
mov eax, 0x20
nop
bt edx, eax
jae 0x431dc0
mov ecx, eax
neg ecx
mov byte [ecx + 0x4e49da], 0x41
sub eax, 1
jne 0x431db0
mov dword [esp], 0x4e49a0
call sym._AddAtomA_4
sub esp, 4
test ax, ax
je 0x431eb9
mov dword [esp], sym.___shmem3_winpthreads_tdm_cleanup_local_region
mov dword [0x4e4900], 0x4e4900
call sym.__onexit
mov dword [esp], ebx
call sym._ReleaseMutex_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseHandle_4
mov eax, dword [0x4e4900]
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, ax
mov ebp, 0x20
mov edi, 1
mov dword [esp + 8], 0x3b
mov dword [esp + 4], 0x4e49a0
mov dword [esp], eax
call sym._GetAtomNameA_12
mov edx, eax
sub esp, 0xc
xor eax, eax
test edx, edx
je 0x431ee9
lea esi, [esi]
cmp byte [eax + 0x4e49ba], 0x41
jne 0x431e6b
mov ecx, ebp
mov edx, edi
sub ecx, eax
shl edx, cl
or esi, edx
add eax, 1
cmp eax, 0x20
jne 0x431e58
mov eax, esi
mov dword [0x4e4900], eax
jmp 0x431e8c
cmp edx, 0x4e4900
je 0x431df3
mov edx, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x431e80
cmp edx, 0x4e4900
je 0x431df3
mov dword [edx + 4], 0x4e4900
mov dword [esp], sym.___shmem3_winpthreads_tdm_cleanup_local_region
call sym.__onexit
jmp 0x431df3
mov eax, str.failed_to_add_string_to_atom_table_n
call sym.___shmem_get_error
xor eax, eax
jmp 0x431e0e
mov eax, str.failed_to_to_lock_creation_mutex_n
call sym.___shmem_get_error
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, str.failed_to_get_string_from_atom_n
call sym.___shmem_get_error
xor eax, eax
jmp 0x431e75
Function at 0x43cab0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._setlocale
test eax, eax
je 0x43cb84
mov dword [esp], eax
mov esi, eax
mov ebx, esp
call sym._strlen
lea edx, [eax + 1]
add eax, 0x10
shr eax, 4
shl eax, 4
call fcn.00428060
sub esp, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov dword [esp + 4], 0x4d7ee4
mov dword [esp], 2
mov esi, eax
call sym._setlocale
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._strcmp
test eax, eax
je 0x43cb90
mov dword [esp + 4], esi
mov dword [esp], 2
call sym._setlocale
mov eax, esi
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sym._strchr
test eax, eax
je 0x43cb80
add eax, 1
mov dword [esp], eax
call sym._atoi
mov edi, eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._GetCPInfo_8
sub esp, 8
test eax, eax
je 0x43cb80
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x43cbd0
xor edi, edi
mov esp, ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LC_ALL
call sym._getenv
test eax, eax
jne 0x43cb42
mov dword [esp], str.LC_CTYPE
call sym._getenv
test eax, eax
jne 0x43cb42
mov dword [esp], str.LANG
call sym._getenv
test eax, eax
jne 0x43cb42
mov eax, esi
jmp 0x43cb42
mov esp, ebx
jmp 0x43cb84

Function at 0x427432
Capabilities:
Encode data using xor

Disassembly:
pop ebp
clc
pushal
lea edi, [ebp + 0x42]
mov si, 0x256
cld
mov cl, byte [edi]
xor cl, 0x59
rol cl, 0xc4
xor cl, 0x18
mov byte [edi], cl
inc edi
dec si
jne 0x42743d
jmp 0x427495
fmul st(0)
fdivr dword [esi + 0x7d0c6bc0]
invalid

Function at 0x401c2e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and byte [ebp - 0x100], 0
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
lea eax, [ebp - 0x100]
push 0x404008
push eax
call fcn.00401ca0
mov ecx, 0x401bdc
mov eax, 0x4017fd
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x100]
push eax
jmp loc.00409000

Function at 0x402e00
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x402e70
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401800
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x404ab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427bf1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x164]
xor ebx, ebx
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ebx
call fcn.00403f50
push 0x42a3e4
add esi, 0xc8
lea ecx, [esp + 0x38]
push esi
push ecx
mov dword [esp + 0x64], 1
call fcn.00401d30
mov edx, dword [esp + 0x70]
push edx
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x70], 2
call fcn.00401c90
mov esi, dword [esp + 0x78]
push eax
push esi
mov byte [esp + 0x78], 3
call fcn.0040b930
add esp, 0x20
cmp dword [esp + 0x30], 0x10
mov dword [esp + 8], 1
jb 0x404b44
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004043d0
add esp, 4
cmp dword [esp + 0x4c], 0x10
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x404b68
mov edx, dword [esp + 0x38]
push edx
call fcn.004043d0
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x58], bl
call fcn.00404060
mov ecx, dword [esp + 0x50]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 8

Function at 0x404ba0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427bf1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x164]
xor ebx, ebx
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ebx
call fcn.00403f50
push 0x42a3e4
add esi, 0xac
lea ecx, [esp + 0x38]
push esi
push ecx
mov dword [esp + 0x64], 1
call fcn.00401d30
mov edx, dword [esp + 0x70]
push edx
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x70], 2
call fcn.00401c90
mov esi, dword [esp + 0x78]
push eax
push esi
mov byte [esp + 0x78], 3
call fcn.0040b930
add esp, 0x20
cmp dword [esp + 0x30], 0x10
mov dword [esp + 8], 1
jb 0x404c34
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004043d0
add esp, 4
cmp dword [esp + 0x4c], 0x10
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x404c58
mov edx, dword [esp + 0x38]
push edx
call fcn.004043d0
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x58], bl
call fcn.00404060
mov ecx, dword [esp + 0x50]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 8
Function at 0x40a190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4282dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
mov eax, dword [0x43416c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ebp, [edi + 4]
mov ecx, ebp
mov dword [esp + 0xa0], eax
mov dword [esp + 0x14], edi
mov dword [edi], 0x42aaa8
call fcn.00407e60
xor ebx, ebx
mov dword [ebp + 4], eax
mov dword [ebp + 8], ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0xac], ebx
call fcn.0040d010
push 0xc
mov esi, 0xf
push str.cfginit.ini
lea ecx, [esp + 0x38]
mov byte [esp + 0xb4], 1
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00401930
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 2
call fcn.0040d0a0
mov byte [esp + 0x13], al
cmp dword [esp + 0x48], 0x10
mov byte [esp + 0xac], 1
jb 0x40a248
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004043d0
add esp, 4
cmp byte [esp + 0x13], bl
je 0x40a3c8
push 1
lea ecx, [esp + 0x1c]
call fcn.0040cfe0
push fcn.00401410
push 0x4013f0
push 2
push 0x1c
lea edx, [esp + 0x78]
push edx
call fcn.0041de61
lea eax, [esp + 0x68]
push eax
push 2
lea ecx, [esp + 0x20]
mov byte [esp + 0xb4], 3
call fcn.0040d2f0
test al, al
je 0x40a3ad
jmp 0x40a2a0
mov esi, 0xf
lea esp, [esp]
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0xb8], 4
call fcn.00401840
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0x58]
call fcn.00401840
mov esi, dword [ebp + 4]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x30]
push eax
push ecx
push esi
mov ecx, ebp
call fcn.00409a70
push 1
mov ecx, ebp
mov edi, eax
call fcn.00409760
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov eax, dword [esp + 0x64]
mov esi, 0x10
cmp eax, esi
jb 0x40a326
mov edx, dword [esp + 0x50]
push edx
call fcn.004043d0
add esp, 4
cmp dword [esp + 0x48], esi
mov edi, 0xf
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jb 0x40a34a
mov eax, dword [esp + 0x34]
push eax
call fcn.004043d0
add esp, 4
push fcn.00401410
push 2
push 0x1c
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
mov byte [esp + 0xbc], 1
call fcn.0041de01
push fcn.00401410
push 0x4013f0
push 2
push 0x1c
lea edx, [esp + 0x78]
push edx
call fcn.0041de61
lea eax, [esp + 0x68]
push eax
push 2
lea ecx, [esp + 0x20]
mov byte [esp + 0xb4], 3
call fcn.0040d2f0
test al, al
jne 0x40a297
mov edi, dword [esp + 0x14]
push fcn.00401410
push 2
push 0x1c
lea ecx, [esp + 0x74]
push ecx
mov byte [esp + 0xbc], 1
call fcn.0041de01
lea ecx, [esp + 0x18]
mov byte [esp + 0xac], bl
call fcn.0040d070
mov ecx, dword [esp + 0xa4]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x94]
pop ebx
call fcn.0041def4
add esp, 0xa0
ret
Function at 0x40a890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x428379
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x38]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 8], ecx
push edi
lea ecx, [esi + 0x14]
mov dword [esp + 8], esi
mov dword [esi], 0x42aaac
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
call fcn.0040a190
xor edi, edi
lea ecx, [esi + 0x24]
mov dword [esp + 0x30], edi
call fcn.0040fa90
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov ecx, esi
mov byte [esp + 0x30], 2
call fcn.0040a590
mov ecx, esi
call fcn.00408850
mov dword [0x435070], esi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00409b40
mov ecx, eax
call fcn.004084a0
call fcn.0040fb20
call fcn.0040f030
lea ecx, [esp + 0xc]
push ecx
call fcn.0040bf70
push eax
mov byte [esp + 0x38], 3
call fcn.0040b3a0
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, 0x10
jb 0x40a954
mov edx, dword [esp + 0x10]
push edx
call fcn.004043d0
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x10

Function at 0x40aa40
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx + 4]
test eax, eax
je 0x40aa4d
cmp eax, 0xffffffff
jne 0x40aa55
or eax, 0xffffffff
or edx, 0xffffffff
pop ecx
ret
push esi
lea ecx, [esp + 4]
push ecx
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40aa82
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40aa82
or eax, esi
or edx, esi
pop esi
pop ecx
ret
mov ecx, dword [esp + 4]
xor edx, edx
test ecx, ecx
mov eax, esi
je 0x40aa90
or edx, ecx
pop esi
pop ecx
ret
Function at 0x40aef0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov eax, dword [ebx + 4]
test eax, eax
je 0x40af02
cmp eax, 0xffffffff
jne 0x40af0b
xor al, al
pop ebx
add esp, 8
ret 8
push ebp
push edi
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov dword [esp + 0x10], 0
push esi
dec ecx
and ecx, eax
mov dword [esp + 0x10], ecx
lea ebx, [ebx]
mov eax, dword [ebx + 4]
push 0
lea edx, [esp + 0x24]
push edx
push edi
push ebp
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40afef
mov esi, dword [esp + 0x20]
test esi, esi
je 0x40afef
cmp esi, edi
je 0x40b045
push 0
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [ebx + 4]
mov edx, edi
sub edx, esi
push edx
lea eax, [esi + ebp]
push eax
push ecx
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40afd8
lea ecx, [ecx]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40afd8
add esi, eax
cmp esi, edi
je 0x40b045
push 0
lea edx, [esp + 0x24]
push edx
mov edx, dword [ebx + 4]
mov eax, edi
sub eax, esi
push eax
lea ecx, [esi + ebp]
push ecx
push edx
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40afa0
mov eax, dword [ebx + 4]
test eax, eax
je 0x40b00b
cmp eax, 0xffffffff
je 0x40b00b
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
jmp 0x40b004
mov eax, dword [ebx + 4]
test eax, eax
je 0x40b00b
cmp eax, 0xffffffff
je 0x40b00b
mov edx, dword [esp + 0x10]
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0xa
mov dword [esp + 0x14], eax
jl 0x40af40
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x40b039
cmp ebx, 0xffffffff
je 0x40b039
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
pop edi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 8
pop esi
pop edi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret 8
Function at 0x40b100
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x43416c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov dword [esp + 0xac], eax
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call esi
test eax, eax
jne 0x40b153
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call esi
test eax, eax
je 0x40b177
movzx edx, word [esp + 0x9c]
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x40b2d2
dec eax
je 0x40b23a
dec eax
je 0x40b18b
xor eax, eax
mov ecx, dword [esp + 0xac]
call fcn.0041def4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
cmp eax, 6
jne 0x40b1ab
mov eax, 0xb
mov ecx, dword [esp + 0xac]
call fcn.0041def4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x40b207
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x40b1d0
mov eax, 0xa
mov ecx, dword [esp + 0xac]
call fcn.0041def4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x40b1ec
mov eax, 9
mov ecx, dword [esp + 0xac]
call fcn.0041def4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x40b223
mov eax, 8
mov ecx, dword [esp + 0xac]
call fcn.0041def4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 4
ja 0x40b223
mov eax, 7
mov ecx, dword [esp + 0xac]
call fcn.0041def4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xc
mov ecx, dword [esp + 0xac]
call fcn.0041def4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
cmp eax, 4
jne 0x40b2cb
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40b289
mov al, byte [esp + 0x1d]
cmp al, 0x43
je 0x40b272
cmp al, 0x42
je 0x40b272
mov eax, 2
mov ecx, dword [esp + 0xac]
call fcn.0041def4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 3
mov ecx, dword [esp + 0xac]
call fcn.0041def4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x40b2af
mov dl, byte [esp + 0x1d]
xor eax, eax
cmp dl, 0x41
sete al
add eax, 4
mov ecx, dword [esp + 0xac]
call fcn.0041def4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x5a
jne 0x40b2d2
mov eax, 6
mov ecx, dword [esp + 0xac]
call fcn.0041def4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xc
ja 0x40b2d7
mov eax, 1
mov ecx, dword [esp + 0xac]
call fcn.0041def4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b3a0
Capabilities:
Set current directory

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0x10
jb 0x40b3bb
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
dec eax
neg eax
sbb eax, eax
inc eax
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
dec eax
neg eax
sbb eax, eax
inc eax
ret
Function at 0x40b3d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x40
push edi
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x540
call fcn.0040b100
add esp, 4
cmp eax, 0xb
pop edi
mov dword [esp + 0x10], str.runas
jge 0x40b418
mov dword [esp + 0x10], 0x42a9db
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 0x18]
mov ecx, 0x10
cmp edx, ecx
jb 0x40b431
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
jmp 0x40b438
add eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
cmp dword [eax + 0x18], ecx
jb 0x40b446
mov eax, dword [eax + 4]
jmp 0x40b449
add eax, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
cmp dword [eax + 0x18], ecx
jb 0x40b45f
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
jmp 0x40b466
add eax, 4
mov dword [esp + 0x1c], eax
lea edx, [esp + 4]
push edx
mov dword [esp + 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40b483
xor al, al
add esp, 0x40
ret
mov al, byte [esp + 0x48]
test al, al
je 0x40b498
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add esp, 0x40
ret

Function at 0x40b620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x428398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x43416c]
push ebx
push esi
push edi
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x48]
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00401840
mov eax, dword [esp + 0x24]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0xc], eax
jbe 0x40b6df
push ebp
mov edi, edi
mov eax, dword [esp + 0x2c]
mov ebp, 0x10
cmp eax, ebp
mov eax, dword [esp + 0x18]
jae 0x40b695
lea eax, [esp + 0x18]
mov al, byte [eax + edi]
cmp al, 0x81
jb 0x40b6a0
cmp al, 0x9f
jbe 0x40b6d4
cmp al, 0xe0
jb 0x40b6a8
cmp al, 0xfc
jbe 0x40b6d4
movsx esi, al
push esi
call fcn.0041e84a
add esp, 4
test eax, eax
je 0x40b6d5
cmp dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x18]
jae 0x40b6c6
lea ebp, [esp + 0x18]
push esi
call fcn.0041e828
add esp, 4
mov byte [edi + ebp], al
jmp 0x40b6d5
inc edi
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jb 0x40b680
pop ebp
mov esi, dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x18]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00401840
cmp dword [esp + 0x28], 0x10
jb 0x40b713
mov edx, dword [esp + 0x14]
push edx
call fcn.004043d0
add esp, 4
mov ecx, dword [esp + 0x30]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x24]
pop ebx
call fcn.0041def4
add esp, 0x30
ret