joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402710
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x42e028]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
mov edi, dword [ebp + 8]
push 0x65
push edi
mov dword [esp + 0x28], 0x30
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], 0x402890
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], edi
call esi
push 0x7f00
push edi
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0xffffff
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0x65
push edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], str.RPC_Inviter
call esi
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
push 0
cdq
push edi
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x24]
push 0
push 0
cdq
push 0x190
sub eax, edx
sar ecx, 1
push 0x190
sar eax, 1
sub ecx, 0xc8
sub eax, 0xc8
mov dword [esp + 0x28], ecx
push eax
push ecx
push 0xca0000
push str.RPC_Inviter
push str.RPC_Inviter
push 0
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x42fc08], eax
test eax, eax
je 0x402878
push dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [esp + 0x50]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x402860
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x50]
push eax
call edi
lea eax, [esp + 0x50]
push eax
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x5c]
push eax
call esi
test eax, eax
jne 0x402841
mov eax, dword [esp + 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00406255
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x6c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406255
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402d90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x402e76
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x402e65
jg 0x402dd0
test edx, edx
je 0x402e65
nop dword [eax]
call fcn.00404240
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x402e24
jg 0x402de7
test esi, esi
je 0x402e24
cmp ebx, eax
jg 0x402df7
jl 0x402df1
cmp edi, esi
jae 0x402df7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00407790
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x402e49
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x402e5f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x402dd0
jl 0x402e5f
test edi, edi
jne 0x402dd0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 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 + 0x10], eax
test eax, eax
je 0x402e98
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x402e9a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x402f18
jg 0x402ead
test esi, esi
je 0x402f18
test eax, eax
jl 0x402ef2
jg 0x402eb7
test ebx, ebx
je 0x402ef2
cmp edi, eax
jg 0x402ec7
jl 0x402ec1
cmp esi, ebx
jae 0x402ec7
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00407790
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x402ef5
mov edx, dword [ebp + 8]
test edi, edi
jl 0x402f18
jg 0x402eff
test esi, esi
je 0x402f18
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x402f18
push eax
push esi
push 1
push edx
call fcn.0040b5d5
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 0x403490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x42e028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4034c0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406255
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4034fc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4034fc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406255
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4035e3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403524
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 0x403557
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0040ab57
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.00406255
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
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 [edx + 0x1c]
test eax, eax
js 0x4035e3
cmp eax, 1
jle 0x4035b6
cmp eax, 3
jne 0x4035e3
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0040ab57
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.00406255
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4035d3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040b5d5
add esp, 0x10
cmp edi, eax
jne 0x4035e3
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4034e7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406255
mov esp, ebp
pop ebp
ret 4
Function at 0x403f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42e028]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40404a
cmp byte [esi + 0x3d], 0
je 0x40404a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x404038
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x404000
sub eax, 1
je 0x404004
sub eax, 2
jne 0x404038
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406255
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404021
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040b5d5
add esp, 0x10
cmp edi, eax
jne 0x404038
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406255
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406255
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00406255
mov esp, ebp
pop ebp
ret

Function at 0x4119eb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00411861
Function at 0x10002b5b
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
mov eax, dword [0x1001500c]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x20]
mov esi, ecx
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
xor ebx, ebx
inc ebx
push ebx
push 2
pop edi
push edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x10002be2
push dword [ebp + 0x20]
mov word [esp + 0x14], di
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [esp + 0x14]
mov word [esp + 0x12], ax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x10
lea eax, [esp + 0x14]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10002be4
xor bl, bl
lea ecx, [ebp + 8]
call fcn.10008d7b
mov ecx, dword [esp + 0x1b4]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000c333
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x10002c05
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, ecx
test edi, edi
je 0x10002c2e
push 0
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10002c38
add ebx, eax
sub edi, eax
jne 0x10002c16
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
ret 8
or eax, 0xffffffff
jmp 0x10002c32
Function at 0x10002c3d
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x201c
call fcn.1000d2f0
mov eax, dword [0x1001500c]
xor eax, esp
mov dword [esp + 0x2018], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2030]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov esi, dword [edi + 4]
push 0
cdq
pop ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ebp
sub esi, dword [edi]
je 0x10002d31
mov eax, 0x1ff0
mov ecx, dword [esp + 0x10]
cmp esi, eax
mov ebx, esi
cmovg ebx, eax
mov ecx, dword [ecx + 0xc]
call fcn.100015ef
mov ecx, dword [edi]
mov eax, dword [edi + 4]
sub eax, ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
lea eax, [ecx + ebp]
push ebx
push eax
lea eax, [esp + 0x40]
push eax
call sub.VCRUNTIME140.dll_memcpy
lea eax, [ebx + 0x10]
add esp, 0xc
mov dword [esp + 0x20], eax
mov edi, eax
lea ebp, [esp + 0x28]
test eax, eax
je 0x10002cff
mov eax, dword [esp + 0x10]
push 0
push edi
push ebp
push dword [eax + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10002d4e
add ebp, eax
sub edi, eax
jne 0x10002ce3
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push dword [eax + 0xc]
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
pop ecx
cmp edi, 0xffffffff
je 0x10002d53
mov ebp, dword [esp + 0x14]
mov eax, 0x1ff0
mov edi, dword [esp + 0x24]
add ebp, ebx
mov dword [esp + 0x14], ebp
sub esi, ebx
jne 0x10002c8e
mov al, 1
mov ecx, dword [esp + 0x2028]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000c333
add esp, 0x201c
ret 4
or edi, 0xffffffff
jmp 0x10002d03
xor al, al
jmp 0x10002d33
Function at 0x10007743
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10007766
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
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__]
jmp 0x10007839
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x20], edi
test ecx, ecx
je 0x10007793
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10007799
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, ecx
cdq
mov dword [esp + 0x2c], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x10007801
jg 0x100077b0
test esi, esi
je 0x10007801
test ecx, ecx
jl 0x100077fb
jg 0x100077ba
test eax, eax
je 0x100077fb
cmp edi, ecx
jg 0x100077ce
jl 0x100077c4
cmp esi, eax
jae 0x100077ce
mov eax, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], edi
mov ebp, dword [esp + 0x28]
push eax
push ebp
push dword [esp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
add ebp, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x10007805
mov ebp, dword [esp + 0x28]
jmp 0x1000780f
mov ebp, dword [esp + 0x28]
test edi, edi
jl 0x1000782a
jg 0x1000780f
test esi, esi
je 0x1000782a
cmp dword [ebx + 0x4c], 0
je 0x1000782a
push dword [ebx + 0x4c]
push esi
push 1
push ebp
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 + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
Function at 0x10007840
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0xc], ecx
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], esi
test ebp, ebp
jg 0x1000786c
jl 0x10007863
test ebx, ebx
jne 0x1000786c
xor eax, eax
xor edx, edx
jmp 0x1000791a
cmp dword [ecx + 0x38], 0
je 0x10007880
push ebp
push ebx
push esi
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__]
jmp 0x1000791a
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov edx, dword [eax]
test edx, edx
je 0x100078c1
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x100078c1
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push edx
push dword [esp + 0x18]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x20]
sub edi, esi
add dword [esp + 0x1c], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x10]
cmp dword [ecx + 0x4c], 0
je 0x10007910
call fcn.10008fbb
mov edx, edi
jmp 0x100078f1
push dword [ecx + 0x4c]
push eax
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub edi, eax
add esp, 0x10
add esi, eax
mov edx, edi
cmp eax, 0xfff
jne 0x10007910
mov ecx, dword [esp + 0x14]
mov eax, 0xfff
cmp edi, eax
ja 0x100078d0
test edx, edx
je 0x10007910
push dword [ecx + 0x4c]
push edi
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb ebp, 0
mov edx, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0xc
Function at 0x10007b94
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x1001500c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x10007bb9
xor eax, eax
jmp 0x10007c87
mov eax, dword [esi + 0x20]
push ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x10007be2
mov edx, dword [esi + 0x30]
mov ebp, dword [edx]
lea eax, [ecx + ebp]
cmp ecx, eax
jae 0x10007be2
lea ecx, [ebp - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x10007c51
cmp dword [esi + 0x4c], 0
je 0x10007c84
mov ecx, esi
call fcn.10008fbb
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10007bff
movsx eax, bl
jmp 0x10007c40
lea eax, [esp + 0x10]
mov byte [esp + 0x1b], bl
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2f]
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 0x10007c55
sub eax, 1
je 0x10007c55
dec eax
sub eax, 1
jne 0x10007c84
movsx eax, byte [esp + 0x1b]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
pop ecx
cmove ebx, edi
mov eax, ebx
jmp 0x10007c86
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x1c]
sub ebp, eax
je 0x10007c75
push dword [esi + 0x4c]
push ebp
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebp, eax
jne 0x10007c84
lea eax, [esp + 0x1b]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
cmovne edi, ebx
mov eax, edi
pop ebp
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000c333
add esp, 0x30
ret 4
Function at 0x10008fde
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1001500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x10009036
cmp byte [esi + 0x3d], bl
je 0x10009036
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10009070
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, ebx
je 0x10009047
sub eax, 1
je 0x1000904a
dec eax
sub eax, 1
jne 0x10009070
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c333
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10009068
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 0x10009070
cmp byte [esi + 0x3d], bl
sete al
jmp 0x10009038
xor al, al
jmp 0x10009038

Function at 0x10009b5b
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1000df88
call fcn.1000d246
mov ebx, ecx
mov esi, dword [ebp + 0x10]
push 0x24
call fcn.1000c3f6
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + 0x14]
lea ecx, [edi + 4]
and dword [ebp - 4], 0
push esi
mov eax, dword [eax]
mov dword [edi], eax
call fcn.10008e0b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
mov eax, dword [eax]
mov dword [edi + 0x1c], eax
xor eax, eax
mov dword [ebp - 4], 1
lea esi, [ebx + 4]
push esi
push eax
push edi
push 0x1000b5f0
push eax
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebx], eax
test eax, eax
je 0x10009bc7
mov eax, ebx
call fcn.1000d1f5
ret 0x10
and dword [esi], 0
push 6
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x1000c08a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1000c066
pop esi
leave
ret 8
Function at 0x1000c24d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.1000c164
mov edi, eax
test edi, edi
jne 0x1000c274
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x1000c2bd
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x1000c2b8
test al, 0x10
je 0x1000c2b8
test eax, 0x400
je 0x1000c2b4
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.1000c2c3
push dword [ebp - 4]
mov esi, eax
call fcn.1000c1a0
test esi, esi
jne 0x1000c2b8
xor edx, edx
jmp 0x1000c2ba
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4014d1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x134]
sub esp, 0x154
mov dword [ebp - 0x134], 0
mov dword [esp], eax
lea ebx, [ebp - 0x10c]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x118], 6
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], 0
call dword [sym.imp.USER32.dll_RegisterClassA]
push ecx
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 4]
leave
sub eax, 3
ret

Function at 0x40159e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 0
call fcn.004014d1
test eax, eax
jne 0x401638
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x4020ce
sub eax, 0x40166c
mov dword [esp], 0x40166c
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401638
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.004013d1
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.0040144c
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b600
mov dword [esp], str.g_n_p
call fcn.00401dd1
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret