joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f5e6
Capabilities:
Create process on windows
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
mov eax, 0x44ea09
call fcn.0044b2e0
sub esp, 0x81c
mov eax, dword [0x464b24]
push ebx
xor eax, ebp
push esi
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x81c], eax
xor esi, esi
xor eax, eax
mov word [ebp - 0x810], si
mov ecx, 0x1ff
lea edi, [ebp - 0x80e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x820]
push eax
push 1
push esi
push str.http_shellopencommand
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
jne 0x41f776
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x810]
push eax
push esi
push esi
push 0x451a60
push dword [ebp - 0x820]
mov dword [ebp - 0x828], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x820]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
jne 0x41f776
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x814]
call fcn.00403779
lea ecx, [ebp - 0x814]
mov dword [ebp - 4], esi
call fcn.004118b2
push esi
push str..exe
lea ecx, [ebp - 0x814]
call fcn.0041edf8
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41f768
lea ecx, [ebp - 0x818]
call fcn.00402e3f
push ebx
push 0x20
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], 1
call fcn.0040949b
cmp eax, 0xffffffff
je 0x41f720
push eax
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x814]
call fcn.0041ee32
push eax
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 2
call fcn.00403c9b
mov ecx, dword [ebp - 0x824]
add ecx, 0xfffffff0
call fcn.004021db
jmp 0x41f732
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x818]
call fcn.00403c9b
mov ebx, dword [ebp - 0x818]
push 1
push esi
push dword [ebp - 0x81c]
push ebx
push esi
push esi
call edi
cmp eax, 0x20
lea ecx, [ebx - 0x10]
jle 0x41f763
call fcn.004021db
mov ecx, dword [ebp - 0x814]
add ecx, 0xfffffff0
call fcn.004021db
jmp 0x41f7d5
call fcn.004021db
mov ecx, dword [ebp - 0x814]
add ecx, 0xfffffff0
call fcn.004021db
push 0x800
lea eax, [ebp - 0x810]
push esi
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
push esi
push 0x26
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41f7d5
push 0x40
lea eax, [ebp - 0x810]
push str.Internet_Exploreriexplore.exe
push eax
call dword [sym.imp.MSVCR71.dll_wcsncat]
add esp, 0xc
push 1
push esi
push dword [ebp - 0x81c]
lea eax, [ebp - 0x810]
push eax
push str.open
push esi
call edi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b2c4
leave
ret
Function at 0x41fb88
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x44ea92
call fcn.0044b2e0
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x41fc4d
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x41fc4d
cmp word [eax], bx
je 0x41fc4d
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], eax
je 0x41fc52
push dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
call fcn.0041f9c2
mov ecx, dword [esi]
sub esp, 0x10
mov edi, esp
push dword [ebp + 8]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov byte [ebp - 4], 1
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x108]
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x10]
jge 0x41fc21
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x41fc1c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
jmp 0x41fc52
lea esi, [ebp - 0x20]
push esi
push 1
push ebx
xor ecx, ecx
push ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
cmp dword [ebp - 0x20], ebx
jne 0x41fc61
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x41fc4d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov esi, 0x80004005
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ole32.dll_GetHGlobalFromStream]
cmp dword [ebp - 0x14], ebx
je 0x41fcdc
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x41fcdc
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, ebx
je 0x41fcd3
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x20]
mov dword [ebp + 8], ebx
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x41fced
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x41fc52
Function at 0x41fcf4
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x44eab2
call fcn.0044b2e0
mov eax, 0x1030
call fcn.0044b320
mov eax, dword [0x464b24]
mov ecx, dword [ebp + 8]
push ebx
xor eax, ebp
xor ebx, ebx
cmp ecx, ebx
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x1024], ecx
je 0x41fec0
cmp eax, ebx
je 0x41fec0
cmp word [eax], bx
je 0x41fec0
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
mov dword [ebp - 0x102c], 0x80004005
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, ebx
mov dword [ebp - 0x1028], eax
je 0x41feb8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [ebp - 0x1018], eax
je 0x41feac
mov dword [ebp - 0x1014], ebx
lea eax, [ebp - 0x1014]
push eax
push 1
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp dword [ebp - 0x1014], ebx
je 0x41fec5
xor edi, edi
xor esi, esi
cmp dword [ebp - 0x1018], ebx
jbe 0x41fe22
push ebx
lea eax, [ebp - 0x1020]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1028]
mov dword [ebp - 0x1020], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x1020], ebx
je 0x41fe1c
mov eax, dword [ebp - 0x1014]
add edi, dword [ebp - 0x1020]
lea edx, [ebp - 0x101c]
push edx
push dword [ebp - 0x1020]
lea edx, [ebp - 0x1010]
push edx
mov dword [ebp - 0x101c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
add esi, dword [ebp - 0x101c]
cmp edi, dword [ebp - 0x1018]
jb 0x41fdb2
jmp 0x41fe22
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, dword [ebp - 0x1018]
jne 0x41fe98
cmp esi, dword [ebp - 0x1018]
jne 0x41fe98
mov ecx, dword [ebp - 0x1014]
push ebx
push ebx
push ebx
xor eax, eax
push eax
mov dword [ebp - 0x101c], ebx
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
push dword [ebp - 0x1014]
lea ecx, [ebp - 0x103c]
call fcn.0041f9c2
mov ecx, dword [ebp - 0x1024]
mov ecx, dword [ecx]
lea edx, [ebp - 0x101c]
push edx
sub esp, 0x10
mov edi, esp
push dword [ebp - 0x1024]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov byte [ebp - 4], 1
movsd dword es:[edi], dword [esi]
call dword [ecx + 0xe8]
mov dword [ebp - 0x102c], eax
lea eax, [ebp - 0x103c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x1014]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x41feac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x1028]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x102c]
jmp 0x41fec5
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b2c4
leave
ret

Function at 0x420534
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
push 0x40
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
push eax
add ecx, 0x18
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
ret
Function at 0x420fb9
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x464b24]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
xor eax, ebp
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push SysReAllocStringLen
push eax
mov dword [ebp - 0x6c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x68], esi
jne 0x420ff9
xor al, al
jmp 0x421085
push edi
lea eax, [ebp - 0x60]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jbe 0x421079
push ebx
push edi
push dword [ebp - 0x60]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [ebp - 0x64], eax
je 0x421079
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x421070
lea ecx, [ebp - 0x5c]
call fcn.00420534
cmp dword [ebp - 0x60], ebx
jbe 0x421052
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x5c]
call fcn.00420ea2
dec esi
inc ebx
cmp ebx, dword [ebp - 0x60]
jb 0x421040
push edi
push esi
lea ecx, [ebp - 0x5c]
call fcn.00420ea2
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x5c]
call fcn.00420f41
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, 1
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b2c4
leave
ret

Function at 0x421175
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x464b24]
push esi
push edi
xor eax, ebp
mov esi, 0x114
push esi
mov dword [ebp + 0x94], eax
lea eax, [ebp - 0x80]
push 0
push eax
call sub.MSVCR71.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], esi
call edi
test eax, eax
jne 0x4211c6
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], esi
call edi
test eax, eax
je 0x4211d7
cmp dword [ebp - 0x7c], 6
jb 0x4211d7
cmp dword [ebp - 0x70], 2
jne 0x4211d7
xor eax, eax
inc eax
jmp 0x4211d9
xor eax, eax
mov ecx, dword [ebp + 0x94]
pop edi
xor ecx, ebp
pop esi
call fcn.0044b2c4
add ebp, 0x98
leave
ret
Function at 0x421433
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x464b24]
push ebx
xor eax, ebp
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.MSVCR71.dll_wcslen]
mov esi, 0x465550
push esi
mov dword [ebp - 0x210], eax
call edi
test eax, eax
pop ecx
jne 0x4214b8
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00421268
test eax, eax
pop ecx
pop ecx
je 0x4214c2
push str.uuid
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004211f0
add esp, 0xc
test eax, eax
je 0x4214c2
lea eax, [ebp - 0x20c]
push eax
push 0x208
push esi
push 0x451a60
push str.path
push str.data
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
call edi
inc eax
cmp dword [ebp + 0xc], eax
pop ecx
jae 0x4214c6
xor eax, eax
jmp 0x4214d8
push esi
push dword [ebp - 0x210]
call dword [sym.imp.MSVCR71.dll_wcscpy]
pop ecx
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b2c4
leave
ret

Function at 0x4214e7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x464b24]
push ebx
xor eax, ebp
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.MSVCR71.dll_wcslen]
mov esi, 0x465758
push esi
mov dword [ebp - 0x210], eax
call edi
test eax, eax
pop ecx
jne 0x421596
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00421268
test eax, eax
pop ecx
pop ecx
je 0x4215a0
mov ebx, str.uuid
push ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004211f0
add esp, 0xc
test eax, eax
je 0x4215a0
lea eax, [ebp - 0x20c]
push eax
push 0x208
push esi
push 0x451a60
push ebx
push str.data
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
call edi
xor edx, edx
test eax, eax
pop ecx
jbe 0x421596
lea ecx, [edx*2 + 0x465758]
mov bx, word [ecx]
cmp bx, 0x7b
je 0x42158c
cmp bx, 0x7d
jne 0x421591
mov word [ecx], 0x5f
inc edx
cmp edx, eax
jb 0x421576
push esi
call edi
inc eax
cmp dword [ebp + 0xc], eax
pop ecx
jae 0x4215a4
xor eax, eax
jmp 0x4215b6
push esi
push dword [ebp - 0x210]
call dword [sym.imp.MSVCR71.dll_wcscpy]
pop ecx
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b2c4
leave
ret
Function at 0x421c8d
Capabilities:
Check if file exists
Create directory

Disassembly:
mov eax, 0x44ebf5
call fcn.0044b2e0
push ecx
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421cad
xor eax, eax
inc eax
jmp 0x421d5b
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00403779
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
xor esi, esi
dec eax
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.00421833
cmp ax, 0x5c
je 0x421cea
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea ecx, [ebp - 0x10]
call fcn.00421833
cmp ax, 0x2f
jne 0x421d1e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
jmp 0x421d12
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea ecx, [ebp - 0x10]
call fcn.00421833
cmp ax, 0x2f
je 0x421d34
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
cmp eax, esi
je 0x421d34
dec eax
push 1
lea ecx, [ebp - 0x10]
push eax
call fcn.0042187e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.00421833
cmp ax, 0x5c
jne 0x421cf2
push dword [ebp - 0x10]
call fcn.00421c8d
test eax, eax
pop ecx
je 0x421d4d
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004021db
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x424548
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x424581
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x42451e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp byte [esp + 8], 0
mov dword [esi + 8], eax
jne 0x424581
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
ret 4
Function at 0x4280e0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xc0c
mov eax, dword [0x464b24]
xor eax, esp
push esi
mov esi, dword [esp + 0xc14]
push esi
mov dword [esp + 0xc10], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, 0x200
jge 0x428162
push 0x200
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x428162
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x414]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x400
call fcn.00427f00
mov ecx, eax
call fcn.00428450
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x428162
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 0x427ee0
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov ecx, dword [esp + 0xc0c]
pop esi
xor ecx, esp
call fcn.0044b2c4
add esp, 0xc0c
ret

Function at 0x429170
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44f591
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], 0x45438c
mov dword [esp + 8], esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 2
call fcn.00427b24
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x14], ebx
mov byte [esi + 0x1c], bl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], 0x1000
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x429b90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44f663
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x429c10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44f663
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_unsigned_short_int_const__]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x42ca00
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x42ca33
xor al, al
pop esi
add esp, 8
ret 4
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp + 4]
push eax
mov dword [esi + 8], eax
call fcn.0044b28e
mov ecx, dword [esi + 8]
add esp, 4
push 0
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi]
push ecx
push eax
push edx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
pop esi
add esp, 8
ret 4

Function at 0x42e040
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44fc45
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 0xc], 1
xor edi, edi
lea ecx, [esi + 0x14]
mov dword [esp + 0x18], edi
mov dword [esi], 0x454400
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
lea ebp, [esi + 0x30]
mov ecx, ebp
mov byte [esp + 0x18], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
lea ecx, [esi + 0x4c]
mov byte [esp + 0x18], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
mov eax, dword [esp + 0x20]
push eax
mov ecx, ebp
mov byte [esp + 0x1c], 5
mov dword [esi + 8], 1
call dword [0x451348]
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], ecx
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x42f230
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1004
call fcn.0044b320
mov eax, dword [0x464b24]
xor eax, esp
push ebx
push esi
push edi
mov dword [esp + 0x100c], eax
mov eax, dword [esp + 0x1014]
push 0x45440c
push eax
mov edi, ecx
mov bl, 1
call dword [sym.imp.MSVCR71.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x42f272
xor al, al
jmp 0x42f316
mov eax, dword [edi + 4]
add edi, 4
test eax, eax
je 0x42f285
push eax
call fcn.004355f0
add esp, 4
push 0
push 0
push 0
mov dword [edi], 0
call fcn.0043a170
add esp, 0xc
test eax, eax
mov dword [edi], eax
je 0x42f2b3
lea ecx, [edi - 4]
call fcn.0042f090
mov eax, dword [edi]
push edi
push eax
call fcn.004336f0
add esp, 8
test byte [esi + 0xc], 0x10
jne 0x42f30a
push ebp
mov ebp, dword [sym.imp.MSVCR71.dll_fread]
test bl, bl
je 0x42f309
push esi
push 0x1000
lea ecx, [esp + 0x18]
push 1
push ecx
call ebp
add esp, 0x10
test eax, eax
jge 0x42f2ea
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42f2e1
sub eax, edx
push 0
push eax
mov eax, dword [edi]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00435740
add esp, 0x10
test eax, eax
mov al, byte [esi + 0xc]
setne bl
test al, 0x10
je 0x42f2c0
pop ebp
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x100c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044b2c4
add esp, 0x1004
ret 4