joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f3d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx + 0x6c]
and esp, 0xfffffff8
mov ecx, dword [eax]
add esp, 0xfffffff8
push esi
push edi
mov esi, dword [ebx + 0x58]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
jmp 0x40f3f0
mov eax, dword [ebx + 0x58]
mov edi, dword [ebx + 0x6c]
test esi, esi
je 0x40f3fe
cmp esi, eax
je 0x40f404
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0xc], edi
je 0x40f534
test esi, esi
jne 0x40f529
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov edx, dword [esp + 0xc]
cmp edx, dword [eax + 0x14]
jne 0x40f42d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 8]
mov eax, dword [esi + 0x24]
mov dword [esi + 0xc], 1
or eax, eax
je 0x40f449
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea edi, [esi + 4]
mov eax, dword [esi + 8]
or eax, eax
mov dword [edi + 8], 1
je 0x40f48a
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40f479
mov ecx, dword [edi + 4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
mov eax, dword [esi + 0x24]
test eax, eax
mov dword [esi + 0xc], 1
je 0x40f49f
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 4]
mov dword [edi + 8], 1
test eax, eax
je 0x40f4dd
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40f4cc
mov eax, dword [edi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
mov eax, dword [esi + 0x24]
or eax, eax
je 0x40f4eb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.0040f8c0
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0xc]
add esp, 4
or eax, eax
jne 0x40f530
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov edi, dword [esp + 0xc]
cmp edi, dword [eax + 0x14]
jne 0x40f51a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 8]
mov edx, dword [edi]
mov dword [esp + 0xc], edx
jmp 0x40f3f0
mov eax, dword [esi]
jmp 0x40f41e
mov eax, dword [eax]
jmp 0x40f50b
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov edi, dword [ebx + 0x6c]
mov dword [edi + 4], edi
xor ecx, ecx
mov dword [ebx + 0x70], ecx
cmp eax, dword [ebx + 0x6c]
je 0x40f56f
jmp 0x40f550
mov edi, dword [eax]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
sub esp, 0xfffffffc
cmp edi, dword [ebx + 0x6c]
mov eax, edi
jne 0x40f550
mov dword [ebx + 0x50], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [ebx + 0x50], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f8c0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x41166b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x41901c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CThreadHolder.0
mov dword [esp + 0x14], 0
mov eax, dword [esi + 4]
mov dword [esi + 8], 1
or eax, eax
je 0x40f931
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40f920
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
cmp dword [esi + 0x14], 0
jne 0x40f942
push esi
call fcn.0040fa40
call fcn.0040fb90
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esi + 0x18]
add esi, 0xfffffff0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40f969
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x41045c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41901c]
jne 0x410466
repz ret
jmp fcn.004109ee
Function at 0x41095d
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x415100
call fcn.00410970
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x41a6e8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x410701
cmp eax, esi
jne 0x4106f4
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x410704
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4106db
xor esi, esi
inc esi
mov eax, dword [0x41a6e4]
cmp eax, esi
jne 0x410717
push 0x1f
call sub.MSVCR90.dll__amsg_exit
pop ecx
jmp 0x410746
mov eax, dword [0x41a6e4]
test eax, eax
jne 0x410740
mov dword [0x41a6e4], esi
push 0x4134b4
push 0x4134a8
call sub.MSVCR90.dll__initterm_e
pop ecx
test eax, eax
pop ecx
je 0x410746
jmp 0x41086a
mov dword [0x41a05c], esi
mov eax, dword [0x41a6e4]
cmp eax, esi
jne 0x41076a
push 0x4134a4
push 0x413474
call sub.MSVCR90.dll__initterm
pop ecx
pop ecx
mov dword [0x41a6e4], 2
cmp dword [ebp - 0x20], ebx
jne 0x410777
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x41a6ec], ebx
je 0x410798
push 0x41a6ec
call fcn.00410c50
test eax, eax
pop ecx
je 0x410798
push ebx
push 2
push ebx
call dword [0x41a6ec]
mov eax, dword [sym.imp.MSVCR90.dll__wcmdln]
cmp dword [eax], ebx
je 0x41086a
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x410802
cmp cx, bx
je 0x4107bd
cmp dword [ebp - 0x1c], ebx
jne 0x410802
movzx ecx, word [eax]
cmp cx, bx
je 0x4107d2
cmp cx, 0x20
ja 0x4107d2
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x4107bd
test byte [ebp - 0x40], 1
je 0x4107de
movzx ecx, word [ebp - 0x3c]
jmp 0x4107e1
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call main
mov dword [0x41a058], eax
cmp dword [0x41a04c], ebx
jne 0x410847
push eax
call dword [sym.imp.MSVCR90.dll_exit]
cmp cx, 0x22
jne 0x410813
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x4107a7
cmp dword [0x41a05c], ebx
jne 0x410855
call dword [sym.imp.MSVCR90.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x41a058]
jmp 0x410876
mov eax, 0xff
mov dword [ebp - 4], 0xfffffffe
call fcn.004109b5
ret
call fcn.00410d48
jmp 0x41069e
Function at 0x4109ee
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
add esp, 0xfffffcd8
mov dword [0x41a168], eax
mov dword [0x41a164], ecx
mov dword [0x41a160], edx
mov dword [0x41a15c], ebx
mov dword [0x41a158], esi
mov dword [0x41a154], edi
mov word [0x41a180], ss
mov word [0x41a174], cs
mov word [0x41a150], ds
mov word [0x41a14c], es
mov word [0x41a148], fs
mov word [0x41a144], gs
pushfd
pop dword [0x41a178]
mov eax, dword [ebp]
mov dword [0x41a16c], eax
mov eax, dword [ebp + 4]
mov dword [0x41a170], eax
lea eax, [ebp + 8]
mov dword [0x41a17c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x41a0b8], 0x10001
mov eax, dword [0x41a170]
mov dword [0x41a06c], eax
mov dword [0x41a060], 0xc0000409
mov dword [0x41a064], 1
mov eax, dword [0x41901c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x419020]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x41a0b0], eax
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x413540
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x41a0b0], 0
jne 0x410ae0
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x410bc0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
mov eax, 0x5a4d
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
cmp word [edx], ax
je 0x410bd6
xor eax, eax
pop ebp
ret
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x410bd2
mov ecx, 0x10b
xor edx, edx
cmp word [eax + 0x18], cx
sete dl
pop ebp
mov eax, edx
ret

Function at 0x410c00
Capabilities:
Enumerate pe sections

Disassembly:
mov ebx, ebx
push esi
mov esi, esp
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push edi
push ebp
movzx ebp, word [ecx + 6]
xor edx, edx
push ebx
lea eax, [eax + ecx + 0x18]
or ebp, ebp
jbe 0x410c3d
mov ebx, dword [esi + 0xc]
mov ecx, dword [eax + 0xc]
cmp ebx, ecx
jb 0x410c35
mov edi, dword [eax + 8]
add edi, ecx
cmp ebx, edi
jb 0x410c3f
inc edx
add eax, 0x28
cmp edx, ebp
jb 0x410c25
xor eax, eax
pop ebx
pop ebp
pop edi
pop esi
ret
Function at 0x100058d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100058f4
xor eax, eax
jmp 0x10005974
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000590b
xor eax, eax
jmp 0x10005974
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov esp, dword [ebp + 0x10]
and esp, 0xf
mov dword [ebp - 0x10], esp
cmp dword [ebp - 0x10], 0
jbe 0x10005957
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jae 0x10005957
mov esp, dword [ebp - 4]
mov edx, dword [ebp - 4]
movzx eax, word [edx]
lea edx, [esp + eax*2 + 2]
mov dword [ebp - 4], edx
mov esp, dword [ebp - 0x10]
sub esp, 1
mov dword [ebp - 0x10], esp
jmp 0x1000592e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x10005963
xor eax, eax
jmp 0x10005974
mov edx, dword [ebp - 4]
movzx eax, word [edx]
or eax, eax
jne 0x10005971
xor eax, eax
jmp 0x10005974
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10005c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 4
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0
jne 0x10005c5a
jmp 0x10005c9a
lea edx, [ebp - 0x14]
lea eax, [ebp - 8]
push eax
push edx
lea edx, [ebp - 4]
push edx
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10005c87
cmp dword [ebp - 4], 4
je 0x10005c8b
jmp 0x10005c9a
mov esp, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov dword [edx], esp
mov dword [ebp - 0xc], 1
mov esp, ebp
mov eax, dword [ebp - 0xc]
pop ebp
ret 8
Function at 0x10006eeb
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call ebx
push dword [edi + 4]
mov esi, eax
call ebx
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 8], eax
jmp 0x10006f1d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4]
push dword [ebp + eax - 0x18]
call ebx
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp + ecx*4 - 0x18], eax
jl 0x10006f1a
push 0x10
xor eax, eax
pop ecx
mov ebx, edi
shr ebx, 5
add ebx, dword [ebp - 0x14]
mov edx, edi
shl edx, 4
add edx, dword [ebp - 0x18]
sub eax, 0x61c88647
xor ebx, edx
lea edx, [eax + edi]
xor ebx, edx
add esi, ebx
mov edx, esi
shr edx, 5
add edx, dword [ebp - 0xc]
mov ebx, esi
shl ebx, 4
add ebx, dword [ebp - 0x10]
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
dec ecx
jne 0x10006f3e
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
push esi
call ebx
mov esi, dword [ebp + 0xc]
push edi
mov dword [esi], eax
call ebx
pop edi
pop ebx
mov dword [esi + 4], eax
pop esi
leave
ret
Function at 0x1000b351
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x1002b134]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.1000b2a5
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.1000c060
sub esp, 0xfffffff4
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x1000b3b5
cmp dword [ebp - 0x1c], 5
jb 0x1000b3cd
jmp 0x1000b3c9
cmp dword [ebp - 0x10], 1
jne 0x1000b3cd
cmp dword [ebp - 0x1c], 4
ja 0x1000b3c9
jne 0x1000b3cd
cmp dword [ebp - 0x18], 0
jbe 0x1000b3cd
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x100252d8
call fcn.1000b158
test eax, eax
jge 0x1000b3ee
mov byte [0x1002d6a0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1000bda4
sub ebp, 0xffffff88
leave
ret

Function at 0x1000bda4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002b134]
jne 0x1000bdae
repz ret
jmp fcn.10010988

Function at 0x1000cae5
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x1002b134]
xor eax, ebp
mov dword [ebp + 0x2a4], eax
push esi
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x84], ecx
mov dword [ebp + 0x80], edx
mov dword [ebp + 0x7c], ebx
mov dword [ebp + 0x78], esi
mov dword [ebp + 0x74], edi
mov word [ebp + 0xa0], ss
mov word [ebp + 0x94], cs
mov word [ebp + 0x70], ds
mov word [ebp + 0x6c], es
mov word [ebp + 0x68], fs
mov word [ebp + 0x64], gs
pushfd
pop dword [ebp + 0x98]
mov esi, dword [ebp + 0x2ac]
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
mov dword [ebp - 0x28], 0x10001
mov dword [ebp + 0x90], esi
mov eax, dword [eax - 4]
push 0x50
mov dword [ebp + 0x8c], eax
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.1000c060
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
sub esp, 0xfffffff4
mov dword [ebp - 0x80], 0xc000000d
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
or eax, eax
jne 0x1000cbb9
test esi, esi
jne 0x1000cbb9
push 2
call fcn.1001393e
pop ecx
push 0xc000000d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
xor ecx, ebp
pop esi
call fcn.1000bda4
add ebp, 0x2a8
leave
ret

Function at 0x1000cbe1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [0x1002cbb8]
call fcn.10012eda
pop ebp
or eax, eax
je 0x1000cbf7
pop edi
jmp eax
push 2
call fcn.1001393e
pop ecx
pop ebp
jmp fcn.1000cae5
Function at 0x1000ce89
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
cmp eax, 1
push esi
push edi
jne 0x1000cfb3
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, 0x94
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
or esi, esi
jne 0x1000cec0
xor eax, eax
jmp 0x1000d05b
push esi
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
push esi
push 0
jne 0x1000cedb
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000ceb9
mov edi, dword [esi + 0xc]
and edi, 0x7fff
mov eax, dword [esi + 0x10]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 4]
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 8]
mov dword [ebp - 4], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
cmp eax, 2
je 0x1000cf0d
or edi, 0x8000
mov ecx, dword [ebp - 4]
mov dword [0x1002cf64], eax
mov eax, dword [ebp + 0x10]
push 1
mov edx, eax
shl edx, 8
add edx, ecx
mov dword [0x1002cf6c], edx
mov dword [0x1002cf70], eax
mov dword [0x1002cf74], ecx
mov dword [0x1002cf68], edi
call fcn.10014583
test eax, eax
pop ecx
je 0x1000ceb9
call fcn.10013298
or eax, eax
jne 0x1000cf59
call fcn.100145dd
jmp 0x1000ceb9
call fcn.100144e0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1002e900], eax
call fcn.100143ab
mov dword [0x1002cbc0], eax
call fcn.10013ddf
test eax, eax
jge 0x1000cf83
call fcn.10012f83
jmp 0x1000cf4f
call fcn.100142f2
or eax, eax
jl 0x1000cfac
call fcn.1001407f
test eax, eax
jl 0x1000cfac
push 0
call fcn.10013bff
pop ecx
test eax, eax
jne 0x1000cfac
inc dword [0x1002cbbc]
jmp 0x1000d058
call fcn.10014033
jmp 0x1000cf7c
xor edi, edi
cmp eax, edi
jne 0x1000cfee
cmp dword [0x1002cbbc], edi
jle 0x1000ceb9
dec dword [0x1002cbbc]
cmp dword [0x1002cfa0], edi
jne 0x1000cfd8
call fcn.10013d84
cmp dword [ebp + 0x10], edi
jne 0x1000d058
call fcn.10014033
call fcn.10012f83
call fcn.100145dd
jmp 0x1000d058
cmp eax, 2
jne 0x1000d04c
call fcn.10012f51
push 0x214
push 1
call fcn.1000e90e
pop esi
mov esi, eax
cmp esi, edi
pop ecx
je 0x1000ceb9
push esi
push dword [0x1002b908]
push dword [0x1002cf54]
call fcn.10012eda
pop ecx
call eax
or eax, eax
je 0x1000d040
push edi
push esi
call fcn.10012fc0
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000d058
push esi
call fcn.1000d2e8
pop ecx
jmp 0x1000ceb9
cmp eax, 3
jne 0x1000d058
push edi
call fcn.1001322f
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10010988
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1002ccf0], eax
mov dword [0x1002ccec], ecx
mov dword [0x1002cce8], edx
mov dword [0x1002cce4], ebx
mov dword [0x1002cce0], esi
mov dword [0x1002ccdc], edi
mov word [0x1002cd08], ss
mov word [0x1002ccfc], cs
mov word [0x1002ccd8], ds
mov word [0x1002ccd4], es
mov word [0x1002ccd0], fs
mov word [0x1002cccc], gs
pushfd
pop dword [0x1002cd00]
mov eax, dword [ebp]
mov dword [0x1002ccf4], eax
mov eax, dword [ebp + 4]
mov dword [0x1002ccf8], eax
lea eax, [ebp + 8]
mov dword [0x1002cd04], eax
mov esi, dword [ebp - 0x320]
mov dword [0x1002cc40], 0x10001
mov eax, dword [0x1002ccf8]
mov dword [0x1002cbf4], eax
mov dword [0x1002cbe8], 0xc0000409
mov dword [0x1002cbec], 1
mov eax, dword [0x1002b134]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1002b138]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1002cc38], eax
push 1
call fcn.1001393e
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x10025cf0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1002cc38], 0
jne 0x10010a78
push 1
call fcn.1001393e
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x100143ab
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x1002d0b0]
push ebx
push ebp
push edi
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor edi, edi
cmp eax, ebx
push 2
pop esi
jne 0x100143f4
call ebp
mov edi, eax
cmp edi, ebx
je 0x100143db
mov dword [0x1002d0b0], 1
jmp 0x100143fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100143ef
mov eax, esi
mov dword [0x1002d0b0], eax
jmp 0x100143f4
mov eax, dword [0x1002d0b0]
cmp eax, 1
jne 0x10014481
cmp edi, ebx
jne 0x10014410
call ebp
mov edi, eax
cmp edi, ebx
jne 0x10014410
xor eax, eax
jmp 0x100144d9
cmp word [edi], bx
mov eax, edi
je 0x10014425
add eax, esi
cmp word [eax], bx
jne 0x10014417
add eax, esi
cmp word [eax], bx
jne 0x10014417
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub eax, edi
sar eax, 1
inc eax
push ebx
push ebx
push ebx
push ebx
push eax
push edi
push ebx
push ebx
mov dword [esp + 0x34], eax
call ebp
mov esi, eax
cmp esi, ebx
je 0x10014476
push esi
call fcn.1000e8ce
pop ecx
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x10014476
push ebx
push ebx
push esi
push eax
push dword [esp + 0x24]
push edi
push ebx
push ebx
call ebp
or eax, eax
jne 0x10014472
push dword [esp + 0x10]
call fcn.1000d2e8
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x100144d9
cmp eax, esi
je 0x10014489
cmp eax, ebx
jne 0x10014409
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov edi, eax
cmp edi, ebx
je 0x10014409
cmp byte [edi], bl
je 0x100144a7
inc eax
cmp byte [eax], bl
jne 0x1001449d
inc eax
cmp byte [eax], bl
jne 0x1001449d
sub eax, edi
inc eax
mov ebp, eax
push ebp
call fcn.1000e8ce
pop ecx
mov esi, eax
cmp esi, ebx
jne 0x100144c5
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x10014409
push ebp
push edi
push esi
call fcn.1000c1d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret