joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c7230
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5e9220]
xor edx, edx
cmp eax, edx
jne 0x4c7256
xor eax, eax
mov byte [eax + 0x5e9120], al
inc eax
cmp eax, 0x100
jl 0x4c723e
mov dword [0x5e9220], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5e9120
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4c72e7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4c72ba
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4c7288
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4c7360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4c73b3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4c739a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4cdd40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50051e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004ce660
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x541e84
call fcn.004f0a18
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4cddd3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004f0a18
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4cddcc
push 0
mov ecx, eax
call fcn.004c4e70
mov dword [esi + 0xc], eax
jmp 0x4cddd5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4cddd5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4dee1d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4dee3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004dd8da
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4dee60
test byte [esp + 8], 2
je 0x4dee60
call fcn.004dd94d
mov dword [eax], 0xd
call fcn.004dd956
mov dword [eax], 5
jmp 0x4dee39
xor eax, eax
ret

Function at 0x4f30a5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4f30dd
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004f1132
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004f110a
jmp 0x4f30e9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4f479a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4f47dc
call fcn.004fa357
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4f47dc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4f47d3
xor eax, eax
jmp 0x4f47e4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004f47ea
pop edi
pop esi
pop ebx
ret 4

Function at 0x4fa887
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4fa8b5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4fa8d3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004fa7ed
jmp 0x4fa8d3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4fa8d3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004fa7ed
test edi, edi
mov eax, edi
jne 0x4fa8bd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x405a70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46afc8
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.00401fa0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401470
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 0x405b02
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 0x4074c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x46b278
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov dword [esp + 8], 0
mov esi, dword [esp + 0x24]
push edi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0042cdb0
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push edi
push ecx
mov dword [esp + 0x28], 0
call fcn.0042cdb0
add esp, 0x10
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 1
call fcn.004027f0
push 0x470554
push 0x47054c
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 2
call fcn.004057c0
push 0x470544
push 0x47053c
lea ecx, [esp + 0x30]
call fcn.004057c0
push 0x470534
push 0x47052c
lea ecx, [esp + 0x30]
call fcn.004057c0
push 0x470524
push 0x47051c
lea ecx, [esp + 0x30]
call fcn.004057c0
push esi
push 0x470554
lea ecx, [esp + 0x30]
call fcn.004057c0
mov eax, dword [esp + 0xc]
push eax
push 0x470544
lea ecx, [esp + 0x30]
call fcn.004057c0
push edi
push 0x470534
lea ecx, [esp + 0x30]
call fcn.004057c0
mov ecx, dword [esp + 8]
push ecx
push 0x470524
lea ecx, [esp + 0x30]
call fcn.004057c0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
push eax
call fcn.00401470
mov esi, dword [esp + 0x24]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x18], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4075ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x18], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407612
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407638
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
Function at 0x40a130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46b600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
fld qword [esp + 0x1c]
push esi
fadd qword [0x470ba8]
push edi
sub esp, 8
mov dword [esp + 0x14], 0
fst qword [esp + 0x2c]
fstp qword [esp]
call fcn.004386b0
add esp, 8
call fcn.00438814
fld qword [esp + 0x24]
fld qword [0x46fca8]
mov esi, eax
call fcn.004387ea
fmul qword [0x4755c0]
call fcn.00438814
mov edi, eax
call fcn.0044f512
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x1c], 0
call fcn.00409c10
mov ecx, dword [eax]
push edi
push ecx
push esi
lea edx, [esp + 0x34]
push str._d_s_d
push edx
mov byte [esp + 0x30], 1
call fcn.004022f0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x18
mov byte [esp + 0x18], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a1f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x24]
add esi, 0xfffffff0
push esi
call fcn.00401470
mov edi, dword [esp + 0x24]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x18], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a22d
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40ede0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46bbc8
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
push 0
push eax
mov dword [esp + 0x1c], 0
call fcn.0040e720
mov ebx, eax
lea ecx, [esp + 0x1c]
lea esi, [ebx + 8]
push ecx
mov ecx, esi
call fcn.00402440
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x30]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x40ee4c
mov dword [eax], ebx
jmp 0x40ee4f
mov dword [edi + 4], ebx
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [edi + 8], ebx
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x20
Function at 0x41d280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46ca08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov edi, ecx
push edi
lea ecx, [esp + 0x38]
call fcn.00452ded
mov esi, dword [esp + 0x58]
mov ebp, dword [esi]
lea ebx, [esp + 0x14]
push ebx
xor ecx, ecx
lea ebx, [esp + 0x1c]
push ebx
push ecx
xor eax, eax
sub esp, 0x10
mov ebx, esp
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov edx, 0x3e8
mov dword [esp + 0x6c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], eax
mov dword [ebx + 8], edx
mov eax, edx
lea ecx, [esp + 0x50]
mov dword [ebx + 0xc], eax
mov ebx, dword [esp + 0x78]
push ecx
push ebx
mov ecx, esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
call dword [ebp + 0x14]
test al, al
je 0x41d308
mov esi, dword [esp + 0x18]
jmp 0x41d425
mov edx, dword [esi]
push ebx
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call dword [edx]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov byte [esp + 0x50], 1
jne 0x41d36b
add eax, 0xfffffff0
mov byte [esp + 0x50], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d343
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x34]
mov dword [esp + 0x50], 0xffffffff
call fcn.00452e48
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8
mov eax, dword [edi + 0x1c]
push 0
push 0
push 0x31
push eax
call dword [0x46f73c]
push eax
call fcn.00453045
test eax, eax
je 0x41d388
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call fcn.004530dc
mov ebp, eax
lea edx, [esp + 0x34]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], edx
push ebx
mov ecx, edi
mov byte [esp + 0x54], 2
call fcn.0041bf30
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx - 0xc]
neg al
sbb eax, eax
and eax, 2
or eax, 0xc24
push eax
lea eax, [esp + 0x28]
push eax
push edx
mov edx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x44]
call dword [edx + 0x68]
push 0
push 6
lea eax, [esp + 0x2c]
push eax
call dword [0x46f724]
mov esi, dword [esp + 0x2c]
sub esi, dword [esp + 0x24]
test ebp, ebp
mov byte [esp + 0x50], 1
je 0x41d3f7
mov ebp, dword [ebp + 4]
mov ecx, dword [esp + 0x38]
push ebp
push ecx
call fcn.004530dc
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x50], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d425
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x34]
mov dword [esp + 0x50], 0xffffffff
call fcn.00452e48
mov ecx, dword [esp + 0x48]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret 8
Function at 0x41d800
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46ca58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
mov ebp, dword [esp + 0x44]
push esi
mov esi, dword [esp + 0x4c]
push edi
mov edi, ecx
mov eax, dword [edi + 4]
push eax
push esi
mov ecx, ebp
call fcn.00460534
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push 0xffffffffffffffff
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0xc]
push 0xfffffffffffffffb
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
call dword [0x46f724]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ecx, esi
sub ecx, eax
and ecx, 0x80000001
jns 0x41d874
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x41d87b
dec esi
mov dword [esp + 0x38], esi
mov edx, dword [esp + 0x34]
sub esi, eax
push ebx
mov ebx, dword [esp + 0x30]
sub edx, esi
sub edx, ebx
mov dword [esp + 0x54], edx
fild dword [esp + 0x54]
mov dword [esp + 0x50], esi
fmul qword [edi + 0x28]
call fcn.00438814
add eax, ebx
push 0
mov dword [esp + 0x34], eax
push 1
add eax, esi
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], eax
call fcn.004531c9
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 4]
push eax
push ecx
mov dword [esp + 0x50], 0
call fcn.004530dc
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebp
mov ecx, edi
mov byte [esp + 0x48], 1
call fcn.0041d690
push eax
lea ecx, [esp + 0x14]
call fcn.00453219
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 4]
push edx
push eax
mov byte [esp + 0x50], 2
call fcn.004530dc
fld qword [edi + 0x38]
fild dword [esp + 0x50]
mov dword [esp + 0x2c], eax
mov eax, esi
cdq
sub eax, edx
fmul st(1)
mov edx, dword [esp + 0x34]
mov esi, eax
fmul st(1)
sar esi, 1
add esi, edx
call fcn.00438814
mov cl, byte [edi]
fstp st(0)
test cl, cl
mov edx, eax
jne 0x41d930
lea edx, [eax + 1]
mov cl, byte [edi + 0x20]
test cl, cl
je 0x41d943
mov edi, dword [esp + 0x38]
mov ecx, esi
sub ecx, eax
add esi, edx
jmp 0x41d94c
mov edi, dword [esp + 0x30]
lea ecx, [edx + esi]
sub esi, eax
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push esi
push edi
push ecx
mov ecx, dword [esp + 0x48]
mov ebx, edi
push ebx
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [ebp + 4]
push eax
push ecx
push edx
call dword [0x46f154]
mov eax, dword [esp + 0x2c]
test eax, eax
pop ebx
je 0x41d97c
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp + 4]
push eax
call fcn.004530dc
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 1
mov dword [esp + 0xc], esi
call fcn.004530aa
mov eax, dword [esp + 0x20]
test eax, eax
mov byte [esp + 0x44], 0
je 0x41d9ad
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 4]
push eax
push ecx
call fcn.004530dc
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x14], esi
call fcn.004530aa
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 8
Function at 0x429627
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46d79e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0041baf0
mov dword [esp + 0x18], 0
mov dword [esi], 0x475b50
lea edi, [esi + 8]
call fcn.0044f512
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x18], 1
call fcn.0044f512
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x28], eax
mov ebx, dword [esp + 0x24]
test ebx, ebx
mov eax, dword [esp + 0x20]
mov byte [esp + 0x18], 2
mov dword [esi + 4], eax
jne 0x429685
xor eax, eax
jmp 0x42968e
push ebx
call fcn.00437a78
add esp, 4
push eax
push ebx
mov ecx, edi
call fcn.00402040
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
lea ecx, [esi + 0x10]
mov dword [ecx], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], eax
mov ecx, dword [esp + 0x10]
pop edi
mov dword [esi + 0x2c], 0xffffffff
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x20
Function at 0x43728a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x47d800
call fcn.0043966c
mov edi, 0x94
mov eax, edi
call fcn.00437dd0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x46f314]
mov ecx, dword [esi + 0x10]
mov dword [0x48fef0], ecx
mov eax, dword [esi + 4]
mov dword [0x48fefc], eax
mov edx, dword [esi + 8]
mov dword [0x48ff00], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x48fef4], esi
cmp ecx, 2
je 0x4372ea
or esi, 0x8000
mov dword [0x48fef4], esi
shl eax, 8
add eax, edx
mov dword [0x48fef8], eax
xor esi, esi
push esi
mov edi, dword [0x46f308]
call edi
cmp word [eax], 0x5a4d
jne 0x437325
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x437325
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x43733d
cmp eax, 0x20b
je 0x43732a
mov dword [ebp - 0x1c], esi
jmp 0x437351
cmp dword [ecx + 0x84], 0xe
jbe 0x437325
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x43734b
cmp dword [ecx + 0x74], 0xe
jbe 0x437325
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0043b466
pop ecx
test eax, eax
jne 0x437365
push 0x1c
call fcn.00437266
pop ecx
call fcn.0043b35d
test eax, eax
jne 0x437376
push 0x10
call fcn.00437266
pop ecx
call fcn.0043b0b5
mov dword [ebp - 4], esi
call fcn.0043aeb7
test eax, eax
jge 0x43738f
push 0x1b
call fcn.00437241
pop ecx
call fcn.0043ae18
mov dword [0x4918b0], eax
call fcn.0043acae
mov dword [0x48fed8], eax
call fcn.0043ac18
test eax, eax
jge 0x4373b4
push 8
call fcn.00437241
pop ecx
call fcn.0043a9e5
test eax, eax
jge 0x4373c5
push 9
call fcn.00437241
pop ecx
push 1
call fcn.00439dd4
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4373db
push eax
call fcn.00437241
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [0x46f22c]
call fcn.0043a99f
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4373fc
movzx eax, word [ebp - 0x40]
jmp 0x4373ff
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004471b4
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x43741d
push edi
call fcn.00439f01
call fcn.00439f23
jmp 0x43744f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004396a7
ret
Function at 0x4405c1
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 0x4405ef
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 0x4405f6
cmp ebx, dword [eax + 4]
jae 0x4405f6
xor eax, eax
jmp 0x4407e6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x440607
xor eax, eax
inc eax
jmp 0x4407e5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x44061d
cmp ecx, edx
jae 0x440762
cmp dword [eax + 4], 0
je 0x440626
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x44060e
cmp dword [ebp + 8], 0
je 0x440648
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x440762
cmp eax, esi
jae 0x440762
mov eax, dword [0x4902c8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x44066d
cmp dword [esi*4 + 0x4902d0], edi
je 0x440766
inc esi
cmp esi, eax
jl 0x44065b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x46f17c]
test eax, eax
je 0x4407e2
cmp dword [ebp - 8], 0x1000000
jne 0x4407e2
test byte [ebp - 0xc], 0xcc
je 0x4406eb
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4407e2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4407e2
cmp word [eax + 0x18], 0x10b
jne 0x4407e2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4407e2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4406eb
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4406eb
test byte [ecx + 0x27], 0x80
jne 0x440762
push 1
push 0x490310
call dword [0x46f40c]
test eax, eax
jne 0x4405ff
mov ecx, dword [0x4902c8]
test ecx, ecx
mov edx, ecx
jle 0x44071f
lea eax, [ecx*4 + 0x4902cc]
cmp dword [eax], edi
je 0x44071f
dec edx
sub eax, 4
test edx, edx
jg 0x440713
test edx, edx
jne 0x440750
push 0xf
pop ebx
cmp ecx, ebx
jg 0x44072c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x440744
lea eax, [edx*4 + 0x4902d0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x440732
cmp ecx, 0x10
jge 0x440750
inc ecx
mov dword [0x4902c8], ecx
push 0
push 0x490310
call dword [0x46f40c]
jmp 0x4405ff
xor eax, eax
jmp 0x4407e5
test esi, esi
jle 0x4405ff
mov ebx, dword [0x46f40c]
push 1
push 0x490310
call ebx
test eax, eax
jne 0x4405ff
cmp dword [esi*4 + 0x4902d0], edi
je 0x4407bc
mov eax, dword [0x4902c8]
lea esi, [eax - 1]
test esi, esi
jl 0x4407aa
cmp dword [esi*4 + 0x4902d0], edi
je 0x4407a6
dec esi
jns 0x44079a
test esi, esi
jge 0x4407ba
cmp eax, 0x10
jge 0x4407b5
inc eax
mov dword [0x4902c8], eax
lea esi, [eax - 1]
jmp 0x4407bc
je 0x4407d4
xor ecx, ecx
test esi, esi
jl 0x4407d4
lea eax, [ecx*4 + 0x4902d0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4407c2
push 0
push 0x490310
call ebx
jmp 0x4405ff
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret