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

Disassembly:
cmp ecx, dword [0x1025558]
jne 0x1018b08
test ecx, 0xffff0000
jne 0x1018b08
ret
jmp fcn.01018b12

Function at 0x101ac67
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1007058
call fcn.0101b190
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x1000000], 0x5a4d
jne 0x101acaf
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x101acaf
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x101acc8
cmp ecx, 0x20b
je 0x101acb5
and dword [ebp - 0x1c], 0
jmp 0x101acdc
cmp dword [eax + 0x84], 0xe
jbe 0x101acaf
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x101acd6
cmp dword [eax + 0x74], 0xe
jbe 0x101acaf
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 2
pop esi
push esi
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or edi, 0xffffffff
mov dword [0x10262bc], edi
mov dword [0x10262c0], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10262a0]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x102629c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10262b8], eax
call fcn.0101b188
cmp dword [0x1025560], 0
jne 0x101ad3c
push fcn.0101b188
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0101b171
push 0x1001f9c
push 0x1001f98
call sub.msvcrt.dll__initterm
mov eax, dword [0x1026298]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1026294]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x1001f94
push 0x1001f44
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov eax, dword [eax]
test eax, eax
jne 0x101ada1
mov dword [ebp - 4], edi
mov eax, 0xff
jmp 0x101ae50
mov dword [ebp - 0x20], eax
cmp word [eax], 0x22
jne 0x101ade2
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x101adbd
cmp cx, 0x22
jne 0x101adaa
cmp word [eax], 0x22
jne 0x101adc8
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x101add6
cmp cx, 0x20
jbe 0x101adc3
test byte [ebp - 0x54], 1
je 0x101adef
movzx ecx, word [ebp - 0x50]
jmp 0x101adf2
cmp word [eax], 0x20
jbe 0x101adc8
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x101ade2
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x1000000
call fcn.0101b337
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], 0
jne 0x101ae12
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x101ae4e
mov eax, esi
call fcn.0101b1cb
ret
Function at 0x101b21d
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 0x10070a0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101b275
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1004da0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101b268
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x101b277
xor eax, eax
pop esi
leave
ret 4

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3b980e6e
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x161963bc
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x10019e9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
push 0xfffffffffffffff5
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x28]
push ecx
push eax
mov dword [0x10073e8], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov eax, dword [ebp - 0x1a]
sub eax, dword [ebp - 0x1e]
mov word [0x10073f4], ax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
mov word [0x10073e0], ax
lea eax, [ebp - 8]
push eax
push 0xf003f
push esi
push 0x10011e4
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1001acf
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x10011d0
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x1001acf
mov eax, 0xff
cmp dword [ebp - 4], eax
jne 0x1001aa3
mov ecx, dword [ebp - 0x20]
mov edx, ecx
or edx, 8
mov ax, cx
and ecx, 0xf0
mov word [0x10073f0], dx
mov edx, ecx
or edx, 0xc
mov word [0x10073dc], dx
or ecx, 8
jmp 0x1001ac6
mov cl, byte [ebp - 4]
and ax, cx
movzx cx, byte [ebp - 3]
mov word [0x10073dc], cx
movzx cx, byte [ebp - 2]
mov word [0x10073f0], cx
movzx cx, byte [ebp - 1]
mov word [0x10073ec], cx
jmp 0x1001ae4
mov eax, dword [ebp - 0x20]
mov word [0x10073dc], ax
mov word [0x10073f0], ax
mov word [0x10073ec], ax
mov ecx, dword [0x10073ec]
shr ecx, 4
xor cl, byte [0x10073ec]
mov word [0x10073d8], ax
test cl, 0xf
jne 0x1001b04
mov word [0x10073ec], ax
mov ecx, dword [0x10073f0]
shr ecx, 4
xor cl, byte [0x10073f0]
test cl, 0xf
jne 0x1001b1e
mov word [0x10073f0], ax
mov ecx, dword [0x10073dc]
shr ecx, 4
xor cl, byte [0x10073dc]
test cl, 0xf
jne 0x1001b38
mov word [0x10073dc], ax
cmp dword [ebp - 8], esi
pop esi
je 0x1001b47
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x10025a4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa64
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx]
test esi, esi
push edi
je 0x10026c1
cmp word [esi], 0
je 0x10026a2
lea eax, [ebp - 0x864]
push eax
lea eax, [ebp - 0xa64]
push eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.msvcrt.dll__wsplitpath]
add esp, 0x14
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10026ca
lea eax, [ebp - 0x230]
push 0x10012c0
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x100266e
lea eax, [ebp - 0x230]
push 0x10012b8
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x100266e
push 0x10011c4
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.msvcrt.dll__wmakepath]
add esp, 0x14
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 4]
push eax
call fcn.01002448
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x1002607
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0
je 0x10026a2
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
lea esi, [esi + eax*2 + 2]
test esi, esi
pop ecx
jne 0x10025c1
mov esi, dword [ebp - 4]
test esi, esi
je 0x10026c1
mov eax, dword [ebx]
test eax, eax
je 0x10026bf
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebx], esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10026c3
Function at 0x100280c
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0x409
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
cmp dword [0x100740c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, dword [sym.imp.msvcrt.dll__wtol]
mov dword [ebp - 0x14], eax
jne 0x100289a
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ebx, eax
test ebx, ebx
je 0x100289a
push 0x10
lea eax, [ebp - 0x38]
push eax
push 0x1004
push ebx
call esi
lea eax, [ebp - 0x38]
push eax
call edi
pop ecx
push 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x38]
push eax
push 0xb
push ebx
call esi
lea eax, [ebp - 0x38]
push eax
call edi
and ebx, 0x3ff
pop ecx
mov dword [0x1007408], eax
mov dword [0x1007404], ebx
cmp word [ebp - 0xc], 0
je 0x10028d2
movzx ebx, word [ebp - 0xc]
push 0x10
lea eax, [ebp - 0x38]
push eax
push 0x1004
push ebx
call esi
lea eax, [ebp - 0x38]
push eax
call edi
pop ecx
push 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x38]
push eax
push 0xb
push ebx
call esi
lea eax, [ebp - 0x38]
push eax
call edi
pop ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1002913
mov eax, dword [0x1007404]
cmp eax, 1
je 0x1002913
cmp eax, 0xd
je 0x1002913
cmp eax, 0x2a
je 0x1002913
cmp eax, 0x1e
je 0x1002913
cmp ecx, dword [0x100740c]
je 0x1002902
cmp ecx, dword [0x1007408]
jne 0x1002913
cmp ecx, dword [ebp - 8]
je 0x100290c
cmp ecx, dword [ebp - 0x10]
jne 0x1002913
movzx eax, word [ebp - 0xc]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 0x18]
cmp dword [ebp - 4], esi
je 0x100292b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
test eax, eax
jne 0x100292b
mov dword [ebp - 4], esi
mov ax, word [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1002d4f
Capabilities:
Write file on windows

Disassembly:
push 0x24
push 0x1001310
call fcn.010063c0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x1c], eax
push dword [ebp + 8]
push dword [0x10073e8]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp + 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push 0x500
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], ebx
je 0x1002e62
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
cmp eax, 2
jne 0x1002dcf
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1002e2e
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x24]
lea eax, [eax + eax + 2]
push eax
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, ebx
je 0x1002e2e
push esi
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_CharToOemW]
test eax, eax
je 0x1002e1f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1002e06
sub eax, edx
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push eax
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, ebx
je 0x1002e2e
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x20]
call fcn.01002526
test eax, eax
je 0x1002e4c
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1002e62
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ax, word [0x10073d8]
push eax
push dword [0x10073e8]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [ebp - 0x24]
call fcn.010063f9
ret 0xc
Function at 0x10031de
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.01006380
push esi
push 0x400
xor esi, esi
lea eax, [ebp - 0x1014]
push eax
push esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x200
mov dword [ebp - 4], eax
lea eax, [ebp - 0x814]
push eax
push 0x23a
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
cmp dword [ebp - 4], esi
jbe 0x1003387
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1014]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 4], eax
jbe 0x1003387
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, esi
je 0x1003386
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x1014]
push esi
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1003377
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x100140c
push ebx
mov dword [ebp - 8], esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x1003342
movzx ecx, word [eax + 2]
movzx eax, word [eax]
mov esi, dword [sym.imp.msvcrt.dll_swprintf]
push edi
push 0x10013ec
push ecx
push eax
mov edi, 0x10013b4
lea eax, [ebp - 0x414]
push edi
push eax
call esi
add esp, 0x14
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x1001390
push ecx
push eax
lea eax, [ebp - 0x414]
push edi
push eax
call esi
add esp, 0x14
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x1001370
push ecx
push eax
lea eax, [ebp - 0x414]
push edi
push eax
call esi
add esp, 0x14
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
xor esi, esi
pop edi
cmp dword [ebp - 0x14], esi
je 0x1003377
cmp dword [ebp - 0xc], esi
je 0x1003377
cmp dword [ebp - 0x10], esi
je 0x1003377
push dword [ebp - 0x10]
lea eax, [ebp - 0x814]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push eax
xor eax, eax
mov ax, word [0x10073d8]
push 0x1001334
push eax
call fcn.01002e86
add esp, 0x18
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop esi
leave
ret
Function at 0x100398f
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0xfffffffffffffff6
xor edi, edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [ebp - 0x14]
and eax, 0xfffffff9
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
push edi
cmp eax, 2
lea eax, [ebp - 0x10]
push eax
push 1
je 0x1003a32
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call ebx
cmp dword [ebp - 0x10], edi
je 0x1003a29
cmp eax, edi
je 0x1003a29
push 1
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push edi
call dword [sym.imp.msvcrt.dll__getmbcp]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp word [ebp - 0xc], 0xd
jne 0x1003a3f
push edi
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call ebx
jmp 0x1003a3f
mov dword [ebp - 0xc], 0xa
jmp 0x1003a3f
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov edx, dword [ebp - 0xc]
movzx ecx, dx
mov eax, ecx
sub eax, 3
je 0x1003aec
sub eax, 5
je 0x1003a97
dec eax
dec eax
je 0x1003ac1
sub eax, 3
je 0x1003ac1
mov eax, dword [ebp + 0xc]
dec eax
cmp esi, eax
jae 0x10039ca
mov eax, dword [ebp + 8]
mov word [eax + esi*2], dx
inc esi
cmp dword [ebp + 0x10], edi
je 0x10039ca
xor eax, eax
mov ax, word [0x10073d8]
push ecx
push 0x1001484
push eax
call fcn.01002e86
add esp, 0xc
jmp 0x10039ca
cmp esi, edi
jbe 0x10039ca
mov eax, dword [ebp + 8]
mov word [eax + esi*2], di
dec esi
cmp dword [ebp + 0x10], edi
je 0x10039ca
push 8
push 8
push 0x10014ac
call dword [sym.imp.msvcrt.dll_wprintf]
jmp 0x1003a8f
xor eax, eax
mov ax, word [0x10073d8]
push 0x1001330
push eax
call fcn.01002e86
pop ecx
pop ecx
push dword [ebp - 0x14]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp esi, dword [ebp + 0xc]
jbe 0x1003b04
push 0x7a
pop eax
jmp 0x1003b0d
call fcn.01001b49
push dword [ebp - 0x14]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push edi
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp + 8]
mov word [eax + esi*2], di
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1004143
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
and dword [ebp - 8], 0
and dword [ebp - 4], 0
xor eax, eax
push esi
push edi
mov dword [ebp - 0x18], 0x2f
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x28], 0x3a
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x1007400]
test eax, eax
mov edi, 0x400
jne 0x1004184
mov eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
lea ecx, [ebp - 0x828]
push ecx
push 0x21
push eax
call esi
test eax, eax
jle 0x10041ac
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [0x1007400]
test eax, eax
jne 0x10041b7
mov eax, edi
push ebx
push 8
lea ecx, [ebp - 0x828]
push ecx
push 0x1e
push eax
call esi
test eax, eax
mov ebx, dword [sym.imp.msvcrt.dll_wcscpy]
jle 0x10041df
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x28]
push eax
call ebx
pop ecx
pop ecx
mov eax, dword [0x1007400]
test eax, eax
jne 0x10041ea
mov eax, edi
push 8
lea ecx, [ebp - 0x828]
push ecx
push 0x1d
push eax
call esi
test eax, eax
jle 0x100420b
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x18]
push eax
call ebx
pop ecx
pop ecx
mov esi, dword [ebp + 0xc]
mov ax, word [esi + 2]
test ax, ax
mov edi, dword [ebp + 8]
pop ebx
je 0x100427b
mov ecx, dword [ebp - 8]
sub ecx, 0
je 0x1004255
dec ecx
je 0x100423f
dec ecx
jne 0x100427b
movzx ecx, word [esi + 6]
push ecx
movzx eax, ax
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
movzx eax, word [esi]
jmp 0x1004269
movzx ecx, word [esi]
push ecx
movzx eax, ax
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
movzx eax, word [esi + 6]
jmp 0x1004269
movzx ecx, word [esi]
push ecx
lea ecx, [ebp - 0x18]
push ecx
movzx ecx, word [esi + 6]
push ecx
lea ecx, [ebp - 0x18]
push ecx
movzx eax, ax
push eax
push 0x1001520
push edi
call fcn.01002e86
add esp, 0x1c
mov dword [ebp - 4], eax
movzx eax, word [esi + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
movzx eax, word [esi + 0xa]
push eax
lea eax, [ebp - 0x28]
push eax
movzx eax, word [esi + 8]
push eax
push 0x10014e4
push edi
call fcn.01002e86
add esp, 0x1c
add eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x10061f0
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001740
call fcn.010063c0
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x100622b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100622b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1006243
cmp eax, 0x20b
je 0x1006230
mov dword [ebp - 0x1c], edi
jmp 0x1006257
cmp dword [ecx + 0x84], 0xe
jbe 0x100622b
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1006251
cmp dword [ecx + 0x74], 0xe
jbe 0x100622b
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1007420], 0xffffffff
or dword [0x1007424], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100741c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1007418]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1007428], eax
call fcn.01006428
cmp dword [0x10073d0], edi
jne 0x10062b2
push fcn.01006428
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01006416
push 0x100119c
push 0x1001198
call sub.msvcrt.dll__initterm
mov eax, dword [0x1007414]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1007410]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x1001194
push 0x1001190
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01005bbd
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1006329
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100635e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010063f9
ret
Function at 0x401000
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x401f2b
push eax
mov dword fs:[0], esp
sub esp, 0x120
or ecx, 0xffffffff
xor eax, eax
push ebx
mov ebx, dword [esp + 0x134]
push ebp
push esi
push edi
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x403010
and ecx, 3
push ebp
rep stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_wsprintfA]
mov al, byte [esp + 0x154]
add esp, 0x10
test al, al
jne 0x401089
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + ebp - 1]
mov cl, byte [ecx + ebp - 1]
cmp cl, 0x5c
jne 0x401089
mov byte [eax], 0
lea ecx, [esp + 0x10]
call fcn.00401d4c
lea eax, [ebp + 4]
push 0x5c
push eax
mov dword [esp + 0x140], 0
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebx, eax
add esp, 8
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
test ebx, ebx
rep stosd dword es:[edi], eax
je 0x40110a
mov ecx, ebx
mov esi, ebp
sub ecx, ebp
lea edi, [esp + 0x2c]
mov edx, ecx
lea eax, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4010f7
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
inc ebx
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4010bf
mov al, byte [esp + 0x144]
test al, al
jne 0x40112d
push 0
push ebp
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x40112d
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], 0xffffffff
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret