joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10155b30
Capabilities:
Create directory
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1017a44b
push eax
mov dword fs:[0], esp
sub esp, 0x21c
or ecx, 0xffffffff
xor eax, eax
push ebx
mov ebx, dword [esp + 0x230]
push esi
push edi
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x10155b6d
mov eax, 1
jmp 0x10155cf9
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10155cb2
or ecx, eax
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x200
jb 0x10155bae
mov eax, 3
jmp 0x10155cf9
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
js 0x10155bf1
mov al, byte [esp + ecx + 0x28]
cmp al, 0x5c
je 0x10155bf1
cmp al, 0x2f
je 0x10155bf1
dec ecx
jns 0x10155be2
test ecx, ecx
jle 0x10155cab
mov byte [esp + ecx + 0x28], 0
push ebp
lea ecx, [esp + 0x18]
call fcn.10154190
lea ecx, [esp + 0x2c]
mov dword [esp + 0x234], 0
push ecx
lea ecx, [esp + 0x1c]
call fcn.10154630
lea ecx, [esp + 0x18]
call fcn.10154a90
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.10154280
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, 1
cmp eax, edi
mov dword [esp + 0x14], eax
jle 0x10155c71
mov bl, byte [edi + esi]
cmp bl, 0x2f
je 0x10155c55
cmp bl, 0x5c
jne 0x10155c65
push 0
push esi
mov byte [edi + esi], 0
call ebp
mov eax, dword [esp + 0x14]
mov byte [edi + esi], bl
inc edi
cmp edi, eax
jl 0x10155c48
mov ebx, dword [esp + 0x23c]
push 0
push esi
call ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x234], 0xffffffff
call fcn.10154250
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
pop ebp
cmp esi, 0xffffffff
jne 0x10155cb2
mov eax, 5
jmp 0x10155cf9
mov edi, dword [esp + 0x23c]
lea edx, [esp + 0xc]
push 0
push edx
mov ecx, edi
mov dword [esp + 0x14], 0
call fcn.10154280
push eax
mov ecx, edi
call fcn.10154a90
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x10155cf1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 6
jmp 0x10155cf9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret
Function at 0x10155d20
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edx, dword [esp + 4]
push ebx
push ebp
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x10155d40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10155d6a
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10155d8b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
ret
test ebp, ebp
jne 0x10155da6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
call fcn.10154ad0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
lea edi, [ebp + 1]
push edi
call fcn.10164e45
mov esi, eax
add esp, 4
test esi, esi
jne 0x10155dc9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
ret
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10155e02
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
ret
cmp ebp, dword [esp + 0x14]
je 0x10155e19
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ebp
push esi
call fcn.101544f0
push esi
call fcn.10164e6e
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x409a24
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409a5d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404390
jmp 0x409a66
mov eax, ebx
mov edx, esi
call fcn.004042f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409a70
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409a92
movzx eax, byte [esp]
jmp 0x409a94
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a124
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409f9c
mov eax, dword [0x413bf0]
cmp byte [eax], 0
je 0x40a1a0
mov eax, dword [0x413b08]
call fcn.004030a4
call fcn.00402eac
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407360
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a1e8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a1d6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x413ae8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4167f0]
call fcn.004051c0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x410d84
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.00404510
add esp, 0x104
pop ebx
ret

Function at 0x410db4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004046a4
xor eax, eax
push ebp
push 0x410dfc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004046b4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410e03
lea eax, [ebp - 4]
call fcn.004042a0
ret
Function at 0x40d9a8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408fab
mov dword [ebp - 0x14], eax
cmp dword [0x4550e0], esi
jne 0x40da9b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40da28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40db7b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40db7b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40db7b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4550e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4550e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4550e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4550f0], eax
test eax, eax
je 0x40da98
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4550ec], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40dac0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40dab3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40dad5
push 4
pop eax
jmp 0x40db7d
cmp dword [ebp - 0x14], esi
je 0x40dad5
push dword [0x4550e0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40daba
mov eax, dword [0x4550ec]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40db33
cmp dword [0x4550f0], edi
je 0x40db33
push eax
call ebx
push dword [0x4550f0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40db33
test eax, eax
je 0x40db33
call ecx
test eax, eax
je 0x40db28
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40db28
test byte [ebp - 8], 1
jne 0x40db33
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40db63
mov eax, dword [0x4550e4]
cmp eax, edi
je 0x40db60
push eax
call ebx
test eax, eax
je 0x40db60
call eax
mov esi, eax
test esi, esi
je 0x40db60
mov eax, dword [0x4550e8]
cmp eax, edi
je 0x40db60
push eax
call ebx
test eax, eax
je 0x40db60
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4550e0]
call ebx
test eax, eax
je 0x40db7b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40db7d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404315
mov esp, ebp
pop ebp
ret
Function at 0x403770
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x403813
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0040cc07
pop ecx
pop ecx
test eax, eax
je 0x4037fc
test ebx, ebx
je 0x4037f0
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.0040cc07
pop ecx
pop ecx
test eax, eax
jle 0x4037fc
push ebx
call fcn.00404730
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.0040470f
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x4037bd
xor edi, edi
cmp ebx, edi
jne 0x403817
xor eax, eax
jmp 0x403883
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x403846
call fcn.00404730
pop ecx
cmp dword [ebp - 0x70], edi
je 0x403813
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403813
call fcn.00404730
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x403836
cmp dword [ebp - 0x70], edi
je 0x403879
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.0040470f
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085d9
add ebp, 0x9c
leave
ret
Function at 0x404925
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x294
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp + 0x210], eax
mov eax, dword [ebp + 0x21c]
push ebx
push esi
push edi
push 0x10
pop edi
mov dword [ebp - 0x78], eax
call fcn.00404792
push 8
mov esi, eax
call fcn.004046c8
mov ebx, eax
pop ecx
lea eax, [ebp + 0xd0]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x80], ebx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x404990
mov dword [ebx], eax
lea eax, [ebp + 0xfc]
mov dword [ebx + 4], eax
mov edi, dword [ebx + 4]
test edi, edi
je 0x404997
and dword [ebx + 4], 0
jmp 0x4049ac
xor eax, eax
jmp 0x404a77
lea eax, [ebp - 0x70]
push eax
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindNextFileA]
neg eax
sbb edi, edi
lea eax, [ebp - 0x44]
and edi, eax
test edi, edi
je 0x404a5d
push edi
call fcn.00407d90
pop ecx
cmp eax, 4
jl 0x404983
add eax, edi
cmp byte [eax - 4], 0x2e
jne 0x404983
add eax, 0xfffffffd
push 0x4197ac
push eax
mov dword [ebp - 0x74], eax
call fcn.004085f0
pop ecx
pop ecx
test eax, eax
je 0x4049f2
push 0x4197a8
push dword [ebp - 0x74]
call fcn.004085f0
pop ecx
pop ecx
test eax, eax
jne 0x404983
push 0x3b
push edi
call fcn.00409780
pop ecx
pop ecx
test eax, eax
jne 0x404983
push dword [ebp - 0x78]
call fcn.00407d90
push edi
mov ebx, eax
call fcn.00407d90
mov dword [ebp - 0x74], eax
add eax, ebx
push eax
call fcn.004046c8
lea ecx, [ebx - 1]
push ecx
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
push eax
call fcn.0040cc07
mov eax, dword [ebp - 0x74]
inc eax
push eax
push edi
mov edi, dword [ebp - 0x7c]
lea eax, [edi + ebx - 1]
push eax
call fcn.0040cc07
mov ecx, dword [esi + 4]
add esp, 0x24
inc ecx
call fcn.004047e8
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x80]
mov dword [ecx + eax*4], edi
inc dword [esi + 4]
jmp 0x404983
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindClose]
push dword [ebx + 4]
call fcn.00404730
push ebx
call fcn.00404730
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp + 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085d9
add ebp, 0x214
leave
ret
Function at 0x407d7a
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x41e210
call fcn.0040d880
xor esi, esi
cmp dword [0x422fe8], esi
jne 0x407c3a
push esi
push esi
push 1
push esi
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x407c4d
mov dword [ebp - 0x1c], esi
jmp 0x407c83
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x407c48
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x407c48
cmp dword [eax + 0x400074], 0xe
jbe 0x407c48
xor ecx, ecx
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1c], ecx
call fcn.0040d85e
test eax, eax
jne 0x407c94
push 0x1c
call fcn.0040cc07
pop ecx
call fcn.0040d6e3
test eax, eax
jne 0x407ca5
push 0x10
call fcn.0040cc07
pop ecx
call fcn.0040d2f3
mov dword [ebp - 4], esi
call fcn.0040cc07
test eax, eax
jns 0x407cbe
push 0x1b
call fcn.0040cc07
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x422fe4], eax
call fcn.0040cc07
mov dword [0x421270], eax
call fcn.0040105b
test eax, eax
jns 0x407ce4
push 8
call fcn.0040cc07
pop ecx
call fcn.0040cf3b
test eax, eax
jns 0x407cf5
push 9
call fcn.0040cc07
pop ecx
push 1
call fcn.0040cc07
pop ecx
cmp eax, esi
je 0x407d08
push eax
call fcn.0040cc07
pop ecx
mov eax, dword [0x421294]
mov dword [0x421298], eax
push eax
push dword [0x42128c]
push dword [0x421288]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
jne 0x407d35
push eax
call fcn.0040cc07
call fcn.00408d12
jmp 0x407d6a
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.0040d8c5
ret
call fcn.0040cc07
jmp 0x407c19

Function at 0x4085d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420030]
jne 0x4085e3
repz ret
jmp fcn.004101ab
Function at 0x40cc07
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40cc16
pop dword [ebp - 0x48]
mov eax, 0xe063d645
add eax, 0x1fdcf5d1
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x67ca54dc
sub dword [ebp - 0x58], 0x19780f91
mov dword [ebp - 0x54], 0xe09991a4
add dword [ebp - 0x54], 0x5199baa1
mov dword [ebp - 0x50], 0x70bcefb0
add dword [ebp - 0x50], 0xdb8f547e
mov dword [ebp - 0x4c], 0x4df8a85e
add dword [ebp - 0x4c], 0xb20757a2
lea eax, [ebp - 0x58]
push eax
mov eax, 0xa875c7bf
sub eax, 0xa834476f
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x9da5c8f0
sub dword [ebp - 0x58], 0x29335f9a
mov dword [ebp - 0x54], 0x806836f1
sub dword [ebp - 0x54], 0x3efbd57c
mov dword [ebp - 0x50], 0xebbceaca
add dword [ebp - 0x50], 0x77b281a2
mov dword [ebp - 0x4c], 0x7fb98654
sub dword [ebp - 0x4c], 0x7fb98654
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x4f035a89
add eax, 0xb13e25c3
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x392ea
push 0
call eax
mov ecx, 0x3f3b
xor esi, esi
add esi, eax
mov edi, 0xcfec592f
sub edi, 0xcfa9812f
add edi, dword [ebp - 0x48]
mov ebx, 0x18bac40f
sub ebx, 0x1cf6ee39
sub dword [ebp - 0x20], ebx
mov edx, dword [edi]
add dword [ebp - 0x1c], 0x3d249e10
xor edx, ebx
xor dword [ebp - 0x10], edx
mov dword [esi], edx
sub dword [ebp - 0x3c], ecx
add esi, 0x9cfade8e
sub esi, 0x9cfade8a
add edi, 4
loop 0x40cd34
add eax, 0xa652401d
add eax, 0x59aeafa2
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x5381b9db
add ecx, 0xacbe4625
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x401610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40162b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401662
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40165e
jmp 0x401650
cmp esi, eax
jae 0x401662
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401650
cmp esi, eax
jb 0x401669
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401c80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e986
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x58f660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 1
mov esi, dword [edi + 0x34]
sub esi, dword [edi + 0x30]
sar esi, 2
test esi, esi
je 0x401cdb
mov eax, dword [edi + 0x30]
mov ebx, dword [eax + esi*4 - 4]
dec esi
test ebx, ebx
je 0x401cd7
push ebx
call fcn.004053b0
push ebx
call fcn.0041f6cd
add esp, 4
test esi, esi
jne 0x401cbc
mov ecx, dword [edi + 0x34]
mov esi, dword [edi + 0x30]
cmp esi, ecx
je 0x401d03
mov eax, ecx
sub eax, ecx
sar eax, 2
lea ebx, [eax*4]
push ebx
push ecx
push esi
call fcn.00514870
add esp, 0xc
add ebx, esi
mov dword [edi + 0x34], ebx
mov eax, dword [edi + 0x30]
test eax, eax
je 0x401d13
push eax
call fcn.0041f6cd
add esp, 4
xor eax, eax
lea ecx, [edi + 0xc]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
mov dword [ebp - 4], 0xffffffff
push ecx
mov dword [edi + 4], vtable.CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [edi + 4]
call fcn.0042a56b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40e610
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x180
mov eax, dword [0x58f660]
xor eax, esp
mov dword [esp + 0x17c], eax
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x7d]
push ebx
push eax
mov byte [esp + 0x84], bl
call fcn.00518380
add esp, 0xc
push 0x104
lea ecx, [esp + 0x7c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea edx, [esp + 0x1c]
push ebx
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.00518380
add esp, 0xc
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e6d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cant_open_image_file._Error_d_n
push 0x597db8
call fcn.00515b45
add esp, 0xc
mov byte [edi + 0x7c], 1
mov dword [edi + 0x80], 0x597db8
xor al, al
pop esi
pop ebx
mov ecx, dword [esp + 0x17c]
xor ecx, esp
call fcn.00514194
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x10]
xor ecx, ecx
xor ebx, ebx
or ecx, eax
or edx, ebx
or ecx, edx
jne 0x40e700
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Get_file_size_failed._Error_d_n
jmp 0x40e7af
push 2
lea edx, [esp + 0x10]
push edx
push 0xfffffe00
push esi
mov dword [esp + 0x18], 0xfffffe00
mov dword [esp + 0x1c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], eax
call ebx
mov ecx, dword [esp + 8]
cmp ecx, 0xffffffff
jne 0x40e73c
test eax, eax
jne 0x40e752
cmp ecx, 0xffffffff
jne 0x40e752
cmp dword [esp + 0xc], 0
jne 0x40e752
call ebx
push eax
push str.Seek_to_metadata_failed._Error_d_n_n
jmp 0x40e7af
push 0
lea eax, [esp + 0x18]
push eax
push 0x5c
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e7a7
cmp dword [esp + 0x14], 0
je 0x40e7a7
mov edx, 0x7cef
push esi
cmp dx, word [esp + 0x1e]
je 0x40e78b
mov dword [edi + 0x80], str.The_magic_number_of_metadata_does_not_match._n
jmp 0x40e7c7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x17c]
xor ecx, esp
call fcn.00514194
mov esp, ebp
pop ebp
ret
call ebx
push eax
push str.Read_metadata_failed._Error_d_n_n
push 0x597db8
call fcn.00515b45
add esp, 0xc
push esi
mov dword [edi + 0x80], 0x597db8
mov byte [edi + 0x7c], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x184]
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.00514194
mov esp, ebp
pop ebp
ret
Function at 0x40f2e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f4c7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x58f660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x56d5d0
mov dword [edi + 0x10], 0x56d5d8
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 0x18]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.00410280
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.004106d0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x598330]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4