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

Disassembly:
push ecx
cmp dword [esi], 0
push edi
jne 0x406640
cmp dword [esi + 4], 0xffffffff
jne 0x406640
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4065d8
sub eax, edx
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
je 0x406608
cmp al, 0x2f
je 0x406608
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4065f5
mov ax, word [0x4095f0]
mov word [edi], ax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
call fcn.00405330
add esp, 4
test eax, eax
jne 0x406626
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 4
call fcn.00405720
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
ret 4
mov eax, 0x1000000
pop edi
pop ecx
ret 4

Function at 0x406bd0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x40d020]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x218]
test edi, edi
je 0x406c0d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406c0d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x406ccd
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x406c28
cmp al, 0x5c
jne 0x406c2a
mov esi, ecx
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x406c20
cmp esi, ebp
je 0x406c62
sub esi, ebp
push esi
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.00407f9c
lea ecx, [esp + 0x11c]
push ecx
push edi
mov byte [esp + esi + 0x124], 0
call fcn.00406bd0
add esp, 0x14
test edi, edi
mov byte [esp + 0xc], 0
je 0x406c7f
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x406c73
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406c83
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x406c95
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop esi
jne 0x406ccd
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
xor ecx, esp
call fcn.00407648
add esp, 0x20c
ret
Function at 0x4248ac
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 0x4248b2
ret

Function at 0x43f86c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43fa1d
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.004050d0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x43fa34
call fcn.00404d34
mov eax, ebx
call fcn.0042225c
mov edi, eax
dec edi
test edi, edi
jl 0x43f924
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00422230
mov edx, dword [0x432b18]
call fcn.00403d70
test al, al
je 0x43f920
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.00422230
lea edx, [ebp - 0x14]
call fcn.00446fac
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.004050d0
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404da8
inc esi
dec edi
jne 0x43f8d2
mov al, byte [0x43fa38]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x43fa44
mov eax, dword [ebp - 0xc]
call fcn.0040e9c4
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404ac8
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00446fac
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x43fa34
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f0]
call fcn.00446fac
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x43fa34
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x43fa34
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x43fa50
call fcn.0040a424
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43fa24
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404a54
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404a54
lea eax, [ebp - 0x14]
call fcn.00404a30
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404a54
ret
Function at 0x4b8120
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4b814e
mov eax, ebx
call fcn.004b8bd8
cmp dword [ebx + 0x3c], 0
je 0x4b8147
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4b81bf
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4b81b1
cmp dword [ebx + 8], 0
je 0x4b8170
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4b8182
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b81b1
cmp dword [ebx + 8], 0
je 0x4b8163
cmp eax, 3
je 0x4b8195
dec eax
jne 0x4b8163
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 0x4b8163
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4b8163
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4b81dd
cmp dword [ebx + 0x10], 0xcc
je 0x4b81dd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004b81e8
pop ebx
ret

Function at 0x4edf68
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc0c
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ed0
xor eax, eax
push ebp
push 0x4ee055
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404a30
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00409750
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4ee03f
xor edx, edx
push ebp
push 0x4ee038
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x3f4]
mov ecx, 0x3e8
mov eax, dword [ebp - 0xc]
call fcn.004097d8
mov edi, eax
test di, di
jbe 0x4ee00c
mov esi, edi
test si, si
jbe 0x4ee00c
lea eax, [ebp - 0x3f4]
mov edx, ebx
mov cl, byte [eax]
xor dl, cl
and edx, 0xff
mov edx, dword [edx*4 + 0x53cfec]
shr ebx, 8
and ebx, 0xffffff
xor edx, ebx
mov ebx, edx
inc eax
dec si
jne 0x4edfe6
test di, di
jne 0x4edfbf
mov ecx, dword [ebp - 8]
mov eax, ebx
not eax
mov edx, 8
call fcn.00409664
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ee03f
mov eax, dword [ebp - 0xc]
call fcn.00409868
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ee05c
lea eax, [ebp - 4]
call fcn.00404a30
ret
Function at 0x4f2698
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4f26a0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4f2815
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0x4f282c
lea edx, [ebp - 8]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004eef34
push dword [ebp - 8]
push 0x4f2884
lea edx, [ebp - 0xc]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004ef0c0
push dword [ebp - 0xc]
push 0x4f289c
lea edx, [ebp - 0x10]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004ef0ac
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 6
call fcn.00404da8
mov eax, dword [0x53d50c]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov edx, dword [esi + 0x36c]
call fcn.004eeaa4
test al, al
je 0x4f27ed
lea eax, [ebp - 0x14]
push eax
mov edx, 0x4f28b4
mov eax, dword [esi + 0x36c]
call fcn.004832e4
mov edx, dword [eax]
call dword [edx + 0x54]
fstp xword [ebp - 0x28]
wait
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 3
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x4f28c4
call fcn.0040a424
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x314]
call fcn.00446fdc
lea eax, [ebp - 0x2c]
push eax
mov edx, 0x4f28d4
mov eax, dword [esi + 0x36c]
call fcn.004832e4
mov edx, dword [eax]
call dword [edx + 0x54]
fstp xword [ebp - 0x28]
wait
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 3
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x4f28c4
call fcn.0040a424
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi + 0x30c]
call fcn.00446fdc
lea eax, [ebp - 0x30]
push eax
mov eax, dword [esi + 0x2f8]
mov eax, dword [eax + 0x22c]
call fcn.004a8f3c
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x4f28e0
call fcn.0040a424
mov edx, dword [ebp - 0x30]
mov eax, dword [esi + 0x310]
call fcn.00446fdc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f281c
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00404a54
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404a54
ret
Function at 0x51920c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x519214
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x519389
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0x5193a0
lea edx, [ebp - 8]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004eef34
push dword [ebp - 8]
push 0x5193f0
lea edx, [ebp - 0xc]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004ef0c0
push dword [ebp - 0xc]
push 0x519408
lea edx, [ebp - 0x10]
mov eax, dword [0x53d50c]
mov eax, dword [eax]
call fcn.004ef0ac
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 6
call fcn.00404da8
mov eax, dword [0x53d50c]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov edx, dword [esi + 0x368]
call fcn.004eeaa4
test al, al
je 0x519361
lea eax, [ebp - 0x14]
push eax
mov edx, 0x519420
mov eax, dword [esi + 0x368]
call fcn.004832e4
mov edx, dword [eax]
call dword [edx + 0x54]
fstp xword [ebp - 0x28]
wait
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 3
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x51942c
call fcn.0040a424
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x35c]
call fcn.00446fdc
lea eax, [ebp - 0x2c]
push eax
mov edx, 0x51943c
mov eax, dword [esi + 0x368]
call fcn.004832e4
mov edx, dword [eax]
call dword [edx + 0x54]
fstp xword [ebp - 0x28]
wait
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 3
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x51942c
call fcn.0040a424
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi + 0x360]
call fcn.00446fdc
lea eax, [ebp - 0x30]
push eax
mov eax, dword [esi + 0x2f4]
mov eax, dword [eax + 0x22c]
call fcn.004a8f3c
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x519448
call fcn.0040a424
mov edx, dword [ebp - 0x30]
mov eax, dword [esi + 0x364]
call fcn.00446fdc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x519390
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00404a54
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404a54
ret
Function at 0x4029d8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402a07
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403e24
jmp 0x402a25
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402900
mov edi, eax
test ebx, ebx
je 0x402a25
cmp dword [esi], 0
je 0x402a25
dec ebx
jmp 0x402a0e
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c54
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x55e044], 0x8088405
inc edx
mov dword [0x55e044], edx
mul edx
mov eax, edx
ret

Function at 0x402e64
Capabilities:
Query or enumerate registry value

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

Function at 0x403cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040279c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x55e049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403cb8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405ce8
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 0xf003f
push 0
push 0x405ea4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405d49
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405ec0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405dbb
xor eax, eax
push ebp
push 0x405db4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00405b40
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d9d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405ee0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405dbb
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x405e9c
cmp byte [ebp - 0xd], 0
jne 0x405dfd
cmp byte [ebp - 0x12], 0
je 0x405e9c
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405e16
dec ebx
cmp byte [ebx], 0x2e
je 0x405e25
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405e15
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405e9c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405e52
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405e9c
cmp byte [ebp - 0xd], 0
je 0x405e9c
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405e9c
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x40649c
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x4064f8
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x4064ea
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x4064df
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x4064da
mov eax, 0x64
jmp 0x4064ef
call sub.kernel32.dll_GetLastError
call fcn.0040288c
xor eax, eax
jmp 0x4064da
mov eax, 0x67
jmp 0x4064ef

Function at 0x406500
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x40655b
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_WriteFile
dec eax
pop eax
pop ecx
jne 0x40654d
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x406542
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x40653d
mov eax, 0x65
jmp 0x406552
call sub.kernel32.dll_GetLastError
call fcn.0040288c
xor eax, eax
jmp 0x40653d
mov eax, 0x67
jmp 0x406552

Function at 0x4065d4
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x406604
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x4065fa
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.0040289c
or eax, 0xffffffff
jmp 0x4065f8
mov eax, 0x67
call fcn.0040288c
or eax, 0xffffffff
jmp 0x4065f8

Function at 0x40c07c
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c0b5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403e24
jmp 0x40c0be
mov eax, ebx
mov edx, esi
call fcn.00403d90
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x418c74
Capabilities:
Suspend thread

Disassembly:
mov byte [eax + 0xd], 1
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
ret

Function at 0x418c84
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x418c99
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x41ad48
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 0x41ad4e
ret
Function at 0x41d2e8
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 0x41d339
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41d320
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41d310
jmp 0x41d339
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 0x41d321
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d1fc
Capabilities:
Open clipboard

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 4], 0
jne 0x42d250
mov eax, dword [0x55cde4]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebx + 8], eax
test eax, eax
jne 0x42d228
push ebx
push 0x42d258
call fcn.004483c0
mov dword [ebx + 8], eax
mov byte [ebx + 0xc], 1
mov eax, dword [ebx + 8]
push eax
call sub.user32.dll_OpenClipboard
test eax, eax
jne 0x42d24c
mov ecx, dword [0x55ca5c]
mov dl, 1
mov eax, dword [0x40846c]
call fcn.0040c938
call fcn.00403788
mov byte [ebx + 0xd], 0
inc dword [ebx + 4]
pop ebx
ret

Function at 0x42d278
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0042d1fc
xor edx, edx
push ebp
push 0x42d34a
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x42d31c
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
xor edx, edx
push ebp
push 0x42d30b
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.004028c0
mov eax, dword [ebp - 4]
call fcn.0042d1b4
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d312
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret

Function at 0x42d37c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0042d1fc
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42d3ee
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x42d3c2
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00403f04
jmp 0x42d3c9
mov eax, ebx
call fcn.00403d3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d3f5
cmp dword [ebp - 8], 0
je 0x42d3e5
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
call fcn.0042d1d0
ret