joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000cc10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000cc3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000cc3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x556d10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc2000]
push edi
or ebp, 0xffffffff
jmp 0x556d32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x556d39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x556d28
mov eax, 1
add ebx, ebx
jne 0x556d4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x556d5c
jne 0x556d7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x556d7b
dec eax
add ebx, ebx
jne 0x556d68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x556d40
add ebx, ebx
jne 0x556d77
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x556dcd
xor ecx, ecx
sub eax, 3
jb 0x556d93
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x556e02
sar eax, 1
mov ebp, eax
jmp 0x556d9e
add ebx, ebx
jne 0x556d9e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x556d6c
inc ecx
add ebx, ebx
jne 0x556dac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x556d6c
add ebx, ebx
jne 0x556db9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x556dae
jne 0x556dca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x556dae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x556dec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x556dde
jmp 0x556d2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x556dec
add edi, ecx
jmp 0x556d2e
pop esi
mov edi, esi
mov ecx, 0x2f95
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x556e0a
cmp byte [edi], 0x22
jne 0x556e0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x556e0f
lea edi, [esi + 0x153000]
mov eax, dword [edi]
or eax, eax
je 0x556e87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1813b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1814d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x556e3c
mov ecx, edi
jns 0x556e6b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1814e0]
or eax, eax
je 0x556e81
mov dword [ebx], eax
add ebx, 4
jmp 0x556e59
call dword [esi + 0x1814dc]
mov ebp, dword [esi + 0x1814e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x556ebb
sub esp, 0xffffff80
jmp 0x467c21
Function at 0x100010ad
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100010d4
xor al, al
jmp 0x100010fe
push esi
lea eax, [ebp - 4]
push eax
push 0x100
push 0x10013008
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [0x1001370c], eax
mov al, 1
pop edi
pop esi
leave
ret

Function at 0x100011cb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001215
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [0x1001370c]
shl eax, 2
push eax
push 0x10013008
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x10001217
xor al, al
pop esi
leave
ret

Function at 0x100013ae
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10
push edi
call ebx
test eax, eax
jne 0x100013d9
xor al, al
jmp 0x1000145c
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0x10
push esi
call ebx
test eax, eax
jne 0x100013fc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 0x10
push edi
call ebx
xor al, al
jmp 0x1000145b
cmp byte [esi], 0xe9
jne 0x1000140a
mov eax, dword [esi + 1]
lea eax, [eax + esi + 5]
jmp 0x1000141c
lea eax, [esi + 5]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 5
mov edx, dword [ebp - 8]
sub eax, edx
sub eax, edi
sub eax, 5
lea ecx, [edx + edi]
mov dword [ecx + 1], eax
mov eax, dword [ebp + 0x10]
sub eax, esi
sub eax, 5
mov byte [ecx], 0xe9
mov dword [esi + 1], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
mov byte [esi], 0xe9
push 0x10
push esi
call ebx
lea eax, [ebp - 4]
push eax
push 0x20
push 0x10
push edi
call ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov al, 1
pop esi
pop edi
pop ebx
leave
ret

Function at 0x10001676
Capabilities:
Create thread

Disassembly:
push ecx
xor eax, eax
cmp byte [0x10013924], al
jne 0x100016a2
lea ecx, [esp]
push ecx
push eax
push eax
push 0x10001460
push eax
push eax
mov byte [0x10013924], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop ecx
ret 0xc
Function at 0x4209ab
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4209ea
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4209ea
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4209ea
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4209ea
cmp dword [ecx + 0x74], 0xe
jbe 0x4209ea
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433160
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43318d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43318d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4023da
Capabilities:
Open clipboard

Disassembly:
push ebx
mov ebx, ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x402426
push ebp
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea esi, [ebx + 0x88]
xor ebp, ebp
cmp dword [esi], ebp
jle 0x402412
push edi
lea edi, [ebx + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
inc ebp
add edi, 0x10
cmp ebp, dword [esi]
jl 0x402402
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, ebx
call fcn.0040242a
push 1
pop eax
pop esi
pop ebp
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x40249e
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
cmp dword [0x403fdc], 0
je 0x402528
and word [ebp - 0x410], 0
push edi
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x40e]
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x410]
push eax
push dword [0x403fc8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x410]
push 0x402098
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0xc
shl eax, 1
push eax
lea eax, [ebp - 0x410]
push eax
push 1
push 0x402080
push 0x402024
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop edi
leave
ret
push 0x402080
push 0x402024
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
leave
ret

Function at 0x40253f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
push 0x4020e8
lea eax, [ebp - 0x208]
push 0x104
push eax
push dword [0x403fc8]
call fcn.00403608
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add esp, 0x10
lea eax, [ebp - 0x208]
mov edi, 0x4020dc
push eax
push 0
push 0x4020c8
push edi
call esi
mov dword [0x403fdc], eax
lea eax, [ebp - 0x208]
push eax
push 1
push 0x4020b0
push edi
call esi
mov dword [0x402020], eax
call fcn.0040249e
pop edi
pop esi
leave
ret

Function at 0x402850
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push edi
call fcn.0040253f
push dword [ebp + 8]
call fcn.004027fe
mov dword [esp], 0x402124
lea eax, [ebp - 0x208]
push 0x104
push eax
push dword [0x403fc8]
call fcn.00403608
lea eax, [ebp - 0x208]
push 0x40211c
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
add esp, 0x18
test edi, edi
je 0x40290f
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push edi
call esi
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push edi
mov ebx, eax
call esi
lea eax, [ebx - 4]
add esp, 0x1c
shr eax, 3
test eax, eax
mov dword [0x403dbc], eax
jle 0x402905
shl eax, 3
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edi
push 1
push 4
push 0x403db4
mov dword [0x403db8], eax
call esi
push edi
push dword [0x403dbc]
push 8
push dword [0x403db8]
call esi
add esp, 0x24
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop esi
pop ebx
push dword [ebp + 8]
mov ecx, 0x403d28
call fcn.0040246a
pop edi
leave
ret
Function at 0x40341b
Capabilities:
Check mutex on windows

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push edi
push 0x4021a4
push 1
pop edi
xor ebx, ebx
push edi
push ebx
mov dword [0x403fc8], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebp, eax
cmp ebp, ebx
je 0x40345c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40345c
call fcn.004033b3
test eax, eax
je 0x40345c
xor eax, eax
jmp 0x4034f7
push esi
mov esi, dword [sym.imp.USER32.dll_LoadImageW]
push ebx
push 0x20
push 0x20
push edi
push 0x67
push dword [0x403fc8]
call esi
push ebx
push 0x10
push 0x10
push edi
push 0x67
mov dword [0x403fd0], eax
push dword [0x403fc8]
call esi
push 0x402184
mov dword [0x403fd4], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 0x402178
mov dword [0x403fd8], eax
push dword [esp + 0x20]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x4034b8
mov dword [0x403fcc], edi
push ebx
push 0x403246
push ebx
push 0x65
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp ebp, ebx
je 0x4034d6
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x403fd4]
mov esi, dword [sym.imp.USER32.dll_DestroyIcon]
cmp eax, ebx
je 0x4034e8
push eax
call esi
mov eax, dword [0x403fd0]
cmp eax, ebx
je 0x4034f4
push eax
call esi
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
ret 0x10

Function at 0x4035ad
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x400]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x400]
push dword [ebp + 8]
push 0x400
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
leave
ret

Function at 0x4036ec
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401200
push 0x403b90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
push ebx
push eax
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
push ebx
push dword [ebp + 8]
call esi
mov esi, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
cmp esi, edi
je 0x403742
push 1
push edi
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 0x1c], eax
cmp esi, edi
je 0x403761
push ebx
push edi
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x403761
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403799
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
push 0xd
xor esi, esi
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x403802
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x403802
push ebx
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
je 0x4037fb
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4037fb
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push eax
push 0x4021d8
push esi
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
and word [edi + esi*2 - 2], 0
add esp, 0x10
push 1
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
mov eax, esi
pop esi
ret

Function at 0x403945
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 6
push dword [esp + 0xc]
call esi
push 0
push dword [esp + 0xc]
call esi
pop esi
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80c004]
jne 0x401010
repz ret
jmp fcn.0040160c

Function at 0x4076e5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404bff
and dword [ebp - 4], 0
cmp dword [0x80ec9c], 0
mov ebx, eax
jne 0x407796
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407847
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407847
push eax
call fcn.00404b8d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x80ec9c], eax
call esi
push eax
call fcn.00404b8d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x80eca0], eax
call esi
push eax
call fcn.00404b8d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x80eca4], eax
call esi
push eax
call fcn.00404b8d
pop ecx
mov dword [0x80ecac], eax
test eax, eax
je 0x407796
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404b8d
pop ecx
mov dword [0x80eca8], eax
mov eax, dword [0x80eca8]
cmp eax, ebx
je 0x4077ee
cmp dword [0x80ecac], ebx
je 0x4077ee
push eax
call fcn.00404c08
push dword [0x80ecac]
mov esi, eax
call fcn.00404c08
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4077ee
test edi, edi
je 0x4077ee
call esi
test eax, eax
je 0x4077e5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4077e5
test byte [ebp - 0xc], 1
jne 0x4077ee
or dword [ebp + 0x10], 0x200000
jmp 0x407827
mov eax, dword [0x80eca0]
cmp eax, ebx
je 0x407827
push eax
call fcn.00404c08
pop ecx
test eax, eax
je 0x407827
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407827
mov eax, dword [0x80eca4]
cmp eax, ebx
je 0x407827
push eax
call fcn.00404c08
pop ecx
test eax, eax
je 0x407827
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x80ec9c]
call fcn.00404c08
pop ecx
test eax, eax
je 0x407847
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407849
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409a80
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x80c004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x27263b4], 0x930
jne 0x409aaa
push 0x80a4e0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x27263b4], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x27261f8], eax
jne 0x409add
push 0
lea ecx, [ebp - 0x804]
push ecx
push 0
call sub.KERNEL32.dll_VerLanguageNameW
lea edx, [ebp - 0x820]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401006
mov esp, ebp
pop ebp
ret
Function at 0x4046d8
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.00406894
test esi, esi
jne 0x40470e
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.004069fc
jmp 0x40472c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040461c
mov edi, eax
test esi, esi
je 0x40472c
cmp dword [ebx], 0
je 0x40472c
dec esi
jmp 0x404715
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405640
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.00405a2c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4057c9
test edi, edi
je 0x4057c9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405700
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4056db
cmp edi, 0xffffffff
je 0x40569f
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40569f
mov byte [esp], 0
jmp 0x4057c9
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4056db
test ebx, ebx
jne 0x4056d4
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402568
test eax, eax
jne 0x4056d4
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4057c9
pause
dec ebp
test ebp, ebp
jg 0x405684
cmp edi, 0xffffffff
je 0x405700
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4056fe
mov byte [esp], 0
jmp 0x4057c9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40564e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x405700
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040583c
mov edx, eax
mov ebx, dword [0x4b58c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405767
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405765
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405767
xor edi, edi
cmp byte [esp], 0
je 0x405790
mov ebx, dword [esi]
test bl, 1
jne 0x4057a9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x40576d
mov byte [esp + 1], 1
jmp 0x4057a9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x405790
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40571a
cmp byte [esp], 0
je 0x4057c9
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 0x406544
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b5050], 0
je 0x4065a5
cmp word [0x4b532c], 0xd7b2
jne 0x40656d
cmp dword [0x4b5334], 0
jbe 0x40656d
mov eax, 0x4b5328
call dword [0x4b5344]
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 0x4065d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b2028], 0
jne 0x4065c1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406750
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 [0x4b202c], 0
je 0x40677b
mov edx, edi
mov eax, esi
call dword [0x4b202c]
mov ebx, eax
jmp 0x40678c
mov eax, 8
call fcn.00404350
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4b5051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406718
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 0x4067c1
mov edx, 8
mov eax, ebx
call fcn.0040436c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x4088b4
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 0x408a19
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406894
cmp si, word [0x4b27dc]
jb 0x40894c
cmp si, word [0x4b29dc]
ja 0x40894c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40894c
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4b27dc]
jae 0x408926
mov edi, ebx
dec edi
jmp 0x408947
cmp si, word [ebx*8 + 0x4b27dc]
jbe 0x408936
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408947
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4b27e0]
call fcn.004087c4
jmp 0x40894c
cmp edi, dword [ebp - 8]
jae 0x408910
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4089fb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4089fb
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.00407264
push dword [ebp - 0x160]
push 0x408a34
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407264
push dword [ebp - 0x164]
push 0x408a44
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407264
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040749c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a20
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004068f4
ret