joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d05b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x4d05e3
dec al
je 0x4d061f
dec al
je 0x4d0663
dec al
je 0x4d06d4
jmp 0x4d0762
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4d0762
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4d05f3
jmp 0x4d0762
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4d0762
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4d062f
jmp 0x4d0762
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4d0762
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jae 0x4d0692
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4d06a7
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [ebp - 8], edx
add eax, dword [ebp - 8]
sar eax, 1
jns 0x4d06b1
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4d0673
jmp 0x4d0762
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4d0762
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4d0730
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [ebp - 8], edx
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [ebp - 0xc], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [ebp - 4], edx
mov cl, byte [ebp - 0xc]
push eax
mov al, byte [ebp - 8]
pop edx
call fcn.004cd6a8
add al, byte [ebp - 4]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4d06ea
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4da04c
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ff4
xor eax, eax
push ebp
push 0x4da250
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
lea eax, [ebp - 4]
call fcn.004d9f68
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.004d9ca0
mov ebx, 0x4200100
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x20]
call fcn.00408f5c
mov eax, dword [ebp - 0x5c]
mov edx, 0x4da26c
call fcn.00404f50
jne 0x4da102
mov esi, 0x1bb
mov edi, 3
xor eax, eax
mov dword [ebp - 0x3c], eax
or ebx, 0x800000
or ebx, 0x1000
or ebx, 0x2000
jmp 0x4da12b
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x20]
call fcn.00408f5c
mov eax, dword [ebp - 0x60]
mov edx, 0x4da27c
call fcn.00404f50
jne 0x4da12b
mov esi, 0x50
mov edi, 3
xor eax, eax
mov dword [ebp - 0x3c], eax
xor edx, edx
push ebp
push 0x4da20a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
mov eax, dword [ebp - 0x3c]
push eax
push edi
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
push eax
push esi
mov eax, dword [ebp - 0x2c]
call fcn.00405004
push eax
mov eax, dword [0x4ed3a4]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4da200
push 0
push ebx
push 0x4eafbc
push 0
push 0
mov eax, dword [ebp - 0x34]
call fcn.00405004
push eax
push 0x4da284
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4da1f7
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
je 0x4da1ee
mov dword [ebp - 0x18], 0xa
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x58]
push eax
push 5
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x4da1ee
lea eax, [ebp - 0x58]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x1c]
call fcn.00404d3c
mov eax, dword [ebp - 0x64]
call fcn.00409528
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4da220
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da257
lea eax, [ebp - 0x64]
mov edx, 3
call fcn.00404b68
lea eax, [ebp - 0x38]
mov edx, 7
call fcn.00404b68
lea eax, [ebp - 4]
call fcn.00404b44
ret
Function at 0x4da28c
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa84
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x564], ebx
mov dword [ebp - 0x578], ebx
mov dword [ebp - 0x57c], ebx
mov dword [ebp - 0x560], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ff4
xor eax, eax
push ebp
push 0x4da4a1
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x560]
lea eax, [ebp - 4]
call fcn.004d9f68
cmp word [ebp + 0xa], 0
je 0x4da2fb
test ebx, ebx
jne 0x4da2f1
mov eax, dword [ebp - 4]
call fcn.004da04c
mov ebx, eax
xor ecx, ecx
mov edx, ebx
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
call fcn.004d9b68
push 0
push 0x400
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405004
push eax
mov eax, dword [0x4ed3a4]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4da3ed
xor eax, eax
push ebp
push 0x4da3e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
lea eax, [ebp - 0x15c]
call fcn.00403358
mov edx, 1
lea eax, [ebp - 0x15c]
call fcn.004037b0
call fcn.00402c2c
xor esi, esi
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push 0x400
lea eax, [ebp - 0x55c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetReadFile
push 0
lea edx, [ebp - 0x55c]
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x15c]
call fcn.004034a8
call fcn.00402c2c
inc dword [ebp - 0x10]
test ebx, ebx
jle 0x4da3a3
add esi, dword [ebp - 0xc]
jmp 0x4da3a6
mov esi, dword [ebp - 0x10]
cmp word [ebp + 0xa], 0
je 0x4da3b7
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
cmp dword [ebp - 0xc], 0
jne 0x4da363
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da462
lea eax, [ebp - 0x15c]
call fcn.004034c8
call fcn.00402c2c
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
mov bl, 1
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
lea eax, [ebp - 0x564]
push eax
mov dword [ebp - 0x574], ebx
mov byte [ebp - 0x570], 0
lea edx, [ebp - 0x578]
mov eax, ebx
call fcn.004d9bdc
mov eax, dword [ebp - 0x578]
mov dword [ebp - 0x56c], eax
mov byte [ebp - 0x568], 0xb
lea eax, [ebp - 0x574]
push eax
lea edx, [ebp - 0x57c]
mov eax, 0x4d9b44
call fcn.00406b90
mov eax, dword [ebp - 0x57c]
mov ecx, 1
pop edx
call fcn.0040a820
mov edx, dword [ebp - 0x564]
mov eax, 0x4ed3a0
call fcn.00404b98
xor ebx, ebx
test bl, bl
sete byte [0x4ed39c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da4a8
lea eax, [ebp - 0x57c]
mov edx, 2
call fcn.00404b68
lea eax, [ebp - 0x564]
mov edx, 2
call fcn.00404b68
lea eax, [ebp - 4]
call fcn.00404b44
ret
Function at 0x4da4b4
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x414], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ff4
xor eax, eax
push ebp
push 0x4da660
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x414]
lea eax, [ebp - 4]
call fcn.004d9f68
xor edx, edx
push ebp
push 0x4da614
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004d9b68
push 0
push 0x400
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405004
push eax
mov eax, dword [0x4ed3a4]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4da5b1
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
lea eax, [ebp - 0x418]
push eax
mov dword [ebp - 0x428], ebx
mov byte [ebp - 0x424], 0
lea edx, [ebp - 0x42c]
mov eax, ebx
call fcn.004d9bdc
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x420], eax
mov byte [ebp - 0x41c], 0xb
lea eax, [ebp - 0x428]
push eax
lea edx, [ebp - 0x430]
mov eax, 0x4d9b44
call fcn.00406b90
mov eax, dword [ebp - 0x430]
mov ecx, 1
pop edx
call fcn.0040a820
mov edx, dword [ebp - 0x418]
mov eax, 0x4ed3a0
call fcn.00404b98
cmp dword [ebp - 0xc], 0
je 0x4da5fb
lea eax, [ebp - 0x10]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 0x10], 0
jbe 0x4da5e6
lea edx, [ebp - 0x410]
mov ecx, dword [ebp - 0x10]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [ebp - 0x10], 0
jne 0x4da5b7
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
mov byte [ebp - 5], 1
jmp 0x4da5ff
mov byte [ebp - 5], 0
cmp byte [ebp - 5], 0
sete byte [0x4ed39c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4da62a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da667
lea eax, [ebp - 0x430]
mov edx, 2
call fcn.00404b68
lea eax, [ebp - 0x418]
mov edx, 2
call fcn.00404b68
lea eax, [ebp - 4]
call fcn.00404b44
ret
Function at 0x4dd04c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404ff4
xor eax, eax
push ebp
push 0x4dd151
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00405004
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.default.0x4dd088
jmp dword [eax*4 + 0x4dd08f]
mov eax, dword [0x4eb5fc]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x4dd168
call fcn.004db328
jmp case.default.0x4dd088
mov eax, dword [0x4eb5fc]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x4dd19c
call fcn.004db328
jmp case.default.0x4dd088
mov eax, dword [0x4eb5fc]
mov eax, dword [eax]
mov cl, 1
mov edx, 0x4dd1d0
call fcn.004db328
mov ebx, eax
jmp case.default.0x4dd088
mov bl, 1
jmp case.default.0x4dd088
cmp byte [ebp - 5], 0
je 0x4dd0fa
mov bl, 1
jmp case.default.0x4dd088
mov eax, dword [0x4eb5fc]
mov eax, dword [eax]
mov cl, 1
mov edx, 0x4dd208
call fcn.004db328
mov ebx, eax
jmp case.default.0x4dd088
mov eax, dword [0x4eb5fc]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x4dd244
call fcn.004db328
jmp case.default.0x4dd088
mov eax, dword [0x4eb5fc]
mov eax, dword [eax]
mov cl, 1
mov edx, 0x4dd270
call fcn.004db328
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dd158
lea eax, [ebp - 4]
call fcn.00404b44
ret
Function at 0x4019c0
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 0x4019ec
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 0x401a14
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x401a1a
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 0x401a82
jg 0x401a31
test esi, esi
je 0x401a82
test ecx, ecx
jl 0x401a7d
jg 0x401a3b
test eax, eax
je 0x401a7d
cmp edi, ecx
jg 0x401a4f
jl 0x401a45
cmp esi, eax
jae 0x401a4f
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 0x401a85
mov ecx, dword [ebp + 8]
jmp 0x401a8f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x401aa9
jg 0x401a8f
test esi, esi
je 0x401aa9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x401aa9
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 0x401ac0
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 0x401aec
jl 0x401ae0
test ecx, ecx
jne 0x401aec
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x401b05
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 0x401b53
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x401b59
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 0x401b59
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x401bc6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x401b82
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 0x401bb4
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 0x401bc6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x401b90
test edi, edi
je 0x401bc6
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 0x401f40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x407040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x401f70
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402bae
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x401fac
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x401fac
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.00402bae
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x402083
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x401fd4
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 0x401fe0
movsx eax, bl
jmp 0x402018
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 0x402042
sub eax, 1
je 0x402042
sub eax, 2
jne 0x402083
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.00402bae
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402060
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 0x402083
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.00402bae
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.00402bae
mov esp, ebp
pop ebp
ret 4
Function at 0x402450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x407040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40250c
cmp byte [esi + 0x3d], 0
je 0x40250c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4024fa
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 0x4024c1
sub eax, 1
je 0x4024c5
sub eax, 2
jne 0x4024fa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402bae
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4024e3
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 0x4024fa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402bae
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402bae
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00402bae
mov esp, ebp
pop ebp
ret

Function at 0x40344e
Capabilities:
Parse pe header

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x69fd7c18
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6a454635
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x417bb4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x417bec
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x417bda
mov al, 1
jmp 0x417c36
cmp dword [ebx + 0x54], ecx
jne 0x417be3
mov al, 2
jmp 0x417c36
cmp dword [ebx + 0x7c], ecx
jne 0x417c36
mov al, 3
jmp 0x417c36
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x417c01
mov al, 4
jmp 0x417c36
cmp ecx, 5
jne 0x417c21
cmp ebx, 0
jne 0x417c0f
mov al, 5
jmp 0x417c36
cmp ebx, 1
jne 0x417c18
mov al, 6
jmp 0x417c36
cmp ebx, 2
jne 0x417c21
mov al, 7
jmp 0x417c36
cmp ecx, 6
jne 0x417c2d
cmp ebx, 0
jne 0x417c2f
mov al, 8
jmp 0x417c36
cmp ebx, 1
jne 0x417c36
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret