joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4031d0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp esi, 1
jle 0x403260
movzx eax, byte [0x404020]
test al, 1
jne 0x403430
xor ebx, ebx
jmp 0x403205
inc ebx
cmp esi, ebx
je 0x40324d
mov edx, eax
and edx, 1
je 0x403200
mov eax, dword [edi + ebx*4]
inc ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], 0x4055ac
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x406624
mov dword [esp + 4], 0x404020
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x404020]
mov edx, eax
and edx, 1
cmp esi, ebx
jne 0x403205
test dl, dl
jne 0x4033f8
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x10], 0
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitialize]
sub esp, 4
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x14]
sub esp, 0x24
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x406594
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x405ce4
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
jne 0x403255
mov dword [esp], 0x4055b2
call dword [sym.imp.oleaut32.dll_SysAllocString]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4033c3
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov edx, dword [eax]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x24
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 4
test esi, esi
jne 0x4033c3
mov ebx, 0x406674
mov esi, 0x406660
mov eax, str.Host_Name
xor edi, edi
jmp 0x403395
mov eax, dword [ebx]
add ebx, 0x14
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
cmp edi, eax
cmovb edi, eax
mov eax, 0x4068b8
cmp eax, ebx
jne 0x403390
inc edi
lea esi, [esi]
mov eax, dword [ebp - 0x10]
mov edx, esi
mov ecx, edi
add esi, 0x14
call sym._output_item
cmp esi, ebx
jne 0x4033b0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4033d5
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x4055b0
mov dword [esp + 8], 0x406624
mov dword [esp + 4], 0x404020
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.stub:
mov dword [esp + 8], 0x406624
mov dword [esp + 4], 0x404020
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x404020]
jmp 0x4031f3
Function at 0x403460
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
Function at 0x409afd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40f3f8
cmp edx, dword [eax]
je 0x409b1f
add eax, 8
inc ecx
cmp eax, 0x40f488
jl 0x409b10
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40f3f8]
jne 0x409c4d
mov eax, dword [0x411fb8]
cmp eax, 1
je 0x409c27
test eax, eax
jne 0x409b50
cmp dword [0x40f328], 1
je 0x409c27
cmp edx, 0xfc
je 0x409c4d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409b87
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a320
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040a4a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x409bca
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040a4a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d5f8
push edi
call sym.__set_sbh_threshold
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a320
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a330
lea eax, [ebp - 0xa0]
push 0x40d5d8
push eax
call fcn.0040a330
push dword [esi + 0x40f3fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a330
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b8d4
add esp, 0x2c
pop edi
jmp 0x409c4d
lea eax, [ebp + 8]
lea esi, [esi + 0x40f3fc]
push 0
push eax
push dword [esi]
call fcn.0040a4a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.UnwindDown2]
pop esi
leave
ret
Function at 0x40c290
Capabilities:
Log keystrokes via application hook

Disassembly:
sub esp, 0x10
push esi
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [sym.imp.F1A0RN63.DLL_Ordinal_10000]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov dword [eax + 0x1b9], ecx
mov edx, dword [sym.imp.F1A0RN63.DLL_Ordinal_10000]
mov dword [edx + 0x80], 0x411e88
mov eax, dword [sym.imp.F1A0RN63.DLL_Ordinal_10000]
add eax, 0xb4
push eax
push esi
call fcn.0040c3d0
add esp, 8
push 0x40f92f
call sub.F1A0RN63.DLL_Ordinal_616
call sub.F1A0RN63.DLL_Ordinal_1412
mov ecx, dword [sym.imp.F1A0RN63.DLL_Ordinal_10000]
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [ecx + 0x8c], esi
jne 0x40c313
push esi
call fcn.0040cbe0
test eax, eax
jne 0x40c313
push 3
call sub.F1A0RN63.DLL_Ordinal_210
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
mov eax, dword [esp + 0x24]
lea edx, [esp + 4]
push edx
push eax
push esi
call sub.F1A0RN63.DLL_Ordinal_7
test eax, eax
jne 0x40c34b
mov ecx, dword [esp + 0xc]
and ecx, 0xffff
push ecx
call sub.F1A0RN63.DLL_Ordinal_203
push eax
call sub.F1A0RN63.DLL_Ordinal_210
call sub.F1A0RN63.DLL_Ordinal_647
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x40c430
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov esi, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x40c9b0
mov dword [0x4126b0], eax
call esi
call fcn.0040cb40
push 0
call sub.F1A0RN63.DLL_Ordinal_310
push 0
call esi
mov eax, dword [0x4126b0]
test eax, eax
je 0x40c393
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov edx, dword [sym.imp.F1A0RN63.DLL_Ordinal_10000]
xor eax, eax
pop esi
mov ax, word [edx + 0x72]
add esp, 0x10
ret 0x10

Function at 0x40cc10
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push str.F1a0dflt
push eax
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], sym.Itaketa.exe__PbMainWndProc
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], eax
call esi
test eax, eax
mov dword [esp + 0x18], eax
jne 0x40cc5e
push 0x7f00
push eax
call esi
mov dword [esp + 0x18], eax
push 4
mov dword [esp + 0x20], 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], str.F1A0CLASS
mov dword [esp + 0x20], eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
neg ax
sbb eax, eax
pop esi
neg eax
add esp, 0x28
ret 4
Function at 0x1001ea7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [0x1003014]
xor ebx, ebx
push 0x80000002
xor edi, edi
mov byte [ebp - 2], bl
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
cmp esi, ebx
jne 0x1001f18
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14c]
push eax
push edi
push dword [ebp - 0xc]
mov dword [ebp - 8], 0x12b
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov esi, eax
inc edi
cmp esi, ebx
je 0x1001f39
cmp esi, 0x6f
je 0x1001ed8
cmp esi, 0xea
je 0x1001ed8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0x103
je 0x1001fd5
push esi
push 0x2728
push 2
call fcn.01001327
add esp, 0xc
jmp 0x1001fe8
cmp dword [ebp - 0x20], 1
jne 0x1001ed8
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ebp + eax - 0x14c], bl
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14c]
push eax
jmp 0x1008a3e
cmp byte [ebp - 1], bl
jne 0x1001fe8
push 0x2729
push 1
call fcn.01001268
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x10027e8
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x1002811
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100280e
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x1002811
or eax, 0xffffffff
ret 4

Function at 0x1006a27
Capabilities:
Encode data using xor

Disassembly:
enter 0, 0
pushal
mov ebx, 0x7fffffff
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, esi
imul eax, edx, 0x10dcd
add eax, 0x116c5
xor edx, edx
div ebx
lodsd eax, dword [esi]
xor eax, edx
stosd dword es:[edi], eax
loop 0x1006a3c
popal
leave
ret 0xc
Function at 0x40679d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4067c2
mov eax, dword [0x40a914]
cmp eax, 0xffffffff
je 0x4067b9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a914], 0xffffffff
jmp 0x406835
cmp dword [0x43baa0], ebx
je 0x406835
cmp byte [0x43b6a0], bl
je 0x406801
cmp dword [0x40a914], 0xffffffff
jne 0x40680a
push 4
push 0x40000000
push 0x43b6a0
call fcn.00406165
cmp eax, 0xffffffff
mov dword [0x40a914], eax
je 0x406835
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a914], 0xffffffff
je 0x406835
push esi
mov esi, 0x43fae0
push 0x40aae8
push esi
call fcn.004064b2
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.004064a5
push eax
push esi
push dword [0x40a914]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4069dd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x43b294], esi
push edi
jne 0x406a17
mov ecx, 0x43b290
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4069f3
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x43b690
jl 0x4069ee
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406a4c
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43b290]
xor eax, esi
inc ecx
dec edx
jne 0x406a2f
pop edi
pop esi
not eax
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
mov ecx, 0x38683ebd
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x5c337822
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a004]
jne 0x40100a
repz ret
jmp fcn.00401587

Function at 0x40444b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44a004]
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.00401e3b
and dword [ebp - 0x14], 0
cmp dword [0x44c9e8], 0
mov dword [ebp - 0x18], eax
jne 0x4044fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4045a6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4045a6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44c9e8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44c9ec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44c9f0], eax
call edi
push eax
call esi
mov dword [0x44c9f8], eax
test eax, eax
je 0x4044fe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44c9f4], eax
mov eax, dword [0x44c9f4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404557
cmp dword [0x44c9f8], ecx
je 0x404557
push eax
call esi
push dword [0x44c9f8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404557
test ebx, ebx
je 0x404557
call edi
test eax, eax
je 0x40454e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40454e
test byte [ebp - 8], 1
jne 0x404557
or dword [ebp + 0x10], 0x200000
jmp 0x40458a
mov eax, dword [0x44c9ec]
cmp eax, dword [ebp - 0x18]
je 0x40458a
push eax
call esi
test eax, eax
je 0x40458a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40458a
mov eax, dword [0x44c9f0]
cmp eax, dword [ebp - 0x18]
je 0x40458a
push eax
call esi
test eax, eax
je 0x40458a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44c9e8]
call esi
test eax, eax
je 0x4045a6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4045a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x4072fe
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x14]
push esi
mov esi, edx
mov dword [ebp - 0x38], ebx
push edi
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
call fcn.00407242
mov edi, dword [ebp - 0x14]
mov eax, dword [esi + 8]
add edi, 0x23f
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], eax
pop esi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ecx, dword [0x1a283a4]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x407386
push 0x4011fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [0x1a283a4]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x1a283e8]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0x1a283e8], eax
mov eax, dword [0x1a283f0]
cmove eax, dword [ebp - 0x24]
mov dword [0x1a283f0], eax
lea eax, [edi + edx]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x1a283ec], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x1c]
sub ebx, eax
mov dword [ebp - 8], eax
mov eax, ebx
mov dword [ebp - 0x1c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
cmp dword [0x1a283a4], 0xb03
jne 0x40745d
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push 0x401200
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x40734e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x38]
pop edi
pop esi
mov dword [ebx], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4074a7
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
shr esi, 3
push edi
mov edi, ecx
test esi, esi
je 0x4074e5
cmp dword [0x1a283a4], 0x959
jne 0x4074d5
push 0
call dword [sym.imp.KERNEL32.dll_AttachConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.004072fe
add edi, 8
dec esi
jne 0x4074b7
pop edi
pop esi
pop ebp
ret 4
Function at 0x410ccf
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x435580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040a8f3
mov dword [ebp - 0x14], eax
cmp dword [0x1a29188], esi
jne 0x410dc2
push 0x800
push esi
push 0x4051cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x410d4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x410ea2
push esi
push esi
push 0x4051cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x410ea2
push 0x4051e4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410ea2
push eax
call ebx
push 0x4051f0
push edi
mov dword [0x1a29188], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405200
push edi
mov dword [0x1a2918c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405214
push edi
mov dword [0x1a29190], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1a29198], eax
test eax, eax
je 0x410dbf
push 0x405230
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1a29194], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x410de7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410dda
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x410dfc
push 4
pop eax
jmp 0x410ea4
cmp dword [ebp - 0x14], esi
je 0x410dfc
push dword [0x1a29188]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x410de1
mov eax, dword [0x1a29194]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x410e5a
cmp dword [0x1a29198], edi
je 0x410e5a
push eax
call ebx
push dword [0x1a29198]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x410e5a
test eax, eax
je 0x410e5a
call ecx
test eax, eax
je 0x410e4f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x410e4f
test byte [ebp - 8], 1
jne 0x410e5a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x410e8a
mov eax, dword [0x1a2918c]
cmp eax, edi
je 0x410e87
push eax
call ebx
test eax, eax
je 0x410e87
call eax
mov esi, eax
test esi, esi
je 0x410e87
mov eax, dword [0x1a29190]
cmp eax, edi
je 0x410e87
push eax
call ebx
test eax, eax
je 0x410e87
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1a29188]
call ebx
test eax, eax
je 0x410ea2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x410ea4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409e9e
mov esp, ebp
pop ebp
ret
Function at 0x402b24
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40900c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402bbc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402b9c
xor eax, eax
push ebp
push 0x402b95
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402bd8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402b9c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40900c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40900c], ax
mov esp, ebp
pop ebp
ret

Function at 0x403224
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a034], 0
je 0x403285
cmp word [0x40a208], 0xd7b2
jne 0x40324d
cmp dword [0x40a210], 0
jbe 0x40324d
mov eax, 0x40a204
call dword [0x40a220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x409054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4032ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409018], 0
jne 0x4032a1
push 0
push 0x40904c
push 0x409054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40391c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403982
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403508
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004029b8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40396c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403989
lea eax, [ebp - 0x10]
call fcn.004033a8
ret

Function at 0x40444c
Capabilities:
Accept command line arguments

Disassembly:
push edi
mov edi, edx
test eax, eax
jne 0x40447a
sub esp, 0x104
mov ecx, esp
push 0x104
push ecx
push 0
call sub.kernel32.dll_GetModuleFileNameA
xchg ecx, eax
mov edx, esp
mov eax, edi
call fcn.00403498
add esp, 0x104
pop edi
ret
push eax
call sub.kernel32.dll_GetCommandLineA_1
pop ecx
inc ecx
call fcn.00406434
mov edx, eax
call fcn.00406444
loop 0x404482
mov ecx, eax
sub ecx, edx
cmp ecx, 2
jl 0x4044a6
cmp byte [edx], 0x22
jne 0x4044a6
cmp byte [eax - 1], 0x22
jne 0x4044a6
inc edx
dec eax
sub eax, edx
xchg ecx, eax
xchg edi, eax
call fcn.00403498
pop edi
ret