joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402de5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407630
cmp edx, dword [eax]
je 0x402e07
add eax, 8
inc ecx
cmp eax, 0x4076c0
jl 0x402df8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407630]
jne 0x402f35
mov eax, dword [0x407ab0]
cmp eax, 1
je 0x402f0f
test eax, eax
jne 0x402e38
cmp dword [0x40757c], 1
je 0x402f0f
cmp edx, 0xfc
je 0x402f35
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402e6f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404200
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402fe0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402eb2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402fe0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40641c
push edi
call fcn.004042f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404200
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404210
lea eax, [ebp - 0xa0]
push 0x4063fc
push eax
call fcn.00404210
push dword [esi + 0x407634]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404210
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404175
add esp, 0x2c
pop edi
jmp 0x402f35
lea eax, [ebp + 8]
lea esi, [esi + 0x407634]
push 0
push eax
push dword [esi]
call fcn.00402fe0
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 0x42b5b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
or ebp, 0xffffffff
jmp 0x42b5d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42b5d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42b5c8
mov eax, 1
add ebx, ebx
jne 0x42b5eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42b5e0
jne 0x42b5fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b5e0
xor ecx, ecx
sub eax, 3
jb 0x42b610
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42b682
mov ebp, eax
add ebx, ebx
jne 0x42b61b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42b628
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42b64c
inc ecx
add ebx, ebx
jne 0x42b638
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42b62d
jne 0x42b649
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b62d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42b66c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42b65d
jmp 0x42b5ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42b66c
add edi, ecx
jmp 0x42b5ce
pop esi
mov edi, esi
mov ecx, 0x6a3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42b68a
cmp byte [edi], 6
jne 0x42b68a
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 eax, ebx
loop 0x42b68f
lea edi, [esi + 0x29000]
mov eax, dword [edi]
or eax, eax
je 0x42b707
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2d954]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2da30]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42b6bc
mov ecx, edi
jns 0x42b6eb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2da34]
or eax, eax
je 0x42b701
mov dword [ebx], eax
add ebx, 4
jmp 0x42b6d9
call dword [esi + 0x2da38]
popal
jmp 0x418b9e

Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x38c94b73
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x30807947
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x403685
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push dword [esp + 0x10]
mov esi, ecx
push dword [esp + 0x10]
call fcn.0040285b
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
pop ecx
je 0x4036de
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ecx, esi
mov edi, eax
call fcn.00403651
push edi
mov ecx, esi
call fcn.00403638
push 0
push edi
push dword [esi]
push ebx
call fcn.0040333a
mov eax, dword [esi]
add esp, 0x10
and byte [eax + edi], 0
push ebx
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
pop eax
pop edi
jmp 0x4036e0
xor eax, eax
pop esi
pop ebx
ret 8

Function at 0x4041b6
Capabilities:
Read .ini file

Disassembly:
push 0x40e634
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0x40e73c
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
ret

Function at 0x4041cf
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push 0x40e634
push dword [esp + 0x14]
and byte [esi], 0
push esi
push 0x40de80
push dword [esp + 0x18]
push 0x40e73c
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov eax, esi
pop esi
ret

Function at 0x4047cc
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 4]
push edi
push eax
push 0x40b340
xor edi, edi
push 1
push edi
push 0x40b350
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x40488d
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp + 0x14], edi
je 0x404823
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x18], edi
jl 0x404837
push dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x40b360
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x404884
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x210]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x406877
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push CreateStatusWindowA
lea eax, [ebp - 4]
xor esi, esi
push 0x20019
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call fcn.00401560
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
test eax, eax
jne 0x4068c6
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call ebx
push 0x80000001
lea eax, [ebp - 4]
push 0x20019
push eax
call fcn.00401560
add esp, 0xc
test eax, eax
jne 0x4068f8
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push esi
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
add eax, ecx
pop ebx
leave
ret

Function at 0x406ad0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push dword [esi + 0xa28]
push 0x2001f
push eax
call fcn.00401560
add esp, 0xc
test eax, eax
jne 0x406b00
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x406b0e
mov eax, dword [ebp + 8]
push 0
push dword [eax]
call fcn.004028dd
pop ecx
pop ecx
pop esi
pop ebp
ret

Function at 0x406b11
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [ebp + 0x14]
sub eax, 0x9c45
je 0x406b38
sub eax, 6
jne 0x406b6b
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406ad0
pop ecx
pop ecx
leave
ret
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xa10], 0
jne 0x406b6b
push 1
lea ecx, [ebp - 0x310]
push 0
push ecx
push eax
call fcn.004053fd
add esp, 0x10
test eax, eax
je 0x406b6b
lea eax, [ebp - 0x310]
push 5
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
leave
ret

Function at 0x406baf
Capabilities:
Delete file

Disassembly:
mov eax, 0x40a397
call fcn.0040a0e4
sub esp, 0x84
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea ecx, [ebp - 0x90]
call fcn.0040370d
xor ebx, ebx
push 1
push edi
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], ebx
call fcn.00403aa4
test eax, eax
je 0x406c25
xor edi, edi
cmp dword [esi + 0x20], ebx
jle 0x406c1a
mov eax, dword [esi + 0x1c]
lea ecx, [ebp - 0x90]
add eax, ebx
push ecx
push eax
push esi
call fcn.00406a0f
add esp, 0xc
inc edi
add ebx, 0xa3c
cmp edi, dword [esi + 0x20]
jl 0x406bf8
lea ecx, [ebp - 0x90]
call fcn.00403afe
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.00403799
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x406f2d
Capabilities:
Delete file
Get common file path

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x1a
and byte [edi + 0x30], 0
lea esi, [edi + 0x30]
push esi
call fcn.00409b05
pop ecx
test eax, eax
pop ecx
je 0x406f6d
push esi
call fcn.004028b5
mov dword [esp], 0x40d6d0
push esi
call sub.MSVCRT.dll_strcat
cmp dword [edi + 0x250], 0
pop ecx
pop ecx
je 0x406f6d
push esi
call fcn.00403027
pop ecx
cmp byte [esi], 0
jne 0x406f7e
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push esi
call fcn.004028b5
mov dword [esp], str.MyUninst.ini
push esi
call sub.MSVCRT.dll_strcat
cmp dword [edi + 0x250], 0
pop ecx
pop ecx
jne 0x406fa3
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
pop esi
ret

Function at 0x407d20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x40d8f4
push eax
call fcn.00402cce
push 1
push 1
lea eax, [ebp - 0x104]
push 1
push eax
push dword [ebp + 8]
call fcn.00407bc5
add esp, 0x1c
test eax, eax
je 0x407d83
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.00402aa0
pop ecx
test eax, eax
pop ecx
je 0x407d76
push eax
push dword [ebp + 8]
call fcn.004028dd
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
leave
ret

Function at 0x408029
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call fcn.00404c69
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.00404c76
add esp, 0xc
test eax, eax
je 0x408066
mov eax, dword [ebp - 4]
push 5
push 0x40de80
add eax, 0x305
push 0
push eax
push str.open
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
leave
ret

Function at 0x40809a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push dword [ebp + 8]
call fcn.00404c69
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.00404c76
add esp, 0xc
test eax, eax
je 0x408109
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa18], 0
je 0x408109
push 0xc
call fcn.00404117
push eax
push dword [ebp + 8]
call fcn.004013c0
add esp, 0xc
cmp eax, 6
jne 0x408109
push 2
lea eax, [ebp - 0x314]
push 0
push eax
push dword [ebp - 4]
call fcn.004053fd
add esp, 0x10
test eax, eax
je 0x408109
lea eax, [ebp - 0x314]
push 5
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
leave
ret

Function at 0x40810b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push dword [ebp + 8]
call fcn.00404c69
cmp dword [eax + 0x254], 0
pop ecx
je 0x408135
push 0x9c45
push eax
call fcn.00406b6d
pop ecx
pop ecx
leave
ret
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.00404c76
pop ecx
test eax, eax
pop ecx
je 0x408178
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa10], 0
jne 0x408178
push 1
lea ecx, [ebp - 0x310]
push 0
push ecx
push eax
call fcn.004053fd
add esp, 0x10
test eax, eax
je 0x408178
lea eax, [ebp - 0x310]
push 5
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
leave
ret
Function at 0x40846c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov al, byte [0x40de80]
push edi
push 0x41
mov byte [ebp - 0x108], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x108]
push eax
call fcn.00402ece
lea eax, [ebp - 0x108]
mov dword [esp], 0x40d94c
push eax
call fcn.0040337f
pop ecx
lea eax, [ebp - 0x108]
pop ecx
push 5
push 0x40de80
push 0
push eax
push str.open
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
leave
ret

Function at 0x4091b5
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret

Function at 0x4091d8
Capabilities:
Set registry value

Disassembly:
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret

Function at 0x40944a
Capabilities:
Create process on windows

Disassembly:
push 5
push str.regedit.exe
call dword [sym.imp.KERNEL32.DLL_WinExec]
push 0x1f
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x409b05
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push esi
call fcn.00409a34
cmp dword [0x40ef04], 0
mov esi, dword [ebp + 0xc]
je 0x409b47
call fcn.00402fee
test eax, eax
je 0x409b34
push esi
call fcn.00409a63
test eax, eax
pop ecx
jne 0x409b47
push 0
push esi
push dword [ebp + 8]
push 0
call dword [0x40ef04]
jmp 0x409bdc
mov al, byte [0x40de80]
push edi
push 0x40
mov byte [ebp - 0x124], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x123]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00409a63
pop ecx
pop edi
test eax, eax
lea eax, [ebp + 0xc]
push 0x20019
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
je 0x409b84
push CreateStatusWindowA
jmp 0x409b89
push 0x80000001
call fcn.004090c4
add esp, 0x10
test eax, eax
jne 0x409bc3
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.00409a7d
lea eax, [ebp - 0x124]
push 0x104
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
call fcn.0040912a
add esp, 0x18
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x124]
push eax
push esi
call sub.MSVCRT.dll_strcpy
xor eax, eax
pop ecx
cmp byte [esi], al
pop ecx
setne al
pop esi
leave
ret

Function at 0x409bdf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push 0xe
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x24], 0
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x30], str.properties
mov dword [ebp - 0x28], 0x40de80
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
leave
ret
Function at 0x409ead
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
lea eax, [ebp - 0x20]
push edi
push eax
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 0x20], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 4], eax
jbe 0x40a062
mov esi, dword [ebp + 0xc]
push 0x810
push ebx
push esi
call sub.MSVCRT.dll_memset
push dword [ebp - 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x10
mov edi, eax
push edi
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x40d278
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x409f43
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], ebx
mov ecx, dword [eax + 0x30]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0xc], ecx
mov eax, dword [eax + 0x10]
mov dword [esi + 8], eax
je 0x409f4b
push 1
push edi
call fcn.00409e80
pop ecx
pop ecx
jmp 0x40a064
cmp dword [ebp + 0x10], ebx
je 0x409f4b
push ebx
jmp 0x409f36
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x409f9a
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x18]
push str._4.4X_4.4X
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x18]
push 0x40de80
push eax
push edi
call fcn.00409dea
add esp, 0x20
test eax, eax
jne 0x409faa
lea eax, [ebp - 0x18]
push str.040904E4
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x18]
push 0x40d6a0
push eax
push edi
call fcn.00409dea
lea eax, [esi + 0x110]
push eax
lea eax, [ebp - 0x18]
push 0x40d690
push eax
push edi
call fcn.00409dea
lea eax, [esi + 0x210]
push eax
lea eax, [ebp - 0x18]
push 0x40d684
push eax
push edi
call fcn.00409dea
lea eax, [esi + 0x310]
push eax
lea eax, [ebp - 0x18]
push 0x40dd2c
push eax
push edi
call fcn.00409dea
add esp, 0x40
lea eax, [esi + 0x410]
push eax
lea eax, [ebp - 0x18]
push 0x40d678
push eax
push edi
call fcn.00409dea
lea eax, [esi + 0x510]
push eax
lea eax, [ebp - 0x18]
push 0x40dd1c
push eax
push edi
call fcn.00409dea
lea eax, [esi + 0x610]
push eax
lea eax, [ebp - 0x18]
push 0x40dd0c
push eax
push edi
call fcn.00409dea
add esi, 0x710
lea eax, [ebp - 0x18]
push esi
push str.OriginalFileName
push eax
push edi
call fcn.00409dea
add esp, 0x40
jmp 0x409f34
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4033ec
Capabilities:
Query or enumerate registry value

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

Function at 0x4041e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x486048], 0
je 0x404245
cmp word [0x48621c], 0xd7b2
jne 0x40420d
cmp dword [0x486224], 0
jbe 0x40420d
mov eax, 0x486218
call dword [0x486234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48306c
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 0x40426c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x483030], 0
jne 0x404261
push 0
push 0x483064
push 0x48306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4062a4
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 0x40630a
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.004045f8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4062f4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406311
lea eax, [ebp - 0x10]
call fcn.00404388
ret

Function at 0x40b5b4
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 0x40b5ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404478
jmp 0x40b5f6
mov eax, ebx
mov edx, esi
call fcn.004043dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bcb8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bb20
mov eax, dword [0x484f5c]
cmp byte [eax], 0
je 0x40bd34
mov eax, dword [0x484cec]
call fcn.00402da4
call fcn.00402bd4
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.00408d70
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 0x40bd7c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bd6a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x484c8c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x486664]
call fcn.00405710
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