joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401059
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x40f004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x4010a6
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.004042b0
lea eax, [ebp - 0x404]
push eax
call section..text
add esp, 0x18
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401831
leave
ret

Function at 0x4010f4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push edi
push 0x40da68
lea eax, [ebp - 4]
xor edi, edi
push 0x410b68
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.004018fe
xor ecx, ecx
cmp eax, edi
sete cl
push str.Failed_to_open_executable
push ecx
call fcn.00401059
push 2
push edi
push dword [ebp - 4]
call fcn.00402380
push dword [ebp - 4]
call fcn.00402291
cdq
mov dword [ebp - 0x18], eax
add eax, 0xfffffefc
add esp, 0x24
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], eax
cmp eax, edi
jge 0x401154
mov dword [ebp - 8], edi
push ebx
push esi
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00402380
push dword [ebp - 4]
mov ebx, 0x104
push ebx
push 1
push dword [ebp + 8]
call fcn.0040208b
push dword [ebp + 8]
mov esi, eax
call fcn.004010b2
add esp, 0x20
cmp eax, edi
je 0x4011a3
mov esi, eax
push 5
pop ecx
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
sub eax, edi
add eax, dword [ebp - 8]
cdq
mov esi, eax
mov dword [ebp - 0x14], edx
jmp 0x401224
mov esi, 0x4100000
push esi
call fcn.00401cd1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfbf00000
pop ecx
mov dword [ebp - 8], eax
cmp eax, edi
jge 0x4011c4
mov dword [ebp - 8], edi
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00402380
push dword [ebp - 4]
push esi
push 1
push dword [ebp - 0xc]
call fcn.0040208b
push dword [ebp - 0xc]
mov esi, eax
call fcn.004010b2
mov esi, eax
xor eax, eax
cmp esi, edi
setne al
push str.Unable_to_find_an_appended_archive.
mov dword [ebp - 0x14], esi
push eax
call fcn.00401059
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0xc]
push 5
add eax, dword [ebp - 8]
pop ecx
push dword [ebp - 0xc]
cdq
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov esi, eax
mov dword [ebp - 0x14], edx
call fcn.00401c57
mov edi, dword [ebp + 8]
add esp, 0x2c
sub esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
sub esi, ebx
jns 0x401230
xor esi, esi
push 0
push esi
push dword [ebp - 4]
call fcn.00402380
push dword [ebp - 4]
push ebx
push 1
push edi
call fcn.0040208b
mov esi, eax
xor eax, eax
cmp eax, esi
sbb eax, eax
neg eax
push str.Unable_to_read_from_file
push eax
call fcn.00401059
add esp, 0x24
lea eax, [esi + edi - 1]
pop esi
pop ebx
jmp 0x401275
mov dx, word [eax]
mov ecx, 0x40dacc
cmp dx, word [ecx]
je 0x40127b
dec eax
cmp eax, edi
jae 0x401267
jmp 0x40127e
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
call fcn.00402469
mov eax, dword [ebp - 0x10]
pop ecx
pop edi
leave
ret
Function at 0x4012e5
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x40f004]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push 0x70
lea eax, [esp + 0x78]
push eax
push 9
push ebx
call dword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x40133a
cmp dword [esp + 0x10], 0x70
jne 0x40133a
xor eax, eax
inc eax
jmp 0x40133c
xor eax, eax
push str.Job_information_querying_failed
push eax
call fcn.00401059
or dword [esp + 0x88], 0x3000
pop ecx
pop ecx
push 0x70
lea eax, [esp + 0x74]
push eax
push 9
push ebx
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
push str.Job_information_setting_failed
push eax
call fcn.00401059
push 0x44
pop esi
push esi
lea eax, [esp + 0x34]
push edi
push eax
call fcn.00404f10
add esp, 0x14
mov dword [esp + 0x28], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
call esi
push eax
lea eax, [esp + 0x64]
call fcn.0040128d
mov dword [esp], str.stdin_duplication_failed
push eax
call fcn.00401059
pop ecx
pop ecx
push 0xfffffffffffffff5
call esi
push eax
lea eax, [esp + 0x68]
call fcn.0040128d
mov dword [esp], str.stdout_duplication_failed
push eax
call fcn.00401059
pop ecx
pop ecx
push 0xfffffffffffffff4
call esi
push eax
lea eax, [esp + 0x6c]
call fcn.0040128d
mov dword [esp], str.stderr_duplication_failed
push eax
call fcn.00401059
pop ecx
pop ecx
push 1
push 0x4012c5
mov dword [esp + 0x5c], 0x100
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push dword [esp + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [esp + 0x14]
push str.Unable_to_create_process_using__s
push eax
call fcn.00401059
mov eax, dword [esp + 0x2c]
add esp, 0xc
push dword [esp + 0x18]
mov dword [0x410d70], eax
push ebx
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push str.Failed_to_get_exit_code_of_process
push eax
call fcn.00401059
pop ecx
pop ecx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401831
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f004]
jne 0x40183b
repz ret
jmp fcn.0040267d

Function at 0x4077cb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40f004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004036e3
and dword [ebp - 0x14], 0
cmp dword [0x410b34], 0
mov dword [ebp - 0x18], eax
jne 0x40787e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407926
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407926
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x410b34], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x410b38], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x410b3c], eax
call edi
push eax
call esi
mov dword [0x410b44], eax
test eax, eax
je 0x40787e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x410b40], eax
mov eax, dword [0x410b40]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4078d7
cmp dword [0x410b44], ecx
je 0x4078d7
push eax
call esi
push dword [0x410b44]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4078d7
test ebx, ebx
je 0x4078d7
call edi
test eax, eax
je 0x4078ce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4078ce
test byte [ebp - 8], 1
jne 0x4078d7
or dword [ebp + 0x10], 0x200000
jmp 0x40790a
mov eax, dword [0x410b38]
cmp eax, dword [ebp - 0x18]
je 0x40790a
push eax
call esi
test eax, eax
je 0x40790a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40790a
mov eax, dword [0x410b3c]
cmp eax, dword [ebp - 0x18]
je 0x40790a
push eax
call esi
test eax, eax
je 0x40790a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x410b34]
call esi
test eax, eax
je 0x407926
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407928
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401831
leave
ret
Function at 0x403b80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x134
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.GetSystemDirectoryA
push str.KERNEL32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.lstrcatA
push str.KERNEL32.dll
mov ebx, eax
call esi
push eax
call edi
push str.lstrcpyA
push str.KERNEL32.dll
mov ebp, eax
call esi
push eax
call edi
mov esi, eax
lea eax, [esp + 0x40]
push 0x104
push eax
call ebx
mov al, 0x65
mov dl, 0x74
mov byte [esp + 0x1c], al
mov byte [esp + 0x21], dl
mov byte [esp + 0x22], al
mov byte [esp + 0x25], al
mov byte [esp + 0x26], dl
mov byte [esp + 0x2e], al
mov byte [esp + 0x32], al
mov byte [esp + 0x38], al
mov byte [esp + 0x3a], al
mov byte [esp + 0x3c], al
mov cl, 0x72
mov bl, 0x6c
mov dl, 0x78
xor al, al
mov byte [esp + 0x10], 0x5c
mov byte [esp + 0x11], 0x50
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], 0x6f
mov byte [esp + 0x14], 0x67
mov byte [esp + 0x15], cl
mov byte [esp + 0x16], 0x61
mov byte [esp + 0x17], 0x6d
mov byte [esp + 0x18], 0x20
mov byte [esp + 0x19], 0x46
mov byte [esp + 0x1a], 0x69
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1d], 0x73
mov byte [esp + 0x1e], 0x5c
mov byte [esp + 0x1f], 0x49
mov byte [esp + 0x20], 0x6e
mov byte [esp + 0x23], cl
mov byte [esp + 0x24], 0x6e
mov byte [esp + 0x27], 0x20
mov byte [esp + 0x28], 0x45
mov byte [esp + 0x29], dl
mov byte [esp + 0x2a], 0x70
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2c], 0x6f
mov byte [esp + 0x2d], cl
mov byte [esp + 0x2f], cl
mov byte [esp + 0x30], 0x5c
mov byte [esp + 0x31], 0x69
mov byte [esp + 0x33], dl
mov byte [esp + 0x34], 0x70
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], 0x6f
mov byte [esp + 0x37], cl
mov byte [esp + 0x39], 0x2e
mov byte [esp + 0x3b], dl
mov byte [esp + 0x3d], al
mov byte [esp + 0x42], al
lea ecx, [esp + 0x10]
lea edx, [esp + 0x40]
push ecx
push edx
call ebp
mov ecx, dword [esp + 0x148]
lea eax, [esp + 0x40]
push eax
push ecx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x134
ret

Function at 0x4055b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055ce
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40560f
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x427432
Capabilities:
Encode data using xor

Disassembly:
pop ebp
clc
pushal
lea edi, [ebp + 0x42]
mov si, 0x256
cld
mov cl, byte [edi]
xor cl, 0x59
rol cl, 0xc4
xor cl, 0x18
mov byte [edi], cl
inc edi
dec si
jne 0x42743d
jmp 0x427495
fmul st(0)
fdivr dword [esi + 0x7d0c6bc0]
invalid
Function at 0x405aed
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405db8
test bl, 8
mov dword [ebp - 8], eax
je 0x405b2c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a2c8], eax
jmp 0x405ca9
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405b46
test eax, eax
je 0x405c57
test bl, 2
je 0x405c57
mov esi, 0x425710
push edi
push esi
call fcn.004063db
cmp dword [ebp + 8], 0
je 0x405b65
push 0x40a56c
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405b6b
push edi
call fcn.00405cfc
cmp word [edi], 0
jne 0x405b7b
cmp word [0x425710], 0x5c
jne 0x405b86
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405c4c
cmp word [ebp - 0x22c], 0x2e
jne 0x405bd0
cmp word [ebp - 0x22a], 0
je 0x405c2f
cmp word [ebp - 0x22a], 0x2e
jne 0x405bd0
cmp word [ebp - 0x228], 0
je 0x405c2f
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004063db
test byte [ebp - 0x258], 0x10
je 0x405bfb
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405c2f
push dword [ebp + 0xc]
push edi
call fcn.00405aed
jmp 0x405c2f
push dword [ebp - 4]
push edi
call fcn.00405aa5
test eax, eax
jne 0x405c27
cmp dword [ebp - 4], eax
je 0x405c1f
push edi
push 0xfffffffffffffff1
call fcn.00405443
push 0
push edi
call fcn.004061a1
jmp 0x405c2f
inc dword [0x42a2c8]
jmp 0x405c2f
push edi
push 0xfffffffffffffff2
call fcn.00405443
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405ba8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405c57
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405ca9
cmp dword [ebp - 8], esi
jne 0x405c6b
inc dword [0x42a2c8]
jmp 0x405ca9
push edi
call fcn.00406739
test eax, eax
je 0x405ca9
push edi
call fcn.00405cb0
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405aa5
test eax, eax
jne 0x405ca1
cmp dword [ebp - 4], esi
je 0x405c63
push edi
push 0xfffffffffffffff1
call fcn.00405443
push esi
push edi
call fcn.004061a1
jmp 0x405ca9
push edi
push 0xffffffffffffffe5
call fcn.00405443
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4046f0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406944
test esi, esi
jne 0x404726
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406aac
jmp 0x404744
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404634
mov edi, eax
test esi, esi
je 0x404744
cmp dword [ebx], 0
je 0x404744
dec esi
jmp 0x40472d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4056a4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405a90
mov byte [esp], al
cmp byte [esp], 0
jne 0x40582d
test edi, edi
je 0x40582d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405764
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40573f
cmp edi, 0xffffffff
je 0x405703
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405703
mov byte [esp], 0
jmp 0x40582d
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40573f
test ebx, ebx
jne 0x405738
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402580
test eax, eax
jne 0x405738
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40582d
pause
dec ebp
test ebp, ebp
jg 0x4056e8
cmp edi, 0xffffffff
je 0x405764
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405762
mov byte [esp], 0
jmp 0x40582d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4056b2
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x405764
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004058a0
mov edx, eax
mov ebx, dword [0x4de8cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4057cb
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4057c9
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4057cb
xor edi, edi
cmp byte [esp], 0
je 0x4057f4
mov ebx, dword [esi]
test bl, 1
jne 0x40580d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x4057d1
mov byte [esp + 1], 1
jmp 0x40580d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x4057f4
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40577e
cmp byte [esp], 0
je 0x40582d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4065a8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4de054], 0
je 0x406609
cmp word [0x4de330], 0xd7b2
jne 0x4065d1
cmp dword [0x4de338], 0
jbe 0x4065d1
mov eax, 0x4de32c
call dword [0x4de348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x406634
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d8028], 0
jne 0x406625
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406800
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4d802c], 0
je 0x40682b
mov edx, edi
mov eax, esi
call dword [0x4d802c]
mov ebx, eax
jmp 0x40683c
mov eax, 8
call fcn.00404368
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4de055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4067c8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x406871
mov edx, 8
mov eax, ebx
call fcn.00404384
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408a48
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408bad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406944
cmp si, word [0x4d87dc]
jb 0x408ae0
cmp si, word [0x4d89dc]
ja 0x408ae0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408ae0
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4d87dc]
jae 0x408aba
mov edi, ebx
dec edi
jmp 0x408adb
cmp si, word [ebx*8 + 0x4d87dc]
jbe 0x408aca
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408adb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d87e0]
call fcn.00408958
jmp 0x408ae0
cmp edi, dword [ebp - 8]
jae 0x408aa4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408b8f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b8f
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407380
push dword [ebp - 0x160]
push 0x408bc8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407380
push dword [ebp - 0x164]
push 0x408bd8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407380
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004075b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408bb4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004069a4
ret
Function at 0x408d60
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408e63
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e0b55
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4e0b6e]
jne 0x408dac
mov eax, esi
mov edx, 0x4e0b70
mov ecx, 0x55
call fcn.00407380
push 0x4e0b55
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408e4d
push 0x4e0b55
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406944
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408e1b
cmp byte [0x4e0b54], 0
je 0x408de0
mov edx, esi
mov eax, ebx
call fcn.00408c44
jmp 0x408e1b
mov edx, esi
mov eax, ebx
call fcn.00408a48
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408e1b
cmp dword [esi], 0
je 0x408e04
mov eax, esi
mov edx, 0x408e7c
call fcn.004074d8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408a48
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004074d8
push 0x4e0b55
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4e0b6e], bx
push 0xaa
mov eax, dword [esi]
call fcn.004072dc
push eax
push 0x4e0b70
call sub.kernel32.dll_lstrcpynW
push 0x4e0b55
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e6a
lea eax, [ebp - 4]
call fcn.00406944
ret
Function at 0x409098
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406a28
xor eax, eax
push ebp
push 0x4092bd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4090d8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4090f2
push 0x105
mov eax, dword [ebp - 4]
call fcn.004072dc
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4092a7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4091c1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092cc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4091c1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409308
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4091c1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409308
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4091c1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40933c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4091c1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409370
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4092a7
xor eax, eax
push ebp
push 0x4092a0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408ea4
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409230
mov eax, dword [ebp - 0x10]
call fcn.00404368
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040732c
jmp 0x40927b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4093b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40927b
mov eax, dword [ebp - 0x10]
call fcn.00404368
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4093b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040732c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092a7
cmp dword [ebp - 8], 0
je 0x409296
mov eax, dword [ebp - 8]
call fcn.00404384
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092c4
lea eax, [ebp - 4]
call fcn.00406944
ret