joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474d10
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.00404cdc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x474d68
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x50002c]
mov dl, 1
mov eax, dword [0x474804]
call fcn.0040d988
call fcn.00404160
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0047493c
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 0x4a0ca8
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4a0ccd
cmp dword [esp + 4], 5
jb 0x4a0ccd
mov al, 1
jmp 0x4a0ccf
xor eax, eax
add esp, 0x94
ret
Function at 0x4c0408
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 0x4c0410
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4c0602
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4c0618
mov eax, esi
call fcn.004bdfdc
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404860
lea ecx, [ebp - 0x10]
mov edx, 0x4c062c
mov eax, esi
call fcn.004bdfdc
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404860
lea ecx, [ebp - 0x14]
mov edx, 0x4c0644
mov eax, esi
call fcn.004bdfdc
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404860
lea ecx, [ebp - 0x18]
mov edx, 0x4c0660
mov eax, esi
call fcn.004bdfdc
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404860
lea ecx, [ebp - 0x1c]
mov edx, 0x4c067c
mov eax, esi
call fcn.004bdfdc
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404860
lea ecx, [ebp - 0x24]
mov edx, 0x4c0694
mov eax, esi
call fcn.004bdfdc
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00409328
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00409914
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4c06ac
mov eax, esi
call fcn.004bdfdc
mov eax, dword [ebp - 0x28]
call fcn.004b7894
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4c06bc
mov eax, esi
call fcn.004bdfdc
mov eax, dword [ebp - 0x2c]
call fcn.004b7894
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4c06d4
mov eax, esi
call fcn.004bdfdc
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00409914
inc eax
je 0x4c05a5
lea ecx, [ebp - 0x34]
mov edx, 0x4c06d4
mov eax, esi
call fcn.004bdfdc
mov eax, dword [ebp - 0x34]
call fcn.004098d8
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.0040b560
fstp qword [ebp - 0x3c]
wait
call fcn.0040b8d0
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4c05c0
lea ecx, [ebp - 0x40]
mov edx, 0x4c06d4
mov eax, esi
call fcn.004bdfdc
mov eax, dword [ebp - 0x40]
call fcn.004b7894
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4c06e4
mov eax, esi
call fcn.004bdfdc
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404860
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0609
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404830
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404830
ret
Function at 0x4cdf3c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4cdf6a
mov eax, ebx
call fcn.004ce9f0
cmp dword [ebx + 0x40], 0
je 0x4cdf63
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4cdfdb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4cdfcd
cmp dword [ebx + 8], 0
je 0x4cdf8c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4cdf9e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4cdfcd
cmp dword [ebx + 8], 0
je 0x4cdf7f
cmp eax, 3
je 0x4cdfb1
dec eax
jne 0x4cdf7f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4cdf7f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4cdf7f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4cdff9
cmp dword [ebx + 0x14], 0xcc
je 0x4cdff9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004ce004
pop ebx
ret

Function at 0x4e4b9c
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ccc
xor eax, eax
push ebp
push 0x4e4c94
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404adc
add eax, 2
call fcn.00402b5c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4e4c77
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404adc
mov edx, eax
add edx, 2
mov eax, dword [ebp - 8]
xor ecx, ecx
call fcn.00403238
mov eax, dword [ebp - 4]
call fcn.00404cdc
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00409f44
xor eax, eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], 3
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1e], eax
xor eax, eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], 0x18
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x26]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
je 0x4e4c54
mov ecx, 0x4e4ca8
mov dl, 1
mov eax, dword [0x4082d8]
call fcn.0040d890
call fcn.00404160
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4c7e
mov eax, dword [ebp - 4]
call fcn.00404adc
mov edx, eax
add edx, 2
mov eax, dword [ebp - 8]
call fcn.00402b8c
ret

Function at 0x4eb348
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
push esp
push 0xff
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.0040a110
add esp, 0x100
pop ebx
ret
Function at 0x4ed31c
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4ed48d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41cac4]
call fcn.0040388c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x44]
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
call sub.wininet.dll_FindFirstUrlCacheEntryA
mov eax, dword [ebp - 0xc]
call fcn.00402b5c
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0
jbe 0x4ed37d
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
call sub.wininet.dll_FindFirstUrlCacheEntryA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4ed453
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
and eax, 1
cmp eax, 1
jne 0x4ed3b5
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
call fcn.00404a14
mov edx, dword [ebp - 0x10]
mov eax, 0x4ed4a4
call fcn.00404e20
test eax, eax
jle 0x4ed3d1
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4ed402
inc ebx
xor esi, esi
lea ecx, [ebp - 0x18]
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
call fcn.00404cdc
push eax
call sub.wininet.dll_DeleteUrlCacheEntry
inc esi
dec ebx
jne 0x4ed3e3
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00402b8c
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_FindNextUrlCacheEntryA
mov eax, dword [ebp - 0xc]
call fcn.00402b5c
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0
jbe 0x4ed43a
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_FindNextUrlCacheEntryA
test eax, eax
jne 0x4ed399
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00402b8c
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_FindCloseUrlCache
mov eax, dword [ebp - 0x14]
call fcn.004038bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed494
lea eax, [ebp - 0x18]
call fcn.0040480c
lea eax, [ebp - 0x10]
call fcn.0040480c
ret
Function at 0x4f8d90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4f8f08
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402f20
mov eax, dword [ebp - 0x18]
call fcn.00404cdc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
mov eax, ebx
call fcn.00402b5c
mov esi, eax
push esi
push ebx
push 0
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00402f20
mov eax, dword [ebp - 0x1c]
call fcn.00404cdc
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4f8f18
push esi
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 8]
shr edx, 0x10
mov word [ebp - 2], dx
mov dx, word [eax + 8]
and dx, 0xffff
mov word [ebp - 4], dx
mov edx, dword [eax + 0xc]
shr edx, 0x10
mov word [ebp - 6], dx
mov ax, word [eax + 0xc]
and ax, 0xffff
mov word [ebp - 8], ax
mov edx, ebx
mov eax, esi
call fcn.00402b8c
mov dl, 1
mov eax, dword [0x41cac4]
call fcn.0040388c
mov ebx, eax
lea eax, [ebp - 0x20]
push eax
movzx esi, word [ebp - 2]
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x3c], 0
movzx eax, word [ebp - 4]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
movzx eax, word [ebp - 6]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
movzx eax, word [ebp - 8]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x40]
mov ecx, 3
mov eax, 0x4f8f24
call fcn.0040a628
mov edx, dword [ebp - 0x20]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x3c], 0
movzx eax, word [ebp - 4]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
movzx eax, word [ebp - 6]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
movzx eax, word [ebp - 8]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x40]
mov ecx, 3
mov eax, 0x4f8f34
call fcn.0040a628
mov edx, dword [ebp - 0x44]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f8f0f
lea eax, [ebp - 0x44]
call fcn.0040480c
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404830
ret
Function at 0x4f8f40
Capabilities:
Create process on windows
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4f8f48
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4f9179
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
mov edx, 0x4f9194
call fcn.004048a4
lea eax, [ebp - 8]
mov edx, 0x4f9224
call fcn.004048a4
lea eax, [ebp - 0x1c]
mov edx, 0x4f9254
call fcn.004048a4
cmp dword [ebp - 8], 0
je 0x4f9151
cmp dword [ebp - 0x1c], 0
je 0x4f9151
xor eax, eax
push ebp
push 0x4f914a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4c7f50]
call fcn.004c8460
mov ebx, eax
mov eax, ebx
call fcn.004ca0e4
add eax, 0x70
mov edx, dword [ebp - 0x24]
call fcn.00404860
mov byte [ebx + 0x108], 1
xor eax, eax
push ebp
push 0x4f912a
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004c8910
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x58]
mov eax, ebx
call fcn.004038bc
call fcn.004f8d90
lea ecx, [ebp - 0x18]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dl, 1
mov eax, dword [0x41cac4]
call fcn.0040388c
mov dword [ebp - 0x20], eax
mov edx, 0x4f9280
mov eax, dword [ebp - 0x10]
call fcn.004e4e20
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x28]
xor edx, edx
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
mov edx, 1
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x30]
mov edx, 2
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x30]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404b9c
mov eax, dword [ebp - 0xc]
call fcn.004098d8
mov ebx, eax
mov eax, dword [ebp - 0x18]
call fcn.004098d8
cmp ebx, eax
jle 0x4f911c
lea ecx, [ebp - 0x14]
mov edx, 3
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push 0x41
push 0x4f928c
call fcn.004f8d90
lea ecx, [ebp - 0x38]
mov edx, 1
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x38]
push 0x4f92a4
push 0x4f92b0
push dword [ebp - 0x10]
push 0x4f92c4
lea eax, [ebp - 0x34]
mov edx, 6
call fcn.00404b9c
mov eax, dword [ebp - 0x34]
call fcn.00404cdc
mov edx, eax
mov ecx, 0x4f92d0
mov eax, dword [0x4ffd1c]
mov eax, dword [eax]
call fcn.00467e2c
dec eax
jne 0x4f9116
push 1
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00404cdc
push eax
push 0x4f92d8
push 0x4f92ec
mov eax, dword [0x502040]
call fcn.0044e478
push eax
call sub.shell32.dll_ShellExecuteA
mov byte [ebp - 1], 1
jmp 0x4f9120
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f9134
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9151
mov eax, dword [ebp - 0x20]
call fcn.004038bc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9180
lea eax, [ebp - 0x38]
mov edx, 6
call fcn.00404830
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00404830
ret
Function at 0x4f92f4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4f946c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402f20
mov eax, dword [ebp - 0x18]
call fcn.00404cdc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
mov eax, ebx
call fcn.00402b5c
mov esi, eax
push esi
push ebx
push 0
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00402f20
mov eax, dword [ebp - 0x1c]
call fcn.00404cdc
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4f947c
push esi
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 8]
shr edx, 0x10
mov word [ebp - 2], dx
mov dx, word [eax + 8]
and dx, 0xffff
mov word [ebp - 4], dx
mov edx, dword [eax + 0xc]
shr edx, 0x10
mov word [ebp - 6], dx
mov ax, word [eax + 0xc]
and ax, 0xffff
mov word [ebp - 8], ax
mov edx, ebx
mov eax, esi
call fcn.00402b8c
mov dl, 1
mov eax, dword [0x41cac4]
call fcn.0040388c
mov ebx, eax
lea eax, [ebp - 0x20]
push eax
movzx esi, word [ebp - 2]
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x3c], 0
movzx eax, word [ebp - 4]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
movzx eax, word [ebp - 6]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
movzx eax, word [ebp - 8]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x40]
mov ecx, 3
mov eax, 0x4f9488
call fcn.0040a628
mov edx, dword [ebp - 0x20]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x3c], 0
movzx eax, word [ebp - 4]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
movzx eax, word [ebp - 6]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
movzx eax, word [ebp - 8]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x40]
mov ecx, 3
mov eax, 0x4f9498
call fcn.0040a628
mov edx, dword [ebp - 0x44]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9473
lea eax, [ebp - 0x44]
call fcn.0040480c
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404830
ret
Function at 0x402b5c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403b60
test esi, esi
jne 0x402b93
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00403c50
jmp 0x402bb4
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.004029f8
mov dword [esp], eax
test esi, esi
je 0x402bb4
cmp dword [ebx], 0
je 0x402bb4
dec esi
jmp 0x402b9b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403078
Capabilities:
Query or enumerate registry value

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

Function at 0x4039dc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x43d044], 0
je 0x403a3d
cmp word [0x43d218], 0xd7b2
jne 0x403a05
cmp dword [0x43d220], 0
jbe 0x403a05
mov eax, 0x43d214
call dword [0x43d230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40905c
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 0x403a64
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409020], 0
jne 0x403a59
push 0
push 0x409054
push 0x40905c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4047b0
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 0x404816
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.00403da8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c6c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404800
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40481d
lea eax, [ebp - 0x10]
call fcn.00403b60
ret

Function at 0x406628
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 0x406661
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403c50
jmp 0x40666a
mov eax, ebx
mov edx, esi
call fcn.00403bb4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x406d2c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406b94
mov eax, dword [0x43bfb0]
cmp byte [eax], 0
je 0x406da8
mov eax, dword [0x43bf08]
call fcn.00402c08
call fcn.00402968
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.00405afc
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 0x406df0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406dde
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x43bee8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x43d660]
call fcn.00404180
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