joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405ad6
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x408034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xb0], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xb0]
push 0x11
push str.Software_bfAppStoreConfigAppActiveAA__03d__d
push eax
mov dword [ebp - 4], 0
call fcn.00403260
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x90], ax
lea eax, [ebp - 0x8e]
push eax
call sub.MSVCR110.dll_memset
mov esi, dword [ebp - 0xb0]
add esp, 0x1c
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xa8]
push eax
push str.LastActiveDate
push esi
push reloc.crt.dll_Ordinal_1
mov dword [ebp - 0xa8], 1
mov dword [ebp - 0xa4], 0x76
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
or ecx, 0xffffffff
test eax, eax
je 0x4030ca
xor ebx, ebx
jmp 0x4031c2
xor eax, eax
mov word [ebp - 0xa0], ax
mov dword [ebp - 0x96], eax
mov word [ebp - 0x92], ax
lea eax, [ebp - 0xa0]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x9e], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 1
movzx eax, word [ebp - 0x94]
push eax
movzx eax, word [ebp - 0x96]
push eax
movzx eax, word [ebp - 0x98]
push eax
movzx eax, word [ebp - 0x9a]
push eax
movzx eax, word [ebp - 0x9e]
push eax
movzx eax, word [ebp - 0xa0]
push eax
lea eax, [ebp - 0xac]
push str._04d__02d__02d__02d:_02d:_02d
push eax
call fcn.00403260
mov edi, dword [ebp - 0xac]
lea eax, [ebp - 0xb4]
push eax
lea edx, [ebp - 0x90]
mov ecx, edi
mov dword [ebp - 0xb4], 0
call fcn.00402300
add esp, 0x24
cmp dword [ebp - 0xb4], 0
je 0x40319f
test edx, edx
jl 0x40319f
jg 0x40318d
test eax, eax
je 0x40319f
push 0
push 0x15180
push edx
push eax
call fcn.00405890
mov ebx, eax
jmp 0x4031a1
xor ebx, ebx
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4031bf
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4031e0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404ecc
mov esp, ebp
pop ebp
ret 8
Function at 0x403610
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x408034]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4084c4], 0
je 0x40363c
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404ecc
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x406698
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4036a9
push 8
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x4084c4], eax
jmp 0x4036ae
mov eax, dword [0x4084c4]
test eax, eax
jne 0x4036c2
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404ecc
mov esp, ebp
pop ebp
ret
push esi
push str.api.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4036ea
push str.RegisterAppExtend
push eax
call esi
test eax, eax
je 0x4036ea
push 0
push 0
call eax
push ebx
push edi
push str.ReportActiveLive
push dword [0x4084c4]
call esi
mov edi, eax
test edi, edi
je 0x403766
push str.ReportHttpUrl
push dword [0x4084c4]
call esi
mov ebx, eax
test ebx, ebx
je 0x403766
push str.CreateUrlParamObject
push dword [0x4084c4]
call esi
mov dword [ebp - 0x210], eax
test eax, eax
je 0x403766
push str.RALServerInitialize
push dword [0x4084c4]
call esi
test eax, eax
je 0x403766
call eax
mov eax, dword [ebp - 0x210]
mov dword [0x4084c8], edi
pop edi
mov dword [0x4084cc], ebx
pop ebx
mov dword [0x4084d0], eax
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404ecc
mov esp, ebp
pop ebp
ret
push dword [0x4084c4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
mov dword [0x4084c4], 0
xor al, al
pop esi
call fcn.00404ecc
mov esp, ebp
pop ebp
ret

Function at 0x403950
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4084b8]
test eax, eax
jne 0x4039a1
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x4084b8
push 0
push 0x4084a0
push 0x4039c0
push 0
push 0
mov dword [0x4084c0], eax
call dword [sym.imp.MSVCR110.dll__beginthreadex]
add esp, 0x18
mov dword [0x4084bc], eax
push 0xffffffffffffffff
push dword [0x4084c0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x4084b8]
push 0
push dword [ebp + 8]
push 0x401
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
pop ebp
ret 4
Function at 0x404780
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x408034]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
jne 0x40487c
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...AppParam.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40487a
push esi
push 8
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x404879
push str.GetAppDefaultParam
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x404872
xor ecx, ecx
mov eax, 0x100
mov edx, 2
mul edx
seto cl
push ebx
neg ecx
or ecx, eax
push ecx
call fcn.00404ebd
add esp, 4
mov ebx, eax
push 0xff
push ebx
push 0
xorps xmm0, xmm0
push 2
movq qword [ebx], xmm0
call dword [ebp - 0x210]
cmp word [ebx], 0
je 0x404867
mov dword [edi], ebx
jmp 0x404871
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00404ecc
mov esp, ebp
pop ebp
ret
Function at 0x10004548
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push 0x10009341
call sub.kernel32.dll_GetModuleHandleA
cmp eax, 0
je 0x10004739
mov dword [ebp - 4], eax
push str.ZwQuerySystemInformation
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [str..ZwQueryInformationProcess], eax
push 0x10009368
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x10009382], eax
push 0x100093a7
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x100093a3], eax
push 0x100093b6
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x100093b2], eax
push 0x100093ca
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x100093c6], eax
push 0x100093e5
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x100093e1], eax
push 0x100093fe
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x100093fa], eax
push 0x1000941f
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x1000941b], eax
push 0x10009481
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x1000947d], eax
push 0x10009386
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x1000939f], eax
push 0x10009496
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [str.nZwTerminateProcess], eax
push 0x100094ad
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [str._ZwResumeThread], eax
push 0x10009435
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x10009431], eax
push 0x10009447
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x10009443], eax
push 0x10009468
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x10009464], eax
push 0x100094c0
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x100094bc], eax
push 0x100094db
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x100094d7], eax
push 0x100094f3
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10004739
mov dword [0x100094ef], eax
mov eax, 1
leave
ret
mov eax, 0
leave
ret

Function at 0x10004978
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0x40
push 0x3000
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
call sub.kernel32.dll_VirtualAllocEx
or eax, eax
je 0x100049b1
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call sub.kernel32.dll_WriteProcessMemory
mov eax, dword [ebp - 4]
leave
ret 0xc
Function at 0x100049b5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
pop dword [ebp - 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.10004978
or eax, eax
je 0x10004ad6
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
call fcn.10004924
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004978
or eax, eax
je 0x10004ad6
mov dword [ebp - 8], eax
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push 0
push 0
push dword [ebp + 8]
call sub.kernel32.dll_CreateRemoteThread
or eax, eax
je 0x10004ad6
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x18], 2
jne 0x10004a31
push dword [ebp - 0x10]
call sub.kernel32.dll_CloseHandle
push 1
pop dword [ebp - 0xc]
jmp 0x10004ad6
cmp dword [ebp + 0x18], 0
jne 0x10004a42
push dword [ebp - 0x10]
pop dword [ebp - 0xc]
jmp 0x10004ad6
cmp dword [ebp + 0x18], 1
jne 0x10004a95
push 0xffffffffffffffff
push dword [ebp - 0x10]
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call sub.kernel32.dll_GetExitCodeThread
or eax, eax
jne 0x10004a67
push 0
pop dword [ebp - 0xc]
push dword [ebp - 0x10]
call sub.kernel32.dll_CloseHandle
push 0x8000
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call sub.kernel32.dll_VirtualFreeEx
push 0x8000
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call sub.kernel32.dll_VirtualFreeEx
jmp 0x10004ad6
cmp dword [ebp + 0x18], 3
jne 0x10004ad6
push 0xffffffffffffffff
push dword [ebp - 0x10]
call sub.kernel32.dll_WaitForSingleObject
push dword [ebp - 0x10]
call sub.kernel32.dll_CloseHandle
push 0x8000
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call sub.kernel32.dll_VirtualFreeEx
push 0x8000
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call sub.kernel32.dll_VirtualFreeEx
push 1
pop dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
leave
ret 0x14
Function at 0x10006f52
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
cmp dword [ebp + 0xc], 1
jne 0x10006fca
push dword [ebp + 8]
pop dword [0x1000986c]
call sub.kernel32.dll_GetCurrentProcessId
mov ebx, eax
lea eax, [ebp - 0x40]
push eax
push ebx
push 0x1401
call fcn.10002909
push 0x1000977b
push 0
lea eax, [ebp - 0x40]
push eax
call fcn.10002a72
or eax, eax
je 0x10006fb0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0x100070cf
push 0
push 0
call sub.kernel32.dll_CreateThread
jmp 0x10006fc3
cmp dword [0x1000977b], 0
je 0x10006fc3
push 0x1000977b
call fcn.10002a4e
mov eax, 1
jmp 0x10006fe5
cmp dword [ebp + 0xc], 0
jne 0x10006fd7
call fcn.10007062
jmp 0x10006fe5
cmp dword [ebp + 0xc], 2
jne 0x10006fdf
jmp 0x10006fe5
cmp dword [ebp + 0xc], 3
jne 0x10006fe5
leave
ret 0xc
Function at 0x41c83b
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
xor ecx, ecx
lea ebx, [ebp]
mov word [ebx + 0x200], 0
add ebx, 2
mov word [ebx + 0x200], 0
add ebx, 2
mov word [ebx + 0x200], 0
add ebx, 2
mov word [ebx + 0x200], 0
add ebx, 2
add ecx, 8
cmp ecx, 0x100
jl 0x41c840
xor ecx, ecx
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
mov byte [ebx], cl
inc cx
cmp cx, 0x100
jl 0x41c87d
xor ecx, ecx
xor edx, edx
and edx, 0xff
mov ebx, edx
add ebx, ebp
add dl, byte [ebx + 0x200]
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
add dl, byte [ebx]
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
mov al, byte [ebx]
and edx, 0xff
mov ebx, edx
add ebx, ebp
mov ah, byte [ebx]
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
mov byte [ebx], ah
and edx, 0xff
mov ebx, edx
add ebx, ebp
mov byte [ebx], al
inc cx
cmp cx, 0x100
jl 0x41c896
xor edi, edi
add cl, 1
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
add dl, byte [ebx]
mov al, byte [ebx]
and edx, 0xff
mov ebx, edx
add ebx, ebp
mov ah, byte [ebx]
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
mov byte [ebx], ah
and edx, 0xff
mov ebx, edx
add ebx, ebp
mov byte [ebx], al
and ecx, 0xff
mov ebx, ecx
add ebx, ebp
mov al, byte [ebx]
and edx, 0xff
mov ebx, edx
add ebx, ebp
add al, byte [ebx]
and eax, 0xff
mov ebx, eax
add ebx, ebp
mov ch, byte [ebx]
xor ch, byte [esi + edi]
mov byte [esi + edi], ch
inc edi
cmp edi, dword [ebp + 0x108]
jne 0x41c8ed
ret
Function at 0x403230
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x403289
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.004030cc
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004030cc
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x403273
inc ebx
jmp 0x40325c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403290
lea eax, [ebp - 8]
call fcn.00404cb4
ret

Function at 0x403298
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404cb4
test esi, esi
jne 0x4032cf
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404da4
jmp 0x4032f0
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.004030cc
mov dword [esp], eax
test esi, esi
je 0x4032f0
cmp dword [ebx], 0
je 0x4032f0
dec esi
jmp 0x4032d7
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x40362c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x59f008], 0x8088405
inc edx
mov dword [ebx + 0x59f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403bf4
Capabilities:
Query or enumerate registry value

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

Function at 0x404aac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5a904c], 0
je 0x404b0d
cmp word [0x5a9220], 0xd7b2
jne 0x404ad5
cmp dword [0x5a9228], 0
jbe 0x404ad5
mov eax, 0x5a921c
call dword [0x5a9238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x59f078
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 0x404b34
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x59f034], 0
jne 0x404b29
push 0
push 0x59f070
push 0x59f078
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404c68
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.00402e04
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x5a904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c30
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x407110
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 0x407176
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.00404f24
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403648
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x407160
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40717d
lea eax, [ebp - 0x10]
call fcn.00404cb4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405174
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40ca69
test al, 0x10
jne 0x40ca6d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40cb5c
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405174
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40cb70
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405174
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40cb92
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40fec8
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 0x40ff01
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404da4
jmp 0x40ff0a
mov eax, ebx
mov edx, esi
call fcn.00404d08
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ff14
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 0x40ff35
mov al, byte [esp]
jmp 0x40ff37
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4105cc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x410434
mov eax, dword [0x5a86c0]
cmp byte [eax], 0
je 0x410648
mov eax, dword [0x5a7ff8]
call fcn.0040345c
call fcn.00402ff8
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.0040d0c0
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 0x410690
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41067e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x5a7f20]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5a9668]
call fcn.00406560
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 0x410f58
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 0x41102e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404d4c
lea eax, [ebp - 8]
call fcn.004051c4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405174
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x411018
mov eax, ebx
call fcn.00402e04
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x411011
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.00405174
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x410ffb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x411040
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x410ffb
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 0x411018
mov eax, dword [ebp - 0x10]
call fcn.00402e34
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411035
lea eax, [ebp - 8]
call fcn.00404cb4
ret

Function at 0x4116a0
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 0x411704
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.00404f24
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040c67c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41170b
lea eax, [ebp - 0xc]
call fcn.00404cb4
ret