joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d9da0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0f14
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x6089a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push esi
jne 0x4d9e1e
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
push str._ERR___s_dont_exists__n
push 4
push 0x5c3e30
push 0x59
push 0x5c3e74
mov edx, 0x5c3f9c
call fcn.004019d0
add esp, 0x18
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
call fcn.004b1760
add esp, 4
test eax, eax
je 0x4d9e52
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push esi
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
push str._ERR___s_is_a_folder__n
push 4
push str.CQMCTranscodingPage::AddFileTail
push 0x5f
push str..QMCTranscodingPageCommon.cpp
jmp 0x4d9df9
mov ecx, dword [edi + 8]
lea edx, [ebp + 8]
mov dword [ebp + 8], 0
mov eax, dword [ecx]
mov eax, dword [eax]
push edx
push esi
call eax
test eax, eax
jne 0x4d9f2f
mov ecx, dword [0x626520]
mov edx, dword [ecx + 0xc8]
push eax
push eax
push 0x1004
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x5c3f6c
lea ecx, [ebp - 0x10]
mov esi, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x626520]
mov ecx, esi
call fcn.004bbfd0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
lea eax, [ebp - 0x14]
push eax
call edx
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov ecx, dword [0x626520]
push 0
push eax
push esi
add ecx, 0xa8
mov eax, 1
call fcn.004b8cc0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x44]
call edx
push esi
mov ecx, eax
call fcn.004db880
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x48]
xor edi, edi
call edx
test eax, eax
je 0x4d9f12
mov edi, 1
mov ecx, dword [0x626520]
mov eax, dword [ecx]
mov edx, dword [eax + 0x198]
push edi
push esi
call edx
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4da200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a5820
Function at 0x4e4440
Capabilities:
Accept command line arguments
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea99d
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x6089a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
xor eax, eax
mov dword [ebp - 4], eax
or ecx, 0xffffffff
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 1
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4e51f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0196
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x6089a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
lea edi, [esi + 4]
push edi
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x4e5274
lea eax, [ebp - 0x18]
push eax
push 0x5d38a0
push str.logic.cmdline.details
push 2
push 0x5ad418
push 0x2e
push 0x5ad458
mov dword [ebp - 0x18], str._ERR__tFailed_to_CommandLineToArgvW__._n
call fcn.00401650
add esp, 0x1c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 1
cmp dword [edi], ebx
jle 0x4e52f2
lea ecx, [ecx]
mov ecx, dword [eax + ebx*4]
push ecx
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
push ecx
lea edx, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
push str.About_to_parse_Arg_s_n
push 2
push str.CQMCCmdLineParser::ParseCmdLine
push 0x36
push 0x5ad4f8
mov edx, str.logic.cmdline.details
call fcn.004019d0
add esp, 0x18
lea edi, [ebp - 0x10]
call fcn.004e4f40
test eax, eax
je 0x4e52d7
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [ebp - 0x14]
add ebx, 1
cmp ebx, dword [esi + 4]
jl 0x4e5280
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e5a90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x108]
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [ebx + 0xec], edi
je 0x4e5ad1
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
push eax
call edx
mov eax, dword [ebx + 0x108]
cmp eax, edi
je 0x4e5ad1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebx + 0x108], edi
push ebx
lea esi, [esp + 0x10]
call fcn.004e5540
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [ebx + 0xe4]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [esp + 0xc]
push eax
push edi
call edx
test eax, eax
je 0x4e5bf9
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ecx]
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x40]
push 5
call edx
mov esi, dword [0x6265b4]
add esi, 0xa8
test edi, edi
jl 0x4e5bd5
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x1004
push eax
call ebx
cmp edi, eax
jge 0x4e5bd5
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_2788
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x1200
push ecx
call ebx
test eax, eax
jle 0x4e5bd5
push edi
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_2860
test eax, eax
je 0x4e5b86
mov dword [eax + 8], 4
mov dword [eax + 0xac], 0xffffffff
mov dword [eax + 0x14], 0
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x1004
push edx
call ebx
cmp edi, eax
jge 0x4e5bd5
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_2788
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x1200
push eax
call ebx
test eax, eax
jle 0x4e5bd5
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push edi
mov ecx, esi
call fcn.004b8400
mov eax, dword [esi + 0x20]
push 1
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xe4]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [esp + 0xc]
push eax
add edi, 1
push edi
call edx
test eax, eax
jne 0x4e5b10
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0xe4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
call fcn.004b63d0
test eax, eax
je 0x4e5c21
call fcn.004b71f0
test eax, eax
je 0x4e5c21
push eax
call fcn.004b6f10
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x60a4364
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7eb259e1
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x75c9271f
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x45fb3b17
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x403054
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404790
test esi, esi
jne 0x40308a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404880
jmp 0x4030a8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402f58
mov edi, eax
test esi, esi
je 0x4030a8
cmp dword [ebx], 0
je 0x4030a8
dec esi
jmp 0x403091
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030dc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40d008], 0x8088405
inc edx
mov dword [ebx + 0x40d008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403b58
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40d01c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403bf0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403bd0
xor eax, eax
push ebp
push 0x403bc9
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 0x403c0c
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 0x403bd0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x40d01c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40d01c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404610
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40e044], 0
je 0x404671
cmp word [0x40e218], 0xd7b2
jne 0x404639
cmp dword [0x40e220], 0
jbe 0x404639
mov eax, 0x40e214
call dword [0x40e230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404698
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40d028], 0
jne 0x40468d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405704
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405934
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405787
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405934
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405787
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405950
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405810
xor eax, eax
push ebp
push 0x405809
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405540
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4057ee
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405970
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4057ee
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405810
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40592a
cmp byte [ebp - 0xd], 0
jne 0x405857
cmp byte [ebp - 0x12], 0
je 0x40592a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405870
dec ebx
cmp byte [ebx], 0x2e
je 0x40587f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40586f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40592a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4058bc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40592a
cmp byte [ebp - 0xd], 0
je 0x40592a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40592a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405810
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405934
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405787
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405934
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405787
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405950
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405810
xor eax, eax
push ebp
push 0x405809
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405540
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4057ee
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405970
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4057ee
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405810
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40592a
cmp byte [ebp - 0xd], 0
jne 0x405857
cmp byte [ebp - 0x12], 0
je 0x40592a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405870
dec ebx
cmp byte [ebx], 0x2e
je 0x40587f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40586f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40592a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4058bc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40592a
cmp byte [ebp - 0xd], 0
je 0x40592a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40592a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4078b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4078e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404880
jmp 0x4078f2
mov eax, ebx
mov edx, esi
call fcn.004047e4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4078fc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40791e
movzx eax, byte [esp]
jmp 0x407920
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x407fb0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x407e28
mov eax, dword [0x40daac]
cmp byte [eax], 0
je 0x40802c
mov eax, dword [0x40da08]
call fcn.00403464
call fcn.00402e08
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00406d70
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x408074
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x408062
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40d9e8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4107f0]
call fcn.004054e8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x4090f0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404790
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00404be0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x409135
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404880
jmp 0x40914e
mov edx, ebx
dec edx
mov eax, esi
call fcn.00404dc4
push ebx
mov eax, dword [esi]
call fcn.00404be0
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40a8ac
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp + 8]
call fcn.00404bd0
xor eax, eax
push ebp
push 0x40a93d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push 0x2001b
push 0
push edi
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40a927
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40a8f6
sub ebx, 4
mov ebx, dword [ebx]
mov eax, ebx
add eax, eax
push eax
mov eax, dword [ebp + 8]
call fcn.00404be0
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete al
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a944
lea eax, [ebp + 8]
call fcn.00404790
ret

Function at 0x40a950
Capabilities:
Copy file
Create process on windows
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bd0
mov eax, dword [ebp - 8]
call fcn.00404bd0
xor eax, eax
push ebp
push 0x40aa31
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00403054
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00404b78
je 0x40a9d3
push 0
mov eax, dword [ebp - 4]
call fcn.00404be0
mov ebx, eax
push ebx
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00403054
mov eax, dword [ebp - 0x10]
call fcn.00404be0
push eax
call sub.kernel32.dll_CopyFileA
push 1
push 0
push 0
push ebx
push 0
push 0
call sub.shell32.dll_ShellExecuteA
push 0
call sub.kernel32.dll_ExitProcess_1
push 1
push 0x40aa48
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00403054
push dword [ebp - 0x18]
push 0x40aa48
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404ae4
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
call fcn.00404be0
mov ecx, eax
mov edx, 0x40aa4c
mov eax, 0x80000001
call fcn.0040a8ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aa38
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004047b4
ret