joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51027b
Capabilities:
Parse pe header

Disassembly:
pushal
mov ebp, dword [esp]
mov edx, 0x57c43507
popal
push edi
jmp 0x5982a1
pushal
lea edi, [edx + edi]
mov bp, word [esp]
popal
pushfd
lea esp, [esp + 3]
pushal
mov word [esp + 0x18], si
mov word [esp + 0x12], ax
push dword [esp + 0xf]
pop dword [esp + 6]
jmp 0x598303
mov byte [esp + 1], bh
lea esp, [esp + 2]
mov word [esp], ax
mov word [esp], sp
mov word [esp], ax
lea esp, [esp + 1]
mov byte [esp], al
mov byte [esp], cl
push edx
mov byte [esp], al
lea esp, [esp + 1]
lea esp, [esp + 4]
lea esp, [esp + 4]
jmp 0x59826f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x598333
xor edx, edx
mov ecx, 0x10b
jmp 0x5988f6
mov word [esp + 3], si
push dword [esp + 0x10]
mov byte [esp + 8], ah
mov byte [esp + 0xf], cl
lea esp, [esp + 0x1f]
lea esp, [esp + 2]
lea esp, [esp + 4]
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x5982e0
xor eax, eax
pop ebp
ret
cmp word [eax + 0x18], cx
sete dl
pushal
mov si, 0x2ed
mov dword [esp + 0x1c], edx
pushal
push di
pushfd
push sp
mov word [esp + 0x1e], sp
mov word [esp + 1], bp
mov word [esp + 0x17], bp
pop dword [esp + 0x13]
pop word [esp + 7]
lea esp, [esp + 2]
lea esp, [esp + 0x20]
popal
mov ebp, dword [esp]
push si
lea esp, [esp + 2]
lea esp, [esp + 4]
ret

Function at 0x5126c0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
call fcn.005126a1
xchg edi, eax
mov esi, 0x47b4ad3d
mov eax, dword [0xe9efb2a3]
push ds
test dword [ebp - 0x75], edx
push ebp
mov ebp, esp

Function at 0x513d27
Capabilities:
Hash data with md5

Disassembly:
call fcn.00513ca7
test eax, 0x424648d
jmp 0x5a0931
pushal
xchg ecx, ebp
lea ebp, [edi + ebp]
popal
pushfd
lea esp, [esp + 3]
mov byte [esp], bl
pushfd
lea esp, [esp]
push word [esp + 1]
lea esp, [esp + 3]
lea esp, [esp + 1]
mov word [esp], bp
pushal
lea esp, [esp + 3]
lea esp, [esp + 0x20]
pushal
push esi
lea ebx, [esi + 0x72fc]
jmp 0x572c86
lea esp, [esp + 4]
popal
push dx
push word [esp]
push dword [esp + 1]
pushal
pop dword [esp + 0x12]
pop word [esp + 0x10]
push bp
pop word [esp + 0x16]
pop word [esp + 0x1b]
lea esp, [esp + 0x11]
lea esp, [esp + 3]
jmp 0x572e3f
lea esp, [esp + 0xc]
jmp 0x513d21
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x518729
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ebp
lea esi, [esi + 0xc]
mov edx, dword [esi]
pop esi
mov eax, dword [edx]
test eax, eax
je 0x656998
push eax
jmp 0x65695f
lea esp, [esp + 4]
jmp 0x518709
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
pushal
xchg di, ax
xchg edx, ecx
mov eax, 0x721b030d
setge dl
sete al
xchg esi, eax
mov ebx, 0x6a8018d
not bx
mov edi, dword [esp]
mov dword [esp + 0x1c], ebp
pushal
pop word [esp + 4]
jmp 0x656a4a
call fcn.005616a8
ljmp 0x63ff
mov dword [esp + 0xb], eax
push ebx
push word [esp + 0xc]
mov byte [esp + 8], dl
pushfd
lea esp, [esp + 0x28]
popal
lea eax, [eax + 8]
mov ecx, dword [eax]
pop eax
mov esi, dword [ebp + 0x10]
add eax, ecx
xor dword [eax], esi
mov eax, dword [edx]
sub esp, 0xe
mov dword [esp + 3], edx
mov dword [esp + 7], ebx
mov dword [esp + 3], ebp
sub esp, 3
pop dword [esp + 4]
sub esp, 0xb
add eax, ecx
push ebx
pop word [esp]
push word [esp]
lea esp, [esp + 2]
lea esp, [esp + 2]
lea esp, [esp + 0x18]
add dword [eax], ecx
add edx, 4
mov eax, dword [edx]
test eax, eax
jne 0x656a64
ret 0x8b04
je 0x656998
jne 0x656aa0
add ax, si
adc ah, cl
imul edi, ecx, 0xd69c6b98
arpl bx, si
xchg esi, eax
rcr edx, 1
pop eax
into
test eax, 0xe882b358
cmp eax, 0xe8ffec46
xor eax, ebp
int1
call [ecx + 0x59]
push eax
mov ecx, edi
jmp 0x656b90
call int.0051ad3a
mov dword [esi + 0x14], eax
jmp 0x5187e5

Function at 0x53a678
Capabilities:
Check for peb beingdebugged flag

Disassembly:
pushal
bswap dx
popal
push edi
mov word [esp + 1], cx
lea esp, [esp + 3]
push bx
mov word [esp], ax
mov byte [esp + 1], bh
push ecx
mov byte [esp], bl
pushfd
pop word [esp]
pop dword [esp]
pop word [esp]
lea esp, [esp + 3]
push 0x417b38a8
call fcn.00529bc7
aas
pushal
pushal
mov dx, word [esp]
popal
pushal
pop dword [esp + 1]
pushal
lea esp, [esp + 0xe]
mov byte [esp + 0x2b], bl
push dword [esp + 7]
jmp 0x53a759
lea esp, [esp + 2]
lea esp, [esp + 0x30]
push 0x417b43d5
call fcn.00529bc7
fisub word [ebx - 0xd]
xchg esi, eax
sahf
sub al, 0xac
and al, byte [ebp - 0x4c]
pop edi
inc ecx
rcl byte [esi + 0x31], 0xc0
and al, 0xb4
xor ah, byte [eax + 0x55d932c7]
leave
mov dh, 0x8d
and al, 2
lea esp, [esp + 2]
lea esp, [esp + 0x30]
pushfd
mov dword [esp], ecx
lea esp, [esp + 2]
push ecx
push bp
push dword [esp + 4]
mov dword [esp + 5], edx
lea esp, [esp + 4]
push dword [esp + 5]
mov dword [esp + 8], 0x417b4336
push ecx
mov word [esp], sp
push word [esp]
push word [esp + 3]
push word [esp + 5]
mov byte [esp + 2], ch
push si
add ah, byte [esi + 0x56]
mov byte [esp + 0xa], bl
lea esp, [esp + 0x14]
call fcn.00529bc7
int 0x4a
fdivr dword [edi + 0x77f5a84a]
out 0x82, eax
jno 0x53a771
ja 0x53a7c7
xor byte [ecx - 0x72], 0x7e
stc
jle 0x53a7de
imul ecx, dword [eax], 0x8e411bfb
test eax, 0x8b666080
pushal
mov bx, word [esp]
mov si, cx
popal
pushal
pop dword [esp + 0xb]
pop dword [esp + 0x11]
lea esp, [esp + 0xa]
pop word [esp + 1]
pop dword [esp + 1]
mov dword [esp + 2], ebp
push eax
pushal
mov byte [esp + 0x22], bh
push word [esp + 4]
push word [esp + 0x29]
pop word [esp + 0xb]
pushfd
jmp 0x53a786
Function at 0x54f756
Capabilities:
Encode data using xor

Disassembly:
mov word [esp + 0xf], dx
push word [esp + 0x17]
mov byte [esp + 0x19], cl
lea esp, [esp + 0x1f]
lea esp, [esp + 4]
pushal
not edx
pushfd
lea esp, [esp + 4]
popal
push di
mov byte [esp], ah
mov word [esp], bx
lea esp, [esp + 1]
pushal
mov word [esp + 0x17], dx
jmp 0x54f730
Function at 0x5be2f3
Capabilities:
Check for peb beingdebugged flag

Disassembly:
pushal
bswap edx
popal
push bx
mov byte [esp], dh
mov word [esp], bx
jmp 0x514739
mov word [esp], sp
pushfd
push dword [esp + 1]
lea esp, [esp + 6]
jmp 0x514790
pushal
not bx
popal
pushfd
mov byte [esp], cl
mov word [esp], bp
mov word [esp], di
mov byte [esp + 1], ch
jmp 0x5147ae
push dword [esp + 2]
pop dword [esp]
lea esp, [esp + 4]
lea esp, [esp + 4]
jmp 0x51476c
mov word [esp + 1], cx
mov dword [esp], esp
mov word [esp + 1], sp
pop word [esp]
mov byte [esp], bh
jmp 0x5be2eb
rdtsc
mov byte [ebp - 1], al
jmp 0x5be235
cmp byte [ebp - 1], 0
je 0x5be1f3
call fcn.00556647
mov cl, byte [ebp - 1]
call fcn.0055669a
mov byte [eax + 0x30], cl
mov eax, dword fs:[0x30]
mov bl, byte [ebp - 1]
mov byte [eax + 2], bl
pop ebx
leave
ret
lea esp, [esp + 1]
lea esp, [esp + 1]
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword fs:[0x30]
mov bl, byte [eax + 2]
mov byte [ebp - 1], bl
jmp 0x5be235

Function at 0x712598
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push eax
push dword [esp + 3]
mov byte [esp + 2], al
push dword [esp + 2]
push edi
pushfd
mov byte [esp + 0x12], ah
mov dword [esp + 0xc], ecx
jmp 0x712638
lea esp, [esp + 4]
jmp 0x712573
push word [esp + 5]
lea esp, [esp + 2]
mov dword [esp + 0x10], 0x51b588
pushal
lea esp, [esp + 0x30]
mov eax, dword fs:[0]
push eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], ebp
lea ebp, [esp + 0x10]
sub esp, eax
pushfd
mov word [esp], bp
pop word [esp]
mov byte [esp], bl
mov byte [esp], cl
lea esp, [esp]
lea esp, [esp + 1]
lea esp, [esp]
lea esp, [esp]
lea esp, [esp + 1]
push ebx
push eax
push word [esp + 3]
push word [esp + 4]
pop dword [esp]
mov dword [esp], esi
pushfd
mov word [esp + 1], cx
push dword [esp + 3]
lea esp, [esp + 8]
push edi
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], esp
push eax
push edx
pushal
bswap dx
xchg dx, bx
mov edx, dword [esp]
mov bh, byte [esp]
bswap ebx
mov dword [esp + 0x14], ebp
push bx
push word [esp]
mov dword [esp], ebx
push word [esp + 2]
mov word [esp + 3], bp
lea esp, [esp + 2]
lea esp, [esp + 4]
popal
lea edx, [edx - 4]
mov eax, dword [edx]
pop edx
mov dword [ebp - 4], 0xffffffff
push esi
mov esi, ebp
lea esi, [esi - 8]
mov dword [esi], eax
pop esi
lea eax, [ebp - 0x10]
jmp 0x7127c9
mov dword fs:[0], eax
ret
Function at 0x403bd0
Capabilities:
Enumerate devices by category

Disassembly:
sub esp, 0x128
push ebx
lea eax, [esp + 0x14]
push eax
push 0x42a7b4
push 0x17
xor ebx, ebx
push ebx
push 0x42a8d4
mov dword [esp + 0x28], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x403c03
xor eax, eax
pop ebx
add esp, 0x128
ret
mov eax, dword [esp + 0x14]
push ebx
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 0x138]
push edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x403d69
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp dword [esp + 4], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], ebx
jne 0x403d5f
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
mov edi, dword [esp + 0x148]
push esi
jmp 0x403c60
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 1
push eax
call dword [edx + 0xc]
test eax, eax
jl 0x403d5c
cmp dword [esp + 0x24], ebx
je 0x403d5c
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x403d52
lea ecx, [esp + 0x1c]
push ecx
push 0x42e304
push ebx
push ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x48], bl
mov edx, dword [eax]
push eax
call dword [edx + 0x24]
cmp eax, ebx
jl 0x403d36
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x2c]
push ecx
push 0x429e70
mov word [esp + 0x34], 8
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
cmp eax, ebx
jl 0x403d36
mov eax, dword [esp + 0x30]
push ebx
push ebx
push 0x100
lea edx, [esp + 0x44]
push edx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call ebp
mov esi, edi
lea eax, [esp + 0x38]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403d17
cmp cl, bl
je 0x403d13
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403d17
add eax, 2
add esi, 2
cmp cl, bl
jne 0x403cf3
xor eax, eax
jmp 0x403d1c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x403d36
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x42a7a4
push ebx
push ebx
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x403d48
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp dword [esp + 0x10], ebx
je 0x403c60
pop esi
pop edi
pop ebp
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 4]
pop ebx
add esp, 0x128
ret
Function at 0x404ef0
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 0x404f09
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x404f1d
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 0x404f3e
cmp esi, eax
jae 0x404f17
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404f30
cmp esi, eax
jae 0x404f17
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x409380
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4286b4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0040a100
mov dword [esp + 0x1c], 0
mov dword [esi], 0x42a418
lea edi, [esi + 0x28]
call fcn.0041e877
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1c], 1
lea ebp, [esi + 0x38]
call fcn.0041e877
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x1c], 2
lea ebx, [esi + 0x54]
call fcn.0041e877
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x1c], 3
call fcn.0041e877
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x58], eax
xor ecx, ecx
push ecx
mov eax, 1
mov dword [esi + 0x18], ecx
mov dword [esi + 0x20], ecx
push 0x429e8a
mov ecx, edi
mov byte [esp + 0x24], 4
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], eax
call fcn.004045f0
xor edi, edi
push edi
push 0x429e8a
mov ecx, ebp
call fcn.004045f0
fld qword [0x429ed0]
push 0xd
fstp qword [esi + 0x40]
push str.C:_sample.avi
mov ecx, ebx
mov dword [esi + 0x2c], 4
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], 2
mov dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], 0x2d0
mov dword [esi + 0x50], 0xf0
call fcn.004045f0
push 3
push 0x42a41c
lea ecx, [esi + 0x58]
call fcn.004045f0
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 8]
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4097c6
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x428716
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x2c]
push 0x220
call fcn.0041e4d6
mov edi, eax
add esp, 4
mov dword [esp + 8], edi
test edi, edi
mov dword [esp + 0x14], 0
je 0x409800
mov ecx, dword [esi + 0x18]
call fcn.004033b0
push eax
mov ecx, edi
call fcn.004065f0
jmp 0x409802
xor eax, eax
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x14], 0xffffffff
mov dword [esi + 0x2c], eax
call fcn.004090c0
mov ecx, dword [esi + 0x2c]
push eax
call fcn.00406730
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
call dword [edx + 4]
push 0x21c
call fcn.0041e4d6
mov edi, eax
add esp, 4
mov dword [esp + 8], edi
test edi, edi
mov dword [esp + 0x14], 1
je 0x409857
mov ecx, dword [esi + 0x18]
call fcn.004033b0
push eax
mov ecx, edi
call fcn.00406110
jmp 0x409859
xor eax, eax
mov dword [esi + 0x30], eax
mov edx, dword [eax]
mov ecx, eax
mov dword [esp + 0x14], 0xffffffff
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40aed0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4287eb
push eax
mov dword fs:[0], esp
push ebx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, ecx
mov dword [esi], ebp
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
lea ebx, [esi + 4]
mov ecx, ebx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
push edi
mov dword [ecx + 0x20], eax
push 0x18
mov dword [ecx + 0x24], eax
call fcn.0041e4d6
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
mov dword [esp + 0x18], 0
je 0x40af47
push 5
push str.RoutingList
mov ecx, edi
call fcn.0040b3a0
jmp 0x40af49
xor edi, edi
test edi, edi
mov dword [esp + 0x18], 0xffffffff
mov dword [esi + 0x2c], edi
je 0x40af65
push 0
push ebx
push ebp
mov ecx, esi
call fcn.0040aae0
jmp 0x40af6a
mov eax, 0x8007000e
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x40af74
mov dword [ecx], eax
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x40d172
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.0040d370
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d20d
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 [0x436a68]
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 0x40d20d
cmp eax, 1
je 0x40d22e
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 0x40d20d
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40d1da
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40d209
xor eax, eax
inc eax
jmp 0x40d24d
cmp edi, eax
jae 0x40d211
xor eax, eax
jmp 0x40d24d
cmp eax, esi
jae 0x40d218
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 [0x436a68]
jmp 0x40d231
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 0x40dc63
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42d0d8
call fcn.0040eae0
mov edi, 0x94
mov eax, edi
call fcn.0040d370
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 [0x436a68], ecx
mov eax, dword [esi + 4]
mov dword [0x436a74], eax
mov edx, dword [esi + 8]
mov dword [0x436a78], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x436a6c], esi
cmp ecx, 2
je 0x40dcc3
or esi, 0x8000
mov dword [0x436a6c], esi
shl eax, 8
add eax, edx
mov dword [0x436a70], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40dcfe
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40dcfe
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40dd16
cmp eax, 0x20b
je 0x40dd03
mov dword [ebp - 0x1c], esi
jmp 0x40dd2a
cmp dword [ecx + 0x84], 0xe
jbe 0x40dcfe
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40dd24
cmp dword [ecx + 0x74], 0xe
jbe 0x40dcfe
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041064a
pop ecx
test eax, eax
jne 0x40dd3e
push 0x1c
call fcn.0040dc3f
pop ecx
call fcn.0041030d
test eax, eax
jne 0x40dd4f
push 0x10
call fcn.0040dc3f
pop ecx
call fcn.0041276e
mov dword [ebp - 4], esi
call fcn.00412570
test eax, eax
jge 0x40dd68
push 0x1b
call fcn.0040dc1a
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x438330], eax
call fcn.0041244e
mov dword [0x436a58], eax
call fcn.004123ac
test eax, eax
jge 0x40dd8e
push 8
call fcn.0040dc1a
pop ecx
call fcn.00412179
test eax, eax
jge 0x40dd9f
push 9
call fcn.0040dc1a
pop ecx
push 1
call fcn.0040e0c9
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40ddb5
push eax
call fcn.0040dc1a
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041211c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40ddd6
movzx eax, word [ebp - 0x40]
jmp 0x40ddd9
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00418b7e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40ddf7
push edi
call fcn.0040e1f6
call fcn.0040e218
jmp 0x40de29
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040eb1b
ret
Function at 0x40e133
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42d110
call fcn.0040eae0
push 8
call fcn.004105ff
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x436aa8], esi
jne 0x40e167
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x436aa4], esi
mov al, byte [ebp + 0x10]
mov byte [0x436aa0], al
cmp dword [ebp + 0xc], edi
jne 0x40e1b1
cmp dword [0x438328], edi
je 0x40e1a1
mov eax, dword [0x438324]
sub eax, 4
mov dword [0x438324], eax
cmp eax, dword [0x438328]
jb 0x40e1a1
mov eax, dword [eax]
cmp eax, edi
je 0x40e182
call eax
jmp 0x40e182
push 0x433088
mov eax, 0x433080
call fcn.0040e0b1
pop ecx
push 0x433094
mov eax, 0x43308c
call fcn.0040e0b1
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40e1e2
cmp dword [ebp + 0x10], edi
jne 0x40e1f0
mov dword [0x436aa8], esi
push dword [ebp + 8]
call fcn.0040e06f
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40e1ef
push 8
call fcn.0041054a
pop ecx
ret
call fcn.0040eb1b
ret
Function at 0x4111d9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x411207
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41120e
cmp ebx, dword [eax + 4]
jae 0x41120e
xor eax, eax
jmp 0x4113fe
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41121f
xor eax, eax
inc eax
jmp 0x4113fd
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x411235
cmp ecx, edx
jae 0x41137a
cmp dword [eax + 4], 0
je 0x41123e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x411226
cmp dword [ebp + 8], 0
je 0x411260
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41137a
cmp eax, esi
jae 0x41137a
mov eax, dword [0x436c20]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x411285
cmp dword [esi*4 + 0x436c28], edi
je 0x41137e
inc esi
cmp esi, eax
jl 0x411273
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4113fa
cmp dword [ebp - 8], 0x1000000
jne 0x4113fa
test byte [ebp - 0xc], 0xcc
je 0x411303
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4113fa
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4113fa
cmp word [eax + 0x18], 0x10b
jne 0x4113fa
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4113fa
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x411303
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x411303
test byte [ecx + 0x27], 0x80
jne 0x41137a
push 1
push 0x436c68
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x411217
mov ecx, dword [0x436c20]
test ecx, ecx
mov edx, ecx
jle 0x411337
lea eax, [ecx*4 + 0x436c24]
cmp dword [eax], edi
je 0x411337
dec edx
sub eax, 4
test edx, edx
jg 0x41132b
test edx, edx
jne 0x411368
push 0xf
pop ebx
cmp ecx, ebx
jg 0x411344
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41135c
lea eax, [edx*4 + 0x436c28]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41134a
cmp ecx, 0x10
jge 0x411368
inc ecx
mov dword [0x436c20], ecx
push 0
push 0x436c68
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x411217
xor eax, eax
jmp 0x4113fd
test esi, esi
jle 0x411217
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x436c68
call ebx
test eax, eax
jne 0x411217
cmp dword [esi*4 + 0x436c28], edi
je 0x4113d4
mov eax, dword [0x436c20]
lea esi, [eax - 1]
test esi, esi
jl 0x4113c2
cmp dword [esi*4 + 0x436c28], edi
je 0x4113be
dec esi
jns 0x4113b2
test esi, esi
jge 0x4113d2
cmp eax, 0x10
jge 0x4113cd
inc eax
mov dword [0x436c20], eax
lea esi, [eax - 1]
jmp 0x4113d4
je 0x4113ec
xor ecx, ecx
test esi, esi
jl 0x4113ec
lea eax, [ecx*4 + 0x436c28]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4113da
push 0
push 0x436c68
call ebx
jmp 0x411217
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret