joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10029054
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1002909e
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10029045
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10029054
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1042ecf7
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x100290a5
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1000ff1b
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10029144
add edi, 4
add eax, 2
dec ecx
jne 0x1002908a
call 0x100290f1
loope 0x100290e7
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10029141
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10029152
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x10029105
cmp eax, ecx
ja 0x10029105
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1002918f
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10029185
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.100103fa
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x402e54
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x4310b0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402ee8
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402ea5
cmp dword [ebp + 0x10], ebx
jne 0x402edc
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402e54
test eax, eax
jne 0x402eb7
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402e8c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004062f4
cmp eax, ebx
je 0x402eef
push ebx
push dword [0x4310b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ee8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4310b0], ebx
jne 0x402ee5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ee5
jmp 0x402ee8
Function at 0x405663
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42d860], 0x44
push eax
xor eax, eax
push 0x42d860
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40569e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405728
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405a22
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x40575c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x431088], eax
jmp 0x40593b
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x40577a
test eax, eax
je 0x4058ba
test byte [ebp + 0xc], 2
je 0x4058ba
mov esi, 0x42c860
push edi
push esi
call fcn.00405e4e
test ebx, ebx
je 0x405797
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40579d
push edi
call fcn.00405988
push 0x40a28c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4058b0
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040596c
cmp byte [eax], 0
je 0x4057ee
cmp byte [ebp - 0x18], 0
je 0x4057ee
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40580c
mov al, byte [esi + 1]
test al, al
je 0x40588f
cmp al, 0x2e
jne 0x40580c
cmp byte [esi + 2], 0
je 0x40588f
push esi
push ebx
call fcn.00405e4e
test byte [ebp - 0x148], 0x10
je 0x405831
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40588f
push dword [ebp + 0xc]
push edi
call fcn.00405728
jmp 0x40588f
push edi
push str.Delete:_DeleteFile___s__
call fcn.0040629f
pop ecx
pop ecx
push edi
call fcn.00405b06
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
push edi
jne 0x405888
test byte [ebp + 0xc], 4
je 0x405874
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.0040629f
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.0040516c
push 0
push edi
call fcn.00405b9c
jmp 0x40588f
push str.Delete:_DeleteFile_failed___s__
call fcn.0040629f
inc dword [0x431088]
pop ecx
pop ecx
jmp 0x40588f
push 0xfffffffffffffff2
call fcn.0040516c
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4057cc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4058ba
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x40593b
cmp dword [ebp - 8], esi
push edi
jne 0x4058dc
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.0040629f
inc dword [0x431088]
pop ecx
pop ecx
jmp 0x40593b
call fcn.004062cd
test eax, eax
je 0x40593b
push edi
call fcn.00405941
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.0040629f
pop ecx
pop ecx
push edi
call fcn.00405b06
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
push edi
jne 0x405934
test byte [ebp + 0xc], 4
je 0x40592d
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.0040629f
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.0040516c
push esi
push edi
call fcn.00405b9c
jmp 0x40593b
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x4058cd
push 0xffffffffffffffe5
call fcn.0040516c
pop edi
pop esi
leave
ret 8
Function at 0x405a22
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42cc60
push esi
call fcn.00405e4e
push esi
call fcn.004059d5
mov edi, eax
test edi, edi
jne 0x405a43
xor eax, eax
jmp 0x405a95
push edi
call fcn.00406087
test byte [0x431014], 0x80
je 0x405a5c
mov al, byte [edi]
test al, al
je 0x405a3f
cmp al, 0x5c
je 0x405a3f
sub edi, esi
jmp 0x405a74
call fcn.004062cd
test eax, eax
je 0x405a6e
test byte [eax], 0x10
je 0x405a3f
push esi
call fcn.00405988
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405a60
call fcn.00405941
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405b06
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405b22
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405b25
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405b54
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405b98
test edi, edi
jne 0x405b5f
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405b92
Function at 0x405b9c
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.004062f4
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405bc0
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405cf9
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42d9e8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42d9e8
je 0x405c04
push 1
push 0
push esi
call fcn.00405b25
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405cff
cmp eax, edi
jg 0x405cff
mov esi, 0x42d460
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405cff
cmp eax, edi
jg 0x405cff
push esi
push ebp
push str._s_s_r_n
push 0x42d060
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x43100c]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405e70
push 4
push 0xc0000000
push esi
call fcn.00405b25
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405cf9
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405cf2
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405cf2
cmp edi, dword [esp + 0x18]
jne 0x405cf2
push str._Rename__r_n
push esi
call fcn.00405a9a
test eax, eax
jne 0x405d06
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405e4e
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42d060
push eax
call fcn.00405ae6
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x431090]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aac8
push eax
call fcn.00405a9a
test eax, eax
je 0x405cbd
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405d2d
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405d22
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405cbf
Function at 0x405d35
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405da6
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405d95
cmp dword [ebp + 0x14], 1
je 0x405d97
cmp dword [ebp + 0x14], 2
je 0x405d97
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405e70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405e91
mov ecx, dword [0x4307dc]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x431038]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x42f7a0
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405eb3
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
je 0x40606e
jmp 0x405ec5
mov cl, byte [ebp + 0xf]
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x40606e
inc ebx
cmp cl, 0xfc
jbe 0x406054
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, ecx
mov dword [ebp - 0xc], eax
or ch, 0x80
or ah, 0x80
inc ebx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
jne 0x405fff
cmp dword [0x431084], 0
push 2
pop esi
je 0x405f24
push 4
pop esi
test dl, dl
jns 0x405f5f
mov eax, edx
and edx, 0x3f
add edx, dword [0x431038]
and eax, 0x40
push eax
push edi
push edx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405d35
cmp byte [edi], 0
jne 0x405fe6
push dword [ebp - 0xc]
push edi
call fcn.00405e70
jmp 0x405fe1
cmp edx, 0x25
jne 0x405f72
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405fe1
cmp edx, 0x24
jne 0x405fdd
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor esi, esi
jmp 0x405fdd
mov eax, dword [0x431004]
dec esi
test eax, eax
je 0x405fa6
push edi
push 0
push 0
push dword [ebp + esi*4 - 0x14]
push dword [0x431008]
call eax
test eax, eax
je 0x405fe1
lea eax, [ebp - 4]
push eax
push dword [ebp + esi*4 - 0x14]
push dword [0x431008]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405fda
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 0xc], 0
jne 0x405fe1
and byte [edi], 0
test esi, esi
jne 0x405f87
cmp byte [edi], 0
je 0x405ff7
cmp dword [ebp - 0xc], 0x1a
jne 0x405ff7
push str.MicrosoftInternet_ExplorerQuick_Launch
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00406087
jmp 0x406045
cmp byte [ebp + 0xf], 0xfd
jne 0x406033
cmp esi, 0x1d
jne 0x406018
push dword [0x431008]
push edi
call fcn.00405dac
jmp 0x406029
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.00405e4e
add esi, 0xffffffeb
cmp esi, 7
jae 0x406045
jmp 0x405ff7
cmp byte [ebp + 0xf], 0xff
jne 0x406045
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.00405e70
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x42f7a0
jmp 0x406061
jne 0x40605e
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x406061
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405ec2
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x406083
push eax
push dword [ebp + 8]
call fcn.00405e4e
leave
ret 8
Function at 0x406120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406145
mov eax, dword [0x40a898]
cmp eax, 0xffffffff
je 0x40613c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a898], 0xffffffff
jmp 0x4061b8
cmp dword [0x42f780], ebx
je 0x4061b8
cmp byte [0x42f380], bl
je 0x406184
cmp dword [0x40a898], 0xffffffff
jne 0x40618d
push 4
push 0x40000000
push 0x42f380
call fcn.00405b25
cmp eax, 0xffffffff
mov dword [0x40a898], eax
je 0x4061b8
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a898], 0xffffffff
je 0x4061b8
push esi
mov esi, 0x42ffa0
push 0x40aae0
push esi
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp + 8]
push ebx
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [0x40a898]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x406360
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ddec], 0
push esi
jne 0x406397
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406371
mov dword [ecx*4 + 0x42dde8], eax
inc ecx
cmp ecx, 0x100
jl 0x40636c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4063c8
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42dde8]
xor eax, esi
inc ecx
dec edx
jne 0x4063aa
pop edi
not eax
pop esi
ret 0xc
Function at 0x403c7a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x403d4f
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x403d4f
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x403d4f
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x403cd5
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x403d4f
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x403d1a
test dl, dl
je 0x403d16
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x403d1a
add ecx, 2
add eax, 2
test dl, dl
jne 0x403cfa
xor eax, eax
jmp 0x403d1f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x403d31
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x403d3c
inc esi
cmp esi, ebp
jae 0x403d4f
mov edx, dword [esp + 0x10]
jmp 0x403cf0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8

Function at 0x403fb3
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x403fbe
xor eax, eax
ret
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jb 0x403fd2
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x403fd6
xor eax, eax
pop esi
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x40400f
cmp dword [edi + ecx], 0x4550
jne 0x40400f
mov eax, 0x14c
cmp word [edi + ecx + 4], ax
jne 0x40400f
test byte [edi + ecx + 0x16], 2
je 0x40400f
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x404014
pop edi
xor eax, eax
pop esi
ret
push ebx
add eax, 0xffffff20
movzx ebx, ax
add ebx, edi
movzx edi, word [edi + ecx + 6]
add ebx, ecx
xor edx, edx
test edi, edi
jle 0x404050
xor eax, eax
jmp 0x404033
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x404059
inc edx
movzx eax, dx
cmp eax, edi
jl 0x404033
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x40405f
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x404097
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x4040a5
add edx, 0x20
cmp eax, edx
jne 0x4040b6
test bx, bx
je 0x4040eb
add esi, 2
add edi, 2
jmp 0x404087
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x4040c4
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x4040d2
add edx, 0x20
sub ecx, edx
je 0x4040eb
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x404080
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x404b64
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x404c25
test ecx, ecx
je 0x404c25
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x404c25
test ebx, ebx
je 0x404c25
mov ebx, eax
add ebx, edx
je 0x404c25
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x404c25
cmp dword [edx + eax + 0x14], 0
je 0x404c25
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x404c25
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x404c15
test dl, dl
je 0x404c11
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x404c15
add edi, 2
add esi, 2
test dl, dl
jne 0x404bf5
xor eax, eax
jmp 0x404c1a
sbb eax, eax
or eax, 1
test eax, eax
je 0x404c31
inc ebp
cmp ebp, dword [esp + 4]
jb 0x404be2
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8