joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c88cc
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, eax
push 0x2000
mov ecx, edx
mov eax, dword [0x41cc74]
mov dl, 1
call fcn.00420e30
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x4c8a4b
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 4]
mov ecx, 4
mov eax, dword [ebp - 0x18]
call fcn.00421a10
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004c8a5c
mov dword [ebp - 4], eax
lea edx, [ebp - 6]
mov ecx, 2
mov eax, dword [ebp - 0x18]
call fcn.00421a10
mov dx, word [ebp - 6]
mov eax, ebx
call fcn.004c8a88
mov word [ebp - 6], ax
lea edx, [ebp - 8]
mov ecx, 2
mov eax, dword [ebp - 0x18]
call fcn.00421a10
mov dx, word [ebp - 8]
mov eax, ebx
call fcn.004c8a88
mov word [ebp - 8], ax
movzx edx, word [ebp - 6]
mov eax, ebx
call fcn.004c8300
movzx edx, word [ebp - 8]
mov eax, ebx
call fcn.004c82e8
lea edx, [ebp - 0xc]
mov ecx, 2
mov eax, dword [ebp - 0x18]
call fcn.00421a10
lea edx, [ebp - 0xa]
mov ecx, 2
mov eax, dword [ebp - 0x18]
call fcn.00421a10
mov dx, word [ebp - 0xc]
mov eax, ebx
call fcn.004c8a88
mov word [ebp - 0xc], ax
mov dx, word [ebp - 0xa]
mov eax, ebx
call fcn.004c8a88
mov word [ebp - 0xa], ax
movzx eax, word [ebp - 0xc]
mov dword [ebx + 0x30], eax
movzx eax, word [ebp - 0xa]
mov dword [ebx + 0x34], eax
lea edx, [ebp - 0xd]
mov ecx, 1
mov eax, dword [ebp - 0x18]
call fcn.00421a10
mov eax, dword [ebx + 0x38]
mov dword [ebx + 0x38], eax
lea edx, [ebx + 0x64]
mov ecx, 1
mov eax, dword [ebp - 0x18]
call fcn.00421a10
mov dl, 1
mov eax, dword [0x4c7754]
call fcn.004c8318
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 4]
dec edi
test edi, edi
jl 0x4c8a24
inc edi
movzx eax, word [ebp - 8]
push eax
movzx ecx, word [ebp - 6]
mov dl, 1
mov eax, dword [0x4c76c4]
call fcn.004c7b94
mov esi, eax
mov edx, dword [ebp - 0x18]
mov eax, esi
call fcn.004c88b0
mov edx, esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x18]
dec edi
jne 0x4c89f6
mov eax, ebx
call fcn.004bed60
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.004c7fac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c8a52
mov eax, dword [ebp - 0x18]
call fcn.00404130
ret

Function at 0x4ca11c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
push esp
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.0040d214
add esp, 0x100
pop ebx
ret
Function at 0x4de608
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax + 0x6c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4de70e
inc eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov eax, dword [esp]
call fcn.004d8d80
mov ebx, eax
cmp byte [ebx + 0x10], 0
je 0x4de700
mov eax, dword [ebx + 0x20]
call fcn.004b427c
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.004af9c0
mov edx, eax
mov eax, dword [ebx + 0x20]
call fcn.004b06dc
mov eax, dword [ebx + 0x18]
call fcn.004b9b48
mov eax, dword [ebx + 0x18]
mov byte [eax + 0x3c], 2
mov byte [eax + 0x30], 1
mov edx, dword [ebx + 0x14]
cmp byte [edx + 0x94], 0
je 0x4de68c
mov byte [eax + 0x32], 0
jmp 0x4de690
mov byte [eax + 0x32], 1
mov eax, 0xff
call fcn.004af988
mov ecx, eax
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x14]
mov esi, dword [eax]
call dword [esi + 0x7c]
mov edx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
push 0
push 0xff
xor ecx, ecx
xor edx, edx
mov al, 0xff
call fcn.004af9c0
mov ecx, eax
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
call fcn.004b9be0
mov eax, ebx
call fcn.004d9080
mov esi, eax
dec esi
test esi, esi
jl 0x4de700
inc esi
xor edi, edi
mov edx, edi
mov eax, ebx
call fcn.004d9088
mov edx, dword [esp]
mov edx, dword [edx + 0x78]
mov ecx, dword [eax]
call dword [ecx + 0x94]
inc edi
dec esi
jne 0x4de6e5
inc dword [esp + 4]
dec dword [esp + 8]
jne 0x4de630
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4e2704
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41b7c8]
call fcn.00405b50
xor eax, eax
push ebp
push 0x4e2848
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x523e1c], 0
jne 0x4e2757
mov ecx, dword [0x524728]
mov dl, 1
mov eax, dword [0x40b318]
call fcn.00410610
call fcn.00404994
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403998
mov eax, ebx
call fcn.00405904
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4e2858
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406ebc
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00405914
test eax, eax
jle 0x4e27ef
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x4e27e8
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004052c8
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00405294
mov eax, dword [ebp - 0x48]
pop edx
call fcn.0040c1fc
test eax, eax
jne 0x4e27e8
mov ebx, 0x15
jmp 0x4e27f4
mov ebx, 0x10
jmp 0x4e27f4
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x523e1c]
call fcn.004e265c
mov eax, dword [ebp - 8]
call fcn.004e265c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406ed4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e284f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00405048
lea eax, [ebp - 0x10]
mov edx, dword [0x41b7c8]
call fcn.00405c20
ret

Function at 0x4ef50c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4ef5c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405788
mov eax, dword [0x5247cc]
cmp byte [eax], 0
je 0x4ef57b
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00405ae8
mov eax, dword [ebx]
call fcn.00405914
push eax
mov eax, dword [ebx]
call fcn.00405904
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00405914
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405ae8
jmp 0x4ef5ad
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.0040d214
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.004058f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef5cd
lea eax, [ebp - 0x3f0]
call fcn.00405024
ret
Function at 0x4f27dc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4f2836
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi + 0x2c8], ecx
mov dword [esi + 0x2cc], edx
mov eax, dword [edx + 0x4c]
mov dword [esi + 0x2bc], eax
mov eax, dword [eax + 0x44]
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0x2c8]
mov eax, esi
call fcn.004f2840
mov eax, dword [esi + 0x2c8]
mov edx, dword [eax + 0x30]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f283d
ret

Function at 0x4fb57c
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.0047b33c
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x279], 0
xor edx, edx
mov eax, ebx
call fcn.004749ec
pop ebx
ret
Function at 0x501b14
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x501bce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405788
mov eax, dword [0x5247cc]
cmp byte [eax], 0
je 0x501b83
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00405ae8
mov eax, dword [ebx]
call fcn.00405914
push eax
mov eax, dword [ebx]
call fcn.00405904
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00405914
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405ae8
jmp 0x501bb5
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.0040d214
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.004058f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501bd5
lea eax, [ebp - 0x3f0]
call fcn.00405024
ret

Function at 0x501bdc
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.0040d214
add esp, 0x3ec
pop ebx
ret

Function at 0x507ec0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [0x524c90]
mov eax, dword [eax]
cmp dword [eax + 0x58], 0
jne 0x507f66
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebx + 0x80]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x84]
cdq
cmp edx, dword [esp + 4]
jne 0x507f05
cmp eax, dword [esp]
pop edx
pop eax
jae 0x507f41
jmp 0x507f09
pop edx
pop eax
jge 0x507f41
mov eax, dword [0x524c90]
mov eax, dword [eax]
mov dword [eax + 0x38], 2
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00502b88
mov eax, dword [ebx + 0xf4]
test eax, eax
je 0x507f66
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x507f66
cmp dword [ebx + 0x11c], 0
je 0x507f66
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.00469d3c
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x12c]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x512ab8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x512c29
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x9c], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x512c0e
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.0040d214
mov dl, 1
mov eax, dword [0x4e952c]
call fcn.004e9584
mov edx, dword [ebp - 4]
mov dword [edx + 0x94], eax
mov dl, 1
mov eax, dword [0x41c924]
call fcn.00404100
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x98]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.004e9600
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x512c0b
mov dl, 1
mov eax, dword [0x4eab1c]
call fcn.004eab84
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
mov edx, 0x512c40
call fcn.004e9d68
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040534c
xor eax, eax
push ebp
push 0x512c04
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.004eae84
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00512c48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x512c0b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.00404130
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00404130
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00404130
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x512c30
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405048
ret
Function at 0x402f54
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x402f6a
sub ecx, 2
jne 0x402f8c
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x402f93
cmp edx, dword [ebx + 8]
je 0x402f9d
mov eax, 0x64
jmp 0x402f98
mov eax, 0x67
jmp 0x402f98
call sub.kernel32.dll_GetLastError
call fcn.004028a0
pop ebx
ret

Function at 0x40340c
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x40343f
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x403446
cmp edx, dword [ebx + 8]
je 0x403450
mov eax, 0x65
jmp 0x40344b
mov eax, 5
jmp 0x40344b
call sub.kernel32.dll_GetLastError
call fcn.004028a0
mov eax, ebx
pop ebx
ret

Function at 0x403a18
Capabilities:
Query or enumerate registry value

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

Function at 0x404790
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45f048], 0
je 0x4047f1
cmp word [0x45f21c], 0xd7b2
jne 0x4047b9
cmp dword [0x45f224], 0
jbe 0x4047b9
mov eax, 0x45f218
call dword [0x45f234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45e07c
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 0x404818
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45e01c], 0
jne 0x40480d
push 0
push 0x45e09c
push 0x45e07c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4063bc
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 0x4065ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40643f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4065ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40643f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406608
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4064c8
xor eax, eax
push ebp
push 0x4064c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406204
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 0x4064a6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406628
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4064a6
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 0x4064c8
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 0x4065e2
cmp byte [ebp - 0xd], 0
jne 0x40650f
cmp byte [ebp - 0x12], 0
je 0x4065e2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406528
dec ebx
cmp byte [ebx], 0x2e
je 0x406537
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406527
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4065e2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406574
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 0x4065e2
cmp byte [ebp - 0xd], 0
je 0x4065e2
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 0x4065e2
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 0x409f38
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 0x409f71
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004049fc
jmp 0x409f7a
mov eax, ebx
mov edx, esi
call fcn.00404960
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40a62c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a4a4
mov eax, dword [0x45eec0]
cmp byte [eax], 0
je 0x40a694
mov eax, dword [0x45ed1c]
call fcn.00402cfc
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409170
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x40a6dc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a6ca
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45ecdc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45f714]
call fcn.004061c8
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 0x40b1c8
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 0x40b22c
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.00404b74
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408d5c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b233
lea eax, [ebp - 0xc]
call fcn.0040490c
ret
Function at 0x41cf50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45fa20
cmp dword [edi], 0
jne 0x41cfcc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45fa1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45e4e4
mov ecx, 2
call fcn.004028dc
mov edx, 0x41cf28
lea eax, [esi + 5]
call fcn.0041cf48
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041cf48
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 0x41cfa1
mov dword [0x45fa1c], 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 0x41e458
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 0x41e45e
ret

Function at 0x4208b4
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 0x420905
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4208ec
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4208dc
jmp 0x420905
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 0x4208ed
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b2ec
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404dac
xor eax, eax
push ebp
push 0x42b41a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42b3ed
xor eax, eax
push ebp
push 0x42b3e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404bc4
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42b3bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42b3aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404bc4
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404dbc
mov edx, ebx
pop ecx
call fcn.004028dc
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b3b1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x45ec98]
mov dl, 1
mov eax, dword [0x407d70]
call fcn.0040a79c
call fcn.0040436c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b421
lea eax, [ebp - 4]
call fcn.0040490c
ret