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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x42400c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push ecx
push 0
push 0
push dword [0x4434f4]
mov edi, edx
mov dword [0x443fd0], ecx
push dword [0x4434f0]
push 0
push 0x80000000
push 0xcf0000
push 0x443f08
push 0x443e40
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x40eca1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a150
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0040f9a0
push edi
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x4434f4]
mov ecx, dword [0x4434d8]
add eax, 0xfffffef4
push 0
push dword [0x443fd0]
add ecx, 3
mov dword [0x443fd4], esi
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.USER32.dll_CreateWindowExA]
push eax
push 0x104
push 0xc8
push ecx
push 0x50000007
push 0x41d7f8
push str.BUTTON
push 0
mov dword [ebp - 0x74], ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4435ac], eax
test eax, eax
jne 0x40ed36
call edi
push eax
lea eax, [ebp - 0x70]
push 0x41ea7c
push eax
call fcn.004016a0
add esp, 0xc
lea eax, [ebp - 0x70]
push 0
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push dword [0x443fd0]
push 0xffffffffffffffff
push dword [0x443fd4]
push 0xa6
push 0x104
push 0x21
push dword [ebp - 0x74]
push 0x50000007
push 0x41d7f8
push str.BUTTON
push 0
call esi
mov esi, eax
mov dword [ebp - 0x44], 5
mov dword [0x4435b0], esi
xor ecx, ecx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0x12c
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x34], 0x1000000
mov word [ebp - 0x2e], 0x2202
nop dword [eax + eax]
mov al, byte [ecx + str.Arial]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x2d], al
test al, al
jne 0x40eda0
push 1
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x4435b0], 0
jne 0x40edf4
call edi
push eax
lea eax, [ebp - 0x70]
push str.hwGroupbox
push eax
call fcn.004016a0
add esp, 0xc
lea eax, [ebp - 0x70]
push 0
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.00410da0
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0041a150
mov esp, ebp
pop ebp
ret

Function at 0x40ee20
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [0x443e38]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x443e30]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [0x46f93c]
push dword [0x46f938]
push 0x80000000
push 0x80000000
push dword [0x443fd4]
call dword [sym.imp.USER32.dll_MoveWindow]
ret
Function at 0x4108c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x42400c]
xor eax, ebp
mov dword [ebp - 4], eax
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x408]
push 0x200
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__getcwd]
push str.helperror.html
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x208]
push 0x41e554
push eax
call fcn.004016a0
add esp, 0x18
lea eax, [ebp - 0x208]
push 3
push 0
push 0
push eax
push str.open
push dword [0x443fd4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x208]
push ecx
push eax
push str.err2___d___s_
push dword [0x46fbe0]
call fcn.004016a0
add esp, 0xc
mov ecx, 0x46fba8
push dword [0x46fbe0]
call fcn.00401c30
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a150
mov esp, ebp
pop ebp
ret
Function at 0x410970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c010
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x29f8
call fcn.0041b3c0
mov eax, dword [0x42400c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov esi, ecx
lea ecx, [ebp - 0x29f4]
mov dword [ebp - 0x29f8], esi
mov dword [ebp - 0x29fc], 0
call fcn.004064d0
push ecx
push esi
push str.login.postWI
mov ecx, 0x46fba8
mov dword [0x46fbcc], 1
call fcn.00401ef0
push ecx
push 0x46fe3c
push str.glas__web.host
mov ecx, 0x46fba8
call fcn.00401ef0
push ecx
push 0x46fed2
push str.glas__web.loginAction
mov ecx, 0x46fba8
call fcn.00401ef0
push ecx
lea eax, [ebp - 0x29fc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x2724]
push eax
push 0x46fed2
push 0x46fe3c
push edi
push esi
lea ecx, [ebp - 0x29f4]
call fcn.00406660
jmp 0x410a79
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x29fc]
test eax, eax
jne 0x410ab9
push ecx
push esi
push str.Login_Web_Service_Failed__No_connection_to_server_or_server_down_or_missing_
mov ecx, 0x46fba8
call fcn.00401ef0
cmp dword [0x46f91c], 1
jne 0x410aa9
call fcn.004108c0
push ecx
mov ecx, 0x46fba8
call fcn.00402030
jmp 0x410be3
mov byte [ebp + eax - 0x2724], 0
lea eax, [ebp - 0x2724]
push eax
push 0x41e4e0
push dword [0x46fbe0]
call fcn.004016a0
add esp, 8
mov ecx, 0x46fba8
push dword [0x46fbe0]
call fcn.00401c30
mov ecx, 0x46fba8
call fcn.00401a40
lea eax, [ebp - 0x2724]
push str.sl396fx
push eax
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
je 0x410b46
push 0x41e164
push str.paket.dll
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 8
mov esi, eax
mov edi, 0x21
nop
push esi
push 0xfa0
push 0x3e8
push esi
call ebx
add esp, 0x10
sub edi, 1
jne 0x410b30
lea eax, [ebp - 0x2724]
push str.loggedin
push eax
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 4
mov ecx, 0x46fba8
mov esi, eax
call fcn.00402030
test esi, esi
je 0x410bb6
cmp dword [0x46f918], 1
jne 0x410b88
push 0
push str.Yes_
push str.LOGGED_IN_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push str.Logged_In_
push dword [0x46fbe0]
mov byte [0x4700b8], 1
call fcn.004016a0
add esp, 4
mov ecx, 0x46fba8
push dword [0x46fbe0]
call fcn.00401c30
mov al, 1
jmp 0x410be5
cmp dword [0x46f918], 1
jne 0x410bd5
push 0
push str.WRONG_LOGIN___
lea eax, [ebp - 0x2724]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [0x46f91c], 1
jne 0x410be3
call fcn.004108c0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041a150
mov esp, ebp
pop ebp
ret
Function at 0x412e30
Capabilities:
Create thread
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [0x443e2c]
mov dword [0x443478], 0
cmp dword [0x44347c], 0
jne 0x412f7c
mov eax, dword [0x46f970]
mov dword [0x44347c], 1
push esi
test eax, eax
jne 0x412ec2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0xb0
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [0x46fc14]
push dword [0x46fc10]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
sub eax, ecx
jne 0x412efb
mov ecx, dword [0x46fc10]
xor edx, edx
mov esi, 0x424078
mov dword [ebp - 4], edx
sub esi, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x412eb0
jmp 0x412f47
cmp eax, 1
jne 0x412f44
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0xb0
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [0x46fc14]
mov edx, dword [0x46fc10]
mov ecx, edi
call fcn.004165d0
mov eax, dword [ebp - 8]
add esp, 4
mov ecx, dword [ebp - 4]
sub eax, ecx
je 0x412f23
push eax
mov eax, dword [0x46fc10]
add eax, ecx
push eax
push 0x424078
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp - 4]
sub eax, edx
mov byte [eax + 0x424078], 0
jmp 0x412f47
mov ecx, dword [0x46fc10]
xor edx, edx
mov esi, 0x424078
mov dword [ebp - 4], edx
sub esi, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x412f35
jmp 0x412f47
mov edx, dword [ebp - 4]
mov eax, dword [0x44359c]
cmp edx, 0x1f3ff
push 0x443e3c
push 1
push edi
push 0x415090
cmovbe eax, edx
push 0
mov dword [0x44359c], eax
push 0
mov dword [0x443478], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x416380
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x42400c]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
lea eax, [esp + 0x28]
mov dword [esp + 0x20], ecx
mov esi, edx
push eax
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__findfirst64i32]
add esp, 8
test eax, eax
jne 0x4163cd
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.0041a150
mov esp, ebp
pop ebp
ret
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push esi
mov byte [esp + 0x2f], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4164a9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x416498
lea esi, [eax + 0xa]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
xor ecx, ecx
lea eax, [esi*2 + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a2e7
mov dword [esp + 0x1c], eax
lea eax, [esi + 2]
push eax
call fcn.0041a2e7
add esp, 8
mov esi, eax
mov dword [esp + 0x14], esi
test ebx, ebx
je 0x41648b
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416480
cmp dword [ebp + 8], 2
mov byte [ebx + esi], 0
je 0x41647b
push ebx
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov byte [esp + 0x13], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4164b1
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4164b1
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x14]
push 2
push ebx
call fcn.0041a15e
push 1
push esi
call fcn.0041a15e
mov ecx, dword [esp + 0x164]
add esp, 0x10
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041a150
mov esp, ebp
pop ebp
ret

Function at 0x4165d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, ecx
mov ebx, edx
push edi
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, dword [ebp + 8]
mov esi, eax
cmp esi, edi
jl 0x4165f1
lea esi, [edi - 1]
push dword [0x470098]
push 0
push dword [0x470094]
call sub.VCRUNTIME140.dll_memset
push edi
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
push edi
push dword [0x470094]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0
push 0
push esi
push ebx
push esi
push dword [0x470094]
push 0
push 0x4e3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [0x46f978], 1
mov esi, eax
jne 0x416655
push 0
push str.ANSI_
push ebx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x416d1c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x416d3e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x416d40
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x416dc5
jg 0x416d55
test esi, esi
je 0x416dc5
test ecx, ecx
jl 0x416da8
jg 0x416d5f
test eax, eax
je 0x416da8
cmp edi, ecx
jg 0x416d73
jl 0x416d69
cmp esi, eax
jae 0x416d73
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x416dc5
jg 0x416dab
test esi, esi
je 0x416dc5
jmp 0x416dab
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x416dc5
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416de0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x416e04
jl 0x416df8
test esi, esi
jne 0x416e04
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x416e1d
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov ecx, dword [eax]
test ecx, ecx
je 0x416e5b
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x416e5b
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp + 8], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
jmp 0x416e61
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x416ee0
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x416e8a
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [ebp + 8]
cmp edi, 0xfff
jbe 0x416ecc
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x416ef3
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x416ea0
test edx, edx
je 0x416ee0
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x417250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x42400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x417280
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a150
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4172b0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x4172b0
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.0041a150
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x417386
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4172d9
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 0x4172e5
movsx eax, bl
jmp 0x41731d
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 0x417347
sub eax, 1
je 0x417347
sub eax, 2
jne 0x417386
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a150
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x417365
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 0x417386
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x417386
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a150
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.0041a150
mov esp, ebp
pop ebp
ret 4
Function at 0x417f70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42400c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x41802c
cmp byte [esi + 0x3d], 0
je 0x41802c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x41801a
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 0x417fe1
sub eax, 1
je 0x417fe5
sub eax, 2
jne 0x41801a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a150
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x418003
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 0x41801a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a150
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a150
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0041a150
mov esp, ebp
pop ebp
ret
Function at 0x401637
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x402750
call fcn.00401c80
push 1
call fcn.00401377
pop ecx
test al, al
je 0x401793
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00401345
mov byte [ebp - 0x24], al
mov eax, dword [0x4030a8]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x401793
test eax, eax
jne 0x4016c1
mov dword [0x4030a8], ecx
push 0x402128
push 0x40211c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4016a4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40178d
push 0x402118
push 0x40210c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x4030a8], 2
jmp 0x4016c6
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004014e4
pop ecx
call fcn.00401e03
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4016f7
push esi
call fcn.0040145a
pop ecx
test al, al
je 0x4016f7
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call dword [0x402108]
call esi
call fcn.00401e09
mov esi, eax
cmp dword [esi], edi
je 0x401715
push esi
call fcn.0040145a
pop ecx
test al, al
je 0x401715
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00401baa
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00401be0
test al, al
je 0x40179a
test bl, bl
jne 0x401743
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00401501
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x40178d
call fcn.00401cc6
ret
push 7
call fcn.00401a8e
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.00532000
jmp 0x401637
Function at 0x4a8140
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x51f62b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00513fff
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4a81c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00511ba0
mov eax, dword [eax]
push 0x5ccd10
push eax
call fcn.00504534
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0051428a
test bl, bl
je 0x4a81c2
push 0x5ccd10
lea ecx, [esp + 0xc]
call fcn.0051461a
push 0x5ccd1c
lea ecx, [esp + 0xc]
call fcn.0051461a
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4a81fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0051428a
jmp 0x4a82c9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4a8282
lea edx, [esp + 0x7c]
push 0x5ccd18
push edx
call fcn.00504534
add esp, 8
test eax, eax
je 0x4a8282
lea eax, [esp + 0x7c]
push 0x5ccd14
push eax
call fcn.00504534
add esp, 8
test eax, eax
je 0x4a8282
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4a8212
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0051428a
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4a8ac0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4a8b22
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc