joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8ed920
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x388000]
push edi
or ebp, 0xffffffff
jmp 0x8ed942
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8ed949
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8ed938
mov eax, 1
add ebx, ebx
jne 0x8ed95b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8ed96c
jne 0x8ed98b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8ed98b
dec eax
add ebx, ebx
jne 0x8ed978
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8ed950
add ebx, ebx
jne 0x8ed987
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8ed9dd
xor ecx, ecx
sub eax, 3
jb 0x8ed9a3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8eda12
sar eax, 1
mov ebp, eax
jmp 0x8ed9ae
add ebx, ebx
jne 0x8ed9ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8ed97c
inc ecx
add ebx, ebx
jne 0x8ed9bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8ed97c
add ebx, ebx
jne 0x8ed9c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8ed9be
jne 0x8ed9da
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8ed9be
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8ed9fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8ed9ee
jmp 0x8ed93e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8ed9fc
add edi, ecx
jmp 0x8ed93e
pop esi
mov edi, esi
mov ecx, 0x10137
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8eda1a
cmp byte [edi], 0xa3
jne 0x8eda1a
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 0x8eda1f
lea edi, [esi + 0x4e9000]
mov eax, dword [edi]
or eax, eax
je 0x8eda8e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x502e98]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x50300c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8eda4c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x503014]
or eax, eax
je 0x8eda88
mov dword [ebx], eax
add ebx, 4
jmp 0x8eda69
call dword [esi + 0x503010]
mov ebp, dword [esi + 0x503018]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x8edac2
sub esp, 0xffffff80
jmp 0x71ae34
Function at 0x402d55
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
mov eax, ecx
ret

Function at 0x403027
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push dword [ebp + 8]
call fcn.00402d55
test eax, eax
pop ecx
je 0x403041
xor eax, eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x10
test eax, eax
je 0x403076
and byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.00403027
pop ecx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
leave
ret

Function at 0x4030d5
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
lea eax, [ebp - 0x248]
push esi
push eax
push dword [ebp + 0xc]
call fcn.00402f98
pop ecx
lea eax, [ebp - 0x140]
pop ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40313d
push dword [ebp + 0x10]
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x140]
push eax
call dword [ebp + 8]
test eax, eax
je 0x403131
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x403107
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
push 1
pop eax
jmp 0x40313f
xor eax, eax
pop esi
leave
ret

Function at 0x40327d
Capabilities:
Get common file path

Disassembly:
cmp byte [0x40e2e0], 0
push esi
mov esi, 0x40e2e0
jne 0x40329d
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov dword [0x40e3e8], eax
push esi
push dword [esp + 0xc]
call sub.MSVCRT.dll_strcpy
mov eax, dword [0x40e3e8]
pop ecx
pop ecx
pop esi
ret

Function at 0x4032b0
Capabilities:
Get common file path

Disassembly:
cmp byte [0x40e3ec], 0
push esi
mov esi, 0x40e3ec
jne 0x4032d0
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov dword [0x40e4f4], eax
push esi
push dword [esp + 0xc]
call sub.MSVCRT.dll_strcpy
mov eax, dword [0x40e4f4]
pop ecx
pop ecx
pop esi
ret

Function at 0x4032e3
Capabilities:
Get common file path
Get file attributes

Disassembly:
cmp byte [0x40e4f8], 0
push esi
mov esi, 0x40e4f8
jne 0x403310
push esi
call fcn.00402ee0
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test al, 1
je 0x403310
push esi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov eax, esi
pop esi
ret

Function at 0x403314
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x40de80
push 5
push eax
push eax
push dword [esp + 0x14]
push 0x40d07c
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
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], 0x40d6c0
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 0x40d07c
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 0x40d07c
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 0x40da04
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 0x40dbb8
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], 0x40dbfc
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 0x40dd54
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 0x40dd48
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 0x40dd3c
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 0x40dcf8
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 0x40336c
Capabilities:
Query or enumerate registry value

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

Function at 0x40414c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47904c], 0
je 0x4041ad
cmp word [0x479220], 0xd7b2
jne 0x404175
cmp dword [0x479228], 0
jbe 0x404175
mov eax, 0x47921c
call dword [0x479238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47706c
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 0x4041d4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x477030], 0
jne 0x4041c9
push 0
push 0x477064
push 0x47706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406500
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 0x406566
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.00404578
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ed8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406550
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40656d
lea eax, [ebp - 0x10]
call fcn.004042f8
ret

Function at 0x40c104
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 0x40c13d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043e8
jmp 0x40c146
mov eax, ebx
mov edx, esi
call fcn.0040434c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c808
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c670
mov eax, dword [0x478a10]
cmp byte [eax], 0
je 0x40c884
mov eax, dword [0x47875c]
call fcn.00402d44
call fcn.00402bdc
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.00409368
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 0x40c8cc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c8ba
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4786f0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x479668]
call fcn.0040596c
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 0x40d170
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 0x40d246
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404390
lea eax, [ebp - 8]
call fcn.00404818
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004047c8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d230
mov eax, ebx
call fcn.00402a50
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d229
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.004047c8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d213
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d258
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d213
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 0x40d230
mov eax, dword [ebp - 0x10]
call fcn.00402a80
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d24d
lea eax, [ebp - 8]
call fcn.004042f8
ret

Function at 0x40d794
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 0x40d7f8
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.00404578
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408eac
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d7ff
lea eax, [ebp - 0xc]
call fcn.004042f8
ret

Function at 0x422d14
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x479888
cmp dword [edi], 0
jne 0x422d90
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x479884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4774a4
mov ecx, 2
call fcn.00402c70
mov edx, 0x422cec
lea eax, [esi + 5]
call fcn.00422d0c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422d0c
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 0x422d65
mov dword [0x479884], 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 0x423fb4
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 0x423fba
ret
Function at 0x42652c
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 0x42657d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x426564
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x426554
jmp 0x42657d
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 0x426565
pop ebx
mov esp, ebp
pop ebp
ret