joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d30d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x435bb8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d350
cmp word [esi], dx
jne 0x41d350
or byte [edi + eax + 0x28], 4
jmp 0x41d355
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41d48e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41d46e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41d397
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d3cd
cmp eax, edx
jae 0x41d3d9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41d36f
jmp 0x41d48e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d46a
cmp dword [ebp - 0x14], 0
je 0x41d46a
mov eax, dword [ebx*4 + 0x435bb8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d442
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x41d488
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x435bb8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x435bb8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x435bb8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x41d48b
pop ebx
cmp word [ebp - 4], bx
jne 0x41d453
cmp esi, dword [ebp + 0xc]
jne 0x41d453
mov word [esi], bx
jmp 0x41d48b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041dbf5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d48e
push 0xd
jmp 0x41d487
mov ecx, dword [ebx*4 + 0x435bb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d485
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d48e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41efa8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d328
push 0x42d320
push str.FlsAlloc
push 0x1e
call fcn.0041ee46
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41efdc
push dword [ebp + 8]
mov ecx, esi
call dword [0x4291e8]
call esi
jmp 0x41efe2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41f026
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d338
push 0x42d330
push str.FlsGetValue
push 0x20
call fcn.0041ee46
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41f05d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4291e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x420465
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x420502
push ebx
push esi
call fcn.0042042e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041ec42
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4204af
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x420501
push edi
push eax
call fcn.0041b22d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4204cf
call fcn.0041b1f3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x420500
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041ec42
add esp, 0x20
test eax, eax
jne 0x4204ee
push edi
call fcn.0041b1f3
jmp 0x4204f6
push ebx
call fcn.0041b1f3
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x425205
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00425181
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42537d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42537d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42532c
jg 0x42525e
test eax, eax
je 0x425322
push 1
push 0x1000
call fcn.0041f35f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x425284
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x425319
push 0x8000
push ebx
call fcn.004188f9
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4252b0
jg 0x4252ab
cmp ecx, 0x1000
jb 0x4252b0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041e542
add esp, 0x10
cmp eax, 0xffffffff
je 0x4252f5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4252ab
jl 0x4252dc
test ecx, ecx
jne 0x42529d
push dword [ebp - 0xc]
push ebx
call fcn.004188f9
push esi
call fcn.0041b1f3
add esp, 0xc
xor edi, edi
jmp 0x42538e
cmp byte [edi + 0x24], 0
je 0x42530c
cmp dword [edi + 0x20], 5
jne 0x42530c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x425317
mov edi, dword [edi + 0x18]
jmp 0x425319
xor edi, edi
push esi
call fcn.0041b1f3
pop ecx
jmp 0x42538e
test ecx, ecx
jg 0x4252ee
jl 0x42532c
test eax, eax
jae 0x4252ee
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041dbf5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42534f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4252ee
jmp 0x425386
push ebx
call fcn.004208cf
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4252ee
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42538e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42538b
mov edi, dword [edi + 0x18]
jmp 0x42538e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041dbf5
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x426750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42677d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42677d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4012c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
shl ecx, 0xa
add ecx, edx
cmp byte [0x40b2c4], 0
je 0x40131a
push esi
push ecx
call fcn.00405ea1
add esp, 4
mov dword [ebp - 4], 2
cmp byte [0x40b2c4], 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 0x400
push esi
je 0x401307
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push dword [0x40b2c8]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x40
push 0x1000
push ecx
push 0
push dword [0x40b2c8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esp, ebp
pop ebp
ret
Function at 0x4015a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, edi
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4015b0
sub edx, ecx
xor ecx, ecx
lea ebx, [edx + 1]
mov edx, ebx
call fcn.004012c0
cmp byte [0x40b2c4], 0
mov esi, eax
je 0x4015f6
lea eax, [ebp - 4]
mov dword [ebp - 4], 2
push eax
push 0x40
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x401607
push 0
push ebx
push edi
push esi
push dword [0x40b2c8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, 0x1c
xor ecx, ecx
call fcn.004012c0
mov edi, eax
mov dword [0x40aad5], esi
mov edx, 0x18
mov dword [0x40aada], edi
mov ecx, 0x40aad4
call fcn.00401340
cmp byte [0x40b2c4], 0
je 0x40164d
push 0
push esi
call fcn.00405e70
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
push dword [0x40b2c8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401800
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
mov esi, ecx
push eax
mov byte [esi], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
call fcn.00402040
cmp byte [esi], 0
jne 0x401913
xor edx, edx
lea ecx, [esi + 0x46]
nop word [eax + eax]
movzx eax, byte [ecx - 2]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0xc], al
movzx eax, byte [ecx - 5]
mov byte [ebp + edx - 0xb], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0xa], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 9], al
add edx, 4
cmp edx, 8
jb 0x401860
mov edx, dword [esi + 0x44]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
push edi
cmovae eax, ecx
mov ecx, esi
push eax
push 0x40acd0
call fcn.00402040
push 8
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00402040
lea edx, [esi + 0x5e]
mov edi, 4
lea eax, [esi + 0x4e]
nop
movzx ecx, byte [eax - 2]
lea eax, [eax + 4]
mov byte [edx - 2], cl
lea edx, [edx + 4]
movzx ecx, byte [eax - 5]
mov byte [edx - 5], cl
movzx ecx, byte [eax - 4]
mov byte [edx - 4], cl
movzx ecx, byte [eax - 3]
mov byte [edx - 3], cl
sub edi, 1
jne 0x4018d0
pop edi
push 0x40
lea ecx, [esi + 1]
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
add esp, 0xc
movq qword [esi + 0x44], xmm0
mov byte [esi], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00405e32
mov esp, ebp
pop ebp
ret 8
Function at 0x4021e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [0x40b2cc]
mov eax, dword [0x40b2d0]
push esi
mov esi, ecx
mov dword [0x40acb0], edx
push edi
lea edi, [edx + 0x600]
mov dword [ebp - 0xc], ecx
mov dword [0x40ac99], edi
mov dword [0x40ac9e], eax
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x402212
sub esi, edx
cmp byte [0x40b2c4], al
je 0x40224b
lea eax, [ebp - 8]
mov dword [ebp - 8], 2
push eax
push 0x40
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push dword [ebp - 0xc]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x40225c
push 0
push esi
push ecx
push edi
push dword [0x40b2c8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [0x40b2cc]
add eax, 0x600
mov byte [ebp - 4], 0
add esi, eax
cmp byte [0x40b2c4], 0
je 0x402295
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 2
push eax
push 0x40
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp - 4]
mov byte [esi], al
jmp 0x4022aa
push 0
push 1
lea eax, [ebp - 4]
push eax
push esi
push dword [0x40b2c8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, 0x1d
mov ecx, 0x40ac98
call fcn.00401340
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x404cdc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x404d04
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x404d0a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x404d72
jg 0x404d21
test esi, esi
je 0x404d72
test ecx, ecx
jl 0x404d6d
jg 0x404d2b
test eax, eax
je 0x404d6d
cmp edi, ecx
jg 0x404d3f
jl 0x404d35
cmp esi, eax
jae 0x404d3f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x404d75
mov ecx, dword [ebp + 8]
jmp 0x404d7f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x404d99
jg 0x404d7f
test esi, esi
je 0x404d99
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x404d99
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404db0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x404dd4
jl 0x404dc9
test ecx, ecx
jne 0x404dd4
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x404dee
push eax
push ecx
push dword [ebp + 8]
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push esi
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x404e3a
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 4], edx
mov eax, dword [eax]
test eax, eax
je 0x404e40
mov edi, dword [ebp + 8]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x404e40
lea eax, [ebx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x404eb6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x404e6c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x404ea4
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x404eb6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x404e80
test edi, edi
je 0x404eb6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x40a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x405260
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e32
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40529c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40529c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e32
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x405373
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4052c4
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 0x4052d0
movsx eax, bl
jmp 0x405308
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x405332
sub eax, 1
je 0x405332
sub eax, 2
jne 0x405373
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
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.00405e32
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x405350
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x405373
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e32
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405e32
mov esp, ebp
pop ebp
ret 4
Function at 0x405700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4057bc
cmp byte [esi + 0x3d], 0
je 0x4057bc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4057aa
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x405771
sub eax, 1
je 0x405775
sub eax, 2
jne 0x4057aa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e32
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x405793
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4057aa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e32
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e32
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00405e32
mov esp, ebp
pop ebp
ret

Function at 0x4066d8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406717
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406717
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406717
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406717
cmp dword [ecx + 0x74], 0xe
jbe 0x406717
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401ca0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
mov esi, ecx
call fcn.00401890
push 0x43b7fc
push edi
mov dword [0x44ca64], 0
call fcn.004221b5
push 2
push 0
push eax
mov dword [esi + 4], eax
call fcn.00422b78
mov eax, dword [esi + 4]
push eax
call fcn.00422a83
push 0
mov dword [0x44ca64], eax
mov ecx, dword [esi + 4]
push 0
push ecx
call fcn.00422b78
add esp, 0x24
cmp dword [esi + 4], 0
je 0x401db7
push ebx
mov ecx, esi
call fcn.00401660
mov edx, dword [esi + 4]
push edx
push 1
lea eax, [esi + 0x308]
push 0xc
push eax
call fcn.00422e5a
add esp, 0x10
lea ebx, [esi + 0x314]
mov edi, 0x55
mov ecx, dword [esi + 4]
push ecx
push 1
push 1
push ebx
call fcn.00422e5a
add esp, 0x10
sub edi, 1
jne 0x401d22
cmp dword [esi + 0x310], 0
je 0x401d8e
mov edx, dword [0x44ca64]
push edx
call fcn.00405e4d
mov dword [esi + 0x318], eax
mov ecx, dword [0x44ca64]
push ecx
push 0
push eax
call fcn.004221d0
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x310]
mov ecx, dword [esi + 0x318]
push edx
push eax
push 1
push ecx
call fcn.00422e5a
mov edx, dword [esi + 0x318]
mov eax, dword [esi + 0x310]
add esp, 0x20
mov byte [edx + eax], 0
lea ebx, [esi + 0x315]
mov edi, 0x55
lea esp, [esp]
mov ecx, dword [esi + 4]
push ecx
push 1
push 1
push ebx
call fcn.00422e5a
add esp, 0x10
sub edi, 1
jne 0x401da0
pop ebx
mov edx, dword [esi + 4]
push edx
call fcn.00422075
add esp, 4
mov ecx, esi
call fcn.004016a0
test eax, eax
jne 0x401dd5
pop edi
xor eax, eax
pop esi
ret 4
mov ecx, esi
call fcn.00401730
test eax, eax
je 0x401dce
mov eax, dword [esi + 0x310]
mov dword [esi + 0x338], eax
pop edi
mov eax, 1
pop esi
ret 4

Function at 0x401e00
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
call fcn.00401940
lea eax, [esi + 8]
push 0x43b7ac
push eax
call fcn.004221b5
add esp, 8
test eax, eax
mov dword [esi + 4], eax
je 0x401e3d
mov ecx, dword [esi + 0x318]
test ecx, ecx
je 0x401e3d
mov edx, dword [esi + 0x310]
push eax
push edx
push 1
push ecx
call fcn.00422364
add esp, 0x10
mov eax, dword [esi + 4]
push eax
call fcn.00422075
add esp, 4
mov eax, 1
pop esi
ret

Function at 0x401e50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x318], 0
je 0x401f09
mov eax, dword [esp + 8]
push 0x43b7ac
push eax
call fcn.004221b5
add esp, 8
test eax, eax
mov dword [esi + 4], eax
je 0x401efd
push ebx
push edi
mov ecx, esi
call fcn.00401790
mov ecx, dword [esi + 4]
push ecx
push 1
lea edx, [esi + 0x308]
push 0xc
push edx
call fcn.00422364
add esp, 0x10
lea ebx, [esi + 0x314]
mov edi, 0x55
mov eax, dword [esi + 4]
push eax
push 1
push 1
push ebx
call fcn.00422e5a
add esp, 0x10
sub edi, 1
jne 0x401ea8
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x310]
mov eax, dword [esi + 0x31c]
push ecx
push edx
push 1
push eax
call fcn.00422364
add esp, 0x10
lea ebx, [esi + 0x315]
mov edi, 0x55
mov ecx, dword [esi + 4]
push ecx
push 1
push 1
push ebx
call fcn.00422e5a
add esp, 0x10
sub edi, 1
jne 0x401ee5
pop edi
pop ebx
mov edx, dword [esi + 4]
push edx
call fcn.00422075
add esp, 4
mov eax, 1
pop esi
ret 4