joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe81000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xe81131
push esi
call fcn.00e84145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00e73080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xe81131
push 0
push ebp
call fcn.00e733a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00e73260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xe8108b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00e732f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xe81121
push 0xe99918
push edi
call fcn.00e823f0
push eax
push ebx
push esi
call fcn.00e80f60
push 0xe998f8
push edi
call fcn.00e823f0
push eax
push ebx
push esi
call fcn.00e80f60
push 0xe998d8
push edi
call fcn.00e823f0
push eax
push ebx
push esi
call fcn.00e80f60
push 0xe998c0
push edi
call fcn.00e823f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00e80f60
push 0xe998a0
push edi
call fcn.00e823f0
push eax
push ebx
push esi
call fcn.00e80f60
push 0xe99888
push edi
call fcn.00e823f0
push eax
push ebx
push esi
call fcn.00e80f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xe821b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00e82140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00e82140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00e82140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00e82140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xe82bfa
Capabilities:
Query or enumerate registry value

Disassembly:
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 str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xe82c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xe9487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xe82c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xe82c52
xor eax, eax
pop esi
leave
ret 4

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 0x401450
Capabilities:
Get common file path

Disassembly:
mov edx, dword [0x40e21c]
sub esp, 0x104
test edx, edx
push ebx
push esi
push edi
jne 0x401529
push 0x104
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x40e21c], eax
jne 0x401491
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x104
ret
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [0x40e21c]
lea edx, [esp + 0xc]
push ecx
push 0
push 0x40b0cc
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [0x40e21c]
push eax
call fcn.00404f44
mov edx, dword [0x40e21c]
add esp, 4
cmp byte [edx], 0
je 0x401529
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx - 1], 0x5c
je 0x401529
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx - 1], 0x3a
je 0x401529
mov edi, 0x40b038
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x40e21c]
lea esi, [esp + 0xc]
mov eax, edx
sub esi, edx
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x401531
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [esp + 0x114]
repne scasb al, byte es:[edi]
mov al, byte [esi]
not ecx
dec ecx
test al, al
mov edi, ecx
je 0x4015b8
lea ebx, [esp + 0xc]
dec ebx
mov cl, byte [ebx + edi]
lea edx, [esp + 0xc]
mov byte [esp + 0x10f], cl
push edx
mov byte [ebx + edi], 0
call fcn.00404f4f
mov al, byte [esp + 0x113]
add esp, 4
mov byte [ebx + edi], al
cmp edi, 0x102
jae 0x401484
cmp byte [esi], 0x2f
jne 0x401596
mov byte [esi], 0x5c
movzx cx, byte [esi]
mov al, byte [esi + 1]
mov word [esp + edi + 0xc], cx
inc edi
inc esi
test al, al
je 0x4015b8
mov al, byte [esi - 1]
cmp al, 0x5c
je 0x4015b3
cmp al, 0x2f
jne 0x401582
cmp byte [esi], 0
jne 0x40155d
lea edx, [esp + 0xc]
push edx
call section..text
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x406241
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b658
cmp edx, dword [eax]
je 0x406263
add eax, 8
inc ecx
cmp eax, 0x40b6e8
jl 0x406254
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b658]
jne 0x406391
mov eax, dword [0x40decc]
cmp eax, 1
je 0x40636b
test eax, eax
jne 0x406294
cmp dword [0x40b420], 1
je 0x40636b
cmp edx, 0xfc
je 0x406391
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4062cb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407760
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407850
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40630e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407850
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40951c
push edi
call fcn.00408080
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407760
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407770
lea eax, [ebp - 0xa0]
push 0x4094fc
push eax
call fcn.00407770
push dword [esi + 0x40b65c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407770
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407fef
add esp, 0x2c
pop edi
jmp 0x406391
lea eax, [ebp + 8]
lea esi, [esi + 0x40b65c]
push 0
push eax
push dword [esi]
call fcn.00407850
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 0x9f56a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x9f56d2
jl 0x9f56c5
test ecx, ecx
jne 0x9f56d2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x9f5792
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.009f7b90
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x9f573e
jg 0x9f56fd
test esi, esi
je 0x9f573e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x9f5715
mov eax, dword [esp + 0x10]
jl 0x9f570f
cmp eax, esi
jae 0x9f5715
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00a2c080
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x9f575f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x9f577b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x9f56e4
jl 0x9f577b
test ecx, ecx
jne 0x9f56e4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x9f57d0
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x9f57d0
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.00a2c080
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x9f5839
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x9f57f6
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x9f5824
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00a33189
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x9f5839
cmp edi, eax
ja 0x9f5802
test edi, edi
je 0x9f5839
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00a33189
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x9f8860
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa50f80
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0xa680c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.00a2a801
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00a28297
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.009f8800
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x101c3447
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1033ffa8]
jne 0x101c3451
repz ret
jmp fcn.101c4977

Function at 0x101c7754
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.101c354c
and dword [ebp - 4], 0
cmp dword [0x10341dd8], 0
mov ebx, eax
jne 0x101c7805
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x101c78b6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x101c78b6
push eax
call fcn.101c34da
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10341dd8], eax
call esi
push eax
call fcn.101c34da
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10341ddc], eax
call esi
push eax
call fcn.101c34da
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10341de0], eax
call esi
push eax
call fcn.101c34da
pop ecx
mov dword [0x10341de8], eax
test eax, eax
je 0x101c7805
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.101c34da
pop ecx
mov dword [0x10341de4], eax
mov eax, dword [0x10341de4]
cmp eax, ebx
je 0x101c785d
cmp dword [0x10341de8], ebx
je 0x101c785d
push eax
call fcn.101c3555
push dword [0x10341de8]
mov esi, eax
call fcn.101c3555
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x101c785d
test edi, edi
je 0x101c785d
call esi
test eax, eax
je 0x101c7854
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x101c7854
test byte [ebp - 0xc], 1
jne 0x101c785d
or dword [ebp + 0x10], 0x200000
jmp 0x101c7896
mov eax, dword [0x10341ddc]
cmp eax, ebx
je 0x101c7896
push eax
call fcn.101c3555
pop ecx
test eax, eax
je 0x101c7896
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x101c7896
mov eax, dword [0x10341de0]
cmp eax, ebx
je 0x101c7896
push eax
call fcn.101c3555
pop ecx
test eax, eax
je 0x101c7896
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10341dd8]
call fcn.101c3555
pop ecx
test eax, eax
je 0x101c78b6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x101c78b8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101c8970
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x1033fb60], 0
mov byte [0x1033fb64], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [0x1033fb54], 0x2578
mov dword [0x1033fb5c], 0
jmp 0x101c8a52
mov eax, 0x100
mov dword [0x1033fb68], 0
mov ecx, dword [0x1033fb60]
mov edx, dword [0x1033fb5c]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x1c], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x1033fb68], edi
mov dword [0x1033fb54], 0x135a
mov eax, edi
cdq
mov edi, dword [ebp - 0x1c]
idiv edi
mov dword [0x1033fb60], edx
mov ecx, dword [0x1033fb5c]
mov bl, byte [esi + ecx]
mov byte [0x1033fb64], bl
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov al, byte [0x1033fb64]
mov ecx, dword [0x1033fb60]
mov edx, dword [ebp - 0x18]
mov byte [edx + ecx], al
mov ecx, dword [0x1033fb5c]
add ecx, 1
mov dword [0x1033fb5c], ecx
cmp ecx, 0x100
jl 0x101c89b5
jmp 0x101c8ab6
mov dword [0x1033fb58], 0xf4
mov eax, dword [0x1033fb5c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x1033fb54], 0x198b
mov eax, dword [0x1033fb5c]
add eax, 1
mov dword [0x1033fb5c], eax
cmp eax, 0x100
setl dl
mov byte [ebp - 0x1d], dl
mov al, byte [ebp - 0x1d]
test al, 1
jne 0x101c8a52
jmp 0x101c8a98
mov eax, dword [0x1033fb58]
add eax, 0xffffee3c
mov dword [0x1033fb54], eax
mov dword [0x1033fb5c], 0
jmp 0x101c89b5
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101c8ac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x1033fb58], 0x143b
mov dword [0x1033fb54], 0x139d
mov edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
jmp 0x101c8b63
lea eax, [0x101ca979]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov dword [0x1033fb54], 0x52
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
call fcn.101c92e0
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.101c8750
mov ecx, eax
mov dword [0x1033fb70], eax
mov eax, esp
mov edx, dword [ebp - 0x44]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], ecx
jmp 0x101c8bb3
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea edx, section..data
imul esi, eax, 0x190
mov edi, edx
add edi, esi
add edi, 0x16c
mov esi, dword [edi]
imul edi, eax, 0x190
add edx, edi
add edx, 0x68
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x6d4
mov ecx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
je 0x101c8aef
jmp 0x101c8b63
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
lea edx, section..data
imul esi, eax, 0x190
mov edi, edx
add edi, esi
add edi, 0x16c
mov esi, dword [edi]
imul edi, eax, 0x190
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0x190
add edx, ebx
add edx, 0x68
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x48]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], edx
call fcn.101c93e0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
add eax, ecx
mov edx, dword [ebp - 0x54]
add edx, 1
cmp edx, 0x6d4
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
jne 0x101c8bb3
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x44]
mov dword [esp + 8], ecx
call fcn.101c9200
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x130476
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
mov dword [0x1033fb54], 0x512
mov dword [edx + 4], 0x14f600
mov ecx, dword [ebp - 0x48]
add ecx, 0x12963a
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1ff0
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x101c9440
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [fcn.101c9440]
mov dword [ebp - 4], eax
jmp 0x101c9451
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
jne 0x101c947a
mov eax, dword [ebp - 8]
add eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
jne 0x101c947a
mov eax, dword [ebp - 8]
add esp, 0xc
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [ebp - 4], eax
jmp 0x101c9451
Function at 0x101c9490
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x2c
mov dword [ebp - 8], 0
mov eax, dword [0x1033fb58]
add eax, 0xfffffc4a
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [0x1033fb54], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, dword [0x1033fb58]
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
add edx, 0xffffe172
mov dword [0x1033fb54], edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ecx
jmp 0x101c94f8
mov dword [0x1033fb58], 0x19ef
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x101c95e5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
jne 0x101c9522
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x28], eax
je 0x101c953b
jmp 0x101c94e4
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], eax
jl 0x101c94f8
jmp 0x101c950e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x101c94e4
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff5
shl eax, 1
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x61
jne 0x101c94e4
mov eax, dword [0x1033fb54]
add eax, 0x609
mov dword [0x1033fb58], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x101c94e4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x101c94e4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x101c94e4
mov dword [0x1033fb58], 0x1644
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0xe], 0x6c
sete dl
mov byte [ebp - 0x2d], dl
mov eax, 1
mov cl, byte [ebp - 0x2d]
test cl, 1
mov dword [ebp - 0x1c], eax
jne 0x101c95e5
jmp 0x101c94e4
mov eax, dword [ebp - 0x1c]
add esp, 0x2c
pop esi
pop ebp
ret
Function at 0x40a7d0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x18
push ebx
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x40a7fa
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x10
mov eax, dword [esp + 4]
xor ecx, ecx
inc eax
mov edx, 4
mul edx
push ebp
push esi
seto cl
neg ecx
or ecx, eax
push edi
push ecx
call fcn.0040a8ee
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], 0
mov ebp, eax
mov dword [esp + 0x20], ebp
test ecx, ecx
jle 0x40a89b
mov eax, ebx
sub eax, ebp
mov dword [esp + 0x1c], eax
nop dword [eax]
mov ebx, dword [eax + ebp]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push esi
call fcn.0040a8ee
add esp, 4
mov edi, eax
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x14]
lea ebp, [ebp + 4]
inc eax
mov dword [ebp - 4], edi
mov ecx, dword [esp + 0x10]
cmp eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
jl 0x40a840
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
push ebx
mov dword [ebp + ecx*4], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
push dword [esp + 0x14]
call fcn.00401570
xor esi, esi
add esp, 8
mov edi, eax
cmp dword [esp + 0x10], esi
jle 0x40a8d9
mov ecx, dword [ebp + esi*4]
test ecx, ecx
je 0x40a8d9
push ecx
call fcn.0040a8f7
inc esi
add esp, 4
cmp esi, dword [esp + 0x10]
jl 0x40a8c1
push ebp
call fcn.0040a8f7
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10