joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3fe341de
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x3fe34228
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x3fe341cf
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x3fe341de
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x40239e81
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x3fe3422f
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.3fe1b0a5
cmp eax, dword [ebp + 0xc]
pop eax
je 0x3fe342ce
add edi, 4
add eax, 2
dec ecx
jne 0x3fe34214
call 0x3fe3427b
loope 0x3fe34271
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x3fe342cb
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x3fe342dc
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x3fe3428f
cmp eax, ecx
ja 0x3fe3428f
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x3fe34319
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x3fe3430f
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.3fe1b584
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401960
Capabilities:
Hide graphical window
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x40deb0
push 0x69
push esi
call edi
push 0x64
push 0x40de48
push 0x67
push esi
call edi
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x6b
push esi
mov dword [ebp - 0x54], 0x30
mov dword [ebp - 0x4c], 0x401630
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x50], 3
call edi
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 8], 8
mov dword [ebp - 4], 0x4000
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x6c
push esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x30], 0x69
mov dword [ebp - 0x2c], str.Matgoback
call edi
push str.riched32.dll
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Rowster
push str.Matgoback
push 0
mov dword [0x40cd2f], esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x401a9d
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
inc eax
add byte [ebx + 0x40812435], cl
add byte [edx], ch
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call esi
test eax, eax
je 0x401a92
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call edi
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call esi
test eax, eax
jne 0x401a72
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40571b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040441d
and dword [ebp - 0x14], 0
cmp dword [0x40e840], 0
mov dword [ebp - 0x18], eax
jne 0x4057ce
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405876
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405876
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40e840], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40e844], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40e848], eax
call edi
push eax
call esi
mov dword [0x40e850], eax
test eax, eax
je 0x4057ce
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40e84c], eax
mov eax, dword [0x40e84c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405827
cmp dword [0x40e850], ecx
je 0x405827
push eax
call esi
push dword [0x40e850]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405827
test ebx, ebx
je 0x405827
call edi
test eax, eax
je 0x40581e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40581e
test byte [ebp - 8], 1
jne 0x405827
or dword [ebp + 0x10], 0x200000
jmp 0x40585a
mov eax, dword [0x40e844]
cmp eax, dword [ebp - 0x18]
je 0x40585a
push eax
call esi
test eax, eax
je 0x40585a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40585a
mov eax, dword [0x40e848]
cmp eax, dword [ebp - 0x18]
je 0x40585a
push eax
call esi
test eax, eax
je 0x40585a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40e840]
call esi
test eax, eax
je 0x405876
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405878
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405a86
leave
ret

Function at 0x405a86
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d0f0]
jne 0x405a90
repz ret
jmp fcn.00406dc3
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
nop
pushal
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432fd9
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x408f6c
nop
mov ecx, 0x4cf14fd
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data_1
mov ebx, 0x42e3d0
nop
mov ecx, 0x3210bda
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401100
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
push edi
xor edi, edi
cmp dword [0x8452e8], 0x594
mov dword [ebp - 8], eax
jne 0x40112c
push edi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
mov ecx, dword [0x426068]
mov edx, dword [0x42606c]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], edx
call fcn.004010f0
mov eax, dword [0x426070]
mov ecx, dword [0x426074]
add dword [ebp - 0x18], 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], ecx
mov ebx, 0x20
jmp 0x401170
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0x8452e8]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x4011f6
push edi
lea edx, [ebp - 0x474]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push edi
lea eax, [ebp - 0x34]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0x30
lea ecx, [ebp - 0x70]
push edi
push ecx
mov dword [ebp - 0x74], edi
call fcn.00402fa0
add esp, 0xc
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor ecx, ecx
xor edx, edx
lea eax, [ebp - 0x40]
push eax
mov word [ebp - 0x1c], cx
mov word [ebp - 0x1a], dx
mov ecx, dword [ebp - 0x1c]
push ecx
push edi
push str.Jahuk
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov eax, dword [ebp - 4]
mov ecx, dword [0x8452e8]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x401210
mov dword [0x844884], 0xedeb2e40
jmp 0x401230
cmp ecx, 0x3eb
jne 0x401230
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x844234], edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov edx, esi
shr edx, cl
add eax, esi
mov dword [ebp - 0x14], eax
mov dword [0x844880], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov ecx, dword [ebp - 8]
shl ecx, 4
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 4]
add eax, dword [ebp - 0x30]
xor eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ecx
sub esi, ecx
call fcn.004010e0
sub ebx, 1
jne 0x401170
cmp dword [0x8452e8], 0xa6d
mov ebx, dword [ebp + 8]
mov dword [ebx], esi
jne 0x4012d3
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [ebx + 4], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4016f0
Capabilities:
Get geographical location
Get system information on windows
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc2c
cmp dword [0x8452e8], 0x400
push esi
push edi
jne 0x40175e
xor ecx, ecx
xor eax, eax
lea edx, [ebp - 4]
push edx
mov word [ebp - 4], ax
mov word [ebp - 2], cx
mov eax, dword [ebp - 4]
push eax
push ecx
push str.voyapamujopemopubefetexo
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push 0
lea ecx, [ebp - 0x42c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 0
lea edx, [ebp - 0xc2c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
lea eax, [ebp - 0x24]
call fcn.00401830
lea esi, [ebp - 0x24]
call fcn.00401850
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [ebp - 4]
xor esi, esi
lea ebx, [ebx]
call edi
cmp esi, 0x2af2a3
jle 0x401782
cmp ebx, 0x78abdb45
jne 0x40178b
inc esi
cmp esi, 0x1c5d
jl 0x401770
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea esp, [esp]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x4017bd
inc esi
cmp esi, 0x4f6a4
jl 0x4017a0
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x4017dc
cmp ebx, 0x785074d5
jne 0x4017e5
inc esi
cmp esi, 0x11915
jl 0x4017c8
mov eax, dword [0x4262ac]
mov dword [0x8452e8], eax
call fcn.00401450
mov esi, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edi, 0x3078f
pop ebx
cmp dword [0x8452e8], 0x51f
jne 0x401812
lea ecx, [ebp - 0x2c]
push ecx
call esi
sub edi, 1
jne 0x401800
mov eax, dword [0x844238]
mov dword [0x84487c], eax
call eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403410
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4251f8]
jne 0x40341a
repz ret
jmp fcn.0040774e
Function at 0x40737b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040417a
and dword [ebp - 4], 0
cmp dword [0x426cac], 0
mov ebx, eax
jne 0x40742c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4074dd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4074dd
push eax
call fcn.00404108
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x426cac], eax
call esi
push eax
call fcn.00404108
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x426cb0], eax
call esi
push eax
call fcn.00404108
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x426cb4], eax
call esi
push eax
call fcn.00404108
pop ecx
mov dword [0x426cbc], eax
test eax, eax
je 0x40742c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404108
pop ecx
mov dword [0x426cb8], eax
mov eax, dword [0x426cb8]
cmp eax, ebx
je 0x407484
cmp dword [0x426cbc], ebx
je 0x407484
push eax
call fcn.00404183
push dword [0x426cbc]
mov esi, eax
call fcn.00404183
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407484
test edi, edi
je 0x407484
call esi
test eax, eax
je 0x40747b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40747b
test byte [ebp - 0xc], 1
jne 0x407484
or dword [ebp + 0x10], 0x200000
jmp 0x4074bd
mov eax, dword [0x426cb0]
cmp eax, ebx
je 0x4074bd
push eax
call fcn.00404183
pop ecx
test eax, eax
je 0x4074bd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4074bd
mov eax, dword [0x426cb4]
cmp eax, ebx
je 0x4074bd
push eax
call fcn.00404183
pop ecx
test eax, eax
je 0x4074bd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x426cac]
call fcn.00404183
pop ecx
test eax, eax
je 0x4074dd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4074df
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402b70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4a825c], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x402c2a
xor ebx, ebx
nop dword [eax]
mov edx, ebx
mov eax, ebx
shr eax, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, eax
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [ebx*4 + 0x4a8258], eax
inc ebx
cmp ebx, 0x100
jb 0x402b90
mov ebx, dword [ebp + 8]
not ebx
mov eax, ebx
test edi, edi
jle 0x402c56
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4a8258]
sub edi, 1
jne 0x402c35
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x402c88
nop dword [eax]
cmp cl, 0x23
jne 0x402c6f
cmp byte [esi], cl
jne 0x402c6f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x4a8258]
test cl, cl
jne 0x402c60
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x402dd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x402de2
mov dword [edi], 0
mov edx, 0x483c6c
call fcn.00402c90
mov esi, eax
test esi, esi
jne 0x402df6
pop edi
pop esi
pop ebp
ret
push ebx
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x402eae
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x402eae
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x402eae
mov eax, dword [0x4a8660]
test eax, eax
je 0x402e46
inc dword [eax + 0x394]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402eae
push esi
push dword [ebp + 8]
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x402e95
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x4a8660]
add esp, 4
test eax, eax
je 0x402e84
dec dword [eax + 0x394]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x402ea7
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x412270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [0x4a8660]
mov eax, ecx
mov dword [ebp - 8], eax
mov dword [edi + 0x2c2c], 0
test eax, eax
je 0x412363
push esi
lea esi, [edi + 0x2c30]
mov dword [edi + 0x2c2c], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x4122c4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00413030
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x4122d9
push 8
mov ecx, esi
call fcn.00413030
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push ebx
mov dword [ebp - 4], 0
mov byte [ecx + eax], 0
inc dword [esi]
cmp dword [edi + 0x2c3c], 0
jle 0x41231c
xor ebx, ebx
mov eax, dword [edi + 0x2c44]
add eax, ebx
push esi
push eax
push edi
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
add ebx, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [edi + 0x2c3c]
jl 0x4122f7
cmp dword [esi + 8], 0
je 0x412327
mov esi, dword [esi]
dec esi
jmp 0x412329
xor esi, esi
mov eax, dword [edi + 0x2c38]
mov ebx, 0x4a865c
mov ecx, dword [ebp - 8]
test eax, eax
mov edx, 0x483c70
cmovne ebx, eax
call fcn.00402c90
mov edi, eax
test edi, edi
je 0x412361
push edi
push esi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41f6a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477a16
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x497080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 2
mov eax, 0x3f
mov dword [esi + 4], 0x3f800000
mov word [esi + 0x3c], ax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.0041f7f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43b330
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 0x43b35c
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 0x43b384
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x43b38a
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 0x43b3f2
jg 0x43b3a1
test esi, esi
je 0x43b3f2
test ecx, ecx
jl 0x43b3ed
jg 0x43b3ab
test eax, eax
je 0x43b3ed
cmp edi, ecx
jg 0x43b3bf
jl 0x43b3b5
cmp esi, eax
jae 0x43b3bf
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 0x43b3f5
mov ecx, dword [ebp + 8]
jmp 0x43b3ff
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x43b419
jg 0x43b3ff
test esi, esi
je 0x43b419
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x43b419
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