joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018e0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x45c0c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0x200000
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], edi
call fcn.00443a53
mov esi, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
mov eax, esi
xor edx, edx
div ecx
xor ebx, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x1c], ebx
sub ecx, edx
add ecx, esi
mov esi, ecx
lea eax, [esi + 0x64]
push eax
mov dword [esp + 0x28], esi
call fcn.0043519e
mov ebp, dword [esp + 0x68]
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x18], eax
mov byte [esp + 0x13], bl
jbe 0x4019fd
jmp 0x401960
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x64]
lea ebx, [ebx]
lea ecx, [ebx + esi]
cmp ecx, ebp
jb 0x401973
sub ebp, ebx
mov dword [esp + 0x1c], 1
jmp 0x401975
mov ebp, esi
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
lea esi, [ebx + edx]
mov edx, dword [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push esi
push 0
push edx
push 0
push eax
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x4019d1
mov ecx, dword [esp + 0x20]
push ecx
push esi
lea ecx, [esp + 0x30]
call fcn.00443c73
mov eax, dword [esp + 0x64]
add ebx, ebp
cmp ebx, eax
jb 0x401952
jmp 0x4019f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14]
push 0x45f9a0
push eax
push 1
add edx, 4
push str.Error__Action:__d___ErrorCodr0x_08X__s
push edx
call fcn.004015e0
add esp, 0x14
mov byte [esp + 0x13], 1
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push eax
call fcn.004351a3
mov al, byte [esp + 0x17]
add esp, 4
cmp al, 1
lea ecx, [esp + 0x28]
je 0x401a80
call fcn.00443bd2
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.00443b20
test esi, esi
je 0x401a64
test eax, eax
je 0x401a64
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [ecx], eax
lea ecx, [esp + 0x28]
mov dword [edx], esi
mov bl, 1
mov dword [esp + 0x58], 0xffffffff
call fcn.00443e40
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 0x14
push 0x1a5
push 0x15
push str.Error__Action:__d___ErrorCodr0x_08X
add edi, 4
push edi
call fcn.004015e0
add esp, 0x10
lea ecx, [esp + 0x28]
mov dword [esp + 0x58], 0xffffffff
call fcn.00443e40
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 0x14
Function at 0x402fe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45c1a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00402d70
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004022d0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x403072
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x403f10
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push esi
mov eax, edx
push edi
mov esi, ecx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403f20
mov ecx, dword [esi + 0x10]
sub eax, edi
inc eax
push eax
push edx
push 1
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
push eax
push ecx
mov dword [esi + 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edx, edx
test eax, eax
sete dl
mov dword [esi + 4], eax
pop edi
pop esi
mov eax, edx
ret 8

Function at 0x404600
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x45c3a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
push edi
mov esi, ecx
push 0x400
lea ecx, [esp + 0x10]
call fcn.00443a53
push 0
push 0x1000
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x94], 0
call fcn.0043f716
mov ecx, dword [esp + 0x90]
mov edx, dword [ecx]
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x88], 1
call dword [edx + 8]
lea ecx, [esp + 0x34]
call fcn.0043f44c
lea ecx, [esp + 0xc]
call fcn.00443bd2
lea ecx, [esp + 0xc]
mov ebx, eax
call fcn.00443b20
mov edi, eax
test edi, edi
je 0x4046fd
mov ecx, dword [esp + 0x8c]
mov edx, dword [esi + 0x10]
push ebp
push ebx
push edi
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov ebp, eax
call fcn.00419db9
add esp, 4
mov dword [esi + 4], ebp
test ebp, ebp
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 3
pop ebp
jne 0x4046fd
lea ecx, [esp + 0x34]
mov byte [esp + 0x84], 0
call fcn.0043f6d1
lea ecx, [esp + 0xc]
mov dword [esp + 0x84], 0xffffffff
call fcn.00443e40
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret 8
lea ecx, [esp + 0x34]
mov byte [esp + 0x84], 0
call fcn.0043f6d1
lea ecx, [esp + 0xc]
mov dword [esp + 0x84], 0xffffffff
call fcn.00443e40
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x7c
ret 8
Function at 0x4050e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x45c460
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebp
mov ebp, dword [esp + 0x90]
push esi
lea eax, [esp + 0xc]
push eax
push 0
mov esi, ecx
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0
push ebp
push edx
mov dword [esp + 0x28], 3
mov dword [esp + 0x24], 0
call ebx
test eax, eax
je 0x40513a
xor eax, eax
jmp 0x405232
mov eax, dword [esp + 0xc]
push edi
push eax
call fcn.00419ee7
mov edi, eax
add esp, 4
test edi, edi
je 0x405231
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x10]
push ecx
push edi
lea edx, [esp + 0x1c]
push edx
push 0
push ebp
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov ebp, eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], ebp
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
xor esi, esi
cmp ebp, esi
jne 0x40521d
cmp eax, 3
jne 0x40521d
push 0x400
lea ecx, [esp + 0x1c]
call fcn.00443a53
mov edx, dword [esp + 0x10]
push esi
push edx
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x9c], esi
call fcn.00443ae6
push esi
push 0x1000
push 1
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x50]
call fcn.0043f716
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx]
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x94], 1
mov dword [esp + 0x48], esi
call dword [edx + 8]
lea ecx, [esp + 0x40]
call fcn.0043f44c
lea ecx, [esp + 0x18]
call fcn.00443b20
lea ecx, [esp + 0x40]
mov edi, eax
mov byte [esp + 0x90], 0
call fcn.0043f6d1
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], 0xffffffff
call fcn.00443e40
cmp edi, esi
je 0x40522a
push edi
call fcn.00419db9
add esp, 4
xor eax, eax
cmp ebp, esi
sete al
pop edi
mov ecx, dword [esp + 0x84]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret 8
Function at 0x405340
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov edx, dword [esp + 0x11c]
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x40539e
test ecx, ecx
je 0x405390
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x4053ba
test ecx, ecx
je 0x40545d
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0x118
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], pe_nt_image_headers32
call esi
test eax, eax
jne 0x405424
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.00405340
mov edi, eax
test edi, edi
jne 0x40546a
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], pe_nt_image_headers32
call esi
test eax, eax
je 0x4053e6
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x40543b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x124]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x40545d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x405479
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x118
ret 4

Function at 0x405b50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x108
push esi
mov esi, ecx
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x114]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x10]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x1c], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
pop esi
jne 0x405bca
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ba1
mov ecx, dword [esp + 0x110]
sub eax, edx
push eax
lea edx, [esp + 0xc]
push edx
call fcn.00401460
mov eax, 1
add esp, 0x108
ret 8
xor eax, eax
add esp, 0x108
ret 8
Function at 0x405bf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405c09
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x405c1d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405c3e
cmp esi, eax
jae 0x405c17
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405c30
cmp esi, eax
jae 0x405c17
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x405e90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x14], esi
xor ebp, ebp
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], esi
jmp 0x405eb0
add ebp, 0x64
push ebp
inc esi
push 0x40
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
xor eax, eax
test ebx, ebx
sete al
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
jne 0x405f49
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x405f05
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x2c]
push esi
lea edx, [esp + 0x20]
push edx
push edi
push eax
push ecx
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x405f37
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x30]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x405f68
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x405f6d
test edi, edi
jne 0x405f6d
cmp esi, 0xa
jl 0x405eb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
mov eax, 0x57
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
Function at 0x40ac68
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40acbb
call fcn.00451dfd
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40acbb
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40acb1
xor eax, eax
jmp 0x40add4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40aceb
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40aceb
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40add1
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40ad18
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040a7f4
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40add1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40ad61
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40ad61
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40ad5b
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040a7f4
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40adc1
and dword [ebp + 0xc], 0
jmp 0x40adc1
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40adc1
push 0xc
call fcn.0043516e
mov esi, eax
test esi, esi
pop ecx
je 0x40ada3
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40ada5
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40adbc
push dword [ebp - 8]
call fcn.00433a59
jmp 0x40adc1
call fcn.004339b6
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40ad26
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41b7f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00419c70
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41b88b
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x47dd54]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41b88b
cmp eax, 1
je 0x41b8ac
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41b88b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41b858
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41b887
xor eax, eax
inc eax
jmp 0x41b8cb
cmp edi, eax
jae 0x41b88f
xor eax, eax
jmp 0x41b8cb
cmp eax, esi
jae 0x41b896
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x47dd54]
jmp 0x41b8af
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b972
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x467fa0
call fcn.0041c3d4
mov edi, 0x94
mov eax, edi
call fcn.00419c70
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x47dd54], ecx
mov eax, dword [esi + 4]
mov dword [0x47dd60], eax
mov edx, dword [esi + 8]
mov dword [0x47dd64], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x47dd58], esi
cmp ecx, 2
je 0x41b9d2
or esi, 0x8000
mov dword [0x47dd58], esi
shl eax, 8
add eax, edx
mov dword [0x47dd5c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41ba0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41ba0d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41ba25
cmp eax, 0x20b
je 0x41ba12
mov dword [ebp - 0x1c], esi
jmp 0x41ba39
cmp dword [ecx + 0x84], 0xe
jbe 0x41ba0d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41ba33
cmp dword [ecx + 0x74], 0xe
jbe 0x41ba0d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004206b2
pop ecx
test eax, eax
jne 0x41ba4d
push 0x1c
call fcn.0041b8f8
pop ecx
call fcn.0041f4e9
test eax, eax
jne 0x41ba5e
push 0x10
call fcn.0041b8f8
pop ecx
call fcn.0042582b
mov dword [ebp - 4], esi
call fcn.004255e1
test eax, eax
jge 0x41ba77
push 0x1b
call fcn.0041b8d3
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x47f630], eax
call fcn.004254bf
mov dword [0x47dd44], eax
call fcn.0042541d
test eax, eax
jge 0x41ba9d
push 8
call fcn.0041b8d3
pop ecx
call fcn.004251ea
test eax, eax
jge 0x41baae
push 9
call fcn.0041b8d3
pop ecx
push 1
call fcn.0041c5bf
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41bac4
push eax
call fcn.0041b8d3
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0042518d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41bae5
movzx eax, word [ebp - 0x40]
jmp 0x41bae8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0042df48
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41bb06
push edi
call fcn.0041c6ec
call fcn.0041c70e
jmp 0x41bb38
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041c40f
ret
Function at 0x41c629
Capabilities:
Terminate process

Disassembly:
push 8
push 0x468040
call fcn.0041c3d4
push 8
call fcn.004208f3
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x47dd94], esi
jne 0x41c65d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x47dd90], esi
mov al, byte [ebp + 0x10]
mov byte [0x47dd8c], al
cmp dword [ebp + 0xc], edi
jne 0x41c6a7
cmp dword [0x47f628], edi
je 0x41c697
mov eax, dword [0x47f624]
sub eax, 4
mov dword [0x47f624], eax
cmp eax, dword [0x47f628]
jb 0x41c697
mov eax, dword [eax]
cmp eax, edi
je 0x41c678
call eax
jmp 0x41c678
push 0x4790b0
mov eax, 0x4790a8
call fcn.0041c589
pop ecx
push 0x4790bc
mov eax, 0x4790b4
call fcn.0041c589
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41c6d8
cmp dword [ebp + 0x10], edi
jne 0x41c6e6
mov dword [0x47dd94], esi
push dword [ebp + 8]
call fcn.0041c547
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41c6e5
push 8
call fcn.00420826
pop ecx
ret
call fcn.0041c40f
ret

Function at 0x41c81d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x41c83a
call fcn.0041cb6a
mov dword [eax], 0x16
xor eax, eax
jmp 0x41c8a4
push esi
push 0x8c
push 1
call fcn.0041dbab
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41c88f
push esi
call fcn.0041f2e3
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x41c86d
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x41c788
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41c8a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00419db9
test ebx, ebx
pop ecx
je 0x41c8a1
push ebx
call fcn.0041cb7c
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret