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

Disassembly:
mov al, byte [esp + 0x14]
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, ecx
push esi
push 0
push ebp
mov dword [ebx + 8], ebp
mov byte [ebx + 0x26], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x20]
mov ecx, ebx
call fcn.0040e6e4
cmp dword [ebx + 0x1c], 0
je 0x40e9ee
push dword [ebx + 0x1c]
call fcn.0041869e
pop ecx
cmp dword [esp + 0x28], 0
jne 0x40e9f9
xor eax, eax
jmp 0x40ea03
push dword [esp + 0x28]
call fcn.0041c1d6
pop ecx
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x20], eax
lea eax, [esp + 0xc]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
cmp dword [ebx + 4], 0
je 0x40ea3f
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
push edi
push ebx
push dword [ebx]
sub esi, eax
lea edi, [eax + 1]
push 0
push ebp
sub esi, 2
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
push esi
push dword [esp + 0x2c]
xor esi, esi
push edi
push 0x40000000
push esi
push 0x4281f0
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 4], eax
pop edi
cmp dword [ebx + 0x10], esi
jne 0x40eac1
test ebp, ebp
je 0x40ead7
cmp dword [ebx + 0x20], esi
jne 0x40ead7
cmp dword [ebx + 0x1c], esi
je 0x40ead7
push dword [ebx + 0x1c]
mov ecx, ebx
call fcn.0040e7dc
mov esi, eax
test esi, esi
je 0x40ead7
push 5
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0041869e
pop ecx
jmp 0x40ead7
test eax, eax
je 0x40ead7
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14
Function at 0x40ef4c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x42909c
push 1
push ebx
push 0x42918c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40f081
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push esi
push ecx
push 0x42917c
mov esi, dword [eax]
push eax
mov ecx, dword [esi]
call dword [0x427220]
call dword [esi]
test eax, eax
js 0x40f06d
cmp byte [ebp + 8], bl
je 0x40efb2
mov eax, dword [ebp - 8]
push 2
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x427220]
call esi
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x427220]
call esi
cmp dword [ebp + 0x18], ebx
je 0x40efe3
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x427220]
call esi
mov eax, dword [ebp - 4]
push ebx
mov ecx, dword [eax]
mov esi, dword [ecx + 0x44]
mov ecx, esi
cmp dword [ebp + 0x1c], ebx
jne 0x40effa
push 0x427544
jmp 0x40effd
push dword [ebp + 0x1c]
push eax
call dword [0x427220]
call esi
cmp dword [ebp + 0x20], ebx
je 0x40f021
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x2c]
mov ecx, esi
call dword [0x427220]
call esi
cmp dword [ebp + 0x14], ebx
je 0x40f03c
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x427220]
call esi
mov eax, dword [ebp - 8]
push 1
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x427220]
call esi
test eax, eax
js 0x40f05a
mov bl, 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x427220]
call esi
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x427220]
call esi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x40f158
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x40f19a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push esi
push 0x428404
push dword [esp + 0x14]
push dword [0x44ca3c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40f2ad
push edi
push esi
push dword [0x44ca3c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40f1ee
push esi
push dword [0x44ca3c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40f1ee
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40f1f5
xor eax, eax
jmp 0x40f2ac
push ebx
push ebp
push edi
xor ebp, ebp
push 2
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x40f2a6
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40f29f
push edi
push esi
push eax
call fcn.00414c60
add esp, 0xc
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40f298
push ebp
push dword [esp + 0x14]
call fcn.0040f12f
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x427220]
call esi
test edi, edi
je 0x40f298
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
test eax, eax
jne 0x40f286
push 0xffffff
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x40f286
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x427220]
mov ecx, edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 4

Function at 0x40f7fe
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00413370
cmp word [0x44da6a], 0
je 0x40f89a
push esi
push 6
push dword [0x4314e8]
mov esi, 0x44da6a
push esi
call fcn.004036c4
push eax
call fcn.00407b9e
test eax, eax
jne 0x40f899
push 0x44ca68
call fcn.0040f6a0
push 0x800
push esi
lea eax, [ebp - 0x1024]
push eax
call fcn.0040674f
lea eax, [ebp - 0x1024]
push eax
call fcn.00418683
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x1022], cx
lea eax, [ebp - 0x20]
push eax
call fcn.00414440
add esp, 0x10
mov dword [ebp - 0x1c], 3
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f8f6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x431500], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x40f941
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x463318], ax
xor eax, eax
mov word [0x46331a], ax
mov dword [0x431500], 0x463318
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040661e
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x4314f0
mov word [edi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
mov word [edi + esi*2 - 2], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40fba9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.00413370
cmp byte [0x44ea70], 0
je 0x40fc57
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.00411070
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40fc57
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1000
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40fc4e
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x40fc32
mov eax, ecx
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040674f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x40fd06
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.00413370
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x40fd21
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x40fd2e
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x40fdf1
movzx eax, word [esi]
test ax, ax
je 0x40fdf1
push ebp
mov ebp, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
mov dword [esp + 0x10], ebx
movzx eax, ax
add esi, 2
cmp eax, 0x3d
jne 0x40fd7b
test edi, edi
je 0x40fd85
test ebx, ebx
jne 0x40fd85
test ecx, ecx
je 0x40fd77
mov byte [ecx], 1
mov ebx, ebp
jmp 0x40fd9c
cmp eax, 0xd
je 0x40fdaf
cmp eax, 0xa
je 0x40fdb2
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0x40fdaa
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0x40fd5d
jmp 0x40fdb2
mov byte [edx], 1
jmp 0x40fdb2
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0x40fdeb
mov word [edi], ax
test ebx, ebx
je 0x40fdeb
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esp + 0x202c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0040674f
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x40fdf3
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0x40fdfe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov ebx, eax
neg ebx
sbb bl, bl
add bl, 1
je 0x40fe59
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
dec eax
neg eax
sbb al, al
lea ebx, [eax + 1]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x427220]
call esi
pop esi
jmp 0x40fe61
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x412291
Capabilities:
Hide graphical window

Disassembly:
and dword [0x44ca38], 0
push 1
push dword [esp + 8]
mov byte [0x44ca35], 1
mov byte [0x44ca36], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.00401197
cmp dword [0x44ca48], 0
jne 0x4122d1
cmp byte [0x44ca63], 0
je 0x4122da
cmp dword [0x44ca5c], 0
jne 0x4122ed
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x4123c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00413370
cmp byte [0x44ea70], 0
je 0x41244f
cmp word [0x44ea72], 0
je 0x41244f
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x44ea72
call fcn.00411070
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41244e
push dword [ebp + 8]
call fcn.00418683
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x412455
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00413370
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.00406493
mov esi, eax
test esi, esi
je 0x4124ad
movzx ecx, word [esi]
push ecx
jmp 0x412498
add esi, 2
movzx eax, word [esi]
push eax
call fcn.004065ac
test al, al
jne 0x412491
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x403600
Capabilities:
Create pipe
Create process on windows
Get thread local storage value
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x140c
call fcn.00410190
mov eax, dword [0x48f9f4]
mov ecx, dword [0x48f484]
push ebx
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x403723
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x48f9f4], 0x959
jne 0x40370c
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0x1408]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00403340
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x40363e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4052e0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x480168]
jne 0x4052ea
repz ret
jmp fcn.00409c2c

Function at 0x40a36e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004088a0
and dword [ebp - 4], 0
cmp dword [0x4869b0], 0
mov ebx, eax
jne 0x40a41f
push 0x401ae8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a4d0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401adc
push edi
call esi
test eax, eax
je 0x40a4d0
push eax
call fcn.0040882e
mov dword [esp], 0x401acc
push edi
mov dword [0x4869b0], eax
call esi
push eax
call fcn.0040882e
mov dword [esp], 0x401ab8
push edi
mov dword [0x4869b4], eax
call esi
push eax
call fcn.0040882e
mov dword [esp], 0x401a9c
push edi
mov dword [0x4869b8], eax
call esi
push eax
call fcn.0040882e
pop ecx
mov dword [0x4869c0], eax
test eax, eax
je 0x40a41f
push 0x401a84
push edi
call esi
push eax
call fcn.0040882e
pop ecx
mov dword [0x4869bc], eax
mov eax, dword [0x4869bc]
cmp eax, ebx
je 0x40a477
cmp dword [0x4869c0], ebx
je 0x40a477
push eax
call fcn.004088a9
push dword [0x4869c0]
mov esi, eax
call fcn.004088a9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a477
test edi, edi
je 0x40a477
call esi
test eax, eax
je 0x40a46e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a46e
test byte [ebp - 0xc], 1
jne 0x40a477
or dword [ebp + 0x10], 0x200000
jmp 0x40a4b0
mov eax, dword [0x4869b4]
cmp eax, ebx
je 0x40a4b0
push eax
call fcn.004088a9
pop ecx
test eax, eax
je 0x40a4b0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a4b0
mov eax, dword [0x4869b8]
cmp eax, ebx
je 0x40a4b0
push eax
call fcn.004088a9
pop ecx
test eax, eax
je 0x40a4b0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4869b0]
call fcn.004088a9
pop ecx
test eax, eax
je 0x40a4d0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a4d2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4026d0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4026ff
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403238
jmp 0x40271d
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402658
mov edi, eax
test ebx, ebx
je 0x40271d
cmp dword [esi], 0
je 0x40271d
dec ebx
jmp 0x402706
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402818
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4027f8
xor eax, eax
push ebp
push 0x4027f1
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 0x402834
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 0x4027f8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x403b1c
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 0xf003f
push 0
push 0x403cd8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403b7d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x403cf4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403bef
xor eax, eax
push ebp
push 0x403be8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00403974
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403bd1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x403d14
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403bef
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x403cd0
cmp byte [ebp - 0xd], 0
jne 0x403c31
cmp byte [ebp - 0x12], 0
je 0x403cd0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x403c4a
dec ebx
cmp byte [ebx], 0x2e
je 0x403c59
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x403c49
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x403cd0
inc ebx
cmp byte [ebp - 0x12], 0
je 0x403c86
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403cd0
cmp byte [ebp - 0xd], 0
je 0x403cd0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403cd0
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x407b54
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
mov ebx, 0x406318
push esp
push 4
push 0x17dc
push ebx
call sub.kernel32.dll_VirtualProtect
cmp ebx, fcn.00407b54
je 0x407b7d
xor byte [ebx], 0x17
inc ebx
cmp ebx, fcn.00407b54
jne 0x407b71
pop edx
pop ebx
ret
Function at 0x407be8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x407bf0
push ebx
push esi
push edi
mov eax, 0x407ba8
call fcn.004046b0
xor eax, eax
push ebp
push 0x407deb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x407dbf
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00407b54
call fcn.00406668
call fcn.00407950
call fcn.00406f08
lea eax, [ebp - 0x10]
call int.004063c0
cmp dword [ebp - 0x10], 0
je 0x407ccc
lea eax, [ebp - 0x14]
call int.004063c0
mov eax, dword [ebp - 0x14]
call fcn.004065a0
cmp al, 1
jne 0x407ccc
lea eax, [ebp - 0x18]
call int.004063c0
mov eax, dword [ebp - 0x18]
call fcn.004066f4
cmp al, 1
jne 0x407ccc
lea eax, [ebp - 0x1c]
call int.004063c0
mov eax, dword [ebp - 0x1c]
call fcn.00406514
cmp al, 1
jne 0x407ccc
lea eax, [ebp - 0x20]
call int.004063c0
mov eax, dword [ebp - 0x20]
call fcn.00406e34
lea eax, [ebp - 0x24]
call int.004063c0
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
call int.004063c0
mov eax, dword [ebp - 0x28]
pop edx
call int.00406cf8
push 5
lea eax, [ebp - 0x2c]
call int.004063c0
mov eax, dword [ebp - 0x2c]
call fcn.00403490
push eax
call sub.kernel32.dll_WinExec
jmp 0x407db5
lea eax, [ebp - 0x30]
call int.004063c0
cmp dword [ebp - 0x30], 0
je 0x407d07
lea eax, [ebp - 0x34]
call int.004063c0
mov eax, dword [ebp - 0x34]
call fcn.00406e34
push 5
lea eax, [ebp - 0x38]
call int.004063d4
mov eax, dword [ebp - 0x38]
call fcn.00403490
push eax
call sub.kernel32.dll_WinExec
jmp 0x407db5
lea edx, [ebp - 0x3c]
xor eax, eax
call fcn.004026d0
mov eax, dword [ebp - 0x3c]
call fcn.004067c0
cmp eax, 0xa200
jle 0x407db5
lea eax, [ebp - 0x44]
call fcn.00406398
push dword [ebp - 0x44]
push 0x407e04
lea edx, [ebp - 0x4c]
xor eax, eax
call fcn.004026d0
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00405650
push dword [ebp - 0x48]
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.0040338c
mov eax, dword [ebp - 0x40]
push eax
lea edx, [ebp - 0x50]
xor eax, eax
call fcn.004026d0
mov eax, dword [ebp - 0x50]
pop edx
call int.00406cf8
push 5
lea eax, [ebp - 0x58]
call fcn.00406398
push dword [ebp - 0x58]
push 0x407e04
lea edx, [ebp - 0x60]
xor eax, eax
call fcn.004026d0
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.00405650
push dword [ebp - 0x5c]
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.0040338c
mov eax, dword [ebp - 0x54]
call fcn.00403490
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x407dd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407df2
lea eax, [ebp - 0x60]
mov edx, 0x15
call fcn.00403174
ret