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

Disassembly:
push ecx
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, dword [esp + 0x10]
push 0xffffffffffffffff
push ebx
lea eax, [esi - 0x860]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, dword [esi - 0x848]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov dx, word [esi + 0xc]
cmp eax, 0xffffffff
mov word [esi - 0x844], dx
mov word [esi - 0x838], bx
jne 0x44d11c
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esi - 0x83c]
mov eax, dword [esi - 0x82c]
lea edi, [esi - 0x858]
lea ebp, [esi - 0x828]
push edi
push ebp
lea edx, [esi - 0x810]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi - 0x834]
mov edx, dword [esi + 0x10]
mov dword [esi - 4], ebx
mov dword [esi - 0x89c], 0x3c
mov ecx, dword [eax - 4]
mov dword [esi - 0x88c], eax
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x10]
mov dword [esi - 0x898], 0x40
mov dword [esi - 0x824], ecx
mov dword [esi - 0x818], edx
mov dword [edi], ebx
mov dword [esi - 0x820], eax
mov dword [esi - 0x854], ebx
mov dword [esi - 0x850], ebx
mov dword [esi - 0x84c], ebx
mov dword [esi - 0x848], ebx
mov ecx, dword [esi - 0x818]
mov eax, dword [esi - 0x82c]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
mov dword [esi - 0x830], ebx
push edx
push ebp
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi - 0x864]
add ecx, 0x14
cmp eax, ebx
mov dword [esi - 0x840], ebx
mov dword [esi - 0x83c], ecx
je 0x44d1e9
lea eax, [esi*8]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x472600
Capabilities:
Terminate process

Disassembly:
push edi
mov ecx, 0x740000
xor eax, eax
mov edi, 0x535108
mov dl, 0x6c
push eax
rep stosd dword es:[edi], eax
mov dword [0x535130], 0x20644965
push eax
mov dword [0x534ff4], 0x32336c65
mov dword [0x535000], 0x6c64746e
mov dword [0x534ff8], 0x6c6c642e
mov dword [0x534ff0], 0x6e72656b
mov dword [0x535004], 0x6c642e6c
mov byte [0x535008], dl
mov dword [0x53516c], 0x73727473
mov dword [0x535120], 0x65746163
mov byte [0x53512a], 0x79
mov dword [0x535124], 0x61636f4c
mov dword [0x53511c], 0x6f6c6c41
mov byte [0x53512b], 0x55
mov dword [0x53512c], 0x7571696e
mov byte [0x535133], al
mov word [0x535170], 0x7274
mov byte [0x535128], dl
mov byte [0x535129], dl
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call fcn.004bdcf0
add esp, 0x10
xor eax, eax
pop edi
ret 0x10
Function at 0x497b10
Capabilities:
Create http request
Read data from internet
Receive data
Send data

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov dword [esp + 0x28], edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, dword [0x535060]
mov dword [esp + 0x1c], edi
cmp esi, 0xbb40e64e
mov ebx, 0xffff0000
je 0x497b57
test dword [0x535064], ebx
je 0x497b57
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
not esi
mov dword [0x535064], esi
jmp 0x497bba
mov eax, dword [esp + 0x18]
push edi
push edi
push edi
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.WININET.dll_InternetWriteFile]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
xor eax, edx
mov edx, dword [esp + 0x10]
xor eax, ecx
mov ecx, dword [esp + 0x14]
xor ecx, edx
mov dword [esp + 0xc], eax
xor ecx, eax
cmp ecx, 0xbb40e64e
je 0x497ba5
test dword [0x535060], ebx
jne 0x497baa
jmp 0x223f1af
mov edx, ecx
mov dword [0x535060], ecx
not edx
mov dword [0x535064], edx
mov edx, dword [0x535100]
mov dword [esp + 0x18], edi
push edx
push esi
push eax
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov eax, dword [0x535060]
mov dword [esp + 0x1c], edi
cmp eax, 0xbb40e64e
je 0x497c12
test dword [0x535064], ebx
je 0x497c12
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0xc]
mov esi, dword [0x535060]
push eax
not esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x535060]
not ecx
mov dword [0x535064], ecx
jmp 0x497c83
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov dword [esp + 0x10], eax
xor esi, edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
xor ecx, eax
mov eax, dword [esp + 0x14]
xor eax, edx
mov dword [esp + 0xc], ecx
xor eax, ecx
cmp eax, 0xbb40e64e
je 0x497c56
test dword [0x535060], ebx
jne 0x497c5b
mov eax, 0xbb40e64f
push edi
push edi
push edi
push edi
push edi
mov dword [0x535060], eax
call dword [sym.imp.WININET.dll_InternetOpenA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x223f3b9
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x498850
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push 0
push 0
call dword [sym.imp.GDI32.dll_SelectObject]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x534ec0]
add ecx, eax
mov dword [0x534ec0], ecx
push 0x53516c
mov edx, dword [0x5350e8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x534cd8], eax
push 5
mov eax, dword [0x534ce4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 0x20], 0x24
mov dword [ebp - 0x2c], 0x20
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call fcn.00497ca0
add esp, 0x14
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x50882c
Capabilities:
Accept command line arguments
Check os version
Terminate process

Disassembly:
add byte [eax], al
in al, dx
push 0xffffffffffffffff
push 0x532290
push 0x509360
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x2235588], edx
mov ecx, eax
jmp loc.0223f373

Function at 0x508922
Capabilities:
Packed with generic packer

Disassembly:
cmp dword [0x223556c], 1
jne fcn.00508930
jmp loc.0223f5bb

Function at 0x508947
Capabilities:
Terminate process

Disassembly:
cmp dword [0x223556c], 1
jne fcn.00508955
jmp loc.0223f59d

Function at 0x508bae
Capabilities:
Packed with generic packer

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [0x534858]
cmp dword [0x5347d8], edx
push esi
mov eax, 0x5347d8
je 0x508bdb
lea esi, [ecx + ecx*2]
jmp loc.0223f186
lea ecx, [ecx + ecx*2]
pop esi
lea ecx, [ecx*4 + 0x5347d8]
cmp eax, ecx
jae 0x508bee
cmp dword [eax], edx
je 0x508bf0
xor eax, eax
ret

Function at 0x508bf1
Capabilities:
Packed with generic packer

Disassembly:
cmp dword [0x2235a68], 0
jne fcn.00508bff
jmp loc.0223f0f8

Function at 0x50922c
Capabilities:
Packed with generic packer

Disassembly:
xor eax, eax
push 0
cmp dword [esp + 8], eax
push 0x1000
sete al
push eax
call dword [sym.imp.KERNEL32.dll_HeapCreate]
test eax, eax
mov dword [0x2235948], eax
je 0x509261
jmp loc.0223fc17
xor eax, eax
ret
Function at 0x509471
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x534880
cmp edx, dword [eax]
je 0x509493
add eax, 8
inc ecx
cmp eax, 0x534910
jl 0x509484
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x534880]
jne 0x5095c1
mov eax, dword [0x223556c]
cmp eax, 1
je 0x50959b
test eax, eax
jne 0x5094c4
cmp dword [0x5347d4], 1
jmp 0x223f961
cmp edx, 0xfc
je 0x5095c1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5094fb
lea eax, [ebp - 0x1a4]
jmp 0x223f3ff
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00509b90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x50953e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00509b90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x532570
push edi
jmp 0x223f2b9
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00509a20
lea eax, [ebp - 0xa0]
push edi
push eax
jmp 0x223f22c
lea eax, [ebp + 8]
lea esi, [esi + 0x534884]
push 0
push eax
push dword [esi]
call fcn.00509b90
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 0x50a693
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [ecx + 0x10]
mov eax, dword [ecx + 8]
xor ebx, ebx
test eax, eax
jl 0x50a6ae
shl eax, 1
inc ebx
jmp 0x50a6a5
mov eax, ebx
push 0x3f
imul eax, eax, 0x204
pop edx
lea eax, [eax + esi + 0x144]
mov dword [ebp - 4], eax
mov dword [eax + 8], eax
mov dword [eax + 4], eax
add eax, 8
dec edx
jne 0x50a6c3
mov edi, ebx
jmp 0x223f76c
Function at 0x102d4f21
Capabilities:
Encode data using xor

Disassembly:
push 0xb5c49926
cmp dword [ebp - 0x20], 0
jmp 0x102d62db

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
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 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x402ee0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x451008], 0x8088405
inc edx
mov dword [ebx + 0x451008], edx
fld qword [ebx + 0x45106c]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x403670
Capabilities:
Query or enumerate registry value

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

Function at 0x4043b4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x453048], 0
je 0x404415
cmp word [0x45321c], 0xd7b2
jne 0x4043dd
cmp dword [0x453224], 0
jbe 0x4043dd
mov eax, 0x453218
call dword [0x453234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45107c
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 0x40443c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x451034], 0
jne 0x404431
push 0
push 0x451074
push 0x45107c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4057b8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40583b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40583b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405a04
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4058c4
xor eax, eax
push ebp
push 0x4058bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405600
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4058a2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405a24
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4058a2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4058c4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4059de
cmp byte [ebp - 0xd], 0
jne 0x40590b
cmp byte [ebp - 0x12], 0
je 0x4059de
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405924
dec ebx
cmp byte [ebx], 0x2e
je 0x405933
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405923
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4059de
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405970
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4059de
cmp byte [ebp - 0xd], 0
je 0x4059de
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4059de
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4060b0
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 0x406116
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.004047a0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030d8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406100
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40611d
lea eax, [ebp - 0x10]
call fcn.00404530
ret

Function at 0x40b168
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 0x40b1a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404620
jmp 0x40b1aa
mov eax, ebx
mov edx, esi
call fcn.00404584
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b85c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b6d4
mov eax, dword [0x452038]
cmp byte [eax], 0
je 0x40b8d8
mov eax, dword [0x451e58]
call fcn.00402d40
call fcn.00402874
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.004088a8
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 0x40b920
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b90e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x451e08]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x453664]
call fcn.004055c4
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 0x40c174
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 0x40c24a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004045c8
lea eax, [ebp - 8]
call fcn.00404a40
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004049f0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c234
mov eax, ebx
call fcn.0040270c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c22d
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.004049f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c217
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c25c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c217
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 0x40c234
mov eax, dword [ebp - 0x10]
call fcn.0040272c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c251
lea eax, [ebp - 8]
call fcn.00404530
ret

Function at 0x40c6c8
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 0x40c72c
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.004047a0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408438
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c733
lea eax, [ebp - 0xc]
call fcn.00404530
ret

Function at 0x41a808
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x453884
cmp dword [edi], 0
jne 0x41a884
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x453880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4513fc
mov ecx, 2
call fcn.00402908
mov edx, 0x41a7e0
lea eax, [esi + 5]
call fcn.0041a800
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a800
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 0x41a859
mov dword [0x453880], 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 0x41ba98
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 0x41ba9e
ret
Function at 0x41df98
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 0x41dfe9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41dfd0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41dfc0
jmp 0x41dfe9
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 0x41dfd1
pop ebx
mov esp, ebp
pop ebp
ret