joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a3015
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100cc65c
push 0x100cc654
push str.FlsAlloc
push 0x1f
call fcn.100a2e40
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a3049
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b530c]
call esi
jmp 0x100a304f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100a3093
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100cc66c
push 0x100cc664
push str.FlsGetValue
push 0x21
call fcn.100a2e40
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a30ca
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b530c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100a30d2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100cc674
push 0x100cc66c
push str.FlsSetValue
push 0x22
call fcn.100a2e40
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a310c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100b530c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100a872d
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100a86a9
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100a889c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100a889c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100a8851
jg 0x100a8789
test eax, eax
je 0x100a8847
push 1
push 0x1000
call fcn.100a2b04
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100a87ac
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100a883e
push 0x8000
push ebx
call fcn.100a85da
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100a87d5
jg 0x100a87d0
cmp ecx, 0x1000
jb 0x100a87d5
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100a1f0e
add esp, 0x10
cmp eax, 0xffffffff
je 0x100a881a
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100a87d0
jl 0x100a8801
test ecx, ecx
jne 0x100a87c2
push dword [ebp - 0xc]
push ebx
call fcn.100a85da
push esi
call fcn.100a2b61
add esp, 0xc
xor ebx, ebx
jmp 0x100a88aa
cmp byte [edi + 0x24], 0
je 0x100a8831
cmp dword [edi + 0x20], 5
jne 0x100a8831
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100a883c
mov ebx, dword [edi + 0x18]
jmp 0x100a883e
xor ebx, ebx
push esi
call fcn.100a2b61
pop ecx
jmp 0x100a88aa
test ecx, ecx
jg 0x100a8813
jl 0x100a8851
test eax, eax
jae 0x100a8813
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1009bbd6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100a8871
cmp byte [edi + 0x1c], 0
je 0x100a8813
jmp 0x100a88a2
push ebx
call fcn.100a6e2f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100a8813
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100a88aa
cmp byte [edi + 0x1c], 0
je 0x100a88a7
mov ebx, dword [edi + 0x18]
jmp 0x100a88aa
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1009bbd6
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100aac8a
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 0x100aad27
push ebx
push esi
call fcn.100aac53
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.100a7ebb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100aacd4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100aad26
push edi
push eax
call fcn.100a374d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100aacf4
call fcn.100a2b61
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100aad25
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100a7ebb
add esp, 0x20
test eax, eax
jne 0x100aad13
push edi
call fcn.100a2b61
jmp 0x100aad1b
push ebx
call fcn.100a2b61
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 0x100aad2a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100aad3b
pop esi
ret
push ebx
push edi
push esi
call fcn.100aac53
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100a374d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100aad63
push ebx
push esi
push edi
call fcn.100891e0
add esp, 0xc
push 0
call fcn.100a2b61
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100ab133
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100aad78

Function at 0x100af1a0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100a4b2b
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 0x100af20f
cmp esi, dword [ebp - 4]
je 0x100af20a
cmp dword [ebp + 0xc], 0
je 0x100af20a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100af1e7
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100aecf2
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100af211
xor eax, eax
inc eax
jmp 0x100af211
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100af276
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100d85c0]
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.100a4b2b
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.100a4b2b
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 0x100af2ed
cmp word [ecx], dx
je 0x100af2ed
mov eax, dword [0x100cf244]
push edi
dec eax
push eax
push 0x100cf130
call fcn.100af215
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100af360
cmp word [eax], dx
je 0x100af360
mov eax, dword [edi]
test eax, eax
je 0x100af311
cmp word [eax], dx
je 0x100af311
lea eax, [ebp - 0x10]
push eax
call fcn.100aebf8
jmp 0x100af31a
lea eax, [ebp - 0x10]
push eax
call fcn.100aec93
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100af38a
mov eax, dword [0x100cf12c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100cee20
call fcn.100af215
add esp, 0xc
test al, al
je 0x100af38a
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100af355
cmp word [eax], di
je 0x100af355
lea eax, [ebp - 0x10]
push eax
call fcn.100aebf8
pop ecx
jmp 0x100af38c
lea eax, [ebp - 0x10]
push eax
call fcn.100aec93
jmp 0x100af352
mov eax, dword [edi]
test eax, eax
je 0x100af377
cmp word [eax], dx
je 0x100af377
lea eax, [ebp - 0x10]
push eax
call fcn.100aebad
pop ecx
jmp 0x100af38a
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 0x100af455
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100af09a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100af455
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100af455
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100af455
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100af3e2
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100a32ae
test ebx, ebx
je 0x100af450
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100a32ae
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100af455
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 0x100af455
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100b07b4
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100af457
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100874e6
leave
ret
Function at 0x100af5ba
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100d85c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x100af5fd
call fcn.10092557
mov dword [eax], 0xf
call fcn.1009256a
mov dword [eax], 0xd
call fcn.10091f99
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100874e6
leave
ret
test eax, eax
jne 0x100af604
inc eax
jmp 0x100af5f1
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x100af5ef
xor eax, eax
cmp ecx, 1
setne al
jmp 0x100af5f1

Function at 0x100b1af0
Capabilities:
Parse pe header

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402ca4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040495c
test esi, esi
jne 0x402cda
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404a4c
jmp 0x402cf8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402b58
mov edi, eax
test esi, esi
je 0x402cf8
cmp dword [ebx], 0
je 0x402cf8
dec esi
jmp 0x402ce1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4038e8
Capabilities:
Query or enumerate registry value

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

Function at 0x40473c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5c504c], 0
je 0x40479d
cmp word [0x5c5220], 0xd7b2
jne 0x404765
cmp dword [0x5c5228], 0
jbe 0x404765
mov eax, 0x5c521c
call dword [0x5c5238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x5ba070
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 0x4047c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5ba030], 0
jne 0x4047b9
push 0
push 0x5ba068
push 0x5ba070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404910
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.0040291c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x5c504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4048d8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406620
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 0x406850
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4066a3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406850
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4066a3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40686c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40672c
xor eax, eax
push ebp
push 0x406725
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406468
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 0x40670a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40688c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40670a
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 0x40672c
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 0x406846
cmp byte [ebp - 0xd], 0
jne 0x406773
cmp byte [ebp - 0x12], 0
je 0x406846
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40678c
dec ebx
cmp byte [ebx], 0x2e
je 0x40679b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40678b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406846
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4067d8
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 0x406846
cmp byte [ebp - 0xd], 0
je 0x406846
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 0x406846
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 0x406f34
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 0x406f9a
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.00404bdc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403320
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406f84
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406fa1
lea eax, [ebp - 0x10]
call fcn.0040495c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404e2c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a449
test al, 0x10
jne 0x40a44d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40df2c
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 0x40df65
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a4c
jmp 0x40df6e
mov eax, ebx
mov edx, esi
call fcn.004049b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40e620
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40e498
mov eax, dword [0x5c3df0]
cmp byte [eax], 0
je 0x40e69c
mov eax, dword [0x5c378c]
call fcn.004030d8
call fcn.00402a84
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.0040a8dc
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 0x40e6e4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e6d2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x5c36d0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5c5668]
call fcn.0040642c
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 0x40efb0
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 0x40f086
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004049f4
lea eax, [ebp - 8]
call fcn.00404e7c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404e2c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f070
mov eax, ebx
call fcn.0040291c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f069
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.00404e2c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f053
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f098
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f053
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 0x40f070
mov eax, dword [ebp - 0x10]
call fcn.0040293c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f08d
lea eax, [ebp - 8]
call fcn.0040495c
ret

Function at 0x40f6d0
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 0x40f734
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.00404bdc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040a05c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f73b
lea eax, [ebp - 0xc]
call fcn.0040495c
ret

Function at 0x425dc4
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.00425bf0
dec esi
jne 0x425de6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x426f28
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5c588c
cmp dword [edi], 0
jne 0x426fa4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5c5888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5ba6ec
mov ecx, 2
call fcn.00402b18
mov edx, 0x426f00
lea eax, [esi + 5]
call fcn.00426f20
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00426f20
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 0x426f79
mov dword [0x5c5888], 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 0x4285f8
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 0x4285fe
ret

Function at 0x42ab78
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 0x42abc9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42abb0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42aba0
jmp 0x42abc9
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 0x42abb1
pop ebx
mov esp, ebp
pop ebp
ret