joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fe20
Capabilities:
Get file size

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x40fe30
mov dword [edi], 0
mov ecx, dword [esp + 0xc]
call fcn.0040cd00
mov esi, eax
test esi, esi
jne 0x40fe4e
xor ecx, ecx
call fcn.0040cd70
pop edi
or eax, 0xffffffff
pop esi
ret 8
mov eax, dword [esi + 0x12c]
cmp eax, 0xffffffff
je 0x40fe71
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, esi
mov edi, eax
call fcn.0040cd70
mov eax, edi
pop edi
pop esi
ret 8
mov edi, dword [esi + 0x13c]
mov ecx, esi
call fcn.0040cd70
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x4118a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20019
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4118f1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push esi
push eax
push edx
mov edx, dword [esp + 0xc]
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret 0x14

Function at 0x411ac0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x1c]
mov edi, edx
push eax
mov edx, ebx
xor ebp, ebp
call fcn.00411700
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
and cl, 4
lea edx, [esp + 0x14]
push edx
push ebp
neg cl
push 0x20006
push ebp
push ebp
push ebp
lea eax, [esp + 0x34]
push eax
sbb ecx, ecx
neg ecx
add ecx, 0x80000001
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x411b89
mov edx, dword [esp + 0x12c]
mov eax, dword [esp + 0x128]
mov ecx, dword [esp + 0x124]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push esi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x411b82
test bl, 8
je 0x411b63
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov esi, eax
test esi, esi
jne 0x411b82
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x411b82
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret 0x10
mov edx, dword [esp + 0x10]
push edx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10c
ret 0x10
Function at 0x412570
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
inc ecx
test eax, eax
mov dword [edi + 4], ecx
jne 0x4126b2
push 0x433f28
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x433f28
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x41267e
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.StackWalk
push esi
call ebx
test eax, eax
mov dword [edi + 8], eax
je 0x412677
push str.SymFunctionTableAccess
push esi
call ebx
test eax, eax
mov dword [edi + 0xc], eax
je 0x412677
push str.SymGetLineFromAddr
push esi
call ebx
test eax, eax
mov dword [edi + 0x10], eax
je 0x412677
push str.SymGetModuleBase
push esi
call ebx
test eax, eax
mov dword [edi + 0x14], eax
je 0x412677
push str.SymGetModuleInfo
push esi
call ebx
test eax, eax
mov dword [edi + 0x18], eax
je 0x412677
push str.SymGetOptions
push esi
call ebx
test eax, eax
mov dword [edi + 0x1c], eax
je 0x412677
push str.SymGetSymFromAddr
push esi
call ebx
test eax, eax
mov dword [edi + 0x20], eax
je 0x412677
push str.SymInitialize
push esi
call ebx
test eax, eax
mov dword [edi + 0x24], eax
je 0x412677
push str.SymCleanup
push esi
call ebx
test eax, eax
mov dword [edi + 0x28], eax
je 0x412677
push str.SymSetOptions
push esi
call ebx
test eax, eax
mov dword [edi + 0x2c], eax
je 0x412677
push str.SymEnumerateModules
push esi
call ebx
test eax, eax
mov dword [edi + 0x30], eax
je 0x412677
push str.SymEnumerateSymbols
push esi
call ebx
test eax, eax
mov dword [edi + 0x34], eax
jne 0x41269a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x433f28
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x433f28
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
ret
push str.MiniDumpWriteDump
push esi
call ebx
push 0x433f28
mov dword [edi + 0x38], eax
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4129b0
Capabilities:
Link many functions at runtime

Disassembly:
mov ecx, 0x433f40
jmp fcn.00412570

Function at 0x412bf0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x108
push esi
push edi
lea eax, [esp + 8]
mov edi, ecx
push eax
lea ecx, [esp + 0x10]
push ecx
mov esi, edx
mov dword [esp + 0x10], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x412c27
mov cl, byte [eax + str._unknown_]
mov byte [esp + eax + 0xc], cl
inc eax
test cl, cl
jne 0x412c18
lea edx, [esp + 0xc]
push edx
push str.User:
push str.__10s_s
push esi
call edi
add esp, 0x10
pop edi
pop esi
add esp, 0x108
ret
Function at 0x412c50
Capabilities:
Get hostname

Disassembly:
sub esp, 0x14
push esi
push edi
lea eax, [esp + 8]
mov edi, ecx
push eax
lea ecx, [esp + 0x10]
push ecx
mov esi, edx
mov dword [esp + 0x10], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x412c84
mov cl, byte [eax + str._unknown_]
mov byte [esp + eax + 0xc], cl
inc eax
test cl, cl
jne 0x412c75
lea edx, [esp + 0xc]
push edx
push str.Computer:
push str.__10s_s
push esi
call edi
add esp, 0x10
pop edi
pop esi
add esp, 0x14
ret
Function at 0x412ef0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x58
mov eax, dword [esp + 0x64]
push ebx
mov ebx, dword [esp + 0x64]
push ebp
push esi
mov esi, dword [esp + 0x68]
mov ebp, esi
shr ebx, 4
and ebp, 0xf
test eax, eax
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x70], ebx
je 0x412f85
mov ecx, 0x13
mov eax, 0x20202020
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, 0x64
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], al
mov cl, 0x2a
mov edi, ebp
lea eax, [esp + ebp + 0x22]
mov byte [esp + 0x18], cl
lea eax, [eax + ebp*2]
mov byte [esp + 0x66], 0
mov byte [esp + 0x1a], 0x3d
mov byte [esp + 0x1c], 0x61
mov byte [esp + 0x1f], 0x72
shr edi, 2
add eax, edi
mov byte [eax], cl
mov byte [eax + 1], cl
mov byte [esp + ebp + 0x56], cl
lea ecx, [esp + 0x18]
push ecx
push 0x42bbe8
push edx
call dword [esp + 0x1c]
add esp, 0xc
test ebp, ebp
je 0x412f85
sub esi, ebp
inc ebx
mov dword [esp + 0x70], ebx
test ebx, ebx
jbe 0x4130d0
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
lea edx, [esp + 0x1c]
push str._08X:
push edx
call ebx
add esp, 0xc
push 0x10
push esi
lea edi, [esp + eax + 0x20]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4130a9
movzx eax, byte [esi + 3]
movzx ecx, byte [esi + 2]
movzx edx, byte [esi + 1]
push eax
movzx eax, byte [esi]
push ecx
push edx
push eax
push str._02X__02X__02X__02X
push edi
call ebx
movzx ecx, byte [esi + 7]
movzx edx, byte [esi + 6]
push ecx
movzx ecx, byte [esi + 4]
add edi, eax
movzx eax, byte [esi + 5]
push edx
push eax
push ecx
push str._02X__02X__02X__02X
push edi
call ebx
movzx edx, byte [esi + 0xb]
movzx ecx, byte [esi + 9]
push edx
movzx edx, byte [esi + 8]
add edi, eax
movzx eax, byte [esi + 0xa]
push eax
push ecx
push edx
push str._02X__02X__02X__02X
push edi
call ebx
movzx ecx, byte [esi + 0xe]
movzx edx, byte [esi + 0xd]
add edi, eax
movzx eax, byte [esi + 0xf]
add esp, 0x48
push eax
movzx eax, byte [esi + 0xc]
push ecx
push edx
push eax
push str._02X__02X__02X__02X
push edi
call ebx
add edi, eax
mov eax, edi
add esp, 0x18
sub eax, esi
mov ebp, esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x6c], 0x10
movzx ecx, byte [ebp]
push ecx
call dword [sym.imp.MSVCRT.dll_isprint]
add esp, 4
test eax, eax
je 0x41305e
mov al, byte [ebp]
jmp 0x413060
mov al, 0x2e
mov edx, dword [esp + 0x74]
mov byte [edx + ebp], al
mov eax, dword [esp + 0x6c]
inc ebp
dec eax
mov dword [esp + 0x6c], eax
jne 0x413047
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x42bbe8
push ecx
mov byte [edi + 0x10], 0
call dword [esp + 0x1c]
mov eax, dword [esp + 0x7c]
add esp, 0xc
add esi, 0x10
dec eax
mov dword [esp + 0x70], eax
jne 0x412f93
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc
mov eax, str._cant_read_from_this_address_
sub edi, eax
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x4130b0
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0x42bbe8
push eax
call dword [esp + 0x1c]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc
Function at 0x413770
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
push ebp
mov ebx, edx
push str._unknown_
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push 0x1c
lea edx, [esp + 0x14]
push edx
mov dword [eax], 0
push esi
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41385a
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x4137c7
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4137eb
push ebp
push str._unknown_
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
test edi, edi
je 0x41385a
cmp word [edi], 0x5a4d
jne 0x41385a
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x41385a
mov ecx, dword [eax + edi]
add eax, edi
cmp ecx, 0x4550
jne 0x41385a
movzx ebp, word [eax + 6]
movzx ecx, word [eax + 0x14]
sub esi, edi
xor ebx, ebx
test ebp, ebp
lea ecx, [ecx + eax + 0x18]
jbe 0x41385a
lea eax, [ecx + 0x10]
mov ecx, dword [eax]
mov edx, dword [eax - 8]
cmp ecx, edx
mov edi, dword [eax - 4]
ja 0x41382f
mov ecx, edx
cmp esi, edi
jb 0x413839
add ecx, edi
cmp esi, ecx
jbe 0x41384b
inc ebx
add eax, 0x28
cmp ebx, ebp
jb 0x413821
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
inc ebx
sub esi, edi
mov dword [edx], ebx
mov dword [eax], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc

Function at 0x413930
Capabilities:
Create thread

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
push 0x433f80
mov esi, edx
mov edi, ecx
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x4139a4
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0xc]
push edx
push ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
push 0x4139c0
push ebx
push ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x4139a4
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x1c]
push 0x433f80
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x1c
ret 8
Function at 0x413b30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov esi, ecx
je 0x413b41
mov eax, dword [edi]
mov bl, byte [esp + 0x14]
test bl, 1
je 0x413b4d
or eax, 0xffffffff
test bl, 2
je 0x413b7e
test edx, edx
mov ecx, esi
je 0x413b7e
push ebp
lea esp, [esp]
movzx ebp, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, ebp
mov esi, dword [esi*4 + 0x42c610]
shr eax, 8
xor eax, esi
inc ecx
dec edx
jne 0x413b60
pop ebp
test bl, 4
je 0x413b85
not eax
test edi, edi
je 0x413b8b
mov dword [edi], eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x41afa0
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
mov dword [ecx + 0x18], 0xc3d2e1f0
ret
Function at 0x421b70
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x20c
push ebx
mov ebx, dword [esp + 0x220]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push 0
push ebp
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
mov eax, dword [esp + 0x224]
mov ecx, eax
and ecx, 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
je 0x421bc0
test edx, edx
jne 0x421bc0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret
test al, 0x64
mov esi, dword [esp + 0x228]
je 0x421c6e
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebx]
push 0
push 0
push eax
push ebp
call edi
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x20
push esi
push ebp
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x18]
mov eax, 0x20
cmp ecx, eax
jne 0x421c2b
cmp dword [esi], 0x1a51504d
jne 0x421c17
test byte [esp + 0x224], 0x40
je 0x421c4b
add dword [ebx], 0x200
cmp dword [esi], 0x1a51504d
je 0x421c2b
sub dword [esp + 0x14], eax
jne 0x421bd5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x421c6e
push 0x85200064
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret
cmp word [esi + 0xc], 0
jbe 0x421d06
push 0x85200065
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret
mov edx, dword [esp + 0x230]
test edx, edx
je 0x421ce4
xor eax, eax
mov byte [esp + 0x1c], 0
mov ecx, 0x7f
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [edx + 0x1ff]
and eax, 0xfffffe00
mov edi, eax
shr edi, 9
test edi, edi
mov dword [esp + 0x230], eax
je 0x421ce2
lea esp, [esp]
push 0
lea edx, [esp + 0x14]
push edx
push 0x200
lea eax, [esp + 0x28]
push eax
push ebp
dec edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x421d16
cmp dword [esp + 0x10], 0x200
jne 0x421d16
test edi, edi
jne 0x421cb0
mov eax, dword [esp + 0x230]
mov dword [ebx], eax
xor eax, eax
mov ecx, 8
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [esi], 0x1a51504d
mov dword [esi + 4], 0x20
mov word [esi + 0xe], 3
mov word [esi + 0xc], ax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20c
ret
push 0x85200068
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret

Function at 0x422480
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x114]
mov ecx, dword [esi + 8]
push edi
mov edi, dword [esp + 0x10]
mov edx, dword [edi]
push 0
push 0
add eax, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4224c4
pop edi
pop esi
ret
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, edx
pop edi
sete al
pop esi
ret
Function at 0x422830
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x114]
mov ecx, dword [esi + 8]
push edi
mov edi, dword [esp + 0x10]
mov edx, dword [edi]
push 0
push 0
add eax, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x422874
pop edi
pop esi
ret
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, edx
pop edi
sete al
pop esi
ret
Function at 0x423690
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx + 0x120]
push ebp
push esi
push edi
push 0
push 0x290
push str.C:projectsToolsMoPaq_srcMPQAPI.cpp
push eax
call fcn.00408f70
mov ecx, dword [ebx + 0x120]
mov esi, dword [ebx + 0x128]
mov edx, ecx
mov ebp, eax
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x11c]
push eax
push ebp
call fcn.00423740
mov ecx, dword [ebx + 0x11c]
shl ecx, 4
push 3
push str._block_table_
mov dword [esp + 0x24], ecx
call fcn.00423c60
mov edx, dword [esp + 0x24]
push eax
push edx
push ebp
call fcn.00423c00
mov ecx, dword [esp + 0x30]
mov edx, dword [ebx + 8]
add esp, 0x1c
push 0
lea eax, [esp + 0x18]
push eax
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0x29e
push str.C:projectsToolsMoPaq_srcMPQAPI.cpp
push ebp
mov esi, eax
call fcn.0040a0f0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x423780
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 3
push str._hash_table_
lea edi, [esi + 0x130]
call fcn.00423c60
mov ecx, dword [esi + 0x138]
push eax
mov eax, dword [edi]
push eax
push ecx
call fcn.00423c00
mov edx, dword [edi]
mov eax, dword [esi + 0x138]
mov ecx, dword [esi + 8]
add esp, 0x14
push 0
push edi
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
ret

Function at 0x4237d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x28]
mov ecx, dword [esi + 8]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x124]
mov edx, dword [esi + 0x14c]
mov eax, dword [esi + 0x134]
push 0
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x12c]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x11c]
mov dword [esp + 0x24], edx
push 0x20
lea edx, [esp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 8]
push edx
push eax
mov dword [esp + 0x18], 0x1a51504d
mov dword [esp + 0x1c], 0x20
mov word [esp + 0x24], 0
mov word [esp + 0x26], 3
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
add esp, 0x20
ret

Function at 0x423ba0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push edi
mov edi, dword [esp + 0xc]
shr edi, 2
test edi, edi
mov ecx, 0xeeeeeeee
je 0x423bfb
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
push ebx
push esi
nop
lea esp, [esp]
mov esi, eax
and esi, 0xff
add ecx, dword [esi*4 + 0x43c600]
mov ebx, dword [edx]
lea esi, [ecx + eax]
imul ecx, ecx, 0x21
xor ebx, esi
mov esi, ebx
lea ecx, [ecx + esi + 3]
mov esi, eax
not esi
shl esi, 0x15
add esi, 0x11111111
shr eax, 0xb
mov dword [edx], ebx
add edx, 4
or eax, esi
dec edi
jne 0x423bc0
pop esi
pop ebx
pop edi
ret
Function at 0x423c00
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push edi
mov edi, dword [esp + 0xc]
shr edi, 2
test edi, edi
mov ecx, 0xeeeeeeee
je 0x423c59
mov eax, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x10]
nop
lea esp, [esp]
mov edx, dword [esi]
mov ebx, eax
and ebx, 0xff
add ecx, dword [ebx*4 + 0x43c600]
lea ebx, [ecx + eax]
imul ecx, ecx, 0x21
xor ebx, edx
lea ecx, [ecx + edx + 3]
mov edx, eax
not edx
shl edx, 0x15
add edx, 0x11111111
shr eax, 0xb
mov dword [esi], ebx
add esi, 4
or eax, edx
dec edi
jne 0x423c20
pop esi
pop ebx
pop edi
ret

Function at 0x423e50
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

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

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
test esi, esi
je 0x42496d
mov eax, dword [esi]
push ebx
mov bl, byte [esp + 0x18]
test bl, 1
je 0x42497a
or eax, 0xffffffff
test bl, 2
je 0x4249af
mov edx, dword [esp + 0x10]
test edx, edx
mov ecx, dword [esp + 0xc]
je 0x4249af
push ebp
push edi
lea ecx, [ecx]
movzx ebp, byte [ecx]
mov edi, eax
and edi, 0xff
xor edi, ebp
mov edi, dword [edi*4 + 0x42ebb0]
shr eax, 8
xor eax, edi
inc ecx
dec edx
jne 0x424990
pop edi
pop ebp
test bl, 4
pop ebx
je 0x4249b7
not eax
test esi, esi
je 0x4249bd
mov dword [esi], eax
pop esi
ret
Function at 0x424e20
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x114
push 0x104
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, al
je 0x424e4d
cmp byte [esp + 0x11], 0x3a
je 0x424e5d
lea edx, [esp + 0x10]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x27], 0
mov dword [esp + 0x14], 0x200
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [esp]
add esp, 0x114
ret

Function at 0x425180
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
jne 0x425194
push 0x57
call fcn.0040c3e0
xor eax, eax
pop ebp
ret
call fcn.00424f70
test eax, eax
je 0x4251ab
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
pop ebp
ret
push esi
push edi
xor edi, edi
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x425207
mov eax, dword [0x43ca10]
mov edx, dword [0x43ca14]
push ebx
push edi
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4251f4
cmp ebx, dword [esp + 0x14]
jne 0x4251f4
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop ebx
jne 0x425207
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4255c0
Capabilities:
Check if file exists

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
push ebx
push edi
push esi
lea eax, [ebp + 4]
push eax
push ecx
push edx
call fcn.00411780
test eax, eax
jne 0x425635
push ebx
mov ebx, dword [esp + 0x1c]
push edi
push esi
push ebp
mov ebp, dword [esp + 0x24]
push ebx
push ebp
call fcn.00411780
test eax, eax
jne 0x425635
test edi, edi
je 0x42560f
test esi, esi
je 0x42560f
mov byte [esi], al
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x425622
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42562e
push 0
push ebx
push ebp
call fcn.00425510
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret