joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401cd6
Capabilities:
Clear file content
Get common file path

Disassembly:
sub esp, 0x400
push esi
xor esi, esi
cmp dword [0x2458274], 0x400
push edi
jne 0x401d36
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
push esi
call fcn.004043d7
push esi
call fcn.00404261
push esi
push esi
call fcn.00404397
push esi
call fcn.00404ab8
push esi
push esi
call fcn.00404903
push esi
call fcn.00404b6e
push esi
push esi
call fcn.0040429b
add esp, 0x28
xor edi, edi
cmp edi, 0x16c76
jge 0x401d48
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e5c52
jg 0x401d6e
inc edi
cmp edi, 0x3003f
jl 0x401d38
mov eax, dword [0x43ab7c]
mov dword [0x2458274], eax
call fcn.004019f0
mov edi, 0x3078f
cmp dword [0x2458274], 0x51f
jne 0x401d9a
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x401d82
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x40286d
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x43288d
call fcn.00432710
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00403543
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.00404b7d
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x4028b5
call fcn.004032f7
mov dword [ebx], eax
call fcn.004030b6
mov ecx, eax
call fcn.004011a5
mov eax, ebx
jmp 0x4028b7
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x405205
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43999c]
jne 0x40520f
repz ret
jmp fcn.0040bb3c
Function at 0x4103ae
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43999c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00407417
and dword [ebp - 0x14], 0
cmp dword [0x445b2c], 0
mov dword [ebp - 0x18], eax
jne 0x410461
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x410509
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x410509
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x445b2c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x445b30], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x445b34], eax
call edi
push eax
call esi
mov dword [0x445b3c], eax
test eax, eax
je 0x410461
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x445b38], eax
mov eax, dword [0x445b38]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4104ba
cmp dword [0x445b3c], ecx
je 0x4104ba
push eax
call esi
push dword [0x445b3c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4104ba
test ebx, ebx
je 0x4104ba
call edi
test eax, eax
je 0x4104b1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4104b1
test byte [ebp - 8], 1
jne 0x4104ba
or dword [ebp + 0x10], 0x200000
jmp 0x4104ed
mov eax, dword [0x445b30]
cmp eax, dword [ebp - 0x18]
je 0x4104ed
push eax
call esi
test eax, eax
je 0x4104ed
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4104ed
mov eax, dword [0x445b34]
cmp eax, dword [ebp - 0x18]
je 0x4104ed
push eax
call esi
test eax, eax
je 0x4104ed
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x445b2c]
call esi
test eax, eax
je 0x410509
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41050b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405205
leave
ret
Function at 0x402250
Capabilities:
Copy file
Delete file
Print debug messages
Write file on windows

Disassembly:
mov eax, 0x1114
call fcn.0040ea90
mov eax, dword [0x412588]
push ebp
push esi
mov esi, dword [esp + 0x1120]
cmp esi, eax
push edi
jb 0x402449
mov eax, dword [esp + 0x1128]
test eax, eax
je 0x402449
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x20]
cmp esi, 8
rep stosd dword es:[edi], eax
mov ecx, 0x240
lea edi, [esp + 0x820]
rep stosd dword es:[edi], eax
jbe 0x4022a2
xor esi, esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1a]
mov eax, dword [esp + 0x18]
push str.GWCLI
shl esi, 4
add esi, 0x412590
and ecx, 0xffff
push esi
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x22]
push edx
mov edx, dword [esp + 0x22]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
push str.__02d__02d__02d:_02d:_02d___s___s_
lea eax, [esp + 0x40]
push 0x800
push eax
call fcn.00402460
mov edx, dword [esp + 0x1150]
lea ecx, [esp + 0x1154]
push ecx
push edx
lea eax, [esp + 0x850]
push 0x800
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
mov esi, dword [sym.imp.MSVCRT.dll_strncat]
lea ecx, [esp + 0x858]
push 0x7ff
lea edx, [esp + 0x5c]
push ecx
push edx
call esi
add esp, 0x44
lea eax, [esp + 0x20]
mov byte [esp + 0x81f], 0
push 0x412688
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
push 0x7ff
lea ecx, [esp + 0x24]
push 0x41268c
push ecx
call esi
mov al, byte [0x41258c]
add esp, 0xc
test al, 1
mov byte [esp + 0x81f], 0
je 0x40238e
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [0x41258c], 2
je 0x402449
xor ebp, ebp
push ebp
push 0x80
push 4
push ebp
push ebp
push 0x40000000
push str.c:gwlog.txt
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402449
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebp
push ebp
push esi
call edi
cmp eax, 0x400000
jbe 0x4023df
mov ebp, 1
push 2
push 0
push 0
push esi
call edi
cmp eax, 0x500000
jbe 0x4023ff
push 0
push 0
push 0
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [esp + 0xc]
push 0
push eax
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x402449
push 0
push str.c:gwlogbk.txt
push str.c:gwlog.txt
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push str.c:gwlog.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
add esp, 0x1114
ret

Function at 0x4024a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
add esp, 0x190
ret
Function at 0x402b30
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi]
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
call dword [eax + 0x1c]
test eax, eax
jne 0x402c07
cmp dword [esi + 0x10], 0xffffffff
je 0x402c07
mov ecx, dword [esi + 8]
push ebx
mov dword [esi + 0x54], edi
call fcn.00401a50
mov ecx, dword [esi + 8]
mov ebx, eax
call fcn.004016a0
mov ecx, dword [esi + 8]
add ebx, eax
mov dword [esp + 0x18], ebx
call fcn.004016a0
mov ecx, dword [esi + 8]
mov ebx, eax
call fcn.004015a0
sub eax, ebx
lea ecx, [esi + 0x14]
mov dword [esp + 0x14], eax
push edi
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
mov edx, dword [esi + 0x10]
push eax
lea ecx, [esp + 0x24]
push 1
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
xor ecx, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
cmp eax, 0xffffffff
setne cl
mov eax, ecx
cmp eax, edi
mov dword [esi + 0x50], eax
je 0x402bd6
mov edx, dword [esp + 0xc]
mov ecx, dword [esi + 8]
push edx
call fcn.00401720
mov eax, dword [esi + 0x24]
push eax
call ebx
cmp dword [esi + 0x50], edi
jne 0x402bfc
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x3e5
je 0x402bfc
mov dword [esi + 0xc], 1
call edi
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x54], eax
push ecx
call ebx
mov eax, dword [esp + 0xc]
pop ebx
pop edi
pop esi
add esp, 0x10
ret
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
Function at 0x402d60
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov dword [esp + 8], 0
mov eax, dword [esi]
call dword [eax + 0x1c]
test eax, eax
jne 0x402e75
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x402e75
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
lea edi, [esi + 0x14]
mov dword [esp + 0x10], edx
push 0
lea ecx, [esp + 0x10]
push edi
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x20]
push 1
push ecx
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
je 0x402dd9
mov edx, dword [esi + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x10
ret 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x402e04
mov edx, dword [esi + 0x24]
mov dword [esp + 8], 0xfffffffe
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x10
ret 0xc
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402e3c
cmp eax, 0x102
jne 0x402e5f
mov edx, dword [esi + 0x24]
mov dword [esp + 8], 0xfffffffc
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x10
ret 0xc
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push 0
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x402e5f
mov dword [esp + 8], 0xfffffffd
mov edx, dword [esi + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x10
ret 0xc
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret 0xc
Function at 0x402e80
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x20]
mov dword [esp + 8], 0
test eax, eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
je 0x402f93
test ecx, ecx
jbe 0x402f93
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x402f93
test eax, eax
je 0x402f93
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x402edf
pop edi
mov eax, 0xfffffffe
pop esi
add esp, 0x10
ret 0xc
lea edi, [esi + 0x28]
push 0
push edi
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x20]
push 1
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x402f64
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x402f1d
mov dword [esi + 0xc], 1
mov dword [esp + 8], 0xfffffffe
jmp 0x402f64
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402f41
cmp eax, 0x102
jne 0x402f64
mov dword [esp + 8], 0xfffffffc
jmp 0x402f64
mov edx, dword [esi + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push 0
push ecx
push edi
push edx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x402f64
mov dword [esp + 8], 0xfffffffd
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 8]
test ecx, ecx
jle 0x402f89
mov edi, dword [esi + 0x48]
mov eax, ecx
cdq
add edi, eax
mov dword [esi + 0x48], edi
mov eax, dword [esi + 0x4c]
adc eax, edx
mov dword [esi + 0x4c], eax
pop edi
mov eax, ecx
pop esi
add esp, 0x10
ret 0xc
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret 0xc

Function at 0x404d30
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
push 0
push 0
push 0x64
push 0xc8
push 0
push closesocket
push 0xcf0000
push 0x415a24
push 0x415a88
push 0
mov dword [0x415a20], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x415a1c], eax
jne 0x404d6f
ret
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
call fcn.004054a0
mov eax, dword [0x415a1c]
add esp, 4
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
ret

Function at 0x4054a0
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x1e8
push edi
mov ecx, 0x7a
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [0x415a20]
mov eax, dword [0x415a1c]
push 0x6c
push ecx
mov dword [esp + 0xc], 0x1e8
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1f0]
test eax, eax
mov dword [esp + 0x10], 7
mov dword [esp + 0x14], 0x401
mov byte [esp + 0x1c], 0
pop edi
jne 0x40550d
lea edx, [esp]
push edx
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
add esp, 0x1e8
ret
lea eax, [esp]
push eax
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
add esp, 0x1e8
ret
Function at 0x405d00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea edx, [esp]
push eax
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405d41
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
mov dword [ecx], edx
add esp, 8
ret 8

Function at 0x405d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x18], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop ecx
ret 8

Function at 0x405f00
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x120
lea ecx, [esp + 8]
push ebx
push ebp
push esi
push edi
call fcn.00405b70
mov edi, dword [esp + 0x13c]
mov esi, 0x10008
test edi, edi
je 0x405f28
mov esi, 0x10108
mov ebx, dword [esp + 0x138]
test ebx, ebx
jne 0x405f4c
lea ecx, [esp + 0x18]
call fcn.00405b80
pop edi
pop esi
pop ebp
mov eax, 0x3f2
pop ebx
add esp, 0x120
ret
mov ebp, dword [esp + 0x134]
push edi
push ebx
push ebp
call fcn.00406030
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push esi
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40600f
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x40]
push ecx
push edx
push 0
push eax
mov dword [esp + 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
je 0x405fc8
test esi, esi
jne 0x406004
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push edi
push ecx
push edx
call fcn.00405f00
mov esi, eax
add esp, 0xc
test esi, esi
je 0x405f78
jmp 0x406004
lea ecx, [esp + 0x24]
call fcn.00405b70
push edi
push ebx
push ebp
call fcn.00406030
add esp, 0xc
test edi, edi
je 0x405ff1
push edi
push ebx
push ebp
call fcn.00405e90
mov esi, eax
add esp, 0xc
test esi, esi
je 0x405ffb
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
lea ecx, [esp + 0x24]
call fcn.00405b80
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.00405b80
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
Function at 0x406610
Capabilities:
Get common file path

Disassembly:
call fcn.004024a0
jmp 0x408110
sub esp, 0x3a0
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], bl
mov byte [esp + 0x1a0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1a1]
mov byte [esp + 0x2a4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2a5]
push 0x415e20
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.00408360
test eax, eax
je 0x408180
mov dword [0x415e40], 1
lea eax, [esp + 0x10c]
mov dword [esp + 0x10c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 0x2a4]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call fcn.004080d0
test eax, eax
mov ecx, str.syswow64
jne 0x4081bf
mov ecx, str.system32
mov al, byte [esp + 0x2a4]
cmp al, bl
jne 0x4081cc
mov al, 0x43
movsx edx, al
push ecx
push str.Windows
push edx
lea eax, [esp + 0x1ac]
push str._c:_s_sSecur32.dll
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x130]
add esp, 0x14
cmp eax, 2
jne 0x40822d
cmp dword [esp + 0x110], 4
jne 0x40823d
lea ecx, [esp + 0x1a0]
push 0x103
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [esp + 0x14]
mov byte [esp + 0x117], bl
push eax
push 0x41319c
jmp 0x408266
cmp eax, 1
je 0x40823d
pop edi
xor eax, eax
pop ebx
add esp, 0x3a0
ret
lea ecx, [esp + 0x1a0]
push 0x103
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [esp + 0x14]
mov byte [esp + 0x117], bl
push eax
push str.Load_SSPI_library__s_.
push 2
call fcn.00402250
add esp, 0x18
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x415e38], eax
jne 0x4082aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 8]
push eax
push edx
push str.Load_SSPI_library__s__Error__d_.
push 8
call fcn.00402250
add esp, 0x10
xor eax, eax
pop edi
pop ebx
add esp, 0x3a0
ret
push str.InitSecurityInterfaceA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x4082c5
pop edi
xor eax, eax
pop ebx
add esp, 0x3a0
ret
call eax
cmp eax, ebx
mov dword [0x415e3c], eax
jne 0x4082f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.reading_security_interface_Error_0x_x_.
push 8
call fcn.00402250
add esp, 0xc
xor eax, eax
pop edi
pop ebx
add esp, 0x3a0
ret
pop edi
mov eax, 1
pop ebx
add esp, 0x3a0
ret
Function at 0x408360
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc0
lea eax, [esp + 0x9c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0xb4], 1
je 0x4083fa
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
mov dword [esp + 8], 0x9c
push ecx
call esi
test eax, eax
pop edi
jne 0x4083c3
lea edx, [esp + 4]
mov dword [esp + 4], 0x94
push edx
call esi
mov eax, 1
pop esi
add esp, 0xc0
ret
mov eax, dword [esp + 0x14]
mov ecx, 2
cmp eax, ecx
jne 0x4083fa
mov eax, dword [esp + 8]
cmp eax, 5
jb 0x4083fa
jne 0x4083fa
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4083fa
cmp word [esp + 0x98], cx
jae 0x4083fa
mov eax, 1
pop esi
add esp, 0xc0
ret
xor eax, eax
pop esi
add esp, 0xc0
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x401040
Capabilities:
Execute command

Disassembly:
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004010a0
push 0
push 4
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocExNuma]
push eax
push str.lpBuf_is_0x_08x_n
call fcn.00401010
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_FlsAlloc]
push eax
push str.dwRet_is_0x_08x_n
call fcn.00401010
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 0xc
xor eax, eax
ret
Function at 0x41eb56
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c5e8
push 0x42c5e0
push str.FlsAlloc
push 0x1e
call fcn.0041e9f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41eb8a
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281d0]
call esi
jmp 0x41eb90
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ebd4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c5f8
push 0x42c5f0
push str.FlsGetValue
push 0x20
call fcn.0041e9f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ec0b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]