joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b95bc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov dword [ebp - 8], 0xff
mov eax, dword [ebp - 8]
call fcn.004027ac
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b961e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
jne 0x4b95fe
mov eax, 0x4b962c
mov dword [ebp - 4], eax
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004048c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9625
mov eax, dword [ebp - 4]
call fcn.004027cc
ret

Function at 0x4b9658
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4b9660
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b977d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00402b0c
mov eax, dword [ebp - 0x14]
call fcn.00404b88
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
mov eax, esi
call fcn.004027ac
mov edi, eax
push edi
push esi
push 0
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402b0c
mov eax, dword [ebp - 0x18]
call fcn.00404b88
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4b978c
push edi
call sub.version.dll_VerQueryValueA
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + 8]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.004092b8
push dword [ebp - 0x20]
push 0x4b9798
mov eax, dword [ebx + 8]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.004092b8
push dword [ebp - 0x24]
push 0x4b9798
mov eax, dword [ebx + 0xc]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.004092b8
push dword [ebp - 0x28]
push 0x4b9798
mov eax, dword [ebx + 0xc]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.004092b8
push dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00404a48
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov ecx, 0xff
call fcn.00404964
mov edx, esi
mov eax, edi
call fcn.004027cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9784
lea eax, [ebp - 0x2c]
mov edx, 7
call fcn.004046ec
ret
Function at 0x4bac4c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b78
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4badba
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.00407ae4
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.00407b04
jmp 0x4bad86
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404938
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.0040991c
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408c14
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408c14
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404ad4
je 0x4bad66
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404938
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408c14
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408c14
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404ad4
jne 0x4bad7d
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.00407b24
test eax, eax
jne 0x4bacc7
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4badc1
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.004046ec
lea eax, [ebp - 4]
call fcn.004046c8
ret

Function at 0x4badcc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], eax
xor eax, eax
push ebp
push 0x4baec2
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.00407ae4
mov ebx, eax
mov dword [ebp - 0x128], 0x128
lea edx, [ebp - 0x128]
mov eax, ebx
call fcn.00407b04
jmp 0x4bae9a
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.00404938
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.0040991c
mov eax, dword [ebp - 0x130]
lea edx, [ebp - 0x12c]
call fcn.00408c50
mov edx, dword [ebp - 0x12c]
mov eax, dword [0x4cb198]
mov eax, dword [eax + 0x5c4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x4bae8d
push 0
mov eax, dword [ebp - 0x120]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
lea edx, [ebp - 0x128]
mov eax, ebx
call fcn.00407b24
test eax, eax
jne 0x4bae22
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4baec9
lea eax, [ebp - 0x134]
mov edx, 3
call fcn.004046ec
ret
Function at 0x4c23e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404b78
xor eax, eax
push ebp
push 0x4c2505
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b88
mov ebx, eax
push ebx
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
mov eax, esi
call fcn.004027ac
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4c2514
push edi
call sub.version.dll_VerQueryValueA
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 8]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.004092b8
push dword [ebp - 0x1c]
push 0x4c2520
mov eax, dword [ebx + 8]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.004092b8
push dword [ebp - 0x20]
push 0x4c2520
mov eax, dword [ebx + 0xc]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.004092b8
push dword [ebp - 0x24]
push 0x4c2520
mov eax, dword [ebx + 0xc]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.004092b8
push dword [ebp - 0x28]
lea eax, [ebp - 0x18]
mov edx, 7
call fcn.00404a48
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
mov ecx, 0xff
call fcn.00404964
mov edx, esi
mov eax, edi
call fcn.004027cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c250c
lea eax, [ebp - 0x28]
mov edx, 5
call fcn.004046ec
lea eax, [ebp - 4]
call fcn.004046c8
ret
Function at 0x4c3c30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4c3c38
push ecx
push ebx
push esi
mov eax, 0x4c37f8
call fcn.004068c8
mov ebx, dword [0x4c8b80]
xor eax, eax
push ebp
push 0x4c3da0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, dword [ebx]
call fcn.00463114
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.0040991c
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00408c14
mov eax, dword [ebp - 0x14]
call fcn.004c3688
test al, al
jne 0x4c3d85
push 0x4c3db0
push 0x4c3dd4
call sub.user32.dll_FindWindowA
cmp eax, 0x20
ja 0x4c3d85
mov eax, dword [ebx]
call fcn.00462a6c
mov eax, dword [ebx]
mov edx, 0x4c3dec
call fcn.00462664
lea edx, [ebp - 0x24]
mov eax, dword [ebx]
call fcn.00463114
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00409894
mov eax, dword [ebp - 0x20]
call fcn.00402950
call fcn.00402914
push 0xffffffffffffffec
mov eax, dword [ebx]
mov esi, dword [eax + 0x30]
push esi
call sub.user32.dll_GetWindowLongA
add eax, 0x80
push eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
mov ecx, dword [ebx]
mov dl, 1
mov eax, dword [0x4afcbc]
call fcn.0045b214
mov edx, dword [0x4c8dd4]
mov dword [edx], eax
mov ecx, dword [ebx]
mov dl, 1
mov eax, dword [0x4b4a08]
call fcn.0045b214
mov edx, dword [0x4c8aec]
mov dword [edx], eax
mov ecx, dword [0x4c8ac8]
mov eax, dword [ebx]
mov edx, dword [0x4b6ac4]
call fcn.00462a84
push 0xffffffffffffffec
mov eax, dword [ebx]
mov esi, dword [eax + 0x30]
push esi
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
mov eax, dword [ebx]
mov byte [eax + 0x5b], 0
push 0x40000080
push 0xffffffffffffffec
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SetWindowLongA
push 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx]
call fcn.00462958
mov eax, dword [ebx]
call fcn.00462b04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3da7
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.004046ec
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.00404930
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.00404a20
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 0x4031a0
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4038e8
Capabilities:
Query or enumerate registry value

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

Function at 0x4047b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x54104c], 0
je 0x404811
cmp word [0x541220], 0xd7b2
jne 0x4047d9
cmp dword [0x541228], 0
jbe 0x4047d9
mov eax, 0x54121c
call dword [0x541238]
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 0x404838
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x485030], 0
jne 0x40482d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406094
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 0x4062c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406117
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4062c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406117
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4062e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4061a0
xor eax, eax
push ebp
push 0x406199
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405ed0
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 0x40617e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406300
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40617e
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 0x4061a0
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 0x4062ba
cmp byte [ebp - 0xd], 0
jne 0x4061e7
cmp byte [ebp - 0x12], 0
je 0x4062ba
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406200
dec ebx
cmp byte [ebx], 0x2e
je 0x40620f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4061ff
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4062ba
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40624c
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 0x4062ba
cmp byte [ebp - 0xd], 0
je 0x4062ba
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 0x4062ba
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 0x408838
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4088c8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4088c8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40887b
test edx, 3
jne 0x40886a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408875
jmp 0x40887b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40887b
cmp dword [ecx - 8], 1
je 0x408885
mov edx, ebx
or edx, 3
call fcn.0040507c
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 0x408897
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404930

Function at 0x4088d4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408964
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408964
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408917
test edx, 3
jne 0x408906
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408911
jmp 0x408917
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408917
cmp dword [ecx - 8], 1
je 0x408921
mov edx, ebx
or edx, 3
call fcn.0040507c
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 0x408933
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404930

Function at 0x40bdb8
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 0x40bdf1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a20
jmp 0x40bdfa
mov eax, ebx
mov edx, esi
call fcn.00404984
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c330
mov eax, dword [0x540d08]
cmp byte [eax], 0
je 0x40c534
mov eax, dword [0x540aec]
call fcn.00403274
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.00409458
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 0x40c57c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c56a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x540a84]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5437f8]
call fcn.00405e78
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 0x40ce10
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 0x40cee6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004049c8
lea eax, [ebp - 4]
call fcn.00404e44
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404df4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ced0
mov eax, ebx
call fcn.00402d2c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cec9
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.00404df4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ceb3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cef8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ceb3
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 0x40ced0
mov eax, dword [ebp - 0x10]
call fcn.00402d48
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ceed
lea eax, [ebp - 4]
call fcn.00404930
ret
Function at 0x421ddc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x544304
cmp dword [edi], 0
jne 0x421e58
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x544300]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x485bf4
mov ecx, 2
call fcn.00402f1c
mov edx, 0x421db4
lea eax, [esi + 5]
call fcn.00421dd4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421dd4
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 0x421e2d
mov dword [0x544300], 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 0x42434c
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.00404df4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4243a4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x540e3c]
mov dl, 1
mov eax, dword [0x423e70]
call fcn.0040c678
call fcn.0040435c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00423f78
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 0x42545c
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 0x425462
ret