joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e390
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp eax, 0x83
ja case.0x41e3a2.62
jmp dword [eax*4 + 0x41e3ac]
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
mov esi, esi
lea edi, [edi]
mov eax, 0xffffffff
lea esi, [esi]
lea edi, [edi]
add esp, 0xc
ret
mov eax, 0x989680
jmp 0x41e5e0
call fcn.0041ed00
cmp eax, 6
mov edx, 6
jg 0x41e5fe
mov eax, edx
jmp 0x41e5e0
call fcn.0041ed00
mov edx, eax
jmp 0x41e5fa
mov eax, 0x800
jmp 0x41e5e0
mov eax, 1
jmp 0x41e5e0
mov eax, 0x400
jmp 0x41e5e0
add esp, 0xc
jmp 0x41ebf0
add esp, 0xc
jmp 0x41eba0
add esp, 0xc
jmp 0x41ec40
add esp, 0xc
jmp 0x41eca0
mov eax, 0x200
jmp 0x41e5e0
mov eax, 8
jmp 0x41e5e0
mov eax, 0x7fffffff
jmp 0x41e5e0
mov eax, 0x80000000
jmp 0x41e5e0
mov eax, 0x20
jmp 0x41e5e0
mov eax, 2
jmp 0x41e5e0
xor eax, eax
jmp 0x41e5e0
mov eax, 0x7f
jmp 0x41e5e0
mov eax, 0xffffff80
jmp 0x41e5e0
mov eax, 0x7fff
jmp 0x41e5e0
mov eax, 0xffff8000
jmp 0x41e5e0
mov eax, 0xff
jmp 0x41e5e0
mov eax, 0xffff
jmp 0x41e5e0
call sub.msvcrt.dll__errno
mov dword [eax], 0x28
jmp case.0x41e3a2.53
sub esp, 0xc
mov dword [esp + 8], edi
mov edi, dword [0x428120]
test edi, edi
mov eax, edi
je 0x41ebc0
mov eax, dword [edi + 0x14]
mov edi, dword [esp + 8]
add esp, 0xc
ret
cld
mov edi, 0x428130
mov ecx, 9
mov dword [0x428120], edi
rep stosd dword es:[edi], eax
mov dword [esp], 0x428130
call sub.KERNEL32.dll_GetSystemInfo
mov edi, dword [0x428120]
sub esp, 4
jmp 0x41ebb3
sub esp, 0xc
mov dword [esp + 8], edi
mov edi, dword [0x428120]
test edi, edi
mov eax, edi
je 0x41ec10
mov eax, dword [edi + 0x14]
mov edi, dword [esp + 8]
add esp, 0xc
ret
cld
mov edi, 0x428130
mov ecx, 9
mov dword [0x428120], edi
rep stosd dword es:[edi], eax
mov dword [esp], 0x428130
call sub.KERNEL32.dll_GetSystemInfo
mov edi, dword [0x428120]
sub esp, 4
jmp 0x41ec03
sub esp, 0xc
mov dword [esp + 8], edi
mov edi, dword [0x428120]
test edi, edi
mov eax, edi
je 0x41ec68
mov eax, dword [edi + 0xc]
xor edx, edx
mov ecx, dword [edi + 8]
sub eax, ecx
div dword [edi + 4]
mov edi, dword [esp + 8]
add esp, 0xc
ret
cld
mov edi, 0x428130
mov ecx, 9
mov dword [0x428120], edi
rep stosd dword es:[edi], eax
mov dword [esp], 0x428130
call sub.KERNEL32.dll_GetSystemInfo
mov edi, dword [0x428120]
sub esp, 4
jmp 0x41ec53
sub esp, 0xc
mov dword [esp + 8], edi
mov edi, dword [0x428120]
test edi, edi
mov eax, edi
je 0x41ecc8
mov edx, dword [edi + 8]
mov eax, dword [edi + 0xc]
sub eax, edx
xor edx, edx
div dword [edi + 4]
mov edi, dword [esp + 8]
add esp, 0xc
ret
cld
mov edi, 0x428130
mov ecx, 9
mov dword [0x428120], edi
rep stosd dword es:[edi], eax
mov dword [esp], 0x428130
call sub.KERNEL32.dll_GetSystemInfo
mov edi, dword [0x428120]
sub esp, 4
jmp 0x41ecb3
Function at 0x41ea10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x1c
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x18], ebp
xor ebp, ebp
test ebx, ebx
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
je 0x41ea39
test esi, 0xffffffe8
je 0x41ea60
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
mov eax, 0xffffffff
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
add esp, 0x1c
ret
mov dword [esp], 0x8001
call sub.KERNEL32.dll_SetErrorMode
sub esp, 4
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
mov edi, eax
cmp eax, 0xffffffff
je 0x41eac3
mov dword [esp], 0
call sub.KERNEL32.dll_SetErrorMode
sub esp, 4
mov eax, 0xffffffff
inc ebp
je 0x41ea49
test esi, 0x10
je 0x41eaa8
test edi, 0x10
je 0x41eab6
and esi, 2
je 0x41eab2
and edi, 1
jne 0x41eab6
xor eax, eax
jmp 0x41ea49
call sub.msvcrt.dll__errno
mov dword [eax], 0xd
jmp 0x41ea44
call fcn.0041e9f0
mov ebp, eax
call sub.msvcrt.dll__errno
mov dword [eax], ebp
mov ebp, 0xffffffff
jmp 0x41ea81

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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x17c
mov ebx, dword [esp + 0x194]
mov dword [esp], 0x41fce4
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], 0x41fcf1
mov dword [esp], edx
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov ebp, eax
mov eax, dword [esp + 0x190]
mov dword [esp], eax
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
mov dword [esp + 0x28], eax
xor eax, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x41fdc1
cld
mov ecx, 0x50
lea esi, [esp + 0x30]
mov edi, esi
test ebp, ebp
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], 0
je 0x41fda5
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x190]
mov dword [esp + 4], 0
mov dword [esp], ecx
call ebp
sub esp, 0xc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41fdd0
mov ebx, dword [esp + 0x2c]
mov dword [esp], ebx
call sub.KERNEL32.dll_FreeLibrary
sub esp, 4
mov eax, 1
add esp, 0x17c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], esi
mov edx, dword [esp + 0x190]
mov dword [esp], edx
call sub.KERNEL32.dll_FindFirstFileA
sub esp, 8
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov edi, dword [esp + 0x30]
mov dword [ebx], edi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
mov dword [ebx + 8], esi
mov dword [ebx + 4], ecx
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
mov dword [ebx + 0xc], ebp
mov dword [ebx + 0x10], edi
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x14], ecx
mov ebp, dword [esp + 0x4c]
mov dword [ebx + 0x1c], ebp
mov edi, dword [esp + 0x50]
mov dword [ebx + 0x20], edi
mov dword [esp], eax
call sub.KERNEL32.dll_FindClose
sub esp, 4
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x41fdad
cld
mov eax, dword [esp + 0x1c]
mov ecx, 9
mov edi, ebx
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x28]
mov dword [ebx], ebp
jmp 0x41fdad
Function at 0x41fe80
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x17c
mov ebp, dword [esp + 0x190]
mov dword [esp], 0x41fce4
call sub.KERNEL32.dll_LoadLibraryA
sub esp, 4
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], 0x41fe60
mov dword [esp], edx
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [esp + 0x28], eax
mov dword [esp], ebp
call sub.msvcrt.dll_strlen
lea edx, [eax + 5]
mov ebx, eax
mov dword [esp], edx
call sub.msvcrt.dll_malloc
mov esi, eax
test esi, esi
mov eax, 1
je 0x41ff97
mov dword [esp + 4], ebp
mov dword [esp], esi
call sub.msvcrt.dll_strcpy
movzx eax, byte [ebx + esi - 1]
cmp al, 0x2f
je 0x41ffc5
cmp al, 0x5c
je 0x41ffc5
mov dword [esp + 4], 0x41fe71
mov dword [esp], esi
call sub.msvcrt.dll_strcat
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41ffbf
mov dword [esp + 0x14], 0
lea ebp, [esp + 0x30]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [esp + 0x28]
sub esp, 0x18
mov ebx, eax
cmp eax, 0xffffffff
je 0x41ffa2
nop
lea esi, [esi]
test byte [esp + 0x30], 0x10
je 0x41ff68
inc edi
mov dword [esp + 4], ebp
mov dword [esp], ebx
call sub.KERNEL32.dll_FindNextFileA
sub esp, 8
test eax, eax
jne 0x41ff60
mov dword [esp], ebx
call sub.KERNEL32.dll_FindClose
sub esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp], ecx
call sub.KERNEL32.dll_FreeLibrary
sub esp, 4
mov eax, edi
add esp, 0x17c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ebp
mov dword [esp], esi
call sub.KERNEL32.dll_FindFirstFileA
mov ebx, eax
sub esp, 8
cmp ebx, 0xffffffff
mov eax, 1
jne 0x41ff60
jmp 0x41ff97
lea ebp, [esp + 0x30]
jmp 0x41ffa2
mov byte [ebx + esi - 1], 0
jmp 0x41ff06
Function at 0x422110
Capabilities:
Get disk size

Disassembly:
sub esp, 0x2c
mov edx, dword [esp + 0x30]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x18], edx
call fcn.0041d780
test eax, eax
je 0x422174
mov dword [esp + 0x40], ebx
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x30], edx
add esp, 0x2c
jmp fcn.00421f80
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp], ecx
call sub.KERNEL32.dll_GetDiskFreeSpaceA
sub esp, 0x14
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
add esp, 0x2c
ret
Function at 0x406380
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov dword [0x5726e0], 0
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x409950
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519ace
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x567910]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x573140]
mov dword [ebp - 0xac], 0
test al, 1
jne 0x409aee
or eax, 1
mov dword [0x573140], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0x12
push eax
xorps xmm0, xmm0
mov dword [ebp - 0xa4], str.ko_KR
push ecx
movq qword [0x573144], xmm0
mov dword [ebp - 0xa0], 9
mov dword [ebp - 0x9c], str.en_US
mov dword [ebp - 0x98], 0x2a
mov dword [ebp - 0x94], str.vi_VN
mov dword [ebp - 0x90], 0x1e
mov dword [ebp - 0x8c], str.th_TH
mov dword [ebp - 0x88], 0x19
mov dword [ebp - 0x84], str.ru_RU
mov dword [ebp - 0x80], 0x22
mov dword [ebp - 0x7c], str.uk_UA
mov dword [ebp - 0x78], 0x16
mov dword [ebp - 0x74], str.pt_PT
mov dword [ebp - 0x70], 0x1f
mov dword [ebp - 0x6c], str.tr_TR
mov dword [ebp - 0x68], 0xa
mov dword [ebp - 0x64], str.es_ES
mov dword [ebp - 0x60], 0xc
mov dword [ebp - 0x5c], str.fr_FR
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x54], str.de_DE
mov dword [ebp - 0x50], 0x11
mov dword [ebp - 0x4c], str.ja_JP
mov dword [ebp - 0x48], 0x21
mov dword [ebp - 0x44], str.in_ID
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], str.ar_IL
mov dword [ebp - 0x38], 0x29
mov dword [ebp - 0x34], str.fa_IR
mov dword [ebp - 0x30], 0x39
mov dword [ebp - 0x2c], str.hi_IN
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], str.it_IT
mov dword [ebp - 0x20], 0x3e
mov dword [ebp - 0x1c], str.ms_MY
call fcn.00403670
push 0x523610
call fcn.004df8d3
add esp, 4
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, 4
jne 0x409b57
mov ecx, 0xc04
cmp ax, cx
je 0x409b34
mov ecx, 0x1404
cmp ax, cx
je 0x409b34
mov ecx, 0x404
cmp ax, cx
je 0x409b34
mov ecx, 0x7c04
cmp ax, cx
je 0x409b34
push str.zh_TW
jmp 0x409ba6
push 5
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push str.zh_TW
mov word [esi], ax
call fcn.00404ad0
jmp 0x409bad
mov edi, dword [0x573144]
mov edx, ecx
mov ecx, edi
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x409b90
lea ebx, [ebx]
cmp dword [eax + 0x10], edx
jge 0x409b7a
mov eax, dword [eax + 8]
jmp 0x409b7e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x409b70
cmp ecx, edi
je 0x409b90
mov dword [ebp - 0x14], ecx
cmp edx, dword [ecx + 0x10]
jge 0x409b93
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x14]
mov eax, dword [eax]
cmp eax, edi
je 0x409ba1
push dword [eax + 0x14]
jmp 0x409ba6
push str.en_US
mov ecx, esi
call fcn.00404c00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004df022
mov esp, ebp
pop ebp
ret
Function at 0x40b200
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x567910]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x814], 0
push 0x7fe
push eax
mov word [ebp - 0x804], ax
mov edi, edx
lea eax, [ebp - 0x802]
mov esi, ecx
push eax
call fcn.004e9e40
add esp, 0xc
mov dword [ebp - 0x810], 0
cmp dword [edi + 0x14], 8
jb 0x40b253
mov edi, dword [edi]
lea eax, [ebp - 0x810]
push eax
push edi
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40b2ae
mov dword [ebp - 0x808], eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x80c], 0x800
push eax
lea eax, [ebp - 0x808]
push eax
push 0
push str.InstallDir
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x804], ax
jne 0x40b2ce
xor ecx, ecx
jmp 0x40b2e6
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b2d7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x804]
mov ecx, esi
push eax
call fcn.00404ad0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004df022
mov esp, ebp
pop ebp
ret

Function at 0x40f620
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x567910]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x268], 0
push 0x256
push eax
mov word [ebp - 0x25c], ax
mov esi, edx
lea eax, [ebp - 0x25a]
mov edi, ecx
push eax
call fcn.004e9e40
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40f6b0
lea eax, [ebp - 0x260]
push eax
push 4
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x40f6a9
push 0x104
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x264]
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x25c], ax
jne 0x40f6d0
xor ecx, ecx
jmp 0x40f6ef
lea ecx, [ebp - 0x25c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f6e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x25c]
mov ecx, edi
push eax
call fcn.00404ad0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004df022
mov esp, ebp
pop ebp
ret
Function at 0x40fec0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a361
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x567910]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x134]
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
mov dword [ebp - 0x134], 0x11c
call edi
test eax, eax
jne 0x40ff23
lea eax, [ebp - 0x134]
mov dword [ebp - 0x134], 0x114
push eax
call edi
cmp dword [ebp - 0x130], 6
jb 0x410010
cmp dword [ebp - 0x12c], 2
jb 0x410010
push str.runPlayer_no_amdin
push 0x513
push str.DownloaderModel::runPlayer
call fcn.00439b90
add esp, 0xc
lea edx, [ebx + 0x1fc]
lea ecx, [ebp - 0x14c]
push 0x548d80
call fcn.00413ad0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x40ff7e
mov edx, dword [esi]
jmp 0x40ff80
mov edx, esi
sub esp, 8
mov ecx, eax
call fcn.0040fb00
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x138], 8
mov edi, eax
jb 0x40ffad
push dword [ebp - 0x14c]
call fcn.00489740
add esp, 4
cmp edi, 0xffffffff
jne 0x410055
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.runPlayer_no_amdin_error__d
push 0x517
push str.DownloaderModel::runPlayer
call fcn.00439b90
push 0x548d80
lea edx, [ebx + 0x1fc]
lea ecx, [ebp - 0x14c]
call fcn.00413ad0
add esp, 0x14
push 0
push 1
push esi
push eax
mov dword [ebp - 4], 1
call fcn.004423e0
add esp, 0x10
cmp dword [ebp - 0x138], 8
jb 0x410055
push dword [ebp - 0x14c]
jmp 0x41004d
push 0x548d80
lea edx, [ebx + 0x1fc]
lea ecx, [ebp - 0x164]
call fcn.00413ad0
add esp, 4
push 0
push 1
push esi
push eax
mov dword [ebp - 4], 2
call fcn.004423e0
add esp, 0x10
cmp dword [ebp - 0x150], 8
jb 0x410055
push dword [ebp - 0x164]
call fcn.00489740
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004df022
mov esp, ebp
pop ebp
ret 4
Function at 0x418a20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51b2f8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x567910]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
mov eax, dword [0x567910]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
xorps xmm0, xmm0
push eax
movq qword [esp + 0x14], xmm0
call fcn.004e1da2
push 0x563838
lea eax, [esp + 0x18]
mov dword [esp + 0x30], 0
push esi
push eax
call fcn.004e1d70
lea eax, [esp + 0x20]
push eax
push edi
call fcn.004e1d50
lea eax, [esp + 0x28]
mov dword [esp + 0x40], 0xffffffff
push eax
call fcn.004e1df3
add esp, 0x1c
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.004df022
mov esp, ebp
pop ebp
ret

Function at 0x41c2b0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51b918
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x567910]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00408530
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.0041c1e0
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x41c321
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.004e05fd
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x41c34a
push dword [esp + 0xc]
call fcn.00489740
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41dc10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51ba78
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x567910]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x567910]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x41dd64
cmp byte [ebx + 0x45], 0
je 0x41dd64
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x41dc70
xor al, al
jmp 0x41dd66
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x41dcb0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x41dcf1
dec eax
je 0x41dcf5
sub eax, 2
je 0x41dd4b
xor bl, bl
jmp 0x41dd4d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x41dd2c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004e0977
add esp, 0x10
cmp esi, eax
jne 0x41dced
cmp byte [ebx + 0x45], 0
je 0x41dd4b
test esi, esi
jne 0x41dcb0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0041f000
jmp 0x41dcb0
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x41dd60
push dword [esp + 0x18]
call fcn.00489740
add esp, 4
mov al, bl
jmp 0x41dd66
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004df022
mov esp, ebp
pop ebp
ret
Function at 0x41e5e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51bb5a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x567910]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.004ddd7b
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x41e686
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.004e05fd
push 0x563978
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.004e939e
push edi
push esi
call fcn.004ddc4e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004df022
mov esp, ebp
pop ebp
ret 4
Function at 0x424660
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x567910]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 0x10
push esi
push edi
mov edi, edx
jb 0x42467c
mov ecx, dword [ecx]
push 0
push 0x80
push 3
push 0
push 1
push bind
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4246d5
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
test eax, eax
je 0x4246cf
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004df022
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.004df022
mov esp, ebp
pop ebp
ret