joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a5c
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 [0x10083d8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, dword [sym.imp.msvcrt.dll__wtol]
mov dword [ebp - 0x14], eax
jne 0x1002aea
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ebx, eax
test ebx, ebx
je 0x1002aea
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 [0x10083d4], eax
mov dword [0x10083d0], ebx
cmp word [ebp - 0xc], 0
je 0x1002b22
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 0x1002b63
mov eax, dword [0x10083d0]
cmp eax, 1
je 0x1002b63
cmp eax, 0xd
je 0x1002b63
cmp eax, 0x2a
je 0x1002b63
cmp eax, 0x1e
je 0x1002b63
cmp ecx, dword [0x10083d8]
je 0x1002b52
cmp ecx, dword [0x10083d4]
jne 0x1002b63
cmp ecx, dword [ebp - 8]
je 0x1002b5c
cmp ecx, dword [ebp - 0x10]
jne 0x1002b63
movzx eax, word [ebp - 0xc]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 0x18]
cmp dword [ebp - 4], esi
je 0x1002b7b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
test eax, eax
jne 0x1002b7b
mov dword [ebp - 4], esi
mov ax, word [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1003129
Capabilities:
Write file on windows

Disassembly:
push 0x24
push 0x10013b8
call fcn.01006ff4
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x1c], eax
push dword [ebp + 8]
push dword [0x10083a8]
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 0x100323c
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
cmp eax, 2
jne 0x10031a9
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 0x1003208
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 0x1003208
push esi
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_CharToOemW]
test eax, eax
je 0x10031f9
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10031e0
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 0x1003208
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.01002776
test eax, eax
je 0x1003226
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100323c
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ax, word [0x1008398]
push eax
push dword [0x10083a8]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [ebp - 0x24]
call fcn.0100702d
ret 0xc
Function at 0x10035b8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.01006fb0
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 0x1003761
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 0x1003761
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 0x1003760
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x1014]
push esi
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1003751
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x10014b0
push ebx
mov dword [ebp - 8], esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x100371c
movzx ecx, word [eax + 2]
movzx eax, word [eax]
mov esi, dword [sym.imp.msvcrt.dll_swprintf]
push edi
push 0x1001490
push ecx
push eax
mov edi, 0x1001458
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 0x1001434
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 0x1001414
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 0x1003751
cmp dword [ebp - 0xc], esi
je 0x1003751
cmp dword [ebp - 0x10], esi
je 0x1003751
push dword [ebp - 0x10]
lea eax, [ebp - 0x814]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push eax
xor eax, eax
mov ax, word [0x1008398]
push 0x10013d8
push eax
call fcn.01003260
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 0x1003d69
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 0x1003e0c
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call ebx
cmp dword [ebp - 0x10], edi
je 0x1003e03
cmp eax, edi
je 0x1003e03
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 0x1003e19
push edi
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call ebx
jmp 0x1003e19
mov dword [ebp - 0xc], 0xa
jmp 0x1003e19
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 0x1003ec6
sub eax, 5
je 0x1003e71
dec eax
dec eax
je 0x1003e9b
sub eax, 3
je 0x1003e9b
mov eax, dword [ebp + 0xc]
dec eax
cmp esi, eax
jae 0x1003da4
mov eax, dword [ebp + 8]
mov word [eax + esi*2], dx
inc esi
cmp dword [ebp + 0x10], edi
je 0x1003da4
xor eax, eax
mov ax, word [0x1008398]
push ecx
push 0x1001528
push eax
call fcn.01003260
add esp, 0xc
jmp 0x1003da4
cmp esi, edi
jbe 0x1003da4
mov eax, dword [ebp + 8]
mov word [eax + esi*2], di
dec esi
cmp dword [ebp + 0x10], edi
je 0x1003da4
push 8
push 8
push 0x1001550
call dword [sym.imp.msvcrt.dll_wprintf]
jmp 0x1003e69
xor eax, eax
mov ax, word [0x1008398]
push 0x10013ac
push eax
call fcn.01003260
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 0x1003ede
push 0x7a
pop eax
jmp 0x1003ee7
call fcn.01001d99
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 0x100451d
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 [0x10083c0]
test eax, eax
mov edi, 0x400
jne 0x100455e
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 0x1004586
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [0x10083c0]
test eax, eax
jne 0x1004591
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 0x10045b9
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x28]
push eax
call ebx
pop ecx
pop ecx
mov eax, dword [0x10083c0]
test eax, eax
jne 0x10045c4
mov eax, edi
push 8
lea ecx, [ebp - 0x828]
push ecx
push 0x1d
push eax
call esi
test eax, eax
jle 0x10045e5
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 0x1004655
mov ecx, dword [ebp - 8]
sub ecx, 0
je 0x100462f
dec ecx
je 0x1004619
dec ecx
jne 0x1004655
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 0x1004643
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 0x1004643
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 0x10015c4
push edi
call fcn.01003260
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 0x1001588
push edi
call fcn.01003260
add esp, 0x1c
add eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x10065fe
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x18], edi
jne 0x1006683
cmp dword [esi + 0x94], edi
je 0x1006683
mov eax, dword [esi + 0x28]
cmp eax, edi
jne 0x100662b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100668f
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1006686
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x20], eax
mov eax, 0x3e8
cmp ecx, eax
mov dword [esi + 0x1c], ecx
jae 0x100664f
mov dword [esi + 0x1c], eax
or dword [esi + 0x18], 1
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x10065a6
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x89c], eax
jne 0x1006686
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1006686
push 4
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x1006695
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x89c], ebx
je 0x1006727
push edi
push dword [esi + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [esi + 0x18], ebx
call edi
mov eax, dword [esi + 0x1c]
shl eax, 1
push eax
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push dword [esi + 0x89c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x10066fd
push ebx
push dword [esi + 0x89c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp eax, ebx
jne 0x100670a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push dword [esi + 0x89c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], ebx
mov dword [esi + 0x89c], ebx
jne 0x1006726
push dword [esi + 0x28]
call edi
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret
Function at 0x1006a46
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov esi, ecx
mov dword [ebp - 0xc], 0x10
jne 0x1006a6f
mov eax, 0xc0000bbd
jmp 0x1006c10
push ebx
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
mov ebx, 0x400
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
jae 0x1006c0a
cmp eax, 3
jb 0x1006c0a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x8a0]
test eax, eax
je 0x1006aab
cmp dword [eax], 1
je 0x1006bfd
cmp word [edi], 0x5c
jne 0x1006acb
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp word [edi + eax*2], 0x5c
je 0x1006ab1
cmp eax, 2
jb 0x1006acb
xor ebx, ebx
inc ebx
jmp 0x1006b52
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x1006afd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x1006af6
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1006c0f
lea edi, [ebp - 0x34]
jmp 0x1006afd
inc edi
inc edi
cmp word [edi], 0x5c
je 0x1006afb
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov ecx, dword [ebp - 0x10]
lea eax, [eax + ecx + 4]
cmp eax, ebx
jb 0x1006b20
mov edi, 0xc0000bbd
jmp 0x1006bff
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], ebx
mov eax, 0x1001214
je 0x1006b32
mov eax, 0x100196c
push dword [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x834]
push 0x1001958
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x14
lea edi, [ebp - 0x834]
mov eax, dword [esi + 0x8a0]
test eax, eax
mov dword [esi + 0x8c], ebx
je 0x1006b6a
cmp dword [eax], ebx
je 0x1006bfd
cmp dword [esi + 0x8a4], 0
je 0x1006bdf
push edi
mov ecx, esi
call fcn.01006873
mov ecx, dword [esi + 0x8a0]
test ecx, ecx
je 0x1006b89
cmp dword [ecx], ebx
je 0x1006bfd
test eax, eax
jne 0x1006bfd
mov edi, dword [esi + 0x6c]
jmp 0x1006bca
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [esi + 0x2c]
call sub.pdh.dll_PdhAddCounterW
mov ecx, dword [esi + 0x8a0]
test ecx, ecx
je 0x1006baf
cmp dword [ecx], ebx
je 0x1006bfd
test eax, eax
jne 0x1006bd2
push edi
push dword [ebp - 8]
mov ecx, esi
call fcn.010064cf
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
jne 0x1006b92
jmp 0x1006bfd
cmp dword [ebp + 0x10], 0
je 0x1006bfd
push eax
push edi
call dword [ebp + 0x10]
jmp 0x1006bfd
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [esi + 0x2c]
call sub.pdh.dll_PdhAddCounterW
test eax, eax
jne 0x1006bd2
push edi
push dword [ebp - 8]
mov ecx, esi
call fcn.010064cf
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x1006c0f
mov eax, 0xc0000bbd
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x1006e19
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001990
call fcn.01006ff4
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1006e54
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006e54
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1006e6c
cmp eax, 0x20b
je 0x1006e59
mov dword [ebp - 0x1c], edi
jmp 0x1006e80
cmp dword [ecx + 0x84], 0xe
jbe 0x1006e54
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1006e7a
cmp dword [ecx + 0x74], 0xe
jbe 0x1006e54
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 [0x10083ec], 0xffffffff
or dword [0x10083f0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10083e8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10083e4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10083f4], eax
call fcn.01007068
cmp dword [0x1008390], edi
jne 0x1006edb
push fcn.01007068
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01007056
push 0x10011ec
push 0x10011e8
call sub.msvcrt.dll__initterm
mov eax, dword [0x10083e0]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x10083dc]
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 0x10011e4
push 0x10011e0
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.01005aba
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1006f52
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1006f87
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100702d
ret
Function at 0x1003adf
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [esi], reloc.KERNEL32.dll_LocalAlloc
mov edx, dword [eax + 8]
mov dword [edi + 0x14], 1
mov eax, dword [esi + 4]
mov ecx, 0x100
cmp eax, ecx
ja 0x1003a61
je 0x1003a4f
dec eax
je 0x1003a38
dec eax
je 0x1003a2a
sub eax, 6
je 0x1003a14
sub eax, 8
je 0x1003a02
sub eax, 0x30
je 0x10039eb
sub eax, 0x40
jne 0x1003aeb
push dword [esi + 8]
push edx
call fcn.01002e09
jmp 0x1003ae9
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push dword [esi + 0x10]
push edx
call fcn.01003708
jmp 0x1003ae9
lea eax, [esi + 0xc]
push eax
push dword [esi + 8]
push edx
call fcn.010035f1
jmp 0x1003ae9
push dword [esi + 0x28]
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 8]
push eax
push edx
call fcn.01002d43
jmp 0x1003ae9
push dword [esi + 8]
push edx
call fcn.01002c92
jmp 0x1003ae9
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
push edx
call fcn.01002bb4
jmp 0x1003ae9
push dword [esi + 0x18]
lea eax, [esi + 8]
push eax
push edx
call fcn.01002ec3
jmp 0x1003ae9
cmp eax, 0x200
je 0x1003adc
cmp eax, 0x400
je 0x1003ac9
cmp eax, 0x1000
je 0x1003abb
cmp eax, 0x2000
je 0x1003aa7
cmp eax, 0x4000
je 0x1003a96
cmp eax, 0x8000
jne 0x1003aeb
push dword [esi + 8]
push edx
call fcn.01002f7f
jmp 0x1003ae9
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
push edx
call fcn.01003904
jmp 0x1003ae9
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
push edx
call fcn.0100335f
jmp 0x1003ae9
push dword [esi + 0xc]
push dword [esi + 8]
push edx
call fcn.0100318f
jmp 0x1003ae9
push edx
call fcn.0100352e
and dword [edi + 8], 0
and dword [esi], 0
and dword [edi + 0x14], 0
jmp 0x1003aeb
lea eax, [esi + 0xc]
push eax
push dword [esi + 8]
push edx
call fcn.010037de
mov dword [esi], eax
and dword [edi + 0x14], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x1004025
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov edx, dword [ebp + 0xc]
mov eax, dword [reloc.KERNEL32.dll_LocalAlloc]
push esi
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 0x20], edx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x24], 0x200
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push 1
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], eax
push 1
lea eax, [ebp - 0x28]
push eax
push ecx
mov dword [ebp - 0xc], edx
call fcn.01003ceb
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01010e5d
leave
ret 0x14
Function at 0x1004211
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
mov esi, 0x101711c
inc edi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [reloc.KERNEL32.dll_LocalAlloc]
jmp 0x1004237
cmp dword [ebp + 8], eax
je 0x100423d
mov eax, dword [eax]
test eax, eax
jne 0x1004230
jmp 0x1004247
xor ecx, ecx
cmp dword [eax + 0x24], ecx
setne cl
mov edi, ecx
and dword [ebp - 0xc], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0xc]
call fcn.01003afc
mov eax, edi
pop edi
pop esi
leave
ret 4