joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c18aa
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x4eb35e
call fcn.004ccfd2
lea eax, [ebp - 0x10]
push eax
call fcn.0040372d
and dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4c190b
lea ecx, [eax - 1]
mov eax, esi
call fcn.00466910
cmp ax, 0x5c
jne 0x4c190b
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
lea ecx, [eax - 1]
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.00442831
mov byte [ebp - 4], 1
lea edi, [ebp - 0x10]
call fcn.004412d2
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004036cd
jmp 0x4c1915
mov eax, esi
lea edi, [ebp - 0x10]
call fcn.004412d2
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov ecx, dword [esi]
cmp eax, dword [ecx - 0xc]
jge 0x4c1968
push 0x5c
call fcn.0044d969
lea ecx, [ebp - 0x14]
push ecx
push esi
mov ecx, eax
call fcn.00442831
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x4c195c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004c18aa
pop ecx
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004036cd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004036cd
call fcn.004cd0aa
ret
Function at 0x4c1eee
Capabilities:
Check if file exists

Disassembly:
push 0x8c
mov eax, 0x4f57b4
call fcn.004cd03b
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp + 0x18]
mov esi, edx
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x54], ecx
push eax
mov ecx, esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x60], edi
call fcn.0040b2fb
push dword [ebp + 0x1c]
mov edx, dword [ebp - 0x50]
push dword [ebp - 0x54]
mov ecx, dword [ebp - 0x5c]
push dword [ebp - 0x58]
mov dword [ebp - 4], edi
push esi
inc edi
push ebx
mov dword [ebp - 0x60], edi
call fcn.004c1c4c
add esp, 0x14
cmp dword [esi + 0x18], 8
jb 0x4c1f58
mov eax, dword [esi + 4]
jmp 0x4c1f5b
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c2065
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.0045ca50
mov dword [ebp - 4], edi
lea edi, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
call fcn.0045e100
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0045dd80
mov edi, eax
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0045dd80
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0040aedd
mov ebx, eax
neg ebx
push 0
sbb bl, bl
push 1
lea ecx, [ebp - 0x98]
inc bl
mov byte [ebp - 4], 3
call fcn.00401774
push 0
push 1
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.00401774
test bl, bl
je 0x4c204b
lea esi, [ebp - 0x7c]
lea ecx, [ebp - 0x2c]
call fcn.0045ddf0
mov byte [ebp - 4], 5
cmp dword [eax + 0x18], 8
jb 0x4c1ffa
mov eax, dword [eax + 4]
jmp 0x4c1ffd
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
test eax, eax
push 1
lea ecx, [ebp - 0x7c]
setne bl
mov byte [ebp - 4], 2
call fcn.00401774
test bl, bl
je 0x4c2048
lea esi, [ebp - 0x7c]
lea ecx, [ebp - 0x2c]
call fcn.0045ddf0
push 0xffffffffffffffff
push 0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.00401665
push 0
push 1
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00401774
mov esi, dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.00404867
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0
call fcn.00404867
mov eax, esi
call fcn.004cd0be
ret

Function at 0x4c273e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x541770]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
mov dword [ebp - 0x80], 0x114
call fcn.004c6270
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4c2797
cmp dword [ebp - 0x7c], 5
jae 0x4c2793
cmp dword [ebp - 0x7c], 4
jne 0x4c2797
cmp dword [ebp - 0x78], 0x5a
jb 0x4c2797
xor eax, eax
jmp 0x4c279a
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004c625d
add ebp, 0x98
leave
ret
Function at 0x4c3b60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5442b4], 0
push esi
jne 0x4c3ad3
call fcn.004c39f9
test eax, eax
je 0x4c3b16
mov eax, dword [0x5442b4]
cmp eax, 1
jne 0x4c3af4
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4c3b16
pop esi
ret
push eax
call dword [0x5442bc]
test eax, eax
jne 0x4c3b5e
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4c3b1a
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x5442b4]
call dword [0x5442bc]
mov edi, eax
test edi, edi
je 0x4c3b3f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4c3b5b
mov edi, esi
add esi, 0xff0
push edi
push dword [0x5442b4]
call dword [0x5442b8]
add edi, 0x10
cmp edi, esi
jb 0x4c3b47
mov eax, edi
pop edi
pop esi
ret
jmp 0x4c3ac0

Function at 0x4c58f7
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x4e5308
call fcn.004cd03b
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x4c5a09
cmp byte [esi + 0x42], bl
je 0x4c5a09
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp di, ax
jne 0x4c5933
xor al, al
jmp 0x4c5a0b
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.0044c14c
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call section..text
mov ecx, eax
call fcn.004012a5
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call section..text
mov ecx, eax
call fcn.004012a5
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x4c59a3
dec eax
je 0x4c59a7
dec eax
dec eax
je 0x4c5a05
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401b09
mov al, bl
jmp 0x4c5a0b
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call section..text
mov ecx, eax
call fcn.004012a5
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x4c59e7
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call section..text
mov ecx, eax
call fcn.004012a5
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004cf962
add esp, 0x10
cmp edi, eax
jne 0x4c5991
cmp byte [esi + 0x42], 0
je 0x4c5a05
test edi, edi
jne 0x4c5941
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00401095
jmp 0x4c5941
mov bl, 1
jmp 0x4c5993
mov al, 1
call fcn.004cd0be
ret

Function at 0x4c625d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x541770]
jne 0x4c6267
repz ret
jmp fcn.004cfc42
Function at 0x4db9c1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004c9ec4
and dword [ebp - 4], 0
cmp dword [0x54520c], 0
mov ebx, eax
jne 0x4dba72
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4dbb23
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4dbb23
push eax
call fcn.004c9e52
mov dword [esp], 0x504998
push edi
mov dword [0x54520c], eax
call esi
push eax
call fcn.004c9e52
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x545210], eax
call esi
push eax
call fcn.004c9e52
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x545214], eax
call esi
push eax
call fcn.004c9e52
pop ecx
mov dword [0x54521c], eax
test eax, eax
je 0x4dba72
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004c9e52
pop ecx
mov dword [0x545218], eax
mov eax, dword [0x545218]
cmp eax, ebx
je 0x4dbaca
cmp dword [0x54521c], ebx
je 0x4dbaca
push eax
call fcn.004c9ecd
push dword [0x54521c]
mov esi, eax
call fcn.004c9ecd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4dbaca
test edi, edi
je 0x4dbaca
call esi
test eax, eax
je 0x4dbac1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4dbac1
test byte [ebp - 0xc], 1
jne 0x4dbaca
or dword [ebp + 0x10], 0x200000
jmp 0x4dbb03
mov eax, dword [0x545210]
cmp eax, ebx
je 0x4dbb03
push eax
call fcn.004c9ecd
pop ecx
test eax, eax
je 0x4dbb03
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4dbb03
mov eax, dword [0x545214]
cmp eax, ebx
je 0x4dbb03
push eax
call fcn.004c9ecd
pop ecx
test eax, eax
je 0x4dbb03
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x54520c]
call fcn.004c9ecd
pop ecx
test eax, eax
je 0x4dbb23
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4dbb25
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e4cf1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e6bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x541770]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
push dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
call fcn.00498eb0
xor ebx, ebx
mov dword [esp + 0x78], ebx
lea esi, [esp + 0x24]
call fcn.004032f3
mov edi, eax
call fcn.004032d3
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edi
call fcn.004030ae
mov ecx, eax
and ecx, 0xff00
cmp ecx, 0x2000
je 0x4e4d89
or dword [esp + 0x78], 0xffffffff
lea eax, [esp + 0x24]
push eax
call fcn.0040317e
mov eax, ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x54]
push ecx
push eax
push 1
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x38]
mov byte [esp + 0x2b], bl
call sub.gdiplus.dll_GdipBitmapLockBits
cmp eax, ebx
je 0x4e4dab
mov dword [esp + 0x2c], eax
push 0x26200a
push dword [esp + 0x5c]
lea eax, [esp + 0x4c]
push dword [esp + 0x5c]
push eax
call fcn.0040323b
mov byte [esp + 0x78], 1
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x58], ebx
jbe 0x4e4e55
mov edi, dword [esp + 0x5c]
imul edi, dword [esp + 0x18]
add edi, dword [esp + 0x64]
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x54], ebx
jbe 0x4e4e47
mov bl, byte [edi + 3]
test bl, bl
je 0x4e4e34
mov dl, byte [edi + 2]
mov cl, byte [edi + 1]
mov al, byte [edi]
push dword [esp + 0x18]
movzx esi, bl
push dword [esp + 0x20]
shl esi, 8
movzx edx, dl
or esi, edx
shl esi, 8
movzx ecx, cl
or esi, ecx
movzx eax, al
shl esi, 8
or esi, eax
mov dword [esp + 0x28], esi
lea eax, [esp + 0x28]
lea esi, [esp + 0x4c]
call fcn.0042f9e3
mov byte [esp + 0x17], 1
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
add edi, 4
cmp eax, dword [esp + 0x54]
jb 0x4e4dec
xor ebx, ebx
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x58]
jb 0x4e4dd5
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x2c]
call sub.gdiplus.dll_GdipBitmapUnlockBits
cmp eax, ebx
je 0x4e4e6b
mov dword [esp + 0x2c], eax
cmp byte [esp + 0x17], 0
je 0x4e4e8c
push 0x26200a
push dword [esp + 0x5c]
lea ecx, [esp + 0x4c]
push dword [esp + 0x5c]
push ebx
push ebx
call fcn.004030ca
mov ebx, eax
mov byte [esp + 0x78], 0
lea eax, [esp + 0x44]
push eax
call fcn.0040317e
jmp 0x4e4d65
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x8e6008], 0x8088405
inc edx
mov dword [ebx + 0x8e6008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d254
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d27c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x8c989e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f3ff
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8c98a5
ret
Function at 0x4205fc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x8cac17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420637
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420650
lea eax, [ebp - 0x10]
mov edx, dword [0x8e85f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420663
lea eax, [ebp - 0x10]
mov edx, dword [0x8e85f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42066f
adc edx, 0
mov edx, dword [edx*4 + 0x8e73fc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4207e9
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4207dc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4207dc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42077a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42077a
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x42077a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42077a
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4207dc
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4207dc
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420801
inc ebx
cmp ebx, 0x19
jne 0x420629
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8cac1e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x402c50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582a1a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x60b9b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 2
call fcn.00402a90
mov ecx, eax
test ecx, ecx
jne 0x402cc5
push 0x80004005
call fcn.00402b10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x18], eax
mov byte [ebp - 4], 3
call fcn.00402a90
mov ecx, eax
test ecx, ecx
jne 0x402ce9
push 0x80004005
call fcn.00402b10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x1c], eax
mov byte [ebp - 4], 4
call fcn.00402a90
mov ecx, eax
test ecx, ecx
jne 0x402d0d
push 0x80004005
call fcn.00402b10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 5
call fcn.00402a90
mov ecx, eax
test ecx, ecx
jne 0x402d31
push 0x80004005
call fcn.00402b10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x24], eax
lea esi, [edi + 0x28]
mov byte [ebp - 4], 6
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004063e0
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret