joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59047cea
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x59047cfd
mov eax, 0x80004003
jmp 0x59047d84
push 5
push 0x70
push dword [0x590b24f0]
call dword [sym.imp.vsansi.dll_FindResourceW]
test eax, eax
je 0x59047d29
push eax
push dword [0x590b24f0]
call dword [sym.imp.kernel32.dll_LoadResource]
push eax
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
jne 0x59047d30
mov eax, 0x8000ffff
jmp 0x59047d84
push ebx
push edi
mov edi, dword [esp + 0x10]
push 1
lea ebx, [edi + 0x10]
push ebx
push eax
call fcn.5906172f
mov dword [esi], 0x1c
push dword [edi + 0x18]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 4], eax
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
push dword [edi + 0x1c]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x14], eax
push dword [edi + 0x20]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x24]
pop edi
mov dword [esi + 0x18], eax
xor eax, eax
pop ebx
pop esi
ret 8

Function at 0x59047ef7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x59047f0a
mov eax, 0x80004003
jmp 0x59047f91
push 5
push 0x71
push dword [0x590b24f0]
call dword [sym.imp.vsansi.dll_FindResourceW]
test eax, eax
je 0x59047f36
push eax
push dword [0x590b24f0]
call dword [sym.imp.kernel32.dll_LoadResource]
push eax
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
jne 0x59047f3d
mov eax, 0x8000ffff
jmp 0x59047f91
push ebx
push edi
mov edi, dword [esp + 0x10]
push 1
lea ebx, [edi + 0x10]
push ebx
push eax
call fcn.5906172f
mov dword [esi], 0x1c
push dword [edi + 0x18]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 4], eax
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
push dword [edi + 0x1c]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x14], eax
push dword [edi + 0x20]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x24]
pop edi
mov dword [esi + 0x18], eax
xor eax, eax
pop ebx
pop esi
ret 8
Function at 0x59048104
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x59048117
mov eax, 0x80004003
jmp 0x5904819e
push 5
push 0x72
push dword [0x590b24f0]
call dword [sym.imp.vsansi.dll_FindResourceW]
test eax, eax
je 0x59048143
push eax
push dword [0x590b24f0]
call dword [sym.imp.kernel32.dll_LoadResource]
push eax
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
jne 0x5904814a
mov eax, 0x8000ffff
jmp 0x5904819e
push ebx
push edi
mov edi, dword [esp + 0x10]
push 1
lea ebx, [edi + 0x10]
push ebx
push eax
call fcn.5906172f
mov dword [esi], 0x1c
push dword [edi + 0x18]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 4], eax
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
push dword [edi + 0x1c]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x14], eax
push dword [edi + 0x20]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x24]
pop edi
mov dword [esi + 0x18], eax
xor eax, eax
pop ebx
pop esi
ret 8

Function at 0x59048311
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x59048324
mov eax, 0x80004003
jmp 0x590483ab
push 5
push 0x6a
push dword [0x590b24f0]
call dword [sym.imp.vsansi.dll_FindResourceW]
test eax, eax
je 0x59048350
push eax
push dword [0x590b24f0]
call dword [sym.imp.kernel32.dll_LoadResource]
push eax
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
jne 0x59048357
mov eax, 0x8000ffff
jmp 0x590483ab
push ebx
push edi
mov edi, dword [esp + 0x10]
push 1
lea ebx, [edi + 0x10]
push ebx
push eax
call fcn.5906172f
mov dword [esi], 0x1c
push dword [edi + 0x18]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 4], eax
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
push dword [edi + 0x1c]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x14], eax
push dword [edi + 0x20]
mov ecx, edi
call fcn.59045fcb
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x24]
pop edi
mov dword [esi + 0x18], eax
xor eax, eax
pop ebx
pop esi
ret 8

Function at 0x5905b0de
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
push ebx
push dword [esp + 0x10]
call dword [sym.imp.vsansi.dll_GetWindowTextW]
test eax, eax
jle 0x5905b141
mov ax, word [ebx]
test ax, ax
je 0x5905b137
cmp ax, 0x22
jne 0x5905b137
push esi
push edi
lea esi, [ebx + 2]
push esi
call dword [sym.imp.MSVCR70.dll_wcslen]
cmp word [esi + eax*2 - 2], 0x22
pop ecx
jne 0x5905b120
and word [esi + eax*2 - 2], 0
dec eax
lea edi, [eax + eax]
push edi
push esi
push ebx
call dword [sym.imp.MSVCR70.dll_memmove]
add esp, 0xc
and word [edi + esi - 2], 0
pop edi
pop esi
mov ecx, dword [esp + 0x14]
push ebx
call fcn.5901940d
pop ebx
ret 0x10
Function at 0x5905b145
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xa4
push esi
push edi
push dword [ebp + 0x74]
call dword [sym.imp.USER32.dll_IsWindowUnicode]
push dword [ebp + 0x78]
mov dword [ebp + 0x68], eax
push dword [ebp + 0x74]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.vsansi.dll_SendMessageW]
push 0
push 0
mov edi, eax
push 0x147
push edi
call esi
cmp eax, 0xffffffff
je 0x5905b1ce
lea ecx, [ebp - 0x38]
push ecx
push eax
push 0x148
push edi
call esi
cmp eax, 0xffffffff
je 0x5905b1f2
cmp word [ebp - 0x38], 0x28
je 0x5905b1f2
cmp dword [ebp + 0x68], 0
lea eax, [ebp - 0x38]
push eax
jne 0x5905b1ea
call dword [sym.imp.kernel32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.590aa0d0
mov eax, esp
push 0
push esi
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.59031a43
jmp 0x5905b1e9
push edi
call dword [sym.imp.vsansi.dll_GetWindowTextLengthW]
test eax, eax
jle 0x5905b1f2
push 0x50
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.vsansi.dll_GetWindowTextW]
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 0x7c]
call fcn.5901940d
lea esp, [ebp - 0x40]
pop edi
pop esi
add ebp, 0x6c
leave
ret 0xc

Function at 0x5905b4c8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0xca
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x402
push dword [esi + 0x2c]
mov edi, eax
push edi
call dword [sym.imp.vsansi.dll_GetWindowTextW]
push 0x5900a014
push dword [esi + 0x2c]
mov ebp, eax
call dword [sym.imp.MSVCR70.dll_wcscspn]
push dword [esi + 0x2c]
mov ebx, eax
call dword [sym.imp.MSVCR70.dll_wcslen]
add esp, 0xc
cmp ebx, eax
jne 0x5905b52f
test ebp, ebp
jle 0x5905b51e
push dword [esi + 0x2c]
lea ecx, [esi + 0x28]
call fcn.5901940d
movzx eax, word [esp + 0x18]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x5905b54a
push 0x406
push 0x4d4
push 0x30
push dword [esi + 4]
call fcn.5906172f
push edi
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
Function at 0x5906172f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x5906173e
pop dword [ebp - 0x4c]
mov eax, 0xf61ca4d6
add eax, 0x62e97268
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xc720da54
sub dword [ebp - 0x5c], 0x78ce9509
mov dword [ebp - 0x58], 0x60b9082f
sub dword [ebp - 0x58], 0x2e85bbea
mov dword [ebp - 0x54], 0x975ebd13
sub dword [ebp - 0x54], 0x4b1278e5
mov dword [ebp - 0x50], 0xe90bf3de
add dword [ebp - 0x50], 0x16f40c22
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x50daed34
sub eax, 0xf7dadc44
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xb01ce5ef
sub dword [ebp - 0x5c], 0x3baa7c99
mov dword [ebp - 0x58], 0xfc38a9f
sub dword [ebp - 0x58], 0xce57292a
mov dword [ebp - 0x54], 0xe761488a
sub dword [ebp - 0x54], 0x83f1dc1e
mov dword [ebp - 0x50], 0xc5eb37d0
sub dword [ebp - 0x50], 0xc5eb37d0
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x48643
push 0
call eax
mov ecx, 0x624b2801
add ecx, 0x9db52841
mov ebx, eax
mov esi, 0x794b0906
add esi, 0xdfc2e6fa
add esi, dword [ebp - 0x4c]
mov edx, 0x69398bbe
add edx, 0x21f573a9
xor dword [ebp - 0x3c], 0x8cc9e2d6
mov edi, dword [esi]
add dword [ebp - 0xc], 0xfa2e7a25
add edi, edx
mov dword [ebp - 0x1c], 0xb64700d5
mov dword [ebx], edi
sub dword [ebp - 4], 0x35d532dc
add ebx, 0x46d2f693
add ebx, 0xb92d0971
add esi, 0x5c9addaf
add esi, 0xa3652255
loop 0x5906185b
add eax, 0x133db
mov ebx, eax
add eax, 0x94b64cdf
add eax, 0x6b49b326
mov ecx, 0x59000000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x590aa293
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push esi
mov esi, ecx
call fcn.590aa27c
and byte [esi + 0xc], 0
mov eax, 0x59000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push 0
push eax
mov dword [esi], 0x3c
call sub.MSVCR70.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
jne 0x590aa2ed
cmp dword [ebp - 0x18], 5
jb 0x590aa305
jmp 0x590aa301
cmp dword [ebp - 0xc], 1
jne 0x590aa305
cmp dword [ebp - 0x18], 4
ja 0x590aa301
jne 0x590aa305
cmp dword [ebp - 0x14], 0
jbe 0x590aa305
mov byte [esi + 0xc], 1
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x10], 0x700
mov dword [esi + 0x14], 0x590ad0d0
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
add ebp, 0x78
leave
ret

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 0x401989
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x4019c1
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x4019af
mov al, 1
jmp 0x401a20
cmp dword [ebx + 0x54], ecx
jne 0x4019b8
mov al, 2
jmp 0x401a20
cmp dword [ebx + 0x7c], ecx
jne 0x401a20
mov al, 3
jmp 0x401a20
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x4019d6
mov al, 4
jmp 0x401a20
cmp ecx, 5
jne 0x4019f6
cmp ebx, 0
jne 0x4019e4
mov al, 5
jmp 0x401a20
cmp ebx, 1
jne 0x4019ed
mov al, 6
jmp 0x401a20
cmp ebx, 2
jne 0x4019f6
mov al, 7
jmp 0x401a20
cmp ecx, 6
jne 0x401a1e
cmp ebx, 0
jne 0x401a04
mov al, 8
jmp 0x401a20
cmp ebx, 1
jne 0x401a0b
mov al, 9
cmp ebx, 2
jne 0x401a12
mov al, 0xa
cmp ebx, 3
jne 0x401a19
mov al, 0xb
cmp ebx, 4
jne 0x401a20
mov al, 0xc
pop ebx
leave
ret
Function at 0x40623e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.004062a0
test eax, eax
je 0x406281
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x406281
cmp word [eax], 0x5a4d
jne 0x406281
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x406281
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.00406372
mov eax, dword [ebp + 8]
jmp 0x40629a
mov esp, ebp
pop ebp
ret 4

Function at 0x4062a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x406353
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x406558
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x40657a
mov eax, 0xfffffffd
jmp 0x40665a
mov ebx, dword [0x8fd3b4]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x406628
mov ebx, dword [0x8fd3b4]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x4065c9
mov ebx, dword [0x8fd3b4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x4065c9
mov eax, 1
jmp 0x4065ce
mov eax, 0
test eax, eax
je 0x4065fa
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x4065e3
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x8fd3b4]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x406650
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x40665a
mov esp, ebp
pop ebp
ret 4
Function at 0x40a43f
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.004b22b4
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.004b22b4
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
push 0x10
call fcn.004b22b4
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x20], esp
mov eax, 0x1b
call fcn.004b22c6
cmp dword [ebp - 0x20], esp
je 0x40a4fc
push 6
call fcn.004b22c0
add esp, 4
mov dword [ebp - 4], eax
mov eax, 0x60bb78
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a515
push ebx
call fcn.004b22ae
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xc]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 0x1c
call fcn.004b22c6
cmp dword [ebp - 0x20], esp
je 0x40a544
push 6
call fcn.004b22c0
add esp, 4
mov dword [ebp - 0x20], esp
push dword [ebp - 0x10]
push dword [ebp - 8]
push 0x60b9ef
mov eax, 0x1d
call fcn.004b22c6
cmp dword [ebp - 0x20], esp
je 0x40a56e
push 6
call fcn.004b22c0
add esp, 4
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 2
mov dword [ebp - 0x20], esp
mov eax, 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push 0x1c
push dword [ebp - 0x14]
push 0
push dword [ebp - 0xc]
mov eax, 0x1e
call fcn.004b22c6
cmp dword [ebp - 0x20], esp
je 0x40a602
push 6
call fcn.004b22c0
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
mov eax, 0x1f
call fcn.004b22c6
cmp dword [ebp - 0x20], esp
je 0x40a627
push 6
call fcn.004b22c0
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x40a62f
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a640
push ebx
call fcn.004b22ae
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.004b22ae
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.004b22ae
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.004b22ae
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x40adad
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.004b22b4
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.004b22b4
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
push 0x10
call fcn.004b22b4
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0
mov ebx, 0x4b6ce0
call fcn.004b22ba
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
je 0x40ae6d
mov eax, 0
jmp 0x40afe4
cmp dword [ebp + 0xc], 0
jne 0x40ae99
mov dword [ebp - 0x1c], esp
mov eax, 0x22
call fcn.004b22c6
cmp dword [ebp - 0x1c], esp
je 0x40ae96
push 6
call fcn.004b22c0
add esp, 4
mov dword [ebp + 8], eax
cmp dword [ebp + 0x14], 0
jne 0x40aec1
mov eax, 0x60bb78
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40aebb
push ebx
call fcn.004b22ae
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
push dword [ebp + 8]
call fcn.0040b010
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 8]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 0x23
call fcn.004b22c6
cmp dword [ebp - 0x1c], esp
je 0x40aef7
push 6
call fcn.004b22c0
add esp, 4
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0x60b9ef
mov eax, 0x24
call fcn.004b22c6
cmp dword [ebp - 0x1c], esp
je 0x40af23
push 6
call fcn.004b22c0
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 2
mov dword [ebp - 0x1c], esp
mov eax, 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
push 0x1c
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 0x25
call fcn.004b22c6
cmp dword [ebp - 0x1c], esp
je 0x40afb7
push 6
call fcn.004b22c0
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
mov eax, 0x26
call fcn.004b22c6
cmp dword [ebp - 0x1c], esp
je 0x40afdc
push 6
call fcn.004b22c0
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x40afe4
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.004b22ae
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.004b22ae
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.004b22ae
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40fb77
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x40fb99
mov eax, 0xfffffffd
jmp 0x40fc79
mov ebx, dword [0x8fd430]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x40fc47
mov ebx, dword [0x8fd430]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x40fbe8
mov ebx, dword [0x8fd430]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x40fbe8
mov eax, 1
jmp 0x40fbed
mov eax, 0
test eax, eax
je 0x40fc19
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x40fc02
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x8fd430]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x40fc6f
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x40fc79
mov esp, ebp
pop ebp
ret 4

Function at 0x40fede
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x40ff91
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x40fffc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x4100af
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x410be3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0040fffc
test eax, eax
je 0x410c26
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x410c26
cmp word [eax], 0x5a4d
jne 0x410c26
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x410c26
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.004100ce
mov eax, dword [ebp + 8]
jmp 0x410c3f
mov esp, ebp
pop ebp
ret 4
Function at 0x4144bf
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.004b22b4
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.004b22b4
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
push 0x10
call fcn.004b22b4
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x20], esp
mov eax, 0x4e
call fcn.004b22c6
cmp dword [ebp - 0x20], esp
je 0x41457c
push 6
call fcn.004b22c0
add esp, 4
mov dword [ebp - 4], eax
mov eax, 0x60bb78
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x414595
push ebx
call fcn.004b22ae
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xc]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 0x4f
call fcn.004b22c6
cmp dword [ebp - 0x20], esp
je 0x4145c4
push 6
call fcn.004b22c0
add esp, 4
mov dword [ebp - 0x20], esp
push dword [ebp - 0x10]
push dword [ebp - 8]
push 0x60b9ef
mov eax, 0x50
call fcn.004b22c6
cmp dword [ebp - 0x20], esp
je 0x4145ee
push 6
call fcn.004b22c0
add esp, 4
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 2
mov dword [ebp - 0x20], esp
mov eax, 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push 0x1c
push dword [ebp - 0x14]
push 0
push dword [ebp - 0xc]
mov eax, 0x51
call fcn.004b22c6
cmp dword [ebp - 0x20], esp
je 0x414682
push 6
call fcn.004b22c0
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
mov eax, 0x52
call fcn.004b22c6
cmp dword [ebp - 0x20], esp
je 0x4146a7
push 6
call fcn.004b22c0
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x4146af
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4146c0
push ebx
call fcn.004b22ae
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.004b22ae
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.004b22ae
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.004b22ae
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret