joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473980
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.00409ab4
mov eax, dword [ebx]
call fcn.004049d8
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4739c6
mov eax, ebx
mov edx, 0x4739d4
call fcn.004049e0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x485b14
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.00485adc
mov eax, dword [ebx]
call fcn.004049d8
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x485b5a
mov eax, ebx
mov edx, 0x485b68
call fcn.004049e0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x485b6c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.00485adc
mov eax, dword [ebx]
call fcn.004049d8
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x485bb2
mov eax, ebx
mov edx, 0x485bc0
call fcn.004049e0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4878ec
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov eax, esp
mov edx, 0x94
call fcn.00407704
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 5
jb 0x487920
cmp dword [esp + 8], 1
jb 0x487920
cmp dword [esp + 0x10], 2
je 0x487924
xor eax, eax
jmp 0x487926
mov al, 1
add esp, 0x94
ret

Function at 0x487930
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov eax, esp
mov edx, 0x94
call fcn.00407704
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 6
jne 0x487964
cmp dword [esp + 8], 0
jne 0x487964
cmp dword [esp + 0x10], 2
je 0x487968
xor eax, eax
jmp 0x48796a
mov al, 1
add esp, 0x94
ret
Function at 0x497e74
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x497e7c
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x49806e
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x498084
mov eax, esi
call fcn.00495c04
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.0040476c
lea ecx, [ebp - 0x10]
mov edx, 0x498098
mov eax, esi
call fcn.00495c04
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.0040476c
lea ecx, [ebp - 0x14]
mov edx, 0x4980b0
mov eax, esi
call fcn.00495c04
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.0040476c
lea ecx, [ebp - 0x18]
mov edx, 0x4980cc
mov eax, esi
call fcn.00495c04
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.0040476c
lea ecx, [ebp - 0x1c]
mov edx, 0x4980e8
mov eax, esi
call fcn.00495c04
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.0040476c
lea ecx, [ebp - 0x24]
mov edx, 0x498100
mov eax, esi
call fcn.00495c04
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408c94
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004091dc
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x498118
mov eax, esi
call fcn.00495c04
mov eax, dword [ebp - 0x28]
call fcn.00494d1c
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x498128
mov eax, esi
call fcn.00495c04
mov eax, dword [ebp - 0x2c]
call fcn.00494d1c
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x498140
mov eax, esi
call fcn.00495c04
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004091dc
inc eax
je 0x498011
lea ecx, [ebp - 0x34]
mov edx, 0x498140
mov eax, esi
call fcn.00495c04
mov eax, dword [ebp - 0x34]
call fcn.004091a0
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a8b0
fstp qword [ebp - 0x3c]
wait
call fcn.0040ac14
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x49802c
lea ecx, [ebp - 0x40]
mov edx, 0x498140
mov eax, esi
call fcn.00495c04
mov eax, dword [ebp - 0x40]
call fcn.00494d1c
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x498150
mov eax, esi
call fcn.00495c04
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.0040476c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498075
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0040473c
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.0040473c
ret
Function at 0x4a430c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4a4366
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004a42fc
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00493988
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00493588
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a436d
lea eax, [ebp - 4]
call fcn.00404718
ret

Function at 0x4a7fe4
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00407704
ret

Function at 0x4a876c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], 1
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
push edx
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0xc], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push 0
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4a87d8
mov eax, ebx
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.00404988
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4a87e8
mov eax, ebx
call fcn.00404718
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a886c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404bc8
mov eax, dword [ebp - 8]
call fcn.00404bc8
mov eax, dword [ebp + 0x10]
call fcn.00404bc8
mov eax, dword [ebp + 8]
call fcn.00404bc8
xor eax, eax
push ebp
push 0x4a89e0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4a89a3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404bd8
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyExA
mov eax, dword [ebp + 0x10]
call fcn.00404bd8
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00404910
mov eax, dword [ebp - 0x18]
call fcn.004049d8
mov ebx, eax
inc ebx
mov eax, dword [ebp + 8]
mov edx, 0x4a89fc
call fcn.00404b24
jne 0x4a892e
push ebx
lea eax, [ebp + 0x10]
call fcn.00404c30
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00404bd8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp + 8]
mov edx, 0x4a8a08
call fcn.00404b24
jne 0x4a895d
push ebx
lea eax, [ebp + 0x10]
call fcn.00404c30
push eax
push 2
push 0
mov eax, dword [ebp - 8]
call fcn.00404bd8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, 4
mov eax, dword [ebp + 8]
mov edx, 0x4a8a18
call fcn.00404b24
jne 0x4a898c
push ebx
lea eax, [ebp + 0xc]
push eax
push 4
push 0
mov eax, dword [ebp - 8]
call fcn.00404bd8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a89ad
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a89e7
lea eax, [ebp - 0x18]
call fcn.00404718
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040473c
lea eax, [ebp + 8]
call fcn.00404718
lea eax, [ebp + 0x10]
call fcn.00404718
ret
Function at 0x4aa2c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd18
xor ecx, ecx
mov dword [ebp - 0x2e8], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bc8
mov eax, dword [ebp - 8]
call fcn.00404bc8
xor eax, eax
push ebp
push 0x4aa457
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 6
mov eax, dword [0x4b00dc]
call fcn.0044fe34
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x2e1]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x2e1]
mov ecx, 0x105
call fcn.00404988
mov eax, dword [ebp - 0x10]
call fcn.004049d8
mov edx, dword [ebp - 0x10]
cmp byte [edx + eax - 1], 0x5c
je 0x4aa354
lea eax, [ebp - 0x10]
mov edx, 0x4aa46c
call fcn.004049e0
mov eax, dword [ebp - 0x10]
call fcn.0040957c
test al, al
jne 0x4aa368
mov eax, dword [ebp - 0x10]
call fcn.004095a0
push dword [ebp - 0x10]
push dword [ebp - 8]
push 0x4aa478
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404a98
mov eax, dword [ebp - 0x10]
call fcn.0040956c
test al, al
jne 0x4aa429
xor eax, eax
push ebp
push 0x4aa422
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x1dc]
call fcn.00402ef0
lea eax, [ebp - 0x1dc]
call fcn.00402c8c
call fcn.0040297c
mov edx, 0x4aa488
lea eax, [ebp - 0x1dc]
call fcn.00404df4
call fcn.00403380
call fcn.0040297c
lea eax, [ebp - 0x2e8]
mov ecx, dword [ebp - 4]
mov edx, 0x4aa4a4
call fcn.00404a24
mov edx, dword [ebp - 0x2e8]
lea eax, [ebp - 0x1dc]
call fcn.00404df4
call fcn.00403380
call fcn.0040297c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa429
lea eax, [ebp - 0x1dc]
call fcn.00402fb8
call fcn.0040297c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa45e
lea eax, [ebp - 0x2e8]
call fcn.00404718
lea eax, [ebp - 0x10]
call fcn.00404718
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040473c
ret
Function at 0x4aa4ac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd14
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2ec], edx
mov dword [ebp - 0x2e8], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4aa673
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x115]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x2e8]
lea edx, [ebp - 0x115]
mov ecx, 0x105
call fcn.00404988
mov edx, dword [ebp - 0x2e8]
lea eax, [ebp - 8]
mov ecx, 0x4aa68c
call fcn.00404a24
lea eax, [ebp - 0xc]
mov ecx, 0x4aa698
mov edx, dword [ebp - 8]
call fcn.00404a24
lea eax, [ebp - 0xc]
mov edx, 0x4aa6b8
call fcn.004049e0
mov eax, dword [ebp - 0xc]
call fcn.0040956c
cmp al, 1
jne 0x4aa58f
xor eax, eax
push ebp
push 0x4aa585
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00409688
mov eax, dword [ebp - 0xc]
call fcn.00404bd8
mov edx, eax
lea eax, [ebp - 0x2ec]
call fcn.00404910
mov eax, dword [ebp - 0x2ec]
call fcn.004096b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aa58f
mov eax, dword [ebp - 0xc]
call fcn.0040956c
test al, al
jne 0x4aa648
xor eax, eax
push ebp
push 0x4aa63e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x2e4]
call fcn.00402ef0
lea eax, [ebp - 0x2e4]
call fcn.00402c8c
call fcn.0040297c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x344]
mov eax, dword [eax + 0x220]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4aa624
inc ebx
xor esi, esi
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x344]
mov eax, dword [eax + 0x220]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
cmp dword [ebp - 0x10], 0
je 0x4aa620
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x2e4]
call fcn.00404df4
call fcn.00403380
call fcn.0040297c
inc esi
dec ebx
jne 0x4aa5e9
lea eax, [ebp - 0x2e4]
call fcn.00402fb8
call fcn.0040297c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aa648
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa67a
lea eax, [ebp - 0x2ec]
mov edx, 2
call fcn.0040473c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040473c
ret
Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4

Function at 0x401494
Capabilities:
Encode data using xor

Disassembly:
push 0x402764
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ebp + 0xc], cl
and bh, byte [ecx]
arpl word [eax + 0x199842af], ax
push edi
mov cl, 0x7e
pop edx
cmpsb byte [esi], byte es:[edi]
dec esi
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
xor byte [edx], dh
xor byte [ebx + esi], dh
xor dh, al
invalid
Function at 0x402b0c
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.00404600
test esi, esi
jne 0x402b42
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.004046f0
jmp 0x402b60
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029c0
mov edi, eax
test esi, esi
je 0x402b60
cmp dword [ebx], 0
je 0x402b60
dec esi
jmp 0x402b49
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403720
Capabilities:
Query or enumerate registry value

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

Function at 0x404484
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47a04c], 0
je 0x4044e5
cmp word [0x47a220], 0xd7b2
jne 0x4044ad
cmp dword [0x47a228], 0
jbe 0x4044ad
mov eax, 0x47a21c
call dword [0x47a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x478070
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 0x40450c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x478030], 0
jne 0x404501
push 0
push 0x478068
push 0x478070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406428
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40648e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404870
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004032e4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406478
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406495
lea eax, [ebp - 0x10]
call fcn.00404600
ret

Function at 0x40b9ec
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 0x40ba25
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004046f0
jmp 0x40ba2e
mov eax, ebx
mov edx, esi
call fcn.00404654
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c0e0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bf58
mov eax, dword [0x4793a8]
cmp byte [eax], 0
je 0x40c15c
mov eax, dword [0x479178]
call fcn.00402f48
call fcn.004028ec
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.004091a0
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 0x40c1a4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c192
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x479118]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47a668]
call fcn.00405920
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 0x40ca70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cb46
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404698
lea eax, [ebp - 8]
call fcn.00404b10
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ac0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cb30
mov eax, ebx
call fcn.00402784
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cb29
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 - 8]
call fcn.00404ac0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cb13
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cb58
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cb13
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb30
mov eax, dword [ebp - 0x10]
call fcn.004027a4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb4d
lea eax, [ebp - 8]
call fcn.00404600
ret

Function at 0x40d050
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 0x40d0b4
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.00404870
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408c1c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d0bb
lea eax, [ebp - 0xc]
call fcn.00404600
ret

Function at 0x41f73c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47a8b0
cmp dword [edi], 0
jne 0x41f7b8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47a8ac]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x478400
mov ecx, 2
call fcn.00402980
mov edx, 0x41f714
lea eax, [esi + 5]
call fcn.0041f734
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f734
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 0x41f78d
mov dword [0x47a8ac], 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 0x420e14
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 0x420e1a
ret
Function at 0x4233dc
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 0x42342d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x423414
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x423404
jmp 0x42342d
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 0x423415
pop ebx
mov esp, ebp
pop ebp
ret