joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480690
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405034
xor eax, eax
push ebp
push 0x480753
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
lea eax, [ebp - 0x110]
mov edx, dword [ebp - 4]
call fcn.00409b98
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jle 0x48073d
mov eax, ebx
call fcn.00402aa0
mov edi, eax
push edi
push ebx
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x480764
push edi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x480736
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0xfeef04bd
jne 0x480736
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov dword [esi + 4], eax
mov eax, edi
call fcn.00402ad0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48075a
lea eax, [ebp - 4]
call fcn.00404b84
ret

Function at 0x480cd8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405034
xor eax, eax
push ebp
push 0x480d49
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405044
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
test ebx, ebx
jbe 0x480d33
lea eax, [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480d50
lea eax, [ebp - 4]
call fcn.00404b84
ret

Function at 0x480d58
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405034
xor eax, eax
push ebp
push 0x480e08
push dword fs:[eax]
mov dword fs:[eax], esp
or ebx, 0xffffffff
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405044
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
test esi, esi
jbe 0x480df2
push 0
lea eax, [ebp - 8]
push eax
push 0x1000
lea eax, [ebp - 0x1008]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x480dde
mov edx, dword [ebp - 8]
test edx, edx
jbe 0x480de3
lea eax, [ebp - 0x1008]
xor ecx, ecx
mov cl, byte [eax]
add ebx, ecx
inc eax
dec edx
jne 0x480dd2
jmp 0x480de3
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x1000
je 0x480da9
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480e0f
lea eax, [ebp - 4]
call fcn.00404b84
ret
Function at 0x481150
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405034
xor eax, eax
push ebp
push 0x4811e9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 4]
call fcn.00405044
mov ebx, eax
push ebx
call sub.LZ32.DLL_LZOpenFileA
mov esi, eax
lea eax, [ebp - 0x191]
push eax
push ebx
call sub.LZ32.DLL_GetExpandedNameA
dec eax
jne 0x4811c7
push 0x1000
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x191]
push eax
call sub.LZ32.DLL_LZOpenFileA
mov edi, eax
push edi
push esi
call sub.LZ32.DLL_LZCopy
push edi
call sub.LZ32.DLL_LZClose
push esi
call sub.LZ32.DLL_LZClose
push ebx
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4811f0
lea eax, [ebp - 4]
call fcn.00404b84
ret

Function at 0x4812f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x481362
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x105]
call fcn.00409d08
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.004811f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481369
lea eax, [ebp - 0x10c]
call fcn.00404b84
ret
Function at 0x4828c0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffc4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x103c], edx
mov dword [ebp - 0x10], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x482ace
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, 0x482ae4
call fcn.00404c1c
mov esi, dword [ebx + 0x80]
cmp dword [esi + 4], 0
je 0x482aad
cmp dword [esi + 8], 0
je 0x482aad
lea eax, [ebp - 0x35]
mov edx, 0x482b1c
call fcn.00409b98
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x18c]
call fcn.00405044
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 4], eax
push 1
push 0
push 3
push 0
push 0
push 0x50
mov eax, dword [ebx + 0x80]
mov eax, dword [eax + 4]
call fcn.00405044
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x482a92
push 1
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x80]
mov eax, dword [eax + 8]
call fcn.00405044
push eax
push 0x482b24
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x482a75
mov eax, dword [ebx + 0x80]
add eax, 0x14
call fcn.00404b84
mov eax, dword [ebx + 0x80]
mov eax, dword [eax + 0xc]
call fcn.00404e44
push eax
mov eax, dword [ebx + 0x80]
mov eax, dword [eax + 0xc]
call fcn.00405044
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404e44
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405044
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
je 0x482a6a
mov dword [ebp - 0x14], 0x1000
cmp dword [ebp - 0x14], 0
jbe 0x482a6a
mov eax, dword [0x48b07c]
mov eax, dword [eax]
call fcn.00466318
lea eax, [ebp - 0x14]
push eax
push 0x1000
lea eax, [ebp - 0x1035]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x482a6a
cmp dword [ebp - 0x14], 0
jbe 0x482a64
cmp dword [ebp - 0x14], 0x1000
ja 0x482a64
mov edi, dword [ebp - 0x14]
dec edi
test edi, edi
jl 0x482a64
inc edi
lea esi, [ebp - 0x1035]
lea eax, [ebp - 0x103c]
mov dl, byte [esi]
call fcn.00404d6c
mov edx, dword [ebp - 0x103c]
mov eax, dword [ebx + 0x80]
add eax, 0x14
call fcn.00404e4c
inc esi
dec edi
jne 0x482a3f
cmp dword [ebp - 0x14], 0
ja 0x4829f8
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x482a87
push 0x11
push 5
xor ecx, ecx
mov edx, 0x3b8
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x482aa4
push 0x10
push 5
xor ecx, ecx
mov edx, 0x3b7
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482ad5
lea eax, [ebp - 0x103c]
call fcn.00404b84
lea eax, [ebp - 0x10]
call fcn.00404b84
ret
Function at 0x485330
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4854bc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x179], 0
je 0x485366
mov dword [ebp - 4], 0xffffffff
jmp 0x48549e
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x80]
cmp byte [eax + 0x10], 0
je 0x4853d4
mov byte [ebp - 9], 1
cmp word [ebx + 0xea], 0
je 0x485396
lea ecx, [ebp - 9]
mov edx, ebx
mov eax, dword [ebx + 0xec]
call dword [ebx + 0xe8]
cmp byte [ebp - 9], 0
je 0x4853d4
mov eax, ebx
call fcn.004828c0
mov byte [ebp - 9], 1
cmp word [ebx + 0xe2], 0
je 0x4853c2
lea ecx, [ebp - 9]
mov edx, ebx
mov eax, dword [ebx + 0xe4]
call dword [ebx + 0xe0]
cmp byte [ebp - 9], 0
jne 0x4853d4
mov dword [ebp - 4], 0xffffffff
jmp 0x48549e
cmp byte [ebx + 0x39], 0
je 0x4853ed
push dword [ebx + 0x15c]
push dword [ebx + 0x158]
mov eax, ebx
call fcn.0048581c
mov ecx, dword [ebx + 0x3c]
mov dl, 1
mov eax, dword [0x42ef44]
call fcn.0042eff4
mov esi, eax
push 0
lea eax, [ebp - 8]
push eax
mov ecx, 0x4854d8
mov edx, 0x4854ec
mov eax, esi
mov edi, dword [eax]
call dword [edi]
cmp dword [ebp - 8], 0
je 0x485436
push 3
push 0
xor ecx, ecx
mov edx, 0x3ad
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x38]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0048559c
cmp dword [ebx + 0x13c], 0
je 0x48544c
cmp byte [ebx + 0x56], 0
je 0x48544c
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x40]
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x4854fc
mov edx, 0x4854ec
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 8]
mov eax, ebx
call fcn.00481644
cmp dword [ebp - 8], 0
je 0x485485
push 1
mov eax, dword [ebp - 8]
call fcn.00405044
push eax
call sub.kernel32.dll_WinExec
mov eax, esi
call fcn.00403df8
push 3
push 0
xor ecx, ecx
mov edx, 0x3b4
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4854c3
lea eax, [ebp - 0x10]
call fcn.00404b84
lea eax, [ebp - 8]
call fcn.00404b84
ret
Function at 0x403118
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.00404eb4
test esi, esi
jne 0x40314e
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.00404fa4
jmp 0x40316c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040301c
mov edi, eax
test esi, esi
je 0x40316c
cmp dword [ebx], 0
je 0x40316c
dec esi
jmp 0x403155
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403db0
Capabilities:
Query or enumerate registry value

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

Function at 0x404c80
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49204c], 0
je 0x404ce1
cmp word [0x492220], 0xd7b2
jne 0x404ca9
cmp dword [0x492228], 0
jbe 0x404ca9
mov eax, 0x49221c
call dword [0x492238]
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 0x404d08
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48e02c], 0
jne 0x404cfd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404e38
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x48e034], 0
je 0x404e5e
mov edx, esi
mov eax, ebx
call dword [0x48e034]
jmp 0x404e6d
mov eax, 8
call fcn.00402d2c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x49204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404e00
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406614
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 0x406844
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406697
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406844
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406697
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406860
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406720
xor eax, eax
push ebp
push 0x406719
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406450
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 0x4066fe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406880
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4066fe
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 0x406720
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 0x40683a
cmp byte [ebp - 0xd], 0
jne 0x406767
cmp byte [ebp - 0x12], 0
je 0x40683a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406780
dec ebx
cmp byte [ebx], 0x2e
je 0x40678f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40677f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40683a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4067cc
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 0x40683a
cmp byte [ebp - 0xd], 0
je 0x40683a
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 0x40683a
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 0x408e50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408ee0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408ee0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408e93
test edx, 3
jne 0x408e82
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408e8d
jmp 0x408e93
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408e93
cmp dword [ecx - 8], 1
je 0x408e9d
mov edx, ebx
or edx, 3
call fcn.00405600
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408eaf
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404eb4

Function at 0x408eec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408f7c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408f7c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408f2f
test edx, 3
jne 0x408f1e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408f29
jmp 0x408f2f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408f2f
cmp dword [ecx - 8], 1
je 0x408f39
mov edx, ebx
or edx, 3
call fcn.00405600
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408f4b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404eb4

Function at 0x40c740
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 0x40c779
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404fa4
jmp 0x40c782
mov eax, ebx
mov edx, esi
call fcn.00404f08
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c78c
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 0x40c7ae
movzx eax, byte [esp]
jmp 0x40c7b0
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40ce40
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ccb8
mov eax, dword [0x491270]
cmp byte [eax], 0
je 0x40cebc
mov eax, dword [0x490f28]
call fcn.004034ec
call fcn.00402e88
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.00409dcc
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 0x40cf04
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cef2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x490e9c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4947f8]
call fcn.004063f8
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 0x40d7bc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d892
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404f4c
lea eax, [ebp - 4]
call fcn.004053c8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405378
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d87c
mov eax, ebx
call fcn.00402d2c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d875
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405378
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d85f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d8a4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d85f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d87c
mov eax, dword [ebp - 0x10]
call fcn.00402d48
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d899
lea eax, [ebp - 4]
call fcn.00404eb4
ret

Function at 0x421994
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004216a4
dec esi
jne 0x4219b6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x422b4c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x495308
cmp dword [edi], 0
jne 0x422bc8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x495304]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48ec14
mov ecx, 2
call fcn.00402f1c
mov edx, 0x422b24
lea eax, [esi + 5]
call fcn.00422b44
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422b44
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 0x422b9d
mov dword [0x495304], 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 0x425218
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405378
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x425270
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x491448]
mov dl, 1
mov eax, dword [0x424d3c]
call fcn.0040d024
call fcn.0040482c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00424e44
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x426328
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 0x42632e
ret