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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x401cb3
pop dword [ebp - 0x38]
mov eax, 0x401cb3
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3671d
push 0
mov eax, 0x8f1932b1
sub eax, 0x8ed851d9
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x1a1a957d
sub ecx, 0x1a1a58a0
xor ebx, ebx
add ebx, eax
mov esi, 0x5ca02018
add esi, 0xa3a11bac
add esi, dword [ebp - 0x38]
mov edx, 0x3078bb91
sub edx, 0x6d55d553
xor dword [ebp - 0x18], 0xc4a2d638
mov edi, dword [esi]
sub dword [ebp - 0x1c], ecx
xor edi, edx
mov dword [ebp - 0x2c], 0x4e0a4d50
mov dword [ebx], edi
sub dword [ebp - 4], 0x5adfc75
add ebx, 4
add esi, 4
loop 0x401d0f
add eax, 0xe647
mov ebx, eax
add eax, 0xeb6a33bf
add eax, 0x1495cc46
mov ecx, 0x3c774172
add ecx, 0xc3c8be8e
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399
Function at 0x403e47
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 8], 0
push ebx
push esi
push edi
push str.VirtualAlloc
push str.Kernel32.dll
mov dword [ebp - 4], 0xf
mov byte [ebp - 0x18], 0
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 4
push 0x3000
mov esi, 0x1dcd6500
push esi
mov edi, eax
push ebx
call edi
test eax, eax
je 0x403f28
mov byte [eax], bl
inc eax
dec esi
jne 0x403e92
xor ecx, ecx
mov esi, 0x162e
mov al, byte [ecx + section..data]
ror al, 3
xor al, byte [ebx + str.qdrnthbooedml]
push 0xd
mov byte [ecx + section..data], al
lea eax, [ebx + 1]
cdq
pop ebx
idiv ebx
inc ecx
mov ebx, edx
cmp ecx, esi
jb 0x403e9f
push 0x40
push 0x3000
push esi
xor ebx, ebx
push ebx
call edi
mov edi, section..data
mov edx, eax
sub edi, eax
mov cl, byte [edi + edx]
mov byte [edx], cl
inc edx
dec esi
jne 0x403eda
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea eax, [ebp - 0x18]
push eax
push 0x4271a0
call fcn.00401207
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
call fcn.004013dc
lea ecx, [ebp - 0x30]
call fcn.004036cb
push eax
mov ecx, 0x427270
call fcn.00401791
push eax
call fcn.004035c4
pop ecx
lea ecx, [ebp - 0x30]
call fcn.0040164d
lea ecx, [ebp - 0x18]
call fcn.0040164d
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x412db6
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00409c0f
mov dword [ebp - 0x14], eax
cmp dword [0x428304], edi
jne 0x412ea7
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x412e34
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x412f87
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x412f87
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x412f87
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x428304], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x428308], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x42830c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x428314], eax
test eax, eax
je 0x412ea4
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x428310], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x412ecc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x412ebf
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x412ee1
push 4
pop eax
jmp 0x412f89
cmp dword [ebp - 0x14], edi
je 0x412ee1
push dword [0x428304]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x412ec6
mov eax, dword [0x428310]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x412f3f
cmp dword [0x428314], esi
je 0x412f3f
push eax
call ebx
push dword [0x428314]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x412f3f
test eax, eax
je 0x412f3f
call ecx
test eax, eax
je 0x412f34
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x412f34
test byte [ebp - 8], 1
jne 0x412f3f
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x412f6f
mov eax, dword [0x428308]
cmp eax, esi
je 0x412f6c
push eax
call ebx
test eax, eax
je 0x412f6c
call eax
mov edi, eax
test edi, edi
je 0x412f6c
mov eax, dword [0x42830c]
cmp eax, esi
je 0x412f6c
push eax
call ebx
test eax, eax
je 0x412f6c
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x428304]
call ebx
test eax, eax
je 0x412f87
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x412f89
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004082bb
leave
ret
Function at 0x41547e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040d34a
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4154b6
xor eax, eax
jmp 0x4154e2
cmp esi, dword [ebp - 4]
je 0x4154df
cmp dword [ebp + 0xc], 0
je 0x4154df
push dword [edi + 0x9c]
call fcn.0041508c
push dword [edi + 0x9c]
mov esi, eax
call fcn.00409fbc
pop ecx
pop ecx
cmp esi, eax
je 0x4154b2
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x4047e5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x4047f4
pop dword [ebp - 0x2c]
mov eax, 0x6af756c7
sub eax, 0x6ab70ed3
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x38040
push 0
mov eax, 0x3f191955
add eax, 0xc127c783
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x4329
xor edi, edi
add edi, eax
mov esi, 0x7d6dd302
sub esi, 0x7d2c973e
add esi, dword [ebp - 0x2c]
mov ebx, 0x7a813fa6
sub ebx, 0x169d3ef
sub dword [ebp - 4], 0x81411d19
mov edx, dword [esi]
xor dword [ebp - 0x14], edx
sub edx, ebx
xor dword [ebp - 4], edi
mov dword [edi], edx
add dword [ebp - 0xc], 0x4787964a
add edi, 0x6185a1d0
sub edi, 0x6185a1cc
add esi, 4
loop 0x40484f
add eax, 0xde61970a
sub eax, 0xde609793
mov ebx, eax
add eax, 0x173f1da
sub eax, 0x173f1d5
mov ecx, 0x43ec9022
sub ecx, 0x43ac9022
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x400703ff
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x1e091f83
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x40ac1a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40ac29
pop dword [ebp - 0x2c]
mov eax, 0x40ac29
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x660acc8a
sub dword [ebp - 0x3c], 0x17b8873f
mov dword [ebp - 0x38], 0xf041dbe0
add dword [ebp - 0x38], 0x41f17065
mov dword [ebp - 0x34], 0x6f854f2
sub dword [ebp - 0x34], 0xbaac10c4
mov dword [ebp - 0x30], 0x8d23f0cc
sub dword [ebp - 0x30], 0x8d23f0cc
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xbc8e8065
sub dword [ebp - 0x3c], 0x481c170f
mov dword [ebp - 0x38], 0x7b4e1bbc
sub dword [ebp - 0x38], 0x39e1ba47
mov dword [ebp - 0x34], 0x7d0c3b55
add dword [ebp - 0x34], 0xe6633117
mov dword [ebp - 0x30], 0x941a4831
sub dword [ebp - 0x30], 0x941a4831
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3cbd8
push 0
call eax
mov ecx, 0x53c1
mov esi, eax
mov edx, 0x41b000
add edx, dword [ebp - 0x2c]
mov ebx, 0xa60cc0a2
add ebx, 0x16d07820
mov dword [ebp - 0x24], 0x56844bbf
mov edi, dword [edx]
sub dword [ebp - 0x28], ebx
sub edi, ebx
xor dword [ebp - 0x1c], 0xe1f11838
mov dword [esi], edi
mov dword [ebp - 0xc], 0x1cef453b
add esi, 0x43febd1a
add esi, 0xbc0142ea
add edx, 4
loop 0x40ad30
add eax, 0x996f3a36
add eax, 0x669207a1
xor ebx, ebx
add ebx, eax
add eax, 0x574186fd
sub eax, 0x574186f8
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x402204
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
xor esi, esi
call edi
add byte [esi + 0x4259b0], 0x6b
call edi
add byte [esi + 0x4259b0], 0xa5
call edi
xor byte [esi + 0x4259b0], 0x92
call edi
add byte [esi + 0x4259b0], 0x10
call edi
add byte [esi + 0x4259b0], 0xfe
call edi
add byte [esi + 0x4259b0], 0x86
call edi
add byte [esi + 0x4259b0], 0xce
call edi
xor byte [esi + 0x4259b0], 0xf6
call edi
add byte [esi + 0x4259b0], 0x1c
call edi
add byte [esi + 0x4259b0], 0xae
call edi
xor byte [esi + 0x4259b0], 0x14
call edi
add byte [esi + 0x4259b0], 0x62
call edi
add byte [esi + 0x4259b0], 0xf3
call edi
add byte [esi + 0x4259b0], 0x51
call edi
add byte [esi + 0x4259b0], 0xfd
call edi
add byte [esi + 0x4259b0], 0x5c
call edi
xor byte [esi + 0x4259b0], 0xfb
call edi
add byte [esi + 0x4259b0], 0x96
call edi
add byte [esi + 0x4259b0], 0xbc
call edi
add byte [esi + 0x4259b0], 0x9b
call edi
add byte [esi + 0x4259b0], 0xa8
call edi
call edi
add byte [esi + 0x4259b0], 0x36
call edi
add byte [esi + 0x4259b0], 0xfa
call edi
add byte [esi + 0x4259b0], 0x2a
call edi
xor byte [esi + 0x4259b0], 0x62
call edi
add byte [esi + 0x4259b0], 0x9f
call edi
add byte [esi + 0x4259b0], 0x17
call edi
add byte [esi + 0x4259b0], 0x2d
call edi
add byte [esi + 0x4259b0], 2
call edi
add byte [esi + 0x4259b0], 0xe3
call edi
xor byte [esi + 0x4259b0], 0xb0
call edi
xor byte [esi + 0x4259b0], 0xa7
call edi
xor byte [esi + 0x4259b0], 0x47
call edi
add byte [esi + 0x4259b0], 0xfc
call edi
add byte [esi + 0x4259b0], 0xc4
call edi
xor byte [esi + 0x4259b0], 0xd8
call edi
add byte [esi + 0x4259b0], 0x8b
call edi
add byte [esi + 0x4259b0], 0xa0
call edi
xor byte [esi + 0x4259b0], 0x80
call edi
add byte [esi + 0x4259b0], 0x5c
call edi
xor byte [esi + 0x4259b0], 0x83
call edi
add byte [esi + 0x4259b0], 0x10
call edi
xor byte [esi + 0x4259b0], 0x71
call edi
add byte [esi + 0x4259b0], 0x7e
call edi
xor byte [esi + 0x4259b0], 0xac
call edi
add byte [esi + 0x4259b0], 0x7d
call edi
add byte [esi + 0x4259b0], 0xce
call edi
add byte [esi + 0x4259b0], 0x86
inc esi
cmp esi, 0x23000
jb 0x40220e
pop edi
pop esi
ret
Function at 0x4052c1
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
push 1
call dword [sym.imp.USER32.dll_GetClipCursor]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x44a39c], eax
pop edi
pop esi
ret

Function at 0x408c8a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408cc9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408cc9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408cc9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408cc9
cmp dword [ecx + 0x74], 0xe
jbe 0x408cc9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40f181
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41d4d8
push 0x41d4d0
push str.FlsAlloc
push 0x1e
call fcn.0040f042
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f1b5
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b184]
call esi
jmp 0x40f1bb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40f1ff
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41d4e8
push 0x41d4e0
push str.FlsGetValue
push 0x20
call fcn.0040f042
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f236
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x401b80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x401c3c
cmp byte [esi + 0x3d], 0
je 0x401c3c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x401c2a
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 0x401bf1
sub eax, 1
je 0x401bf5
sub eax, 2
jne 0x401c2a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405b85
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x401c13
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 0x401c2a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405b85
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405b85
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00405b85
mov esp, ebp
pop ebp
ret
Function at 0x402bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402c20
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405b85
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x402c50
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x402c50
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.00405b85
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x402d4d
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x402c79
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 0x402cad
push dword [esi + 0x4c]
movsx eax, bl
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.00405b85
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
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 0x402d0c
sub eax, 1
je 0x402d0c
sub eax, 2
jne 0x402d4d
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.004012e0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405b85
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402d2a
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 0x402d4d
lea ecx, [ebp - 0x28]
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.00405b85
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.00405b85
mov esp, ebp
pop ebp
ret 4
Function at 0x403540
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x403564
jl 0x403559
test ecx, ecx
jne 0x403564
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40357e
push eax
push ecx
push dword [ebp + 8]
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push esi
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x4035ca
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 4], edx
mov eax, dword [eax]
test eax, eax
je 0x4035d0
mov edi, dword [ebp + 8]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x4035d0
lea eax, [ebx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x403646
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4035fc
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x403634
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x403646
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x403610
test edi, edi
je 0x403646
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 0x403660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x403685
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 ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x4036ab
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x4036b0
xor ecx, ecx
mov dword [ebp - 8], eax
mov eax, ecx
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x403710
jg 0x4036c5
test esi, esi
je 0x403710
test ecx, ecx
jl 0x40370b
jg 0x4036cf
test eax, eax
je 0x40370b
cmp edi, ecx
jg 0x4036e1
jl 0x4036d9
cmp esi, eax
jae 0x4036e1
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 4]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x403713
mov ecx, dword [ebp + 8]
jmp 0x40371d
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x403737
jg 0x40371d
test esi, esi
je 0x403737
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x403737
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 [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4063dd
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40641c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40641c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40641c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40641c
cmp dword [ecx + 0x74], 0xe
jbe 0x40641c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4