joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40adcf
Capabilities:
Set file attributes

Disassembly:
cmp dword [esp + 8], 0
jne 0x40adde
mov dword [esp + 8], 0x80
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
inc eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
dec ecx
mov eax, ecx
ret

Function at 0x40b03d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor edi, edi
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0040ae88
cmp dword [0x4177dc], edi
pop ecx
pop ecx
mov dword [ebp - 4], edi
je 0x40b0d9
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, edi
jl 0x40b0d9
push esi
mov esi, dword [sym.imp.KERNEL32.dll__lread]
lea eax, [ebp + 0xa]
push 2
push eax
push ebx
call esi
cmp word [ebp + 0xa], 0x5a4d
jne 0x40b0d1
push edi
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
push 0x3c
push ebx
call edi
lea eax, [ebp - 8]
push 4
push eax
push ebx
call esi
push 0
push dword [ebp - 8]
push ebx
call edi
lea eax, [ebp + 0xa]
push 2
push eax
push ebx
call esi
cmp word [ebp + 0xa], 0x4550
jne 0x40b0d1
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x40b2b1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
push str.Msg_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [ebp + 0x10]
add esp, 0xc
lea eax, [ebp - 0x20]
push dword [0x417bdc]
push dword [ebp + 0x14]
push ebx
push 0x41485c
push eax
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebx], 0x7f
mov dword [ebp + 0x10], eax
jne 0x40b314
cmp eax, 1
jne 0x40b314
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [ebp + 0x10]
pop ebx
leave
ret
push edi
push 0x7c
push ebx
call fcn.0040c3d7
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x40b35f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x220]
push eax
call esi
push 0x41484c
push edi
call esi
lea eax, [ebp - 0x220]
add edi, 2
push eax
push edi
call esi
push 0x7c
push ebx
call fcn.0040c3d7
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x40b32c
pop esi
push 0x7e
push ebx
call fcn.0040c3d7
pop ecx
pop ecx
pop edi
test eax, eax
je 0x40b30e
push 0x7e
push ebx
mov byte [eax], 0x20
call fcn.0040c3d7
pop ecx
pop ecx
jmp 0x40b36a
Function at 0x40b37d
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x40b3cf
push esi
push edi
push 0x10020
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x40b3ca
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b681
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
push dword [0x4177c0]
call dword [sym.imp.USER32.dll_GetDC]
push dword [0x417bdc]
mov ebx, eax
mov edi, 0x100
lea eax, [ebp - 0x100]
push edi
push eax
push 0x4175f0
mov esi, str.Settings
push str.Text_Font
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x100], 0
je 0x40b6e7
push edi
call fcn.0040bd85
pop ecx
mov dword [0x4177c8], eax
lea ecx, [ebp - 0x100]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [0x417bdc]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
push str.Font_Character_Set
push esi
call edi
push dword [0x417bdc]
mov byte [0x417814], al
push 8
push str.Font_Character_Size
push esi
call edi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xe
push ebx
mov byte [0x417878], al
call esi
push 0xc
push ebx
call esi
push 8
push ebx
call esi
push 0xa
push ebx
mov dword [0x4178d8], eax
call esi
pop edi
pop esi
mov dword [0x4178dc], eax
pop ebx
leave
ret
Function at 0x40ba43
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x500
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push edi
push 0
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x40ba72
push dword [ebp + 8]
call fcn.0040a4fc
pop ecx
jmp 0x40bc09
lea eax, [ebp - 0x300]
push ebx
push eax
call fcn.0040bc0e
pop ecx
lea eax, [ebp - 0x300]
pop ecx
push 0
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40ba96
push ebx
jmp 0x40ba67
push 1
pop edi
push dword [ebp + 8]
mov dword [0x417828], edi
call fcn.0040a4fc
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp - 0x200]
push eax
call esi
lea eax, [ebp - 0x100]
push ebx
push eax
call esi
xor esi, esi
lea eax, [ebp - 0x200]
push esi
push eax
call fcn.0040ae88
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.0040ae88
mov eax, dword [0x4177dc]
add esp, 0x10
cmp eax, 2
jne 0x40bb14
lea eax, [ebp - 0x200]
push str.WININIT.INI
push eax
lea eax, [ebp - 0x100]
push eax
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40bc09
cmp eax, edi
jne 0x40bb35
push 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push ebx
call esi
push 4
lea eax, [ebp - 0x200]
push ebx
push eax
call esi
jmp 0x40bc09
lea eax, [ebp - 0x100]
push eax
call fcn.0040bc53
push eax
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x500]
push str.del__s_r_nrename__s__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x101], 0x5c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40bba2
lea eax, [ebp - 0x100]
push 0x41410c
push eax
call ebx
lea eax, [ebp - 0x100]
push 0x41480c
push eax
call ebx
lea eax, [ebp - 0x100]
push edi
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40bbd7
lea eax, [ebp - 0x100]
push esi
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
jmp 0x40bbe1
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
cmp edi, 0xffffffff
je 0x40bc09
lea eax, [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x500]
push eax
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bc75
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
cmp dword [0x4177dc], 2
push esi
push edi
jne 0x40bd74
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x100]
push eax
call esi
cmp byte [ebp + eax - 0x101], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40bccc
lea eax, [ebp - 0x100]
push 0x41410c
push eax
call edi
lea eax, [ebp - 0x100]
push str.WININIT.INI
push eax
call edi
lea eax, [ebp - 0x100]
push 1
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x40bd34
push dword [ebp + 8]
lea eax, [ebp - 0x300]
push str.NUL_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
lea eax, [ebp - 0x300]
push eax
call esi
push eax
lea eax, [ebp - 0x300]
push eax
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x40bd81
lea eax, [ebp - 0x100]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
cmp edi, 0xffffffff
je 0x40bd81
push dword [ebp + 8]
lea eax, [ebp - 0x300]
push str._rename__r_nNUL_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x300]
push eax
call esi
push eax
lea eax, [ebp - 0x300]
jmp 0x40bd23
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
leave
ret

Function at 0x40c2d8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x40c2ea
or eax, 0xffffffff
mov dword [0x417808], eax
jmp 0x40c323
mov edx, dword [esp + 8]
mov eax, dword [0x417808]
push esi
mov esi, edx
dec edx
test esi, esi
je 0x40c31d
push edi
inc edx
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov edi, dword [0x417810]
shr eax, 8
mov esi, dword [edi + esi*4]
xor eax, esi
inc ecx
dec edx
jne 0x40c2fd
pop edi
mov dword [0x417808], eax
pop esi
not eax
ret

Function at 0x40c326
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.0040cbd0
push dword [ebp + 0xc]
lea eax, [ebp - 0x254]
mov dword [ebp - 0x54], 0x44
push dword [ebp + 8]
push str.__s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x254]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop esi
je 0x40c38c
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
leave
ret
Function at 0x40c38e
Capabilities:
Create directory

Disassembly:
push esi
push 0x5c
push dword [esp + 0xc]
call fcn.0040c3d7
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x40c3d5
mov al, byte [esi]
test al, al
je 0x40c3d5
cmp al, 0x5c
je 0x40c3bb
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x40c3a8
cmp byte [esi], 0x5c
jne 0x40c3a2
and byte [esi], 0
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
inc esi
jmp 0x40c3a2
pop esi
ret

Function at 0x40c587
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
push ebx
lea eax, [ebp - 0x318]
push dword [0x4177c4]
push str.Icons_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
lea eax, [ebp - 0x318]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c6e7
push esi
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x214]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.Path
mov edi, 0x104
push dword [ebp - 4]
mov dword [ebp + 8], edi
call esi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.Arguments
push dword [ebp - 4]
call esi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.WorkingDir
push dword [ebp - 4]
call esi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.ShowWindow
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x110]
lea ecx, [ebp - 0x110]
neg al
sbb eax, eax
and eax, ecx
mov esi, eax
lea eax, [ebp - 0x41c]
push eax
call fcn.0040cda6
pop ecx
push eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x214]
push esi
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
cmp eax, 0x20
pop esi
ja 0x40c6e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
lea ecx, [ebp - 0xc]
push ebx
push ecx
push 0x400
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 0xc]
lea eax, [ebp - 0x51c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x214]
push ebx
push eax
lea eax, [ebp - 0x51c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
leave
ret
Function at 0x4b3930
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.3861
lea edi, [esi - 0x72000]
push edi
or ebp, 0xffffffff
jmp 0x4b3952
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b3959
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3948
mov eax, 1
add ebx, ebx
jne 0x4b396b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b397c
jne 0x4b399b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b399b
dec eax
add ebx, ebx
jne 0x4b3988
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b3960
add ebx, ebx
jne 0x4b3997
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b39ed
xor ecx, ecx
sub eax, 3
jb 0x4b39b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b3a22
sar eax, 1
mov ebp, eax
jmp 0x4b39be
add ebx, ebx
jne 0x4b39be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b398c
inc ecx
add ebx, ebx
jne 0x4b39cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b398c
add ebx, ebx
jne 0x4b39d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b39ce
jne 0x4b39ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b39ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b3a0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b39fe
jmp 0x4b394e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b3a0c
add edi, ecx
jmp 0x4b394e
pop esi
mov edi, esi
mov ecx, 0x12
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b3a2a
cmp byte [edi], 0
jne 0x4b3a2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b3a2f
lea edi, [esi + 0xb1000]
mov eax, dword [edi]
or eax, eax
je 0x4b3a9e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb4468]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb44b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b3a5c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb44bc]
or eax, eax
je 0x4b3a98
mov dword [ebx], eax
add ebx, 4
jmp 0x4b3a79
call dword [esi + 0xb44cc]
mov ebp, dword [esi + 0xb44c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b3ad2
sub esp, 0xffffff80
jmp section.3860
Function at 0x40112a
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
mov esi, ecx
lea eax, [ebp - 0x20c]
push esi
mov dword [ebp - 4], edx
push eax
call fcn.00402bf0
pop ecx
xor ebx, ebx
pop ecx
push ebx
push 0x8000000
push 2
push ebx
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x4011a7
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00402bc0
pop ecx
cmp eax, ebx
pop ecx
je 0x4011a3
mov byte [eax], bl
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40114b
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00402bf0
pop ecx
pop ecx
jmp 0x40114b
xor eax, eax
jmp 0x4011fd
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
jbe 0x4011ee
mov esi, 0x10000
cmp edi, esi
jae 0x4011ba
mov esi, edi
lea eax, [ebp - 8]
push ebx
push eax
push esi
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4011f1
cmp dword [ebp - 8], esi
jne 0x4011f1
push dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 8], 1
call fcn.00401203
sub edi, esi
add dword [ebp - 4], esi
jmp 0x4011ab
mov ebx, dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405772
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x64e288
cmp edx, dword [eax]
je 0x405794
add eax, 8
inc ecx
cmp eax, 0x64e318
jl 0x405785
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x64e288]
jne 0x4058c2
mov eax, dword [0x64ec00]
cmp eax, 1
je 0x40589c
test eax, eax
jne 0x4057c5
cmp dword [0x64c0d4], 1
je 0x40589c
cmp edx, 0xfc
je 0x4058c2
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4057fc
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402bf0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402db0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40583f
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402db0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x64acb8
push edi
call fcn.00406b80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402bf0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402c00
lea eax, [ebp - 0xa0]
push 0x64ac98
push eax
call fcn.00402c00
push dword [esi + 0x64e28c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402c00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406ae8
add esp, 0x2c
pop edi
jmp 0x4058c2
lea eax, [ebp + 8]
lea esi, [esi + 0x64e28c]
push 0
push eax
push dword [esi]
call fcn.00402db0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4034d0
Capabilities:
Query or enumerate registry value

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

Function at 0x404334
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48a04c], 0
je 0x404395
cmp word [0x48a220], 0xd7b2
jne 0x40435d
cmp dword [0x48a228], 0
jbe 0x40435d
mov eax, 0x48a21c
call dword [0x48a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48806c
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 0x4043bc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x488030], 0
jne 0x4043b1
push 0
push 0x488064
push 0x48806c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406848
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 0x4068ae
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.00404728
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403094
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406898
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4068b5
lea eax, [ebp - 0x10]
call fcn.004044b8
ret

Function at 0x40c2f4
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 0x40c32d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045a8
jmp 0x40c336
mov eax, ebx
mov edx, esi
call fcn.0040450c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c9f8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c860
mov eax, dword [0x489a7c]
cmp byte [eax], 0
je 0x40ca74
mov eax, dword [0x4897b0]
call fcn.00402e58
call fcn.00402cc8
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.0040948c
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 0x40cabc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40caaa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48973c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48a668]
call fcn.00405c98
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