joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431190
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x473318
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0042ba90
test eax, eax
je 0x431298
lea ecx, [esp + 0xc]
call fcn.00402eb0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0042ba90
mov ecx, eax
call fcn.00429250
test eax, eax
je 0x43127f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x43127f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x43127f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.004030b0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x431261
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x43127f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x4a8308]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x47bac8
call fcn.004030b0
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x434010
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4735a8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x434049
inc eax
mov dword [esi + 0x10], eax
jmp 0x43415c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43405d
mov eax, 0xffffffc7
jmp 0x43415e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43406e
cmp dword [esi + 8], eax
jne 0x43405d
cmp dword [esi + 8], eax
jne 0x434087
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x434087
mov eax, 0xffffffc7
jmp 0x43415e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43409b
push eax
mov ecx, ebx
call fcn.00433840
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00402eb0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4340cc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00402ed0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00432fb0
test eax, eax
mov dword [esp + 0x38], eax
je 0x4340ff
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x47bac8
call fcn.004030b0
mov eax, dword [esp + 0x38]
jmp 0x43415e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00433e70
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x434143
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00433e90
mov esi, eax
test esi, esi
jne 0x434173
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00433e70
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x434115
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x47bac8
call fcn.004030b0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x47bac8
call fcn.004030b0
mov eax, esi
jmp 0x43415e

Function at 0x437280
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4372e0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4372e0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4372e0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4372e0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x437320
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x401210
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
dec eax
imul eax
inc esi
neg ebx
and ebx, 0x42
mov edi, 0xd2
sub edi, 0xa8
neg edi
rcr edi, 0x16
inc ebx
add edx, 0x80
rcl ebx, 0x13
dec ebx
neg edi
sub esi, 0xf7
sub ebx, 0x74
inc edi
inc edi
mov ebx, 0xb3
sbb ebx, 0xd4
ror eax, 0x21
neg edi
sbb edx, 0x1b
sbb ebx, 0xf4
sbb eax, 0x71
mov edx, 0xba
inc edx
neg eax
sbb eax, 0x83
and eax, 0xd3
imul edi
rol esi, 0xd4
sub edx, 0x83
rol eax, 0x60
rcl eax, 0x3c
and esi, 0xf8
rol esi, 0x61
not edi
neg edi
dec ebx
not ebx
bswap edi
inc esi
dec esi
not ebx
neg edi
and ebx, 0x4a
inc esi
add ebx, 0xce
sub esi, 0x23
xor ecx, ecx
xor edi, edi
imul edi
and esi, 0x11
rcl eax, 0x81
rcl edi, 0x2d
and eax, 0x74
bswap ebx
sbb edx, 1
dec eax
neg edx
mov edx, 0xe3
bswap edx
dec edx
dec edi
imul esi
dec eax
imul ebx
ror esi, 0xf7
add esi, 0xc9
rcl edx, 0x5d
imul ebx
neg esi
inc ebx
mov ebx, 0xfb
neg esi
add edx, 0xfd
imul edx
mov eax, 0x47
imul edi
not esi
bswap edi
or esi, 5
bswap ebx
or eax, 0xb
rcr esi, 0xf6
not esi
imul ebx
or ebx, 0x2c
or eax, 0xe4
mov esi, 2
imul eax
rcl edx, 0x38
dec esi
rol eax, 0x4e
ror edx, 4
dec ebx
add ebx, 0x58
neg edx
and eax, 0xb6
dec ebx
or edi, 0x2e
mov ecx, dword [ebp + 0xc]
rcr edx, 0x4e
and ebx, 0xa
neg edx
sbb ebx, 0x50
imul esi
neg esi
rol edx, 0xd3
dec edi
bswap edx
imul eax
or esi, 0x6c
rcr edi, 0xc6
imul ebx
and edx, 0x23
neg ebx
add edx, 0xc7
mov edx, 0x6a
sub edx, 0x16
sbb eax, 0x42
neg ebx
inc esi
neg ebx
dec ebx
ror edx, 0x9e
rcl eax, 0xfe
neg esi
rol ebx, 0xe0
bswap eax
add edi, 0xbc
bswap eax
rcl eax, 1
imul edx
add esi, 0x11
neg esi
rol edx, 0x34
inc edi
sub edx, 0x10
imul ebx
bswap esi
sbb edx, 0x54
not edi
rcl edi, 0x71
bswap eax
mov edx, 0xcd
rol edi, 0xd0
neg eax
or edi, 0xe8
dec ebx
neg ebx
mov ebx, 0x30
mov edi, dword [ebp + 8]
mov esi, esi
mov eax, ebx
mov ebx, ebx
not byte [edi]
mov eax, ebx
xor eax, esi
mov eax, ebx
mov eax, eax
xor ebx, eax
xor esi, eax
mov esi, eax
xor eax, ebx
xor ebx, esi
add byte [edi], 0x87
xor esi, eax
xor esi, eax
xor esi, ebx
xor eax, ebx
mov ebx, eax
mov eax, eax
mov ebx, esi
xor eax, esi
mov eax, eax
sub byte [edi], 0x54
xor esi, eax
mov esi, esi
mov eax, esi
xor esi, eax
xor esi, ebx
mov esi, eax
xor eax, esi
xor eax, esi
mov eax, eax
imul byte [edi]
inc edi
loop 0x4013c7
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4042d5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x462fd0]
jne 0x4042df
repz ret
jmp fcn.00406055
Function at 0x40184f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x405028]
jne 0x401859
repz ret
jmp fcn.00401c98
Function at 0x402ebc
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x454050]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402f37
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402f3e
cmp dword [ebp + 0x10], ebx
jne 0x402f2b
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ebc
test eax, eax
jne 0x402f3e
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402efe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040645f
cmp eax, ebx
je 0x402f63
push ebx
push dword [0x454050]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402f37
cmp dword [0x454050], ebx
jne 0x402f34
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402f34
jmp 0x402f37
Function at 0x405744
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4497f0], 0x44
push eax
xor eax, eax
push 0x4497f0
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40577f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405b36
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x446ff0
push esi
call fcn.00405f6a
push esi
call fcn.00405ae7
mov edi, eax
test edi, edi
jne 0x405b57
xor eax, eax
jmp 0x405ba9
push edi
call fcn.004061f2
test byte [0x453fb8], 0x80
je 0x405b70
mov al, byte [edi]
test al, al
je 0x405b53
cmp al, 0x5c
je 0x405b53
sub edi, esi
push esi
call fcn.00405f80
cmp eax, edi
push esi
jle 0x405b93
call fcn.00406438
test eax, eax
je 0x405b8b
test byte [eax], 0x10
je 0x405b53
push esi
call fcn.00405a9a
jmp 0x405b72
call fcn.00405a53
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c20
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405c3c
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405c3f
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405c6e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405cb3
mov eax, edi
dec edi
test eax, eax
jne 0x405c79
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405cad
Function at 0x405cb7
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.0040645f
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405cdb
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405e14
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x449978], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x449978
je 0x405d1f
push 1
push 0
push esi
call fcn.00405c3f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405e1a
cmp eax, edi
jg 0x405e1a
mov esi, 0x4493f0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405e1a
cmp eax, edi
jg 0x405e1a
push esi
push ebp
push str._s_s_r_n
push 0x448ff0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x453fb0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405f9e
push 4
push 0xc0000000
push esi
call fcn.00405c3f
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405e14
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405e0d
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405e0d
cmp edi, dword [esp + 0x18]
jne 0x405e0d
push str._Rename__r_n
push esi
call fcn.00405bae
test eax, eax
jne 0x405e21
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405f6a
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x448ff0
push eax
call fcn.00405bfa
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x454030]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aab0
push eax
call fcn.00405bae
test eax, eax
je 0x405dd8
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405e48
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405e3d
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405dda
Function at 0x405e50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ec1
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405eb0
cmp dword [ebp + 0x14], 1
je 0x405eb2
cmp dword [ebp + 0x14], 2
je 0x405eb2
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40628b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4062b0
mov eax, dword [0x40a880]
cmp eax, 0xffffffff
je 0x4062a7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a880], 0xffffffff
jmp 0x406323
cmp dword [0x44b720], ebx
je 0x406323
cmp byte [0x44b320], bl
je 0x4062ef
cmp dword [0x40a880], 0xffffffff
jne 0x4062f8
push 4
push 0x40000000
push 0x44b320
call fcn.00405c3f
cmp eax, 0xffffffff
mov dword [0x40a880], eax
je 0x406323
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a880], 0xffffffff
je 0x406323
push esi
mov esi, 0x44f740
push 0x40aac8
push esi
call fcn.00405f8d
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f80
push eax
push esi
push dword [0x40a880]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064d5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x449d7c], esi
push edi
jne 0x40650f
mov ecx, 0x449d78
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064eb
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x44a178
jl 0x4064e6
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406544
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x449d78]
xor eax, esi
inc ecx
dec edx
jne 0x406527
pop edi
pop esi
not eax
ret 0xc
Function at 0x402a44
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.00404520
test esi, esi
jne 0x402a7a
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.00404610
jmp 0x402a98
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402958
mov edi, eax
test esi, esi
je 0x402a98
cmp dword [ebx], 0
je 0x402a98
dec esi
jmp 0x402a81
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4035c4
Capabilities:
Query or enumerate registry value

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

Function at 0x404320
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47c048], 0
je 0x404381
cmp word [0x47c21c], 0xd7b2
jne 0x404349
cmp dword [0x47c224], 0
jbe 0x404349
mov eax, 0x47c218
call dword [0x47c234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47a070
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 0x4043a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47a030], 0
jne 0x40439d
push 0
push 0x47a068
push 0x47a070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4044d4
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.0040271c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x47c049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40449c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406230
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 0x406296
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.00404790
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403020
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406280
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40629d
lea eax, [ebp - 0x10]
call fcn.00404520
ret

Function at 0x40b7f0
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 0x40b829
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404610
jmp 0x40b832
mov eax, ebx
mov edx, esi
call fcn.00404574
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bee4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bd5c
mov eax, dword [0x47bbf4]
cmp byte [eax], 0
je 0x40bf60
mov eax, dword [0x47b89c]
call fcn.00402e80
call fcn.00402884
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.00408f7c
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 0x40bfa8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bf96
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47b810]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47c664]
call fcn.00405744
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 0x40c7fc
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 0x40c8d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004045b8
lea eax, [ebp - 8]
call fcn.00404a30
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004049e0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c8bc
mov eax, ebx
call fcn.0040271c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c8b5
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.004049e0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c89f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c8e4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c89f
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 0x40c8bc
mov eax, dword [ebp - 0x10]
call fcn.0040273c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c8d9
lea eax, [ebp - 8]
call fcn.00404520
ret

Function at 0x40ce9c
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 0x40cf00
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.00404790
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408a18
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf07
lea eax, [ebp - 0xc]
call fcn.00404520
ret

Function at 0x41b604
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.0041b45c
dec esi
jne 0x41b626
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret