joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a4550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x69bd40]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0xc], 0
jne 0x5a456d
mov al, 1
jmp 0x5a45dc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x5a457d
xor al, al
jmp 0x5a45dc
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0xffffffff
jne 0x5a458a
xor al, al
jmp 0x5a45dc
cmp dword [ebp + 8], 0
jne 0x5a4594
xor al, al
jmp 0x5a45dc
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x5a45d2
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x10]
jne 0x5a45d2
mov dword [ebp - 0x14], 1
jmp 0x5a45d9
mov dword [ebp - 0x14], 0
mov al, byte [ebp - 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059df60
mov esp, ebp
pop ebp
ret 8

Function at 0x5b2240
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x624c85
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x69bd40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
push 0x40
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], esi
call fcn.0059d36c
movups xmm0, xmmword [str.BufferedTransformation:_this_object_doesnt_allow_input]
mov edi, eax
mov dword [ebp - 0x18], 0x37
mov eax, 0x3f
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], eax
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x651ea0]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x651eb0]
movups xmmword [edi + 0x20], xmm0
mov eax, dword [0x651ec0]
mov dword [edi + 0x30], eax
mov ax, word [0x651ec4]
mov word [edi + 0x34], ax
mov al, byte [0x651ec6]
mov byte [edi + 0x36], al
mov byte [edi + 0x37], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [esi + 4], xmm0
mov dword [esi], vtable.CryptoPP::Exception.0
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 0
push 0x40
mov byte [ebp - 4], 1
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.0059d36c
mov dword [esi + 0x10], eax
mov ecx, 0x3f
movups xmm0, xmmword [edi]
inc ecx
push ecx
movups xmmword [eax], xmm0
push edi
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [eax + 0x20], xmm0
movq xmm0, qword [edi + 0x30]
movq qword [eax + 0x30], xmm0
mov dword [esi + 0x20], 0x37
mov dword [esi + 0x24], 0x3f
mov esi, dword [ebp - 0x2c]
mov dword [esi], vtable.CryptoPP::NotImplemented.0
call fcn.0059df52
add esp, 8
mov dword [esi], vtable.CryptoPP::InputRejecting_class_CryptoPP::BufferedTransformation_::InputRejected.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059df60
mov esp, ebp
pop ebp
ret
Function at 0x5c36a0
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
lea ebx, [edx + eax]
mov dword [ebp - 8], ebx
cmp eax, 0x10
jb 0x5c3745
mov esi, dword [ebp + 0x10]
lea eax, [ebx - 0x10]
mov dword [ebp - 4], eax
lea edi, [esi + 0x24234428]
lea ebx, [esi - 0x7a143589]
lea eax, [esi + 0x61c8864f]
lea esp, [esp]
imul ecx, dword [edx], 0x7a143589
sub edi, ecx
imul ecx, dword [edx + 4], 0x7a143589
rol edi, 0xd
imul edi, edi, 0x9e3779b1
sub ebx, ecx
imul ecx, dword [edx + 8], 0x7a143589
rol ebx, 0xd
imul ebx, ebx, 0x9e3779b1
sub esi, ecx
imul ecx, dword [edx + 0xc], 0x7a143589
rol esi, 0xd
add edx, 0x10
imul esi, esi, 0x9e3779b1
sub eax, ecx
rol eax, 0xd
imul eax, eax, 0x9e3779b1
cmp edx, dword [ebp - 4]
jbe 0x5c36e0
rol eax, 0x12
rol esi, 0xc
rol ebx, 7
add eax, esi
add eax, ebx
rol edi, 1
mov ebx, dword [ebp - 8]
add eax, edi
jmp 0x5c374d
mov eax, dword [ebp + 0x10]
add eax, 0x165667b1
add eax, dword [ebp + 0xc]
lea esi, [edx + 4]
cmp esi, ebx
ja 0x5c377a
jmp 0x5c3760
imul ecx, dword [edx], 0x3d4d51c3
mov edx, esi
lea esi, [edx + 4]
sub eax, ecx
rol eax, 0x11
imul eax, eax, 0x27d4eb2f
cmp esi, ebx
jbe 0x5c3760
mov edi, ebx
xor ecx, ecx
sub edi, edx
xor esi, esi
cmp edx, ebx
cmova edi, ecx
test edi, edi
je 0x5c37ac
jmp 0x5c3790
movzx ecx, byte [edx]
lea edx, [edx + 1]
imul ecx, ecx, 0x165667b1
inc esi
add ecx, eax
rol ecx, 0xb
imul eax, ecx, 0x9e3779b1
cmp esi, edi
jb 0x5c3790
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
imul ecx, ecx, 0x85ebca77
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae3d
mov eax, ecx
shr eax, 0x10
xor eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x5c7805
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x5da140
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x5da200
push esi
mov esi, dword [esp + 0xc]
push edi
push dword [esi + 0x158]
push esi
call fcn.005da750
mov edi, dword [esi + 0x154]
push esi
movzx ecx, byte [edi + esi + 0x16c]
movzx eax, byte [edi + esi + 0x16d]
shl ecx, 5
xor ecx, eax
movzx eax, byte [edi + esi + 0x16e]
shl ecx, 5
xor ecx, eax
imul edx, ecx, 0x9f5f
shr edx, 5
and edx, 0x3fff
movzx eax, word [esi + edx*2 + 0xd16c]
mov word [esi + edi*2 + 0x1516c], ax
movzx eax, word [esi + 0x154]
mov word [esi + edx*2 + 0xd16c], ax
mov cx, word [esi + 4]
mov eax, dword [esi + 0x154]
inc cx
mov word [esi + eax*2 + 0x2e16a], cx
inc word [esi + edx*2 + 0x47168]
mov eax, dword [esi + 0x154]
movzx ecx, word [esi + eax + 0x16c]
movzx eax, word [esi + 0x154]
mov word [esi + ecx*2 + 0x4f168], ax
call fcn.005da3c0
add esp, 0xc
dec ebx
jne 0x5da153
pop edi
pop esi
pop ebx
ret

Function at 0x5da660
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x14]
push edi
mov ecx, dword [eax]
mov edi, dword [esp + 0x14]
sub ecx, ebx
mov dword [eax + 0x164], ecx
mov dword [eax + 0x168], edi
test ebx, ebx
je 0x5da740
lea ecx, [edi + 0x170b5]
lea ecx, [eax + ecx*2]
push ebp
mov dword [esp + 0x1c], ecx
lea edx, [eax + 0x16c]
push esi
lea esi, [eax + 0x16e]
mov ecx, eax
sub ecx, esi
lea ebp, [edx + edi]
add ecx, 0x16d
sub esi, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], esi
lea esp, [esp]
lea edx, [esi + ebp]
movzx esi, byte [edx + ecx]
lea ebp, [ebp + 1]
movzx ecx, byte [ebp - 1]
shl ecx, 5
xor esi, ecx
movzx ecx, byte [edx]
mov edx, dword [esp + 0x20]
shl esi, 5
xor esi, ecx
imul esi, esi, 0x9f5f
shr esi, 5
and esi, 0x3fff
movzx ecx, word [eax + esi*2 + 0xd16c]
mov word [edx - 0x18ffe], cx
movzx edx, di
inc edi
mov word [eax + esi*2 + 0xd16c], dx
movzx ecx, word [eax + 4]
mov eax, dword [esp + 0x20]
inc cx
add dword [esp + 0x20], 2
mov word [eax], cx
mov eax, dword [esp + 0x18]
inc word [eax + esi*2 + 0x47168]
movzx ecx, word [ebp - 1]
mov esi, dword [esp + 0x1c]
mov word [eax + ecx*2 + 0x4f168], dx
mov ecx, dword [esp + 0x10]
dec ebx
jne 0x5da6c0
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
Function at 0x5fd15d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005fcfd3

Function at 0x6052cc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00604e1f
Function at 0x6101f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x626032
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x69bd40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.0050c070
mov dword [edi], vtable.CSkyObject.0
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea esi, [edi + 0x134]
mov byte [ebp - 4], 1
push 0x2c
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0059df22
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x1bc], 0
mov dword [edi + 0x1c0], 0
mov dword [edi + 0x1c4], 0
mov dword [edi + 0x1c8], 0x3f800000
mov dword [edi + 0x1cc], 0x3f800000
mov dword [edi + 0x1d0], 0x3f800000
mov dword [edi + 0x1d8], 0
mov dword [edi + 0x1e8], 0
mov dword [edi + 0x1ec], 0xf
mov byte [edi + 0x1d8], 0
lea ecx, [edi + 0x1f4]
mov byte [ebp - 4], 3
call fcn.00511a60
mov dword [edi + 0x174], 0
mov dword [edi + 0x170], 0
mov dword [edi + 0x16c], 0
mov dword [edi + 0x168], 0
mov dword [edi + 0x160], 0
mov dword [edi + 0x15c], 0
mov dword [edi + 0x158], 0
mov dword [edi + 0x154], 0
mov dword [edi + 0x14c], 0
mov dword [edi + 0x148], 0
mov dword [edi + 0x144], 0
mov dword [edi + 0x140], 0
mov dword [edi + 0x178], 0x3f800000
mov dword [edi + 0x164], 0x3f800000
mov dword [edi + 0x150], 0x3f800000
mov dword [edi + 0x13c], 0x3f800000
mov dword [edi + 0x1b4], 0
mov dword [edi + 0x1b0], 0
mov dword [edi + 0x1ac], 0
mov dword [edi + 0x1a8], 0
mov dword [edi + 0x1a0], 0
mov dword [edi + 0x19c], 0
mov dword [edi + 0x198], 0
mov dword [edi + 0x194], 0
mov dword [edi + 0x18c], 0
mov dword [edi + 0x188], 0
mov dword [edi + 0x184], 0
mov dword [edi + 0x180], 0
mov dword [edi + 0x1b8], 0x3f800000
mov dword [edi + 0x1a4], 0x3f800000
mov dword [edi + 0x190], 0x3f800000
mov dword [edi + 0x17c], 0x3f800000
mov byte [ebp - 4], 4
mov dword [edi + 0xf8], 0
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf0], 0
mov dword [edi + 0xec], 0
mov dword [edi + 0xe4], 0
mov dword [edi + 0xe0], 0
mov dword [edi + 0xdc], 0
mov dword [edi + 0xd8], 0
mov dword [edi + 0xd0], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xc8], 0
mov dword [edi + 0xc4], 0
mov dword [edi + 0xfc], 0x3f800000
mov dword [edi + 0xe8], 0x3f800000
mov dword [edi + 0xd4], 0x3f800000
mov dword [edi + 0xc0], 0x3f800000
mov ecx, dword [0x6ab7b4]
call fcn.004f73f0
mov dword [edi + 0x130], eax
mov eax, edi
mov dword [edi + 0x128], 0
mov dword [edi + 0x12c], 0
mov word [edi + 0x1f0], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401a40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40638d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0x1c]
mov eax, edx
mov ecx, dword [ebp + 0x18]
sub eax, ecx
cmp eax, 3
jb 0x401af4
cmp edx, 0xf
lea esi, [ebp + 8]
lea eax, [ecx + 3]
cmova esi, dword [ebp + 8]
mov dword [ebp + 0x18], eax
cmp esi, 0x407313
jae 0x401ab8
lea eax, [esi + ecx]
cmp eax, 0x407310
jb 0x401ab8
cmp esi, 0x407310
ja 0x401aae
xor edi, edi
jmp 0x401abd
mov edi, esi
sub edi, 0x407310
jmp 0x401abd
mov edi, 3
lea eax, [ecx + 1]
push eax
lea eax, [esi + 3]
push esi
push eax
call sub.VCRUNTIME140.dll_memmove
push edi
push 0x407310
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, 3
sub eax, edi
push eax
lea eax, [edi + 0x407313]
push eax
lea eax, [esi + edi]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x24
jmp 0x401b0a
push 3
sub esp, 8
mov byte [ebp - 0x14], 0
lea ecx, [ebp + 8]
push dword [ebp - 0x14]
push 3
call fcn.00404a60
cmp dword [ebp + 0x1c], 0xf
lea eax, [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0x3c
cmova eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], str.cmd.exe
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x401b75
or esi, 0xffffffff
jmp 0x401b99
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
lea ecx, [ebp + 8]
call fcn.004042b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004054eb
mov esp, ebp
pop ebp
ret
Function at 0x4027b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0x15], 0
je 0x4027d2
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax + 0x1c]
inc eax
xor byte [edx], cl
cmp eax, 0x14
jb 0x4027c0
mov byte [esi + 0x15], 0
push ecx
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x14]
push eax
push esi
call fcn.004046e0
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4027f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0x1c], 0
je 0x402812
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax + 0x1c]
inc eax
xor byte [edx], cl
cmp eax, 0x1b
jb 0x402800
mov byte [esi + 0x1c], 0
push ecx
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x1b]
push eax
push esi
call fcn.004046e0
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x402830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0xd], 0
je 0x402852
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax + 0x1c]
inc eax
xor byte [edx], cl
cmp eax, 0xc
jb 0x402840
mov byte [esi + 0xd], 0
push ecx
mov ecx, dword [ebp + 8]
lea eax, [esi + 0xc]
push eax
push esi
call fcn.004046e0
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x402870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0xf], 0
je 0x402892
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax + 0x1c]
inc eax
xor byte [edx], cl
cmp eax, 0xe
jb 0x402880
mov byte [esi + 0xf], 0
push ecx
mov ecx, dword [ebp + 8]
lea eax, [esi + 0xe]
push eax
push esi
call fcn.004046e0
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x403370
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 0x40339c
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 0x4033c4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x4033ca
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 0x403432
jg 0x4033e1
test esi, esi
je 0x403432
test ecx, ecx
jl 0x40342d
jg 0x4033eb
test eax, eax
je 0x40342d
cmp edi, ecx
jg 0x4033ff
jl 0x4033f5
cmp esi, eax
jae 0x4033ff
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 0x403435
mov ecx, dword [ebp + 8]
jmp 0x40343f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x403459
jg 0x40343f
test esi, esi
je 0x403459
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x403459
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 0x403470
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x40349c
jl 0x403490
test ecx, ecx
jne 0x40349c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4034b5
push eax
push ecx
push esi
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 esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x403503
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x403509
mov edi, dword [ebp - 4]
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 - 4], 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
mov esi, dword [ebp - 4]
jmp 0x403509
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x403576
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x403532
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 - 0xc]
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 0x403564
nop
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 0x403576
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x403540
test edi, edi
je 0x403576
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 0x4038d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x403900
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004054eb
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40393c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40393c
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.004054eb
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x403a13
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403964
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 0x403970
movsx eax, bl
jmp 0x4039a8
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 0x4039d2
sub eax, 1
je 0x4039d2
sub eax, 2
jne 0x403a13
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
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004054eb
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4039f0
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 0x403a13
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.004054eb
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.004054eb
mov esp, ebp
pop ebp
ret 4

Function at 0x403b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0x18], 0
je 0x403b52
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax + 0x1c]
inc eax
xor byte [edx], cl
cmp eax, 0x17
jb 0x403b40
mov byte [esi + 0x18], 0
push ecx
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x17]
push eax
push esi
call fcn.004046e0
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x403ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4040ac
cmp byte [esi + 0x3d], 0
je 0x4040ac
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40409a
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 0x404061
sub eax, 1
je 0x404065
sub eax, 2
jne 0x40409a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004054eb
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404083
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 0x40409a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004054eb
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004054eb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004054eb
mov esp, ebp
pop ebp
ret

Function at 0x405e57
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405e96
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405e96
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405e96
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405e96
cmp dword [ecx + 0x74], 0xe
jbe 0x405e96
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219