joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059f9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x43a9f0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x43a9f0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405a34
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405b7b
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 0x405b98
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405b9b
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
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 0x405bca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405c0e
test edi, edi
jne 0x405bd5
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405c08

Function at 0x405c12
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c83
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x2000
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405c72
cmp dword [ebp + 0x14], 1
je 0x405c74
cmp dword [ebp + 0x14], 2
je 0x405c74
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 0x405de7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x405e0c
mov eax, dword [0x40a060]
cmp eax, 0xffffffff
je 0x405e03
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a060], 0xffffffff
jmp 0x405e81
cmp dword [0x43fb78], ebx
je 0x405e81
cmp byte [0x444380], bl
je 0x405e4b
cmp dword [0x40a060], 0xffffffff
jne 0x405e54
push 4
push 0x40000000
push 0x444380
call fcn.00405b9b
mov dword [0x40a060], eax
cmp eax, 0xffffffff
je 0x405e81
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a060], 0xffffffff
je 0x405e81
push esi
push 0x408cdc
mov esi, 0x43fb80
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push dword [0x40a060]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43aa38
push esi
call fcn.00405d2b
push esi
call fcn.00405b04
mov edi, eax
test edi, edi
jne 0x40609f
xor eax, eax
jmp 0x4060f7
push edi
call fcn.00405d4d
test byte [0x448868], 0x80
je 0x4060b8
mov al, byte [edi]
test al, al
je 0x40609b
cmp al, 0x5c
je 0x40609b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x4060d8
push esi
call fcn.00405f99
test eax, eax
je 0x4060d2
test byte [eax], 0x10
je 0x4060fc
push esi
call fcn.00406057
push esi
call ebx
cmp eax, edi
jg 0x4060c3
push esi
call fcn.0040602a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4060f6
Function at 0x4063b0
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.00405fc0
mov esi, dword [esp + 0x18]
test eax, eax
je 0x4063d4
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40650d
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43ca38], 0x4c554e
mov edi, 0x400
mov ebp, 0x43ca38
test esi, esi
je 0x406418
push 1
push 0
push esi
call fcn.00405b9b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406513
cmp eax, edi
jg 0x406513
push edi
mov esi, 0x43d378
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406513
cmp eax, edi
jg 0x406513
push esi
push ebp
push str._s_s_r_n
push 0x43ce38
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4487ec]
push dword [eax + 0x150]
push esi
call fcn.00406156
push 4
push 0xc0000000
push esi
call fcn.00405b9b
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x40650d
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 0x406506
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406506
cmp edi, dword [esp + 0x18]
jne 0x406506
push str._Rename__r_n
push esi
call fcn.00406100
test eax, eax
jne 0x40651a
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.00405d2b
add edi, 0xa
mov eax, edi
push ebx
push 0x43ce38
add eax, esi
push eax
call fcn.00405b57
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
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 [0x4488d0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x408d88
add eax, 0xa
push eax
call fcn.00406100
test eax, eax
je 0x4064d1
inc eax
lea ecx, [esi + edi]
mov ebp, eax
cmp eax, ecx
jae 0x406541
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x406536
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4064d3
Function at 0x100bf18
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x1014b48]
push ebx
push esi
push 0x1017700
push 0x50
mov ebx, 0x1016bb0
push ebx
mov esi, 0x1001443
push esi
push 0x10015e8
push 0x1001454
mov dword [ebp - 4], eax
call fcn.01003b12
test eax, eax
jbe 0x100c10a
mov eax, dword [0x1014b40]
push edi
xor edi, edi
cmp eax, edi
jbe 0x100bf74
mov ecx, 0x1014324
mov byte [ecx], 0
add ecx, 0x104
dec eax
jne 0x100bf68
push ebx
push 0x200
lea eax, [ebp - 0x284]
push eax
push esi
push 0x1001b94
push ebx
call fcn.01003b12
test eax, eax
jbe 0x100c0b6
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.01012c0e
mov esi, eax
cmp esi, edi
je 0x100c0b6
push esi
push edi
call dword [0x10011d4]
cmp eax, edi
mov dword [ebp - 0x288], eax
je 0x100c0b6
push eax
push esi
push edi
lea eax, [ebp - 0x284]
push eax
call fcn.01012c02
test eax, eax
je 0x100c0aa
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x1001b78
push dword [ebp - 0x288]
call fcn.01012bf6
test eax, eax
je 0x100c00b
mov eax, dword [ebp - 0x290]
mov eax, dword [eax]
jmp 0x100c010
mov eax, 0x4e40409
cmp dword [0x1014b40], edi
mov dword [ebp - 0x28c], edi
jbe 0x100c0aa
mov dword [ebp - 0x294], eax
shr dword [ebp - 0x294], 0x10
movzx edi, ax
mov esi, 0x1014324
push dword [esi - 4]
movzx eax, word [ebp - 0x294]
push eax
push edi
lea eax, [ebp - 0x84]
push 0x1001b58
push eax
call dword [0x1001238]
add esp, 0x14
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x288]
call fcn.01012bf6
test eax, eax
je 0x100c08e
push 0xff
push dword [ebp - 0x290]
push esi
call dword [fcn.0100112c]
inc dword [ebp - 0x28c]
mov eax, dword [ebp - 0x28c]
add esi, 0x104
cmp eax, dword [0x1014b40]
jb 0x100c037
xor edi, edi
push dword [ebp - 0x288]
call dword [0x100120c]
cmp dword [0x1014b40], edi
jbe 0x100c104
mov esi, 0x1014324
push ebx
push 0x100
lea eax, [ebp - 0x284]
push eax
push 0x1001443
push dword [esi - 4]
push ebx
call fcn.01003b12
test eax, eax
jbe 0x100c0f5
push 0xff
lea eax, [ebp - 0x284]
push eax
push esi
call dword [fcn.0100112c]
inc edi
add esi, 0x104
cmp edi, dword [0x1014b40]
jb 0x100c0c3
xor eax, eax
inc eax
pop edi
jmp 0x100c10c
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0100c759
leave
ret
Function at 0x1010be2
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1010c13
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x1010c1a
cmp ebx, dword [ebp + 8]
jae 0x1010c1a
xor eax, eax
jmp 0x1010e0a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1010c2b
xor eax, eax
inc eax
jmp 0x1010e09
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1010c41
cmp ecx, edx
jae 0x1010d86
cmp dword [eax + 4], 0
je 0x1010c4a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1010c32
cmp dword [ebp + 8], 0
je 0x1010c6c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1010d86
cmp eax, esi
jae 0x1010d86
mov eax, dword [0x1017438]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1010c91
cmp dword [esi*4 + 0x1017440], edi
je 0x1010d8a
inc esi
cmp esi, eax
jl 0x1010c7f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x10011ac]
test eax, eax
je 0x1010e06
cmp dword [ebp - 8], 0x1000000
jne 0x1010e06
test byte [ebp - 0xc], 0xcc
je 0x1010d0f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1010e06
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1010e06
cmp word [eax + 0x18], 0x10b
jne 0x1010e06
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1010e06
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1010d0f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1010d0f
test byte [ecx + 0x27], 0x80
jne 0x1010d86
push 1
push 0x1017480
call dword [0x10011a8]
test eax, eax
jne 0x1010c23
mov ecx, dword [0x1017438]
test ecx, ecx
mov edx, ecx
jle 0x1010d43
lea eax, [ecx*4 + 0x101743c]
cmp dword [eax], edi
je 0x1010d43
dec edx
sub eax, 4
test edx, edx
jg 0x1010d37
test edx, edx
jne 0x1010d74
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1010d50
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1010d68
lea eax, [edx*4 + 0x1017440]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1010d56
cmp ecx, 0x10
jge 0x1010d74
inc ecx
mov dword [0x1017438], ecx
push 0
push 0x1017480
call dword [0x10011a8]
jmp 0x1010c23
xor eax, eax
jmp 0x1010e09
test esi, esi
jle 0x1010c23
mov ebx, dword [0x10011a8]
push 1
push 0x1017480
call ebx
test eax, eax
jne 0x1010c23
cmp dword [esi*4 + 0x1017440], edi
je 0x1010de0
mov eax, dword [0x1017438]
lea esi, [eax - 1]
test esi, esi
jl 0x1010dce
cmp dword [esi*4 + 0x1017440], edi
je 0x1010dca
dec esi
jns 0x1010dbe
test esi, esi
jge 0x1010dde
cmp eax, 0x10
jge 0x1010dd9
inc eax
mov dword [0x1017438], eax
lea esi, [eax - 1]
jmp 0x1010de0
je 0x1010df8
xor ecx, ecx
test esi, esi
jl 0x1010df8
lea eax, [ecx*4 + 0x1017440]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1010de6
push 0
push 0x1017480
call ebx
jmp 0x1010c23
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1012a89
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x1014b48]
and dword [ebp - 0xa8], 0
cmp dword [0x10156c8], 0xfffffffe
mov dword [ebp - 4], eax
mov dword [ebp - 0xb0], 0xc
jne 0x1012bac
and dword [0x10156c8], 0
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [0x1001040]
test eax, eax
je 0x1012bac
cmp dword [ebp - 0x94], 1
jne 0x1012bac
cmp dword [ebp - 0xa0], 4
jne 0x1012bac
cmp dword [ebp - 0x9c], 0xa
jae 0x1012bac
push 0x4a
call dword [fcn.0100122c]
test eax, eax
je 0x1012bac
lea eax, [ebp - 0xac]
push eax
push 0x20019
push 0
push 0x100288c
push 0x80000001
call dword [entry0]
test eax, eax
jne 0x1012bac
push edi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push 0
push 0x1001443
push dword [ebp - 0xac]
call dword [0x1001004]
push dword [ebp - 0xac]
mov edi, eax
call dword [0x1001008]
test edi, edi
pop edi
jne 0x1012bac
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.01012965
test eax, eax
je 0x1012bac
and dword [ebp - 0xa8], 0x3ff
cmp dword [ebp - 0xa8], 1
je 0x1012ba2
cmp dword [ebp - 0xa8], 0xd
jne 0x1012bac
mov dword [0x10156c8], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x10156c8]
call fcn.0100c759
leave
ret
Function at 0x4028e8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402925
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402945
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040423c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4030f4
Capabilities:
Query or enumerate registry value

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

Function at 0x403e50
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x467048], 0
je 0x403eb1
cmp word [0x46721c], 0xd7b2
jne 0x403e79
cmp dword [0x467224], 0
jbe 0x403e79
mov eax, 0x467218
call dword [0x467234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46506c
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 0x403ed8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x465030], 0
jne 0x403ecd
push 0
push 0x465064
push 0x46506c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405b80
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 0x405be6
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.0040423c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cb8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405bd0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405bed
lea eax, [ebp - 0x10]
call fcn.00403fcc
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040448c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40841d
test al, 0x10
jne 0x408421
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40af20
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 0x40af59
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040bc
jmp 0x40af62
mov eax, ebx
mov edx, esi
call fcn.00404020
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b614
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b48c
mov eax, dword [0x466274]
cmp byte [eax], 0
je 0x40b690
mov eax, dword [0x466080]
call fcn.00402ae8
call fcn.0040283c
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.00408794
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 0x40b6d8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b6c6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x466024]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x467664]
call fcn.00405094
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 0x40bf2c
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 0x40c002
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404064
lea eax, [ebp - 8]
call fcn.004044dc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040448c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bfec
mov eax, ebx
call fcn.004026d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bfe5
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.0040448c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bfcf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c014
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bfcf
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 0x40bfec
mov eax, dword [ebp - 0x10]
call fcn.004026f4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c009
lea eax, [ebp - 8]
call fcn.00403fcc
ret

Function at 0x40c608
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 0x40c66c
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.0040423c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408084
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c673
lea eax, [ebp - 0xc]
call fcn.00403fcc
ret

Function at 0x41a8e8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x467884
cmp dword [edi], 0
jne 0x41a964
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x467880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4653ec
mov ecx, 2
call fcn.004029f0
mov edx, 0x41a8c0
lea eax, [esi + 5]
call fcn.0041a8e0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a8e0
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 0x41a939
mov dword [0x467880], 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 0x41bf10
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 0x41bf16
ret
Function at 0x41e798
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 0x41e7e9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e7d0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e7c0
jmp 0x41e7e9
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 0x41e7d1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427468
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.0040447c
xor eax, eax
push ebp
push 0x427596
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x427569
xor eax, eax
push ebp
push 0x427562
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040428c
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x427537
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 0x427526
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040428c
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.0040448c
mov edx, ebx
pop ecx
call fcn.004029f0
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 0x42752d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x465fcc]
mov dl, 1
mov eax, dword [0x406f5c]
call fcn.0040b798
call fcn.00403a08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42759d
lea eax, [ebp - 4]
call fcn.00403fcc
ret