joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49f500
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514291
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x55209c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edx, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], 0
cmp dword [esi + 0x14], 8
jb 0x49f544
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x49f55e
mov eax, edx
nop dword [eax]
cmp word [eax], 0x25
je 0x49f593
add eax, 2
sub ecx, 1
jne 0x49f550
push esi
mov ecx, edi
call fcn.00406860
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c1f5d
mov esp, ebp
pop ebp
ret 8
test eax, eax
je 0x49f55e
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x49f55e
push esi
lea ecx, [ebp - 0x28]
call fcn.00406860
mov dword [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x49f5ba
mov eax, dword [esi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x49f632
push esi
mov ecx, edi
call fcn.00406860
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x49f619
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49f60f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49f6f2
push edx
push ecx
call fcn.004c27d8
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x49f574
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c2a5d
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [esi + 0x14], 8
jb 0x49f659
mov esi, dword [esi]
mov ecx, dword [ebp - 0x34]
inc ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [ebp - 0x2c]
test eax, eax
je 0x49f699
cmp eax, dword [ebp - 0x34]
ja 0x49f699
xor ecx, ecx
mov word [esi + eax*2], cx
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49f680
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00406ac0
push esi
call fcn.004c1f6e
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x10], 0
add esp, 4
mov dword [edi + 0x14], 0
xor eax, eax
movups xmmword [edi], xmm0
mov word [ebp - 0x28], ax
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], al
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x49f574
call fcn.004e566f
int3
Function at 0x4a5f20
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4a5f2b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004a5f40
Function at 0x4ac3d0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x5150c2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x55209c]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x4ac414
call fcn.004ac5b0
cmp byte [0x556d2c], 0
jne 0x4ac427
mov eax, 0x80000001
jmp 0x4ac586
mov eax, dword [esi]
test eax, eax
jne 0x4ac492
push 8
call fcn.004c242d
mov edi, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0
push 1
call fcn.004c242d
mov dword [edi + 4], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 4]
push eax
call fcn.004da4e0
add esp, 0x14
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4ac481
cmp dword [ebp + 4], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4ac575
call fcn.00422470
test al, al
jne 0x4ac4d4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.004225f0
test al, al
je 0x4ac575
mov ecx, dword [esi]
add ecx, 4
call fcn.00421eb0
call fcn.00422470
test al, al
je 0x4ac575
push str.Advapi32.dll
lea ecx, [ebp - 0x24]
call fcn.00406800
mov dword [ebp - 4], 2
lea eax, [ebp - 0x24]
push eax
call fcn.0041eef0
mov ecx, eax
call fcn.0041efc0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
cmp edx, 8
jb 0x4ac537
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ac52d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ac5aa
push edx
push ecx
call fcn.004c27d8
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
test edi, edi
je 0x4ac575
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4ac575
push dword [esi]
push dword [ebp + 0x128]
call eax
test eax, eax
je 0x4ac575
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4ac584
mov dword [eax], 0x80000001
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.004c1f5d
lea esp, [ebp + 0x120]
pop ebp
ret 4
call fcn.004e566f
int3
Function at 0x4aeb20
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51550f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x55209c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00406a50
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00406a50
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00406a50
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00406a50
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00406a50
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00406a50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4aebb0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51550f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x55209c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00406a50
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00406a50
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00406a50
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00406a50
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00406a50
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00406a50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b1fc0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5159df
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x55209c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.00406860
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00406860
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00406860
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00406860
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00406860
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00406860
mov dword [ebp - 4], 0xffffffff
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 4
Function at 0x4b47d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x55209c]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x4b4852
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x4b4852
test ecx, ecx
je 0x4b484e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x4b4810
xor eax, eax
jmp 0x4b4857
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4b4861
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c1f5d
add esp, 0xc
ret 0xc
Function at 0x4bc380
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x55209c]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4bc3e5
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bc3c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4bc3e5
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004c1f5d
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004c1f5d
add esp, 8
ret 4
Function at 0x4bdff0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516ff8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x55209c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
mov byte [ebp - 0xd], al
test al, al
jne 0x4be03f
xor bl, bl
jmp 0x4be115
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
mov edi, dword [esi + 0x10]
jb 0x4be04d
mov esi, dword [esi]
lea ecx, [ebp - 0x14]
lea edi, [edi*2 + 2]
call fcn.0040de90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push edi
push 0x2002
call fcn.004be190
test al, al
jne 0x4be084
mov byte [ebp - 4], al
lea ecx, [ebp - 0x14]
call fcn.004be140
xor bl, bl
jmp 0x4be112
lea ecx, [ebp - 0x14]
call fcn.0041ebd0
push eax
lea ecx, [ebp - 0x1c]
call fcn.004be1d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.0043eb60
test eax, eax
jne 0x4be0c1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004be1f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004be140
xor bl, bl
jmp 0x4be112
push edi
push esi
push eax
call fcn.004d99e0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004be1f0
lea ecx, [ebp - 0x14]
call fcn.0041ebd0
push eax
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x4be0fc
mov byte [ebp - 4], al
lea ecx, [ebp - 0x14]
call fcn.004be140
xor bl, bl
jmp 0x4be112
lea ecx, [ebp - 0x14]
call fcn.004be1c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004be140
mov bl, 1
mov al, byte [ebp - 0xd]
mov dword [ebp - 4], 0xffffffff
test al, al
je 0x4be12c
call dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
sete byte [ebp - 0xd]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c1020
Capabilities:
Check os version

Disassembly:
sub esp, 0x124
mov eax, dword [0x55209c]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
mov esi, dword [esp + 0x130]
push edi
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4c1051
xor ebx, ebx
jmp 0x4c108a
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x4c1067
xor ebx, ebx
jmp 0x4c108a
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
xor ebx, ebx
test eax, eax
je 0x4c108a
cmp dword [esp + 0xc], ebx
setne bl
push 0x118
shl ebx, 5
lea eax, [esp + 0x18]
push 0
push eax
lea edi, [ebx + 0x20]
call fcn.004da4e0
add esp, 0xc
mov dword [esp + 0x10], 0x11c
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.default.0x4c111e
mov eax, dword [esp + 0x14]
cmp eax, 4
jbe case.default.0x4c111e
cmp eax, 5
jne 0x4c1110
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x4c1109
sub eax, 1
je 0x4c10fa
sub eax, 1
jne 0x4c1109
cmp edi, 0x40
mov eax, str.win2003
mov ecx, str.winXP
cmove eax, ecx
push eax
jmp 0x4c1181
test ebx, ebx
jne case.default.0x4c111e
push str.winXP
jmp 0x4c1181
push str.win2000
jmp 0x4c1181
cmp eax, 6
jne 0x4c1166
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x4c111e
jmp dword [eax*4 + 0x4c11a0]
mov eax, str.winVISTA
cmp byte [esp + 0x12a], 1
mov ecx, str.win2008
cmovne eax, ecx
push eax
jmp 0x4c1181
mov eax, str.win7
jmp 0x4c112a
cmp byte [esp + 0x12a], 1
jne case.default.0x4c111e
push str.win8
jmp 0x4c1181
cmp byte [esp + 0x12a], 1
jne case.default.0x4c111e
push str.win8.1
jmp 0x4c1181
cmp eax, 0xa
jne case.default.0x4c111e
cmp dword [esp + 0x18], 0
jne case.default.0x4c111e
cmp byte [esp + 0x12a], 1
jne case.default.0x4c111e
push str.win10
mov ecx, esi
call fcn.00406760
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c1f5d
add esp, 0x124
ret

Function at 0x4c1210
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x55209c]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004da4e0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4c1265
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c1f5d
add esp, 0x118
ret
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.004c1f5d
add esp, 0x118
ret
Function at 0x4c1290
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x55209c]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004da4e0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4c12f7
mov eax, dword [esp + 4]
cmp eax, 6
jbe 0x4c12ee
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004c1f5d
add esp, 0x118
ret
jb 0x4c12f7
cmp dword [esp + 8], 1
jae 0x4c12d7
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.004c1f5d
add esp, 0x118
ret
Function at 0x4c4ee7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4f621b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f5edb
Function at 0x1a7130
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
push 0x40
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x1a7153
mov eax, 1
jmp 0x1a725e
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x1a7169
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
jne 0x1a7173
mov eax, 2
jmp 0x1a725e
mov edx, dword [ebp + 0x10]
push edx
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x1a719e
mov eax, 1
jmp 0x1a725e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0x4550
jne 0x1a71c4
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x58]
cmp edx, 0x10b
jne 0x1a71c4
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x46]
test ecx, ecx
jne 0x1a71ce
mov eax, 2
jmp 0x1a725e
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x46]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x140], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x140]
push eax
call fcn.001b9610
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x138], 0
jne 0x1a720f
mov eax, 3
jmp 0x1a725e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x54]
lea ecx, [ecx + eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x13c], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
push eax
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x1a725c
mov eax, 1
jmp 0x1a725e
xor eax, eax
pop ebp
ret

Function at 0x1a7c00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x1a7c16
xor eax, eax
jmp 0x1a7c56
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x1a7c3b
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x1a7c3f
xor eax, eax
jmp 0x1a7c56
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.001a7c60
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x1ba350
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1ba380
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x1ba393
xor eax, eax
jmp 0x1ba451
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x1ba3ae
xor eax, eax
jmp 0x1ba451
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x1ba3cc
xor eax, eax
jmp 0x1ba451
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x1ba40e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x1ba44f
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.001b9630
add esp, 8
test eax, eax
jne 0x1ba44d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x1ba451
jmp 0x1ba405
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1f2935
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
lea ecx, [ebp - 0xc]
call fcn.001f1374
lea ecx, [ebp - 0x18]
call fcn.001f1374
push 0x3c
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.002076a0
mov ebx, dword [ebp + 0xc]
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, 0x740
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x38], 0xa
test bl, 1
je 0x1f298d
mov ecx, 0x8740
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x50], ecx
test bl, 2
mov eax, str.runas
cmove eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
and ebx, 0x10000
jne 0x1f29ad
or ecx, 0x100
mov dword [ebp - 0x50], ecx
mov eax, dword [0x221e6c]
push 5
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_BringWindowToTop]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.001f53fe
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.001f141b
lea ecx, [ebp - 0xc]
call fcn.001f15ba
test eax, eax
je 0x1f2a26
lea ecx, [ebp - 0xc]
call fcn.001f1430
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x44], eax
call fcn.001f1430
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1f2a29
test ebx, ebx
jne 0x1f2a1d
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
lea ecx, [ebp - 0x18]
call fcn.001f13e3
lea ecx, [ebp - 0xc]
call fcn.001f13e3
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1f2dcc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.001f3717
xor edi, edi
mov dword [0x221e5c], esi
lea eax, [ebp - 4]
mov dword [0x221e64], edi
push eax
push edi
push esi
push 0x1f3195
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, eax
mov dword [0x221e60], edx
test edx, edx
je 0x1f2e2c
cmp dword [0x221e98], 2
je 0x1f2e1d
call fcn.001f8e64
mov edx, dword [0x221e60]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x221e60]
mov eax, dword [0x221e64]
mov dword [0x221ffc], edi
test eax, eax
je 0x1f2e6e
cmp eax, 1
je 0x1f2e62
cmp eax, 2
je 0x1f2e5e
cmp eax, 3
je 0x1f2e5a
cmp eax, 0x67
jle 0x1f2e54
cmp eax, 0x6b
jle 0x1f2ed2
push eax
push 0x14
push edi
jmp 0x1f2eca
push 0x12
jmp 0x1f2e64
push 0x13
jmp 0x1f2e64
push 0x11
push edi
call fcn.001fa588
pop ecx
pop ecx
jmp 0x1f2ed2
mov ecx, edi
mov dword [ebp + 8], ecx
cmp dword [0x222000], ecx
jne 0x1f2ed2
test edx, edx
je 0x1f2e99
lea eax, [ebp + 8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x1f2e99
test ecx, ecx
jne 0x1f2e99
xor eax, eax
jmp 0x1f2ed7
mov edx, 0x80070000
mov eax, ecx
and eax, edx
cmp eax, edx
je 0x1f2eab
push ecx
push 0x21
jmp 0x1f2e57
movzx eax, cx
cmp eax, 0xe
jne 0x1f2ebc
cmp dword [0x221e9c], 0xffffffff
je 0x1f2ed2
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.001fa588
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 4