joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448b80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x448bb3
push esi
call fcn.0044bcc0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x448bac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x448c39
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x448c22
mov eax, dword [esi + 8]
test eax, eax
je 0x448bd7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x448c1e
cmp eax, 2
je 0x448c22
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x448bca
cmp eax, 3
je 0x448bfd
cmp eax, 1
jne 0x448bca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x448bca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x448bca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00448c60
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x448c48
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00448c60
add esp, 4
pop esi
ret

Function at 0x44ae10
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.0044c1f0
push 0x50
push edi
mov dword [esp + 0x18], eax
call fcn.0044c1b0
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x44ae46
push edi
call fcn.0042eca0
mov eax, dword [edi]
push edi
call dword [eax]
add esp, 8
mov dword [esi], fcn.0044af40
mov dword [esi + 4], fcn.0044b070
mov dword [esi + 8], fcn.0044b100
mov dword [esi + 0xc], fcn.0044b1a0
mov dword [esi + 0x10], 0x44b250
mov dword [esi + 0x14], 0x44b2b0
mov dword [esi + 0x18], 0x44b310
mov dword [esi + 0x1c], 0x44b4a0
mov dword [esi + 0x20], 0x44b670
mov dword [esi + 0x24], fcn.0044b850
mov dword [esi + 0x28], 0x44b940
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], ecx
lea eax, [esi + 0x3c]
mov ecx, 2
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x44aea1
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], 0x50
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x44af33
lea edx, [esp + 0x14]
lea ecx, [esp + 0xc]
push edx
push ecx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x44af33
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x44aefc
cmp al, 0x4d
jne 0x44af20
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [esi + 0x2c], edx
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [esi + 0x2c], edx
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x454120
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x454186
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x454186
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x454167
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x454570
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4545a8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4551c0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x455209
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x455450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45b891
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
call fcn.00455230
xor edi, edi
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x14]
mov byte [esp + 0x14], 2
call fcn.00455230
mov ecx, dword [esp + 0xc]
mov eax, 0x57a3fc
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x58], 0x57a3e8
mov dword [esi + 0x5c], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], edi
mov dword [esi], 0x57a3e4
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x455700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45b970
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00455230
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004552e0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004552e0
lea ecx, [esi + 0xc]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::Empty
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00456900
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00456900
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00456900
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x403463
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0xc6ad9c], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x4034a8
push 0x402b40
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
push 0x402b6c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [0x805d28]
mov ebx, dword [0x805d2c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.0040345c
mov eax, dword [0x805d30]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x805d34]
add edi, 0x23f
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
mov ecx, eax
shl ecx, 4
cmp dword [0xc6ad9c], 0xc
mov dword [ebp - 4], ecx
jne 0x403549
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x444]
push eax
push esi
push 0x402b7c
push 0x402b8c
push 0x402bac
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
lea eax, [ebp - 0x844]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 4], ecx
mov ecx, dword [0xc6ad9c]
cmp ecx, 0xfa9
jne 0x403567
mov dword [0xc6ad98], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x403575
mov dword [0xc43f38], esi
lea ecx, [edi + eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
shr eax, cl
mov dword [0xc6ad94], 0xf4ea3dee
add eax, dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0xc6ad9c], 0x213
mov dword [ebp - 0x14], ecx
jne 0x4035b3
push esi
push 0x402bb4
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0xc6ad9c], 0xc
jne 0x4035fc
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupRead]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0xc44]
push eax
push 0x402bf0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [edi + eax]
shr eax, cl
add eax, ebx
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
add edi, 0x61c88647
dec dword [ebp - 0x18]
jne 0x4034e1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x403647
Capabilities:
Create pipe
Get common file path
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0xc6ad9c]
mov ecx, dword [0xc43f3c]
sub esp, 0x834
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x40373f
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0xc6ad9c], 0x959
jne 0x40372d
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
push esi
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402cb0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x402d00
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402d40
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.00403463
add ebx, 8
dec dword [ebp - 4]
jne 0x403670
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4054fb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x8054b4]
jne 0x405505
repz ret
jmp fcn.00408d6c

Function at 0x40ab8b
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.00406b16
and dword [ebp - 4], 0
cmp dword [0x809828], 0
mov ebx, eax
jne 0x40ac3c
push 0x4021ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40aced
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021a0
push edi
call esi
test eax, eax
je 0x40aced
push eax
call fcn.00406aa4
mov dword [esp], 0x402190
push edi
mov dword [0x809828], eax
call esi
push eax
call fcn.00406aa4
mov dword [esp], 0x40217c
push edi
mov dword [0x80982c], eax
call esi
push eax
call fcn.00406aa4
mov dword [esp], 0x402160
push edi
mov dword [0x809830], eax
call esi
push eax
call fcn.00406aa4
pop ecx
mov dword [0x809838], eax
test eax, eax
je 0x40ac3c
push 0x402148
push edi
call esi
push eax
call fcn.00406aa4
pop ecx
mov dword [0x809834], eax
mov eax, dword [0x809834]
cmp eax, ebx
je 0x40ac94
cmp dword [0x809838], ebx
je 0x40ac94
push eax
call fcn.00406b1f
push dword [0x809838]
mov esi, eax
call fcn.00406b1f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ac94
test edi, edi
je 0x40ac94
call esi
test eax, eax
je 0x40ac8b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ac8b
test byte [ebp - 0xc], 1
jne 0x40ac94
or dword [ebp + 0x10], 0x200000
jmp 0x40accd
mov eax, dword [0x80982c]
cmp eax, ebx
je 0x40accd
push eax
call fcn.00406b1f
pop ecx
test eax, eax
je 0x40accd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40accd
mov eax, dword [0x809830]
cmp eax, ebx
je 0x40accd
push eax
call fcn.00406b1f
pop ecx
test eax, eax
je 0x40accd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x809828]
call fcn.00406b1f
pop ecx
test eax, eax
je 0x40aced
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40acef
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404a8c
Capabilities:
Create pipe
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1284
call fcn.00413e00
mov eax, dword [0x4f1ee8]
mov ecx, dword [0x4f0e3c]
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x404b93
mov ebx, ecx
mov dword [ebp - 8], eax
cmp dword [0x4f1ee8], 0x959
jne 0x404b81
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
push esi
lea eax, [ebp - 0xa80]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0x4040d8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x404128
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x1280]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.00404895
add ebx, 8
dec dword [ebp - 8]
jne 0x404ab9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4071db
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440708]
jne 0x4071e5
repz ret
jmp fcn.0040ed2c

Function at 0x410aa7
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.0040895d
and dword [ebp - 4], 0
cmp dword [0x442a30], 0
mov ebx, eax
jne 0x410b58
push 0x40380c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410c09
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403800
push edi
call esi
test eax, eax
je 0x410c09
push eax
call fcn.004088eb
mov dword [esp], 0x4037f0
push edi
mov dword [0x442a30], eax
call esi
push eax
call fcn.004088eb
mov dword [esp], 0x4037dc
push edi
mov dword [0x442a34], eax
call esi
push eax
call fcn.004088eb
mov dword [esp], 0x4037c0
push edi
mov dword [0x442a38], eax
call esi
push eax
call fcn.004088eb
pop ecx
mov dword [0x442a40], eax
test eax, eax
je 0x410b58
push 0x4037a8
push edi
call esi
push eax
call fcn.004088eb
pop ecx
mov dword [0x442a3c], eax
mov eax, dword [0x442a3c]
cmp eax, ebx
je 0x410bb0
cmp dword [0x442a40], ebx
je 0x410bb0
push eax
call fcn.00408966
push dword [0x442a40]
mov esi, eax
call fcn.00408966
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x410bb0
test edi, edi
je 0x410bb0
call esi
test eax, eax
je 0x410ba7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410ba7
test byte [ebp - 0xc], 1
jne 0x410bb0
or dword [ebp + 0x10], 0x200000
jmp 0x410be9
mov eax, dword [0x442a34]
cmp eax, ebx
je 0x410be9
push eax
call fcn.00408966
pop ecx
test eax, eax
je 0x410be9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410be9
mov eax, dword [0x442a38]
cmp eax, ebx
je 0x410be9
push eax
call fcn.00408966
pop ecx
test eax, eax
je 0x410be9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x442a30]
call fcn.00408966
pop ecx
test eax, eax
je 0x410c09
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410c0b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a00
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.00404394
test esi, esi
jne 0x402a36
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.00404484
jmp 0x402a54
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402914
mov edi, eax
test esi, esi
je 0x402a54
cmp dword [ebx], 0
je 0x402a54
dec esi
jmp 0x402a3d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4034a0
Capabilities:
Query or enumerate registry value

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

Function at 0x404218
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45a048], 0
je 0x404279
cmp word [0x45a21c], 0xd7b2
jne 0x404241
cmp dword [0x45a224], 0
jbe 0x404241
mov eax, 0x45a218
call dword [0x45a234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x458054
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 0x4042a0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45801c], 0
jne 0x404295
push 0
push 0x458074
push 0x458054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409a68
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 0x409aa1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404484
jmp 0x409aaa
mov eax, ebx
mov edx, esi
call fcn.004043e8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409ab4
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 0x409ad5
mov al, byte [esp]
jmp 0x409ad7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a15c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409fd4
mov eax, dword [0x458f64]
cmp byte [eax], 0
je 0x40a1c4
mov eax, dword [0x458dbc]
call fcn.00402dbc
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408c5c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x40a20c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a1fa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x458d7c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45a714]
call fcn.00405b24
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 0x40ad78
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40addc
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004045fc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408868
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ade3
lea eax, [ebp - 0xc]
call fcn.00404394
ret
Function at 0x41cb00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45aa20
cmp dword [edi], 0
jne 0x41cb7c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45aa1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4584bc
mov ecx, 2
call fcn.004028d4
mov edx, 0x41cad8
lea eax, [esi + 5]
call fcn.0041caf8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041caf8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41cb51
mov dword [0x45aa1c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41e010
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41e016
ret

Function at 0x42046c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4204bd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4204a4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x420494
jmp 0x4204bd
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4204a5
pop ebx
mov esp, ebp
pop ebp
ret