joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4048f2
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00437de2
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x404a15
push ecx
lea ecx, [esi + 0x18]
call fcn.00424112
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x404a2c
push ecx
lea ecx, [esi + 0x24]
call fcn.00424022
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x424012
Capabilities:
Encode data using xor

Disassembly:
nop
inc esi
mov cl, 0xf2
lds edi, [0x211a16f6]
not byte [esi]
sbb ah, byte [ecx]
adc al, 0x2d
mul dword [eax - 0x10c88117]
sbb eax, 0x8f2e3173
xchg ebp, eax
xchg byte [edi], dl
dec eax
sub eax, 0x46ce248d
movsd dword es:[edi], dword [esi]
cmp al, 0x60
mov eax, dword [0xc2473e5f]
xor al, 0x76
jo 0x42402a
mov ch, 0xd6
ret 0x646
mov ecx, 0x9ebec5cc
push esi
je 0x423ff0
jae 0x423fea
lds edi, [ebx + 0x7e9ade69]
dec edi
dec esp
sets byte [eax + 0x7c]
std
cmp ah, ah
adc eax, 0x565891fc
div dword [eax]
dec eax
pop eax
xchg ecx, eax
and al, bl
pushfd
xor al, 0x32
inc esp
add byte [ecx + 1], ah
cmp ebx, dword [edx]
mov ch, 0x5c
adc byte [edx - 0x36e94765], bh
mov byte [ebp + 0x2de039a6], dh
loopne 0x424048
mov ebp, 0xf3a0ab9f
dec esp
cld
mov esi, 0x1d64260f
jmp 0x707911b8
Function at 0x46c9e7
Capabilities:
Encode data using xor

Disassembly:
and al, 0xcf
mov esp, 0xd95bbc9e
mov ebx, edx
insb byte es:[edi], dx
lahf
mov ch, ch
mov esi, 0x166f7e12
sahf
jmp 0x46ca22
mov bh, 0x89
push eax
cmp eax, 0xb8ce52db
dec byte [ebx + 0x763bc8f3]
push ss
push 0x156e6a8f
pop ds
pop ds
pop edi
dec eax
jno 0x46c9b4
outsd dx, dword [esi]
push ebp
out dx, eax
arpl word [eax + 0x505b4040], si
mov dword [eax + 0x66], ecx
pop edi
dec eax
pop di
push ss
add byte [esi], bh
out dx, eax
xchg ebp, eax
sbb eax, 0x923253f
and dword [ecx + 0x1f], ecx
xor eax, 0x7863c3c3
outsb dx, byte [esi]
dec ecx
sub ecx, ebx
jb 0x46c9f5
aas
jns 0x46c9d1
mov dword [ebp + 0x4b], edx
in eax, dx
and edi, dword [esi]
in eax, 0x88
int3
sbb esi, dword [esi]
mov esp, 0x96fd5339
js 0x46c9d9
sub ebx, dword ds:[edi - 0x1273155d]
out dx, al
xchg dword [esi], esp
cmp cl, 0x9c
invalid

Function at 0x493570
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push esi
lea eax, [ebp - 0x198]
push edi
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.0044a210
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 8], 1
call edi
lea ecx, [ebp - 4]
mov esi, eax
push ecx
push 0x2000000
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4935f0
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push 4
push edx
push 0x18
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x4935e6
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4935f0
call edi
jmp 0x4935f0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0xb0f34f

Function at 0x4e3252
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4a2008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, eax
push ebx
push esi
push edi
mov edi, ecx
shr edx, 0x10
mov ecx, eax
and ecx, 0xf0
cmp ecx, 0x90
je 0x4e328d
cmp ecx, 0x80
jne 0x4e33b5
jmp 0x4e3295
test dl, dl
jne 0x4e335d
shr eax, 8
movzx eax, al
push eax
push dword [edi + 0x39c]
push dword [edi + 0x398]
call fcn.00547fd2
mov edx, dword [edi + 0x39c]
cmp eax, edx
je 0x4e33b5
lea ecx, [eax + 4]
sub edx, ecx
push edx
push ecx
push eax
call fcn.005289b2
add dword [edi + 0x39c], 0xfffffffc
add esp, 0xc
mov eax, dword [edi + 0x398]
cmp eax, dword [edi + 0x39c]
jne 0x4e33b5
movups xmm0, xmmword [edi + 0x3b0]
lea edx, [edi + 0x3c0]
lea ecx, [ebp - 0x2c]
movups xmmword [ebp - 0x30], xmm0
call fcn.004e28b2
mov eax, dword [edi - 0x26807a40]
insd dword es:[edi], dx
pushal
pop edx
invalid
fsub dword [edi + 0x79]
dec edi
mov al, 1
invalid
insd dword es:[edi], dx
sub dword [ecx + 0x60], edi
salc
shr dword [ecx - 0x43], cl
sbb eax, 0x7599e2aa
mov dword [ecx - 0x22], ebp
push edi
mov esp, 0x107c8e6c
cld
js 0x4e3342
push 0x18a92886
int 0x3d
pop ds
sbb eax, 0xe5ecddc3
sub al, 0x45
dec ecx
xchg edx, eax
insb byte es:[edi], dx
xchg ebp, eax
sub dword [eax - 0x5aaac2c3], ebx
add eax, 0xf9771175
mov bl, 0xb2
push 0x27801ad9
xchg ecx, eax
int3
aaa
int3
Function at 0x529b12
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.0055d002
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x529c35
push ecx
lea ecx, [esi + 0x18]
call fcn.00549332
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x529c4c
push ecx
lea ecx, [esi + 0x24]
call fcn.00549242
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x548a12
Capabilities:
Encode data using xor

Disassembly:
sub ebp, ebx
adc ah, ah
mov dh, 0x17
lea ecx, [edx]
cmp esp, dword [ecx + 0x1b]
fild dword [edi - 3]
pop ebx
call 0x134f9d5d
std
invalid
Function at 0x573122
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call int.005a6612
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x573245
push ecx
lea ecx, [esi + 0x18]
call fcn.00592942
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x57325c
push ecx
lea ecx, [esi + 0x24]
call fcn.00592852
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5a6162
Capabilities:
Encode data using xor

Disassembly:
mov ch, byte [eax]
sahf
sub eax, 0x7a501efb
push ss
and ah, ah
pushfd
jg 0x5a6167
imul edi, dword [esi + ebp + 0x6ec8ee87], 0xbd7c3c3b
and eax, 0x8d99cf6d
pop eax
push eax
cmp edi, dword [esp + edi*2]
mov ebp, 0x99cf6d25
lea ebx, [eax + 0x50]
insd dword es:[edi], dx
iretd
jecxz 0x5a61b8
test eax, 0x6f4475c4
jge 0x5a61bf
jge 0x5a61c2
imul ecx, dword [eax - 0x35], 0x26
leave
jb 0x5a61b9
sbb dword [edx], ebp
fdiv qword [0x1bc8afe4]
mov edx, 0xb1dfcdf6
xchg ebp, eax
dec ebx
js 0x5a614d
sub dword [edx + ebx], ecx
js 0x5a618c
aas
cwde
fidivr dword [esi - 0x461b9c2b]
mov ebp, 0xccfe0d24
fnstcw word [ebx + 0x14dbe5e0]
sub byte [eax - 0x7b], cl
mov byte [ebp + edi*4 - 0xa], dl
mov esi, 0xd8d4015a
movsd dword es:[edi], dword [esi]
ror ah, 1
push cs
pop es
retf
sbb al, 0x68
pushfd
fcompi st(1)
in eax, 0x7f
cmc
rcr dl, cl
mov ah, 0x78
scasb al, byte es:[edi]
push 0xd9e1d89a
mov byte [edx], ch
dec eax
xchg dword [eax + ebx*4 + 0x1d], edi
dec esi
or ah, cl
jae 0x5a6223
sub edx, eax
cld
in eax, 0xc9
stosb byte es:[edi], al
mov ebp, edi
cwd
cmp bh, byte fs:[esi - 0x1ba48415]
outsb dx, byte [esi]
fisttp qword [ecx + 0x2c443e24]
pop es
fistp qword [edx]
pop esp
dec ecx
xor eax, 0x504c4e56
pop ds
sbb byte [edx - 0x6493e422], cl
mov edi, 0x2c194cbb
ljmp 0x678e
inc eax
push cs
push 0x2ccdf037
mov dword [0x4019be14], eax
inc eax
movsd dword es:[edi], dword [esi]
xor ebx, edi
clc
xchg esi, eax
lea ebx, [ebx - 0x61733523]
mov esi, 0x9f7a419c
sub byte [esi - 0xe6717ea], al
and al, 0x20
jg 0x5a6218
and eax, 0x4e9968a4
cmp cl, al
retf
Function at 0x5bc6d2
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472754
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0x48f868
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call int.005efbc2
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 5
mov ecx, dword [0x4a2a48]
mov eax, dword [0x4a2a4c]
add ecx, 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
adc eax, 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [0x4a2a4c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x18]
sar eax, 3
mov dword [0x4a2a48], ecx
cmp eax, 0x64
jae 0x5bc7f5
push ecx
lea ecx, [esi + 0x18]
call fcn.005dbef2
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
sar eax, 3
cmp eax, 0x14
jae 0x5bc80c
push ecx
lea ecx, [esi + 0x24]
call fcn.005dbe02
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x64cd4d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
Function at 0x10001e80
Capabilities:
Encode data using base64

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push edi
mov edi, dword [esp + 0x10]
cmp ebx, 3
jb 0x10001efe
mov eax, 0xaaaaaaab
mul ebx
mov eax, dword [esp + 0x18]
shr edx, 1
push esi
movzx esi, byte [edi]
sub ebx, 3
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
add edi, 3
or esi, ecx
mov ecx, esi
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + ebp]
mov byte [eax], cl
mov ecx, esi
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebp]
mov byte [eax + 1], cl
mov ecx, esi
shr ecx, 6
and esi, 0x3f
and ecx, 0x3f
movzx ecx, byte [ecx + ebp]
mov byte [eax + 2], cl
movzx ecx, byte [esi + ebp]
mov byte [eax + 3], cl
add eax, 4
dec edx
jne 0x10001ea4
pop esi
jmp 0x10001f02
mov eax, dword [esp + 0x18]
dec ebx
je 0x10001f44
dec ebx
jne 0x10001f66
movzx ecx, byte [edi]
shr ecx, 2
movzx ecx, byte [ecx + ebp]
mov byte [eax], cl
movzx edx, byte [edi]
movzx ecx, byte [edi + 1]
and edx, 3
shr ecx, 4
shl edx, 4
or edx, ecx
movzx ecx, byte [edx + ebp]
mov byte [eax + 1], cl
movzx ecx, byte [edi + 1]
and ecx, 0xf
pop edi
movzx ecx, byte [ebp + ecx*4]
pop ebp
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
pop ebx
ret
movzx ecx, byte [edi]
shr ecx, 2
movzx ecx, byte [ecx + ebp]
mov byte [eax], cl
movzx ecx, byte [edi]
and ecx, 3
add ecx, ecx
movzx ecx, byte [ebp + ecx*8]
mov byte [eax + 1], cl
mov word [eax + 2], 0x3d3d
pop edi
pop ebp
pop ebx
ret
Function at 0x40126c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b3004]
jne 0x401276
repz ret
jmp fcn.00401864

Function at 0x40981d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b3004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004042e0
and dword [ebp - 0x14], 0
cmp dword [0x4b5d9c], 0
mov dword [ebp - 0x18], eax
jne 0x4098d0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409978
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409978
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4b5d9c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4b5da0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4b5da4], eax
call edi
push eax
call esi
mov dword [0x4b5dac], eax
test eax, eax
je 0x4098d0
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4b5da8], eax
mov eax, dword [0x4b5da8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409929
cmp dword [0x4b5dac], ecx
je 0x409929
push eax
call esi
push dword [0x4b5dac]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409929
test ebx, ebx
je 0x409929
call edi
test eax, eax
je 0x409920
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409920
test byte [ebp - 8], 1
jne 0x409929
or dword [ebp + 0x10], 0x200000
jmp 0x40995c
mov eax, dword [0x4b5da0]
cmp eax, dword [ebp - 0x18]
je 0x40995c
push eax
call esi
test eax, eax
je 0x40995c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40995c
mov eax, dword [0x4b5da4]
cmp eax, dword [ebp - 0x18]
je 0x40995c
push eax
call esi
test eax, eax
je 0x40995c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b5d9c]
call esi
test eax, eax
je 0x409978
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40997a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040126c
leave
ret
Function at 0x4a62e0
Capabilities:
Create pipe

Disassembly:
sub esp, 0x41c
mov eax, dword [0x4b3004]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
mov eax, dword [eax]
push ebx
mov ebx, dword [0x4b7b34]
push edi
mov edi, dword [0x4b9fb4]
call fcn.004a6220
cmp dword [0x4b9fb4], 0x2f
jne 0x4a6374
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.004a6250
mov ecx, dword [esp + 0x420]
pop edi
pop ebx
xor ecx, esp
call fcn.0040126c
add esp, 0x41c
ret
Function at 0x4a6800
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x4b9fb4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimes]
push edi
mov ebx, 0x1519af
mov edi, 0x8e46a6f0
jmp 0x4a6820
mov dword [0x4b9c1c], edi
cmp eax, 0x3dc
jne 0x4a683a
push 0
push 0
push 0
call esi
mov eax, dword [0x4b9fb4]
dec ebx
jne 0x4a6820
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor esi, esi
jmp 0x4a6850
cmp eax, 0xa5f
jne 0x4a6872
push 0
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
mov eax, dword [0x4b9fb4]
cmp esi, 0x846143
jne 0x4a6889
mov eax, dword [0x4b4bf0]
add eax, 0xa231
mov dword [0x4b9fb4], eax
cmp eax, 0x141
jne 0x4a68a4
mov dword [0x4b62c0], 0xec58acac
mov dword [0x4b62c4], 0xffffffff
inc esi
cmp esi, 0x12d12ba
jl 0x4a6850
call fcn.004a6390
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
Function at 0x401290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x14], 0
jne 0x4012a5
xor eax, eax
jmp 0x4013cd
movzx eax, word [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
and ecx, 0xffff
movzx edx, cx
sar edx, 4
add edx, 1
and edx, 0xffff
movzx eax, dx
push eax
push 6
mov ecx, dword [ebp + 8]
push ecx
call sub.kernel32.dll_FindResourceExW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4012e1
xor eax, eax
jmp 0x4013cd
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4012fe
xor eax, eax
jmp 0x4013cd
mov ecx, dword [ebp - 0x10]
push ecx
call sub.kernel32.dll_LockResource
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
and edx, 0xf
mov dword [ebp + 0xc], edx
mov dword [ebp - 8], 0
jmp 0x401325
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jae 0x40133f
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
jmp 0x40131c
cmp dword [ebp + 0x18], 0
jne 0x401358
mov eax, dword [ebp - 4]
add eax, 2
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
movzx eax, word [edx]
jmp 0x4013cd
mov eax, dword [ebp + 0x18]
sub eax, 1
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp eax, edx
jge 0x401373
mov eax, dword [ebp + 0x18]
sub eax, 1
mov dword [ebp - 0x14], eax
jmp 0x40137c
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4013af
mov ecx, dword [ebp - 8]
shl ecx, 1
push ecx
mov edx, dword [ebp - 4]
add edx, 2
push edx
mov eax, dword [ebp + 0x14]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
mov word [eax + edx*2], cx
jmp 0x4013ca
cmp dword [ebp + 0x18], 1
jle 0x4013ca
mov ecx, 2
imul edx, ecx, 0
xor eax, eax
mov ecx, dword [ebp + 0x14]
mov word [ecx + edx], ax
xor eax, eax
jmp 0x4013cd
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4023a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [0x40505c], 1
mov dword [0x405060], 1
mov dword [0x405064], 1
mov dword [0x405070], 1
mov dword [ebp - 8], 0x400000
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x4023ec
xor eax, eax
jmp 0x4024a0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0x4550
je 0x40240a
xor eax, eax
jmp 0x4024a0
mov edx, dword [ebp - 0xc]
add edx, 0x18
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x10b
je 0x402430
cmp dword [ebp - 0x10], 0x20b
je 0x402464
jmp 0x40249e
mov edx, dword [ebp - 4]
cmp dword [edx + 0x5c], 0xe
ja 0x40243d
xor eax, eax
jmp 0x4024a0
mov eax, 8
imul ecx, eax, 0xe
mov edx, dword [ebp - 4]
cmp dword [edx + ecx + 0x60], 0
je 0x402458
mov dword [ebp - 0x14], 1
jmp 0x40245f
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
jmp 0x4024a0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x6c], 0xe
ja 0x402477
xor eax, eax
jmp 0x4024a0
mov edx, 8
imul eax, edx, 0xe
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + eax + 0x70], 0
je 0x402492
mov dword [ebp - 0x1c], 1
jmp 0x402499
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
jmp 0x4024a0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x402950
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 4], edx
jmp 0x402990
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 0xc], eax
jae 0x4029bf
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx + 0xc]
jb 0x4029bd
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 0xc], ecx
jae 0x4029bd
mov eax, dword [ebp - 4]
jmp 0x4029c1
jmp 0x40297e
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4029d0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x4029f0
xor eax, eax
jmp 0x402a2b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 0x4550
je 0x402a0b
xor eax, eax
jmp 0x402a2b
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x10b
je 0x402a26
xor eax, eax
jmp 0x402a2b
mov eax, 1
mov esp, ebp
pop ebp
ret