joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40939d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41c074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004026b4
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004026b4
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x409414
cmp word [ecx], dx
je 0x409414
mov eax, dword [0x416f94]
push edi
dec eax
push eax
push 0x416e80
call fcn.0040958d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x409487
cmp word [eax], dx
je 0x409487
mov eax, dword [edi]
test eax, eax
je 0x409438
cmp word [eax], dx
je 0x409438
lea eax, [ebp - 0x10]
push eax
call fcn.004095ee
jmp 0x409441
lea eax, [ebp - 0x10]
push eax
call fcn.004098dc
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4094b1
mov eax, dword [0x416e7c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x416b70
call fcn.0040958d
add esp, 0xc
test al, al
je 0x4094b1
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x40947c
cmp word [eax], di
je 0x40947c
lea eax, [ebp - 0x10]
push eax
call fcn.004095ee
pop ecx
jmp 0x4094b3
lea eax, [ebp - 0x10]
push eax
call fcn.004098dc
jmp 0x409479
mov eax, dword [edi]
test eax, eax
je 0x40949e
cmp word [eax], dx
je 0x40949e
lea eax, [ebp - 0x10]
push eax
call fcn.00409a10
pop ecx
jmp 0x4094b1
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x40957c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00409b02
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40957c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x40957c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x40957c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x409509
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0040304e
test ebx, ebx
je 0x409577
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0040304e
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40957c
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40957c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0040d7fc
add esp, 0x10
xor eax, eax
inc eax
jmp 0x40957e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405973
leave
ret
Function at 0x409c08
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004026b4
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x409c77
cmp esi, dword [ebp - 4]
je 0x409c72
cmp dword [ebp + 0xc], 0
je 0x409c72
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x409c4f
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00409cd1
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x409c79
xor eax, eax
inc eax
jmp 0x409c79
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x40b380
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b3ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b3ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41460c
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 0x4146a9
push ebx
push esi
call fcn.004146ac
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.004061dd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x414656
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4146a8
push edi
push eax
call fcn.00401f2d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x414676
call fcn.00401ef3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4146a7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004061dd
add esp, 0x20
test eax, eax
jne 0x414695
push edi
call fcn.00401ef3
jmp 0x41469d
push ebx
call fcn.00401ef3
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 0x41e0d3
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
xor eax, eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0x14]
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x41e115
mov dword [0x41c920], ecx
xor edi, edi
xor eax, eax
cld
mov esi, dword [0x41c920]
lodsw ax, word [esi]
test ax, ax
je 0x41e107
ror edi, 0x5c
add edi, eax
jmp 0x41e0f9
cmp edi, dword [0x41c938]
je 0x41e119
mov ebx, dword [ebx]
test ebx, ebx
jne 0x41e0e1
xor eax, eax
jmp 0x41e18c
mov eax, dword [ebx + 0x10]
mov dword [0x41c934], eax
mov edx, dword [eax + 0x3c]
add edx, eax
mov edx, dword [edx + 0x78]
add edx, eax
mov esi, dword [edx + 0x20]
add esi, eax
mov ecx, dword [edx + 0x18]
dec ecx
js 0x41e115
push esi
push edi
push eax
mov ebx, dword [esi + ecx*4]
add ebx, eax
mov dword [0x41c920], ebx
xor edi, edi
xor eax, eax
cld
mov esi, ebx
lodsb al, byte [esi]
test al, al
je 0x41e157
ror edi, 0x5c
add edi, eax
jmp 0x41e14b
cmp edi, dword [0x41c930]
je 0x41e164
pop eax
pop edi
pop esi
jmp 0x41e133
pop eax
pop edi
pop esi
mov ebx, dword [edx + 0x24]
add ebx, eax
movzx ecx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, eax
mov eax, dword [ebx + ecx*4]
add eax, dword [0x41c934]
mov dword [0x41c924], eax
mov eax, 1
jmp 0x41e18c
ret
Function at 0x402f1c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402f75
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402db8
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402db8
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f5f
inc ebx
jmp 0x402f48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f7c
lea eax, [ebp - 8]
call fcn.00404d5c
ret

Function at 0x402f84
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404d5c
test esi, esi
jne 0x402fbb
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404e4c
jmp 0x402fdc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402db8
mov dword [esp], eax
test esi, esi
je 0x402fdc
cmp dword [ebx], 0
je 0x402fdc
dec esi
jmp 0x402fc3
add esp, 0x10c
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4e4008], 0x8088405
inc edx
mov dword [ebx + 0x4e4008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403cb8
Capabilities:
Query or enumerate registry value

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

Function at 0x404b34
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e804c], 0
je 0x404b95
cmp word [0x4e8220], 0xd7b2
jne 0x404b5d
cmp dword [0x4e8228], 0
jbe 0x404b5d
mov eax, 0x4e821c
call dword [0x4e8238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4e4074
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 0x404bbc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e4034], 0
jne 0x404bb1
push 0
push 0x4e406c
push 0x4e4074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404d10
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.00402b58
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4e804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404cd8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4071d8
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 0x40723e
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.00404fcc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040368c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x407228
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407245
lea eax, [ebp - 0x10]
call fcn.00404d5c
ret

Function at 0x40a198
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040521c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a1b1
test al, 0x10
jne 0x40a1b5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40a530
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40a784
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404db0
cmp dword [0x4e40cc], 1
jne 0x40a57b
cmp dword [0x4e40d0], 4
jle 0x40a5ba
mov dword [ebp - 0x18], 0x400
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x424]
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.0040521c
push eax
call sub.mpr.dll_WNetGetUniversalNameA
test eax, eax
jne 0x40a766
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x424]
mov edx, dword [edx]
call fcn.00404f54
jmp 0x40a766
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.00403010
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0x41
jb 0x40a766
cmp byte [ebp - 0x19], 0x5a
ja 0x40a766
mov eax, dword [ebp - 4]
call fcn.0040501c
cmp eax, 3
jl 0x40a766
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
jne 0x40a766
mov eax, dword [ebp - 4]
cmp byte [eax + 2], 0x5c
jne 0x40a766
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 1
push 1
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x40a766
xor eax, eax
push ebp
push 0x40a75f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0x640
mov eax, dword [ebp - 0xc]
call fcn.00402b58
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x40a741
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.mpr.dll_WNetEnumResourceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xea
jne 0x40a68e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00402ba8
jmp 0x40a64d
cmp dword [ebp - 0x10], 0
je 0x40a6a3
call fcn.0040475c
call fcn.0040475c
jmp 0x40a766
mov esi, dword [ebp - 0x14]
dec esi
test esi, esi
jl 0x40a64d
inc esi
xor edi, edi
mov eax, edi
shl eax, 2
mov edx, dword [ebp - 0x24]
lea ebx, [edx + eax*8]
cmp dword [ebx + 0x10], 0
je 0x40a71f
mov eax, dword [ebx + 0x10]
mov al, byte [eax]
call fcn.00403010
cmp al, byte [ebp - 0x19]
jne 0x40a71f
lea eax, [ebp - 0x428]
push eax
mov eax, dword [ebp - 4]
call fcn.0040501c
mov ecx, eax
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.0040527c
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, dword [ebx + 0x14]
call fcn.00404f54
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 8]
pop ecx
call fcn.00405068
call fcn.0040475c
call fcn.0040475c
jmp 0x40a766
inc edi
dec esi
jne 0x40a6ae
jmp 0x40a64d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a78b
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00404d80
ret
Function at 0x40d3b4
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 0x40d3ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404e4c
jmp 0x40d3f6
mov eax, ebx
mov edx, esi
call fcn.00404db0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40dab8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d920
mov eax, dword [0x4e7c60]
cmp byte [eax], 0
je 0x40db34
mov eax, dword [0x4e77fc]
call fcn.00403428
call fcn.00402ce4
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.0040a8d0
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 0x40db7c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40db6a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4e7758]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e8668]
call fcn.004065d8
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 0x40e420
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 0x40e4f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404df4
lea eax, [ebp - 8]
call fcn.0040526c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040521c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e4e0
mov eax, ebx
call fcn.00402b58
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e4d9
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.0040521c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e4c3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e508
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e4c3
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 0x40e4e0
mov eax, dword [ebp - 0x10]
call fcn.00402b88
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e4fd
lea eax, [ebp - 8]
call fcn.00404d5c
ret

Function at 0x40eb08
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 0x40eb6c
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.00404fcc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409df8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb73
lea eax, [ebp - 0xc]
call fcn.00404d5c
ret

Function at 0x422fb8
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x423005
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00422dcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42301d
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x423024
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00422dcc
dec esi
jne 0x423046
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x424188
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4e888c
cmp dword [edi], 0
jne 0x424204
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4e8888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4e45c4
mov ecx, 2
call fcn.00402d78
mov edx, 0x424160
lea eax, [esi + 5]
call fcn.00424180
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00424180
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 0x4241d9
mov dword [0x4e8888], 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 0x4256c0
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 0x4256c6
ret

Function at 0x427b8c
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 0x427bdd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x427bc4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x427bb4
jmp 0x427bdd
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 0x427bc5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431a40
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]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x431b12
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 0x431ae4
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 0x431ad3
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.00402d78
mov eax, dword [ebp - 4]
call fcn.0043197c
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 0x431ada
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret

Function at 0x431b44
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x431be6
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x431bb9
mov edx, ebx
mov eax, dword [0x425184]
call fcn.0042906c
test al, al
je 0x431ba9
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.00428f7c
call fcn.0040475c
jmp 0x431bed
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x431b74
mov ecx, dword [0x4e7738]
mov dl, 1
mov eax, dword [0x40884c]
call fcn.0040dc3c
call fcn.004046b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431bed
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x431bf4
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x431c4c
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431c53
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret