joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ea9
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x401eb6
mov eax, dword [esi]
jmp 0x401eb8
mov eax, esi
push eax
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [0x417e48], eax
test eax, eax
je 0x401f59
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401f59
push edi
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
jmp 0x401f23
cmp dword [esi + 0x14], 8
jb 0x401ef5
mov eax, dword [esi]
jmp 0x401ef7
mov eax, esi
push eax
push edi
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
je 0x401f20
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x401f19
push 1
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x401f20
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x401eeb
push dword [0x417e48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x417e48], 0
push str.An_instance_is_already_running...
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x40ada4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4160c0]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040782b
mov dword [ebp - 0x14], eax
cmp dword [0x417e24], edi
jne 0x40ae95
push 0x800
push edi
push 0x4119dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40ae22
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40af75
push 0x4119dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40af75
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40af75
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x417e24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x417e28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x417e2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x417e34], eax
test eax, eax
je 0x40ae92
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x417e30], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40aeba
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40aead
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40aecf
push 4
pop eax
jmp 0x40af77
cmp dword [ebp - 0x14], edi
je 0x40aecf
push dword [0x417e24]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40aeb4
mov eax, dword [0x417e30]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40af2d
cmp dword [0x417e34], esi
je 0x40af2d
push eax
call ebx
push dword [0x417e34]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40af2d
test eax, eax
je 0x40af2d
call ecx
test eax, eax
je 0x40af22
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 0x40af22
test byte [ebp - 8], 1
jne 0x40af2d
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40af5d
mov eax, dword [0x417e28]
cmp eax, esi
je 0x40af5a
push eax
call ebx
test eax, eax
je 0x40af5a
call eax
mov edi, eax
test edi, edi
je 0x40af5a
mov eax, dword [0x417e2c]
cmp eax, esi
je 0x40af5a
push eax
call ebx
test eax, eax
je 0x40af5a
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x417e24]
call ebx
test eax, eax
je 0x40af75
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40af77
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040342f
leave
ret
Function at 0x401b00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
je 0x401b2b
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x401b14
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret

Function at 0x402a10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x502204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
push 0x104
mov ebx, edx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x402a85
cmp word [ebp + eax*2 - 0x20e], 0x5c
jne 0x402a9e
lea eax, [ecx + ecx]
cmp eax, 0x208
jae 0x402baa
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
jmp 0x402a9e
push str.C:WindowsSystem32
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004785e4
add esp, 0xc
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402aa7
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00403d70
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x402b04
lea ebx, [ecx + 1]
mov edi, esi
mov dword [esi + 0x10], ebx
cmp edx, 8
jb 0x402ae3
mov edi, dword [esi]
push 2
lea eax, [edi + ecx*2]
push 0x4f59d4
push eax
call fcn.0044e960
add esp, 0xc
xor eax, eax
mov word [edi + ebx*2], ax
mov ebx, dword [ebp - 0x214]
jmp 0x402b21
push 1
push 0x4f59d4
mov byte [ebp - 0x210], 0
mov ecx, esi
push dword [ebp - 0x210]
push 1
call fcn.004055a0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402b26
mov eax, dword [esi + 0x14]
sub ecx, edx
mov edx, dword [esi + 0x10]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x402b80
cmp dword [esi + 0x14], 8
lea ebx, [ecx + edx]
mov dword [esi + 0x10], ebx
mov edi, esi
jb 0x402b51
mov edi, dword [esi]
lea eax, [ecx + ecx]
push eax
push dword [ebp - 0x214]
lea eax, [edi + edx*2]
push eax
call fcn.0044e960
add esp, 0xc
xor eax, eax
mov word [edi + ebx*2], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret
push ecx
push ebx
mov byte [ebp - 0x210], 0
push dword [ebp - 0x210]
push ecx
mov ecx, esi
call fcn.004055a0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret
call fcn.0044d18d
int3

Function at 0x404840
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x404871
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x404860
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x4210e0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ceb60
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x502204]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
push 0xc
mov dword [ebp - 4], 0
call fcn.0044c480
mov esi, eax
add esp, 4
mov dword [esi], 0
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x421156
push eax
push esi
call fcn.0044c4b0
add esp, 8
push 0
push dword [edi + 4]
jmp 0x42118d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421e40
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cecf2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x502204]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
je 0x421e9c
mov dword [esi], 0x4d39a0
mov dword [esi + 0x10], 0x4d39a8
mov dword [esi + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
push 0
lea edi, [esi + 0x18]
mov ecx, esi
push edi
call fcn.00421b40
lea edx, [esi + 0x10]
mov dword [ebp + 0xc], edx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
push 8
mov dword [ebp - 4], 4
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp + 0xc], edi
lea eax, [ecx - 0x68]
mov dword [ecx + esi - 4], eax
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044c480
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x421f2c
push 1
mov byte [ebp - 4], 5
call fcn.00431d34
add esp, 4
mov dword [ebx + 4], eax
jmp 0x421f2e
xor ebx, ebx
lea eax, [edi + 4]
mov dword [edi + 0x34], ebx
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x14]
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [edi + 0x10], ecx
mov dword [ecx], 0
mov ecx, ebx
mov eax, dword [edi + 0x20]
not ecx
and ecx, 1
shl ecx, 2
mov edx, ecx
mov dword [eax], 0
or edx, 2
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, ebx
and al, 2
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, ebx
mov dword [edi + 0x38], 0
cmovne edx, ecx
mov ecx, edx
or ecx, 8
and al, 8
cmove ecx, edx
mov eax, ecx
or eax, 0x10
and bl, 4
cmove eax, ecx
mov dword [edi + 0x3c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x427ba0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x427be9
push 0x4d39b0
push eax
call fcn.00459e52
mov edi, eax
add esp, 8
test edi, edi
je 0x427be9
push edi
call fcn.0046c7b1
push eax
call fcn.0046cdc5
mov esi, eax
push esi
call fcn.0046c3ce
add esp, 0xc
mov dword [0x507d64], eax
push edi
test eax, eax
jne 0x427bef
call fcn.00459b2f
add esp, 4
pop edi
xor al, al
pop esi
pop ebp
ret
push esi
push 1
push eax
call fcn.0046c9cd
mov eax, dword [0x507d64]
push edi
mov esi, dword [eax]
call fcn.00459b2f
add esp, 0x14
cmp esi, 0x504d444d
jne 0x427be9
pop edi
mov al, 1
pop esi
pop ebp
ret

Function at 0x4285e0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x502204]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x40
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
lea eax, [edi + 0x148]
mov edx, eax
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x428610
sub edx, esi
lea esi, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428620
push dword [ebp - 0x30]
mov ecx, 0x64
sub eax, esi
push dword [ebp - 0x34]
sub ecx, edx
add edi, 0x148
push str.__I64d
push ecx
add eax, edi
push eax
call fcn.00413e40
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret
Function at 0x429930
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
push 0x4d39b0
lea eax, [ebp - 4]
push esi
push eax
call fcn.00459e69
add esp, 0xc
test eax, eax
je 0x429966
push eax
mov ecx, esi
call fcn.00428ca0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test eax, eax
jne 0x429977
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
push edi
push eax
call fcn.0046c7b1
push eax
call fcn.0046cdc5
mov edi, eax
add esp, 8
test edi, edi
jg 0x4299a0
push edi
mov ecx, esi
call fcn.00428ca0
pop edi
mov eax, 3
pop esi
mov esp, ebp
pop ebp
ret
cdq
push 1
push edi
mov dword [esi + 0x108], eax
mov dword [esi + 0x10c], edx
call fcn.00459646
add esp, 8
mov dword [esi + 0x104], eax
test eax, eax
jne 0x4299dc
push edi
mov ecx, esi
call fcn.00428ca0
mov ecx, esi
call fcn.004285e0
pop edi
mov eax, 4
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
push edi
push 1
push eax
call fcn.0046c9cd
push dword [ebp - 4]
call fcn.00459b2f
add esp, 0x14
mov ecx, esi
call fcn.004297b0
test eax, eax
jne 0x429a31
mov ecx, esi
call fcn.00429c40
test eax, eax
jne 0x429a31
mov ecx, esi
call fcn.00429820
test eax, eax
jne 0x429a31
mov ecx, esi
call fcn.00429a40
test eax, eax
jne 0x429a31
mov ecx, esi
call fcn.00428cf0
test eax, eax
jne 0x429a31
mov ecx, esi
call fcn.00429cf0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42a9b0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x502204]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x40
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
lea eax, [edi + 0x124]
mov edx, eax
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x42a9e0
sub edx, esi
lea esi, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42a9f0
push dword [ebp - 0x30]
mov ecx, 0x64
sub eax, esi
push dword [ebp - 0x34]
sub ecx, edx
add edi, 0x124
push str.__I64d
push ecx
add eax, edi
push eax
call fcn.00413e40
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret

Function at 0x42b6d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4fbf58
push 0x44f560
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x502204]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
push 0x4d39b0
push esi
lea eax, [ebp - 0x1c]
push eax
call fcn.00459e69
add esp, 0xc
test eax, eax
je 0x42b746
push 0
push eax
mov ecx, esi
call fcn.0042b310
mov eax, 6
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x42b764
mov eax, 5
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.0046c7b1
push eax
call fcn.0046cdc5
add esp, 8
mov edi, eax
test edi, edi
jg 0x42b79a
push 0
push edi
mov ecx, esi
call fcn.0042b310
mov eax, 7
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
push 1
push edi
call fcn.00459646
add esp, 8
mov dword [esi + 0x104], eax
mov dword [ebp - 4], 0xfffffffe
test eax, eax
jne 0x42b804
mov dword [ebp - 0x20], 0x3e7
lea eax, [ebp - 0x20]
push eax
call fcn.0046ce8c
add esp, 4
push 0
push edi
mov ecx, esi
call fcn.0042b310
mov ecx, esi
call fcn.0042a9b0
push 1
push dword [ebp - 0x20]
mov ecx, esi
call fcn.0042b310
mov eax, 8
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1c]
push edi
push 1
push eax
call fcn.0046c9cd
push dword [ebp - 0x1c]
call fcn.00459b2f
add esp, 0x14
mov ecx, esi
call fcn.0042b400
test eax, eax
jne 0x42b879
mov ecx, esi
call fcn.0042b890
test eax, eax
jne 0x42b879
mov ecx, esi
call fcn.0042c0e0
test eax, eax
jne 0x42b879
mov ecx, esi
call fcn.0042bf00
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x502204]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x42d4c1
cmp byte [esi + 0x3d], 0
je 0x42d4c1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x42d477
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x42d489
sub eax, 1
je 0x42d48d
sub eax, 2
je 0x42d4c1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x42d4aa
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0045a1bf
add esp, 0x10
cmp edi, eax
jne 0x42d477
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret
Function at 0x42db20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x502204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x42db50
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x42db8c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x42db8c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x42dc71
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x42dbb4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42dbe7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0046d881
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x42dc71
cmp eax, 1
jle 0x42dc44
cmp eax, 3
jne 0x42dc71
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00429e90
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x42dc61
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0045a1bf
add esp, 0x10
cmp edi, eax
jne 0x42dc71
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x42db77
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret 4
Function at 0x42e540
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x42e564
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004265e0
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x42e585
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x42e587
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x42e60f
jg 0x42e59a
test esi, esi
je 0x42e60f
test ecx, ecx
jl 0x42e5dc
jg 0x42e5a4
test eax, eax
je 0x42e5dc
cmp ebx, ecx
jg 0x42e5b6
jl 0x42e5ae
cmp esi, eax
jae 0x42e5b6
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0044e3e0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x42e5e2
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x42e60f
jg 0x42e5ec
test esi, esi
je 0x42e60f
cmp dword [edi + 0x4c], 0
je 0x42e60f
mov ecx, edi
call fcn.0042d630
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.0046c9cd
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42e630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x42e654
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004266b0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x42e675
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x42e677
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x42e6f4
jg 0x42e68a
test esi, esi
je 0x42e6f4
test ecx, ecx
jl 0x42e6ce
jg 0x42e694
test eax, eax
je 0x42e6ce
cmp edi, ecx
jg 0x42e6a6
jl 0x42e69e
cmp esi, eax
jae 0x42e6a6
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0044e3e0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x42e6d1
mov edx, dword [ebp + 8]
test edi, edi
jl 0x42e6f4
jg 0x42e6db
test esi, esi
je 0x42e6f4
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x42e6f4
push eax
push esi
push 1
push edx
call fcn.0045a1bf
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc