joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e48a
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x10133a4]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
xor edi, edi
push edi
push edi
mov dword [ebp - 4], eax
mov eax, dword [0x10134f4]
push 0x188
push dword [eax + 0x14]
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100e60a
lea eax, [ebp - 0x240]
push eax
mov eax, dword [0x10134f4]
push ebx
push 0x189
push dword [eax + 0x14]
call esi
cmp eax, 0xffffffff
jne 0x100e4f2
push ebx
push 0x1002ef0
call fcn.0100eda2
pop ecx
pop ecx
jmp 0x100e60a
mov eax, dword [0x10134f4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov byte [ebp - 0x17], 0x5c
mov byte [ebp - 0x18], 0x5c
test byte [eax + 0x1c], 1
je 0x100e528
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x16]
push eax
mov dword [ebp - 0x244], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
jmp 0x100e532
add eax, 0x20
push eax
lea eax, [ebp - 0x16]
push eax
call esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x240]
push 0x1002fd4
call fcn.0100eda2
add esp, 0xc
push dword [ebp - 0x240]
lea eax, [ebp - 0x11c]
push eax
call esi
lea eax, [ebp - 0x11c]
push eax
push 0x1002fb0
mov byte [ebp - 0x11c], 0x24
call fcn.0100eda2
pop ecx
pop ecx
push dword [ebp + 8]
lea eax, [ebp - 0x11c]
push eax
push dword [0x1013ba4]
call fcn.0100d7ac
push dword [ebp - 0x240]
call fcn.0100aa98
test eax, eax
mov eax, 0x1002f3c
jne 0x100e5a0
mov eax, 0x1001cc0
push dword [ebp - 0x240]
push eax
lea eax, [ebp - 0x23c]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x23c]
push eax
push 0x1001cac
call fcn.0100eda2
mov eax, dword [0x10134fc]
cmp eax, edi
pop ecx
pop ecx
je 0x100e5dd
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
jmp 0x100e5df
xor eax, eax
push edi
push 0x5dc0
push 0x4050
push 1
push edi
push dword [eax]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.0100bb50
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.0100ec8a
leave
ret 4
Function at 0x100eae6
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
push 0x100303c
mov dword [ebp - 0xc], esi
call fcn.0100eda2
pop ecx
lea eax, [ebp - 8]
push eax
call fcn.0101070f
test eax, eax
jne 0x100eb1e
push 0x1003010
call fcn.0100eda2
pop ecx
xor eax, eax
jmp 0x100ec0d
push ebx
push edi
lea eax, [ebp - 4]
push eax
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push 2
push dword [ebp - 8]
call esi
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call edi
mov ebx, eax
test ebx, ebx
je 0x100eba9
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push 2
push dword [ebp - 8]
call esi
test eax, eax
je 0x100eb9c
and dword [ebp - 0x14], 0
cmp dword [ebx], 0
jbe 0x100eb9c
lea eax, [ebx + 4]
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x100eb8a
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], 8
cmp eax, dword [ebx]
jb 0x100eb68
jmp 0x100eb9c
push 0x100300c
call fcn.0100eda2
pop ecx
mov dword [ebp - 0xc], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], 0
jne 0x100ebfd
lea eax, [ebp - 4]
push eax
push 0
push 0
xor ebx, ebx
inc ebx
push ebx
push dword [ebp - 8]
call esi
push dword [ebp - 4]
push 0x40
call edi
mov edi, eax
test edi, edi
je 0x100ebfd
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
push dword [ebp - 8]
call esi
test eax, eax
je 0x100ebf6
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x100ebf6
push 0x100300c
call fcn.0100eda2
pop ecx
mov dword [ebp - 0xc], ebx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x10022c4
call fcn.0100eda2
mov eax, dword [ebp - 0xc]
pop ecx
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x100ee35
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x10133a4]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 4], eax
je 0x100eeed
cmp ebx, edi
je 0x100eeed
mov eax, dword [0x101418c]
neg eax
sbb eax, eax
and eax, 0x53
add eax, 0x59
imul eax, dword [ebp + 0x10]
push edi
push edi
add eax, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x101418c], edi
lea eax, [ebp - 0x64]
push edi
push eax
je 0x100eea7
mov edi, 0xac
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x64], edi
je 0x100eee8
push 0x10030cc
jmp 0x100eef2
push 0x59
lea eax, [ebp - 0x60]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x64], 0x59
je 0x100eec1
push 0x10030b8
jmp 0x100eef2
movzx eax, word [ebp - 0x60]
mov dword [esi], eax
mov eax, dword [ebp - 0x5e]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x5a]
push 0x4f
mov dword [esi + 8], eax
add esi, 0xc
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x56]
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
inc eax
jmp 0x100eefa
push 0x100309c
call fcn.0100eda2
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100ec8a
leave
ret 0xc

Function at 0x100ef0e
Capabilities:
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x10133a4]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x1003140
mov dword [ebp - 4], eax
call fcn.0100eda2
pop ecx
push edi
call fcn.0100eda8
mov ebx, eax
test ebx, ebx
jne 0x100ef4a
mov ax, 1
jmp 0x100f00f
push esi
call fcn.01004ddb
test eax, eax
jne 0x100ef68
push 0x1003124
call fcn.0100eda2
pop ecx
mov ax, 2
jmp 0x100f00f
call dword [sym.imp.USER32.dll_EmptyClipboard]
and dword [ebp - 0xb4], 0
test ebx, ebx
jbe 0x100f007
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push dword [ebp - 0xb4]
lea eax, [ebp - 0xb0]
push eax
push edi
call fcn.0100ee35
cmp dword [ebp - 0xb0], 0xc000
jb 0x100efb5
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov dword [ebp - 0xb0], eax
push dword [ebp - 0xb0]
push 0x10030fc
call fcn.0100eda2
pop ecx
pop ecx
push 0
push dword [ebp - 0xb0]
call esi
cmp dword [ebp - 0xb0], 8
jne 0x100efe0
push 0
push 2
call esi
inc dword [ebp - 0xb4]
cmp dword [ebp - 0xb4], ebx
jb 0x100ef83
test ebx, ebx
jbe 0x100f007
push 0x10030e0
call fcn.0100eda2
pop ecx
mov dword [0x10142a8], 1
call fcn.01004e45
xor ax, ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100ec8a
leave
ret 8
Function at 0x100f2f7
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x10133a4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
cmp dword [0x1014188], esi
je 0x100f385
push 0x2b
pop ecx
push dword [ebp - 0xb8]
lea edi, [ebp - 0xb0]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0xb4]
push eax
push 0xac
lea eax, [ebp - 0xb0]
jmp 0x100f3c7
push 0x16
pop ecx
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ax, word [ebp + 0x18]
push esi
mov word [ebp - 0x60], ax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x5e], eax
mov eax, dword [ebp + 0x10]
push 0x4f
mov dword [ebp - 0x5a], eax
lea eax, [ebp - 0x56]
push eax
push 0xffffffffffffffff
push dword [ebp - 0xb8]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
lea eax, [ebp - 0xb4]
push eax
push 0x59
lea eax, [ebp - 0x60]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xb4]
pop edi
pop esi
pop ebx
call fcn.0100ec8a
leave
ret 0x18
Function at 0x100ffbb
Capabilities:
Read clipboard data
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push edi
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x101007d
push dword [0x1013ba4]
call fcn.01004ddb
test eax, eax
je 0x101007d
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
je 0x1010073
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
call ebx
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 4], eax
je 0x1010072
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
call esi
test eax, eax
mov dword [ebp + 8], eax
je 0x1010072
push dword [ebp - 4]
call esi
mov esi, eax
test esi, esi
je 0x1010069
push dword [ebp - 8]
call ebx
test eax, eax
je 0x101004c
mov ecx, dword [ebp + 8]
mov cl, byte [ecx]
mov byte [esi], cl
inc esi
inc dword [ebp + 8]
dec eax
jne 0x101003e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov edi, eax
neg edi
sbb edi, edi
neg edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop ebx
call fcn.01004e45
test edi, edi
pop esi
jne 0x1010097
push 0x1003494
call fcn.0100eda2
cmp dword [ebp - 4], 0
pop ecx
je 0x1010097
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
leave
ret 8
Function at 0x1010bff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0xc000
jb 0x1010c1f
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov dword [esi], eax
push dword [esi + 4]
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x1010c40
push 0x10036d4
call fcn.0100eda2
pop ecx
jmp 0x1010cbf
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1010c5b
push 0x10036ac
call fcn.0100eda2
pop ecx
jmp 0x1010cd6
push edi
mov edi, dword [esi + 8]
push edi
lea eax, [esi + 0xc]
push eax
push 0x1003684
call fcn.0100eda2
add esp, 0xc
push ebx
push ebx
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
push dword [ebp - 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 4]
cmp eax, dword [ebp - 4]
pop edi
push dword [ebp + 8]
je 0x1010cc3
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 4]
push dword [esi + 4]
push 0x1003650
call fcn.0100eda2
add esp, 0xc
xor eax, eax
jmp 0x1010ce1
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.01010656
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc

Function at 0x1010d87
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1003708
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1010ddf
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1001512
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1010dd2
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1010de1
xor eax, eax
pop esi
leave
ret 4
Function at 0x4019d4
Capabilities:
Delete directory
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
push 0
push 0x1d
push 0x4a
push 0x15
push 0
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
jmp 0x401a3d
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0x143
jge 0x401a51
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x401a34
cmp dword [ebp - 4], 0
jbe 0x401aa0
push 0
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x401878
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x2c], 0
push 0
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x401a83
jmp 0x401a8b
push 0
call fcn.004018f0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
pop dword [0x41d408]
mov dword [ebp + 8], 0x27
mov eax, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401dc1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
push 0
push 0
call fcn.004019d4
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x401e25
push 0
call fcn.00401f6e
add esp, 4
push 0
call fcn.00401aae
jmp 0x401e33
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, 0
push 0
push 0
call sub.WinSCard.dll_SCardForgetReaderW
push 0
push 0
call fcn.00401ed4
fstp st(0)
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4036ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41ca20
cmp edx, dword [eax]
je 0x40370f
add eax, 8
inc ecx
cmp eax, 0x41cab0
jl 0x403700
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41ca20]
jne 0x40383d
mov eax, dword [0x41d41c]
cmp eax, 1
je 0x403817
test eax, eax
jne 0x403740
cmp dword [0x41c92c], 1
je 0x403817
cmp edx, 0xfc
je 0x40383d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403777
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403fb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004045e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4037ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.004045e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408e6c
push edi
call fcn.004059d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403fb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403fc0
lea eax, [ebp - 0xa0]
push 0x408e4c
push eax
call fcn.00403fc0
push dword [esi + 0x41ca24]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403fc0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405946
add esp, 0x2c
pop edi
jmp 0x40383d
lea eax, [ebp + 8]
lea esi, [esi + 0x41ca24]
push 0
push eax
push dword [esi]
call fcn.004045e0
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 0x403ed0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x403f30
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x404026
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x403fa0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x403f75
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x403f85
cmp byte [esp + 0x1e], 0
je 0x403f85
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x403f85
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00403ed0
nop

Function at 0x4042c0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4094e8
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x409500]
sub esp, 4
test ebx, ebx
je 0x40430b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x404304
test esi, esi
je 0x404304
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4042e0
mov dword [esp], 0x4094e8
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x404548
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406834
test esi, esi
jne 0x404580
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.00406970
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405dc8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b3050], 0
je 0x405e29
cmp word [0x4b332c], 0xd7b2
jne 0x405df1
cmp dword [0x4b3334], 0
jbe 0x405df1
mov eax, 0x4b3328
call dword [0x4b3344]
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 0x405e54
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4af030], 0
jne 0x405e45
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fb4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4af034], 0
je 0x405fda
mov edx, esi
mov eax, ebx
call dword [0x4af034]
jmp 0x405fe9
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4b3051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405f7c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408604
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40876b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406834
cmp si, word [0x4af7dc]
jb 0x40869e
cmp si, word [0x4af9dc]
ja 0x40869e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40869e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4af7dc]
jae 0x408678
mov edi, ebx
dec edi
jmp 0x408699
cmp si, word [ebx*8 + 0x4af7dc]
jbe 0x408688
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408699
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4af7e0]
call fcn.00408514
jmp 0x40869e
cmp edi, dword [ebp - 0xc]
jae 0x408662
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40874d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40874d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a1c
push dword [ebp - 0x164]
push 0x408788
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406a1c
push dword [ebp - 0x168]
push 0x408798
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a1c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406dd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408772
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.0040682c
ret
Function at 0x408924
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 0x408a29
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b5b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4b5b70]
jne 0x408970
mov eax, esi
mov edx, 0x4b5b74
mov ecx, 0x55
call fcn.00406a1c
push 0x4b5b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408a13
push 0x4b5b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406834
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4089e1
cmp byte [0x4b5b54], 0
je 0x4089a6
mov edx, esi
mov eax, ebx
call fcn.00408804
jmp 0x4089e1
mov edx, esi
mov eax, ebx
call fcn.00408604
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4089e1
cmp dword [esi], 0
je 0x4089ca
mov eax, esi
mov edx, 0x408a44
call fcn.00406c30
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408604
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406c30
push 0x4b5b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4b5b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.004068c0
push eax
push 0x4b5b74
call sub.kernel32.dll_lstrcpynW
push 0x4b5b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a30
lea eax, [ebp - 4]
call fcn.00406824
ret