joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e3a5d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1010d2fc
push 0x1010d2f4
push str.FlsGetValue
push 0x20
call fcn.100e380c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100e3a94
push dword [ebp + 8]
mov ecx, esi
call dword [0x100fb39c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100e6ec6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100e6f63
push ebx
push esi
call fcn.100e6e8f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100e55f6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100e6f10
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100e6f62
push edi
push eax
call fcn.100e21ba
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100e6f30
call fcn.100e2180
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100e6f61
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100e55f6
add esp, 0x20
test eax, eax
jne 0x100e6f4f
push edi
call fcn.100e2180
jmp 0x100e6f57
push ebx
call fcn.100e2180
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100e6f66
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100e6f77
pop esi
ret
push ebx
push edi
push esi
call fcn.100e6e8f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100e21ba
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100e6f9f
push ebx
push esi
push edi
call fcn.100c6960
add esp, 0xc
push 0
call fcn.100e2180
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100e7363
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100e6fb4
Function at 0x100ef110
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100ef13d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100ef13d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401160
Capabilities:
Terminate process

Disassembly:
push 0x423574
push 0x4358d0
call fcn.004126f5
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
push 0x4358d0
call fcn.004126ba
push 0x423570
push 0x4358d0
call fcn.004126f5
add esp, 0x1c
push 1
call fcn.00412999
nop
nop
nop
nop

Function at 0x401210
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 0x423440
mov dword [0x439130], 0x4358b0
mov ecx, dword [esi]
mov edx, dword [edi]
push 0x423970
push ecx
push edx
mov dword [esp + 0x20], 0
call fcn.00407600
add esp, 0x14
cmp eax, 0xffffffff
je 0x40139a
mov ebx, 1
lea esp, [esp]
add eax, 0xffffffb0
cmp eax, 0x25
ja case.0x401274.90
xor ecx, ecx
mov cl, byte [eax + 0x401400]
jmp dword [ecx*4 + 0x4013d4]
mov dword [0x439180], ebx
jmp 0x401374
mov edx, dword [0x441684]
push 0xa
push 0
push edx
call fcn.00407380
add esp, 0xc
mov dword [0x439188], eax
mov dword [0x43918c], edx
jmp 0x401374
mov eax, dword [0x441684]
push 0xa
push 0
push eax
call fcn.00407380
add esp, 0xc
mov dword [0x439190], eax
mov dword [0x439194], edx
jmp 0x401374
mov ecx, dword [0x441684]
push 0
push ecx
mov dword [0x439198], ebx
call fcn.00403c70
mov dword [0x4234f0], eax
jmp 0x401371
mov edx, dword [0x441684]
push edx
mov dword [0x439198], ebx
call fcn.00412bd0
add esp, 4
mov dword [0x4234f4], eax
jmp 0x401374
mov eax, dword [0x441684]
push 0
push eax
mov dword [0x439198], ebx
call fcn.00403c70
mov dword [0x4234fc], eax
jmp 0x401371
mov ecx, dword [0x441684]
push 0x10
push 0x8001
push ecx
call fcn.00406980
add esp, 0xc
test eax, eax
mov dword [0x439130], eax
jne 0x401374
push ebx
call fcn.00412999
mov edx, dword [0x441684]
push 0
push edx
mov dword [0x439198], ebx
call fcn.00403c70
mov dword [0x4234f8], eax
jmp 0x401371
mov eax, dword [0x441684]
push 0
push eax
call fcn.00403c70
mov dword [0x4391a4], eax
add esp, 8
mov edx, dword [esi]
mov eax, dword [edi]
lea ecx, [esp + 0xc]
push ecx
push 0x423440
push 0x423970
push edx
push eax
call fcn.00407600
add esp, 0x14
cmp eax, 0xffffffff
jne 0x401260
mov ecx, dword [0x424810]
sub dword [edi], ecx
mov edx, dword [0x424810]
mov ecx, dword [esi]
lea eax, [edx*4]
add ecx, eax
pop edi
mov dword [esi], ecx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call fcn.004011f0
push 0
call fcn.00412999
call fcn.004011a0
push 0
call fcn.00412999
jmp 0xbc4053eb
Function at 0x4042a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
test eax, eax
push ebx
push esi
push edi
je 0x404395
cmp byte [eax], 0
je 0x404395
mov esi, dword [ebp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
mov edi, esi
call fcn.00404230
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.00404230
mov al, byte [ebp + 0x14]
mov edx, dword [esp + 0x20]
add esp, 0x10
test al, al
je 0x404300
xor edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004043b0
add esp, 8
jmp 0x40431d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
xor ecx, eax
push ecx
xor edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004041a0
add esp, 0xc
cmp byte [ebx], 0
je 0x404356
lea ecx, [esp + 0x20]
inc ebx
push ecx
mov dword [ebp + 0xc], ebx
call fcn.004041e0
fmul qword [0x420228]
push ecx
fstp qword [esp]
call fcn.00413696
fadd qword [0x420220]
add esp, 8
call fcn.00413768
mov byte [esi], al
mov al, byte [ebx]
inc esi
test al, al
jne 0x404322
mov al, byte [ebp + 0x14]
test al, al
jne 0x404398
lea edx, [esp + 0x20]
push edx
call fcn.004041e0
fmul qword [0x420228]
push ecx
fstp qword [esp]
call fcn.00413696
add esp, 8
call fcn.00413768
cmp edi, esi
je 0x404398
xor byte [edi], al
inc edi
cmp edi, esi
jne 0x404382
mov byte [esi], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
pop edi
mov byte [esi], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404460
Capabilities:
Allocate thread local storage
Initialize winsock library

Disassembly:
mov al, byte [0x4391a9]
test al, al
jne 0x4044fd
mov byte [0x4391a9], 1
call fcn.00408280
mov eax, dword [0x4391c8]
test eax, eax
jne 0x4044f8
call fcn.00404590
push 0x423e68
call fcn.0041261c
add esp, 4
test eax, eax
mov dword [0x4391c8], eax
je 0x4044b0
push eax
push 0x4393d0
call fcn.00408920
add esp, 8
mov dword [0x4391c8], eax
push 0x423e60
call fcn.0041261c
add esp, 4
test eax, eax
je 0x4044d4
push eax
call fcn.00404500
add esp, 4
or eax, 0x180
mov dword [0x4247cc], eax
push 0x423e54
call fcn.0041261c
add esp, 4
test eax, eax
je 0x4044f8
push eax
call fcn.00404500
add esp, 4
or eax, 0x1c0
mov dword [0x4247d0], eax
jmp 0x4046a0
ret
sub esp, 0x190
call fcn.00404700
test al, al
je 0x4046ef
lea eax, [esp]
push eax
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x4046cb
call sub.WSOCK32.dll_WSACleanup
lea ecx, [esp]
push ecx
jmp 0x4046dd
cmp word [esp], 2
je 0x4046e8
call sub.WSOCK32.dll_WSACleanup
lea edx, [esp]
push edx
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4046ef
mov byte [0x4391a8], 1
xor al, al
add esp, 0x190
ret
Function at 0x404590
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa04
push 0x439128
push 2
mov dword [esp + 0xc], 0x100
mov dword [esp + 0x10], 0x400
call fcn.00413804
add esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push 0x423e74
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404691
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
mov edx, dword [esp + 0x10]
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push edx
mov esi, 1
call edi
cmp eax, 0x103
je 0x404684
nop
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x51c]
push edx
call fcn.00404570
lea eax, [esp + 0x520]
push eax
call fcn.0041d7ae
lea ecx, [esp + 0x524]
push ecx
call fcn.0041e74e
add esp, 0x14
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x118]
push ecx
push 0
push 0
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
mov eax, esi
push ecx
push eax
push edx
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x30], 0x400
inc esi
call edi
cmp eax, 0x103
jne 0x404610
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0xa04
ret

Function at 0x405000
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov al, byte [0x4391bc]
test al, al
jne 0x4050a1
mov byte [0x4391bc], 1
call fcn.00404460
call fcn.00401000
mov eax, dword [0x4391c0]
test eax, eax
jne 0x405077
push 0x42479c
push 0x423050
mov dword [0x4391c0], 0xcea
call sub.WSOCK32.dll_getservbyname
test eax, eax
je 0x405058
movzx eax, word [eax + 8]
push eax
call sub.WSOCK32.dll_ntohs
and eax, 0xffff
mov dword [0x4391c0], eax
push 0x42478c
call fcn.0041261c
add esp, 4
test eax, eax
je 0x405077
push eax
call fcn.00412bd0
add esp, 4
mov dword [0x4391c0], eax
mov eax, dword [0x4391c4]
test eax, eax
jne 0x4050a0
push 0x42477c
mov dword [0x4391c4], 0x423060
call fcn.0041261c
add esp, 4
test eax, eax
je 0x4050a0
mov dword [0x4391c4], eax
ret
jmp fcn.00408310
Function at 0x4059e0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call sub.WSOCK32.dll_connect
ret

Function at 0x408280
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value
Terminate process

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x441a84], eax
jne 0x4082b1
call fcn.00413411
mov eax, dword [eax]
push eax
push 0x4249a0
push 0x4358d0
call fcn.004126f5
add esp, 0xc
push 1
call fcn.00412999
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x441b80
call esi
push 0x441b20
call esi
push 0x441ba0
call esi
push 0x441b40
call esi
push 0x441ae0
call esi
push 0x441b00
call esi
push 0x441ac0
call esi
push 0x441aa0
call esi
push 0x441b60
call esi
call fcn.0040c980
pop esi
jmp fcn.00408310

Function at 0x408310
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push 0x441b40
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x441a84]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x408381
push 0x3c
push 1
call fcn.004148b1
mov esi, eax
add esp, 8
test esi, esi
jne 0x40834d
push 0x441b40
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop esi
ret
mov ecx, dword [0x441a84]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x441688]
inc eax
lea edx, [esi + 0xc]
mov dword [0x441688], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
add esi, 4
push esi
call fcn.0040c990
add esp, 8
push 0x441b40
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop esi
ret
Function at 0x40c1a0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
lea esp, [esp]
call fcn.00413411
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.0041b506
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x40c26a
call fcn.00413411
cmp dword [eax], 0
je 0x40c1e7
call fcn.00413411
mov ebp, dword [eax]
jmp 0x40c1ea
or ebp, 0xffffffff
call fcn.00408390
test esi, esi
mov dword [eax], ebp
jne 0x40c1ff
call fcn.00413411
cmp dword [eax], 4
je 0x40c1b0
mov al, byte [esp + 0x20]
test al, 0x1a
je 0x40c257
cmp esi, 0xffffffff
jne 0x40c231
call fcn.00408390
mov ecx, dword [eax]
push ecx
push ebx
call fcn.0040c460
add esp, 4
push eax
push 0x24
push 2
call fcn.004048d0
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test al, 6
je 0x40c257
call fcn.00408390
mov edx, dword [eax]
push edx
push ebx
call fcn.0040c460
add esp, 4
push eax
push 0x24
push 9
call fcn.004048d0
mov al, byte [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x40c260
test al, 6
je 0x40c274
pop edi
pop esi
pop ebp
mov eax, 0xffffffff
pop ebx
ret
mov al, byte [esp + 0x20]
test al, 6
je 0x40c274
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x40c6e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x44
push ebx
mov ebx, dword [esp + 0x58]
test ebx, ebx
push edi
jge 0x40c731
cmp ebx, 0xffffffdc
jl 0x40c7fb
cmp ebx, 0xfffffffe
jg 0x40c7fb
mov ecx, dword [esp + 0x54]
test ecx, ecx
mov edi, dword [esp + 0x50]
jg 0x40c729
jl 0x40c711
test edi, edi
jae 0x40c729
mov edx, dword [esp + 0x58]
inc edx
mov byte [edx - 1], 0x2d
neg edi
adc ecx, 0
neg ecx
mov dword [esp + 0x58], edx
neg ebx
jmp 0x40c74f
mov edx, dword [esp + 0x58]
neg ebx
jmp 0x40c74f
cmp ebx, 0x24
jg 0x40c7fb
cmp ebx, 2
jl 0x40c7fb
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
mov eax, edi
or eax, ecx
jne 0x40c764
mov byte [edx], 0x30
inc edx
pop edi
mov byte [edx], 0
mov eax, edx
pop ebx
add esp, 0x44
ret
test ecx, ecx
push esi
lea esi, [esp + 0x4c]
mov byte [esp + 0x4c], 0
ja 0x40c77a
cmp edi, 0x7fffffff
jbe 0x40c7af
push ebp
xor ebp, ebp
lea ecx, [ecx]
push ebp
push ebx
push ecx
push edi
call fcn.00414180
mov ecx, eax
imul ecx, ebx
sub edi, ecx
mov cl, byte [edi + 0x424978]
dec esi
test edx, edx
mov byte [esi], cl
mov edi, eax
mov ecx, edx
ja 0x40c780
jb 0x40c7aa
cmp eax, 0x7fffffff
ja 0x40c780
mov edx, dword [esp + 0x60]
pop ebp
test edi, edi
mov dword [esp + 0x60], edi
je 0x40c7e7
mov eax, dword [esp + 0x60]
cdq
idiv ebx
xor edx, edx
mov dl, byte [esp + 0x60]
dec esi
mov ecx, eax
mov al, bl
imul cl
sub dl, al
mov dword [esp + 0x60], ecx
and edx, 0xff
test ecx, ecx
mov al, byte [edx + 0x424978]
mov byte [esi], al
jne 0x40c7b7
mov edx, dword [esp + 0x5c]
mov al, byte [esi]
mov byte [edx], al
inc edx
inc esi
test al, al
jne 0x40c7e7
pop esi
pop edi
lea eax, [edx - 1]
pop ebx
add esp, 0x44
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x44
ret
Function at 0x41ed30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41ed50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041339e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41ed73
test byte [esp + 8], 2
je 0x41ed73
call fcn.00413411
mov dword [eax], 0xd
call fcn.0041341a
mov dword [eax], 5
jmp 0x41ed4c
xor eax, eax
ret
Function at 0x403354
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 0x4033ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4033cc
xor eax, eax
push ebp
push 0x4033c5
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 0x403408
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 0x4033cc
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 0x4040cc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x460048], 0
je 0x40412d
cmp word [0x46021c], 0xd7b2
jne 0x4040f5
cmp dword [0x460224], 0
jbe 0x4040f5
mov eax, 0x460218
call dword [0x460234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45e054
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 0x404154
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45e01c], 0
jne 0x404149
push 0
push 0x45e074
push 0x45e054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409634
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 0x40966d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404338
jmp 0x409676
mov eax, ebx
mov edx, esi
call fcn.0040429c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x409d28
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409ba0
mov eax, dword [0x45f118]
cmp byte [eax], 0
je 0x409d90
mov eax, dword [0x45ef74]
call fcn.00402c70
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040886c
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 0x409dd8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409dc6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45ef34]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x460714]
call fcn.00405990
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 0x40a8c4
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 0x40a928
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.004044b0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408564
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a92f
lea eax, [ebp - 0xc]
call fcn.00404248
ret
Function at 0x41c64c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x460a20
cmp dword [edi], 0
jne 0x41c6c8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x460a1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45e4bc
mov ecx, 2
call fcn.004028d4
mov edx, 0x41c624
lea eax, [esi + 5]
call fcn.0041c644
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c644
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 0x41c69d
mov dword [0x460a1c], 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 0x41db54
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 0x41db5a
ret

Function at 0x41ffec
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 0x42003d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x420024
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x420014
jmp 0x42003d
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 0x420025
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ca88
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.004046e8
xor eax, eax
push ebp
push 0x42cbb6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42cb89
xor eax, eax
push ebp
push 0x42cb82
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404500
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42cb57
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 0x42cb46
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404500
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.004046f8
mov edx, ebx
pop ecx
call fcn.004028d4
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 0x42cb4d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x45eef0]
mov dl, 1
mov eax, dword [0x407578]
call fcn.00409e98
call fcn.00403ca8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cbbd
lea eax, [ebp - 4]
call fcn.00404248
ret