joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x14098af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x1426348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x1426348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x1425178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x14098b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x402e70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00402f30
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0x6d8bde
Capabilities:
Encode data using xor

Disassembly:
xchg edi, eax
jne 0x6d8b88
les eax, [0x6daf4dc3]
xchg edx, eax
wait
adc edx, dword [eax]
xor ebp, dword [0xdc69369d]
push eax
xlatb
inc ebx
int 0x82
dec edx
mov esp, dword [esi - 0x3d]
insd dword es:[edi], dx
jne 0x6d8b84
mov byte [0x3ef5ac4a], al
and eax, 0xf38a8dc7
xchg edi, eax
jge 0x6d8b84
mov edi, 0x25a7cbe7
xchg ebp, eax
lodsb al, byte [esi]
dec edx
push ds
fcomp dword [ecx + 0x7f]
std
insb byte es:[edi], dx
push dword [edx - 0x694e0480]
cmpsb byte es:[esi], byte es:[edi]
fdiv qword [ebp - 0x7d1db607]
invalid
ret
int1
push ds
sub eax, 0x89fd8159
jp 0x6d8b26
dec ebp
add byte [ebx], ah
xor eax, dword [eax]
scasd eax, dword es:[edi]
push 0x77445df8
jg 0x6d8c1c
inc esp
ja 0x6d8c1d
jge 0x6d8b25
test dword [ebx], esp
int 0x83
or byte [edx - 0x1ccb0ff8], cl
and ecx, ebp
or dword [eax], 0xffffff8a
or al, dh
xor al, 0xe3
fld qword [ebx]
enter 0xffffffffffffa9e0, 0xffffffffffffffaf
pushal
adc bl, byte [eax + 0x391c3b2]
pop esp
lahf
cmp ebx, dword [edx]
adc eax, 0x4e371dee
xchg ebp, eax
insd dword es:[edi], dx
mov eax, dword [0xa6faa21a]
aas
fisttp word [eax + 0x8e0b9f3]
add eax, 0xd2051422
salc
inc esi
in al, 0xe6
fld dword [edi - 0x3916898f]
in eax, dx
shr esi, 0x53
cmp ebx, 0x63cb530d
sub ah, byte [eax + eax*2]
sub edi, dword [edx + 0x1f6250b2]
and ah, bl
loop 0x6d8b9b
and byte [esi + eax*8 + 0x54fa91af], bh
adc eax, 0x975142ea
pop esp
and ch, byte [edi - 0x27]
push ss
bound edx, qword [ecx + 0x6f1971d3]
shl dword [0x39c801ba], cl
push eax
mov dh, 0xea
xor byte [ecx], 0x7c
jle 0x6d8c01
inc esi
and eax, 0xe5c05935
cwde
xor eax, 0x98e5c059
pop ecx
shl ch, 0x98
cmc
pop ss
add eax, 0xcf7e0cb0
cmc
imul eax, edi, 0x9a779765
outsd dx, dword [esi]
dec edx
pushfd
push eax
add esi, dword [edx - 0x44]
lcall 0x96cd, 0x5f380b0a
std
loop 0x6d8c73
scasd eax, dword es:[edi]
pop ecx
pop edx
add al, 0x45
sbb dl, byte [edx - 0x1d93b8d1]
invalid
rcr dword [esi], 0x98
xor byte [eax + 0x254f32ea], dl
xchg edi, eax
cld
outsb dx, byte [esi]
int 0xb2
sbb dword [edx - 0xb75da2f], eax
push ebp
adc bl, 0xc2
pop ebx
neg dword [ebx + 0x36]
bnd jne 0x6d8ca7
sub byte [eax + 0xe9db248], 0x81
jl 0x6d8c9a
pushfd
adc al, 0xde
xchg esp, eax
sbb dword [ebx + 0x4c], edx
int1
push cs
mov esp, dword [0x4ccea7b5]
and eax, 0x4ccea7b5
salc
popfd
and al, 0x5a
mov al, byte [0x6d5dbed8]
stosb byte es:[edi], al
cmp esp, dword [ebp - 0x6a92064d]
sbb byte [esi], 0xa4
inc ebx
push 0x39
add byte [ebx - 0x55bdc578], ch
in al, dx
push edi
inc edi
or bh, dl
and dword [edx + 0x66751c4d], esi
mov esi, dword [eax - 0x20]
or eax, 0xc0908d3d
invalid
Function at 0x7c648d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x7cd428
cmp edx, dword [eax]
je 0x7c64af
add eax, 8
inc ecx
cmp eax, 0x7cd4b8
jl 0x7c64a0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x7cd428]
jne 0x7c65dd
mov eax, dword [0xbcfdc4]
cmp eax, 1
je 0x7c65b7
test eax, eax
jne 0x7c64e0
cmp dword [0x7cd354], 1
je 0x7c65b7
cmp edx, 0xfc
je 0x7c65dd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c6517
lea eax, [ebp - 0x1a4]
push 0x7cb540
push eax
call fcn.007c6e70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.007c7300
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x7c655a
lea eax, [ebp - 0x1a4]
push eax
call fcn.007c7300
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x7cb53c
push edi
call fcn.007c91d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x7cb520
push eax
call fcn.007c6e70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.007c6e80
lea eax, [ebp - 0xa0]
push 0x7cb51c
push eax
call fcn.007c6e80
push dword [esi + 0x7cd42c]
lea eax, [ebp - 0xa0]
push eax
call fcn.007c6e80
push 0x12010
lea eax, [ebp - 0xa0]
push 0x7cb4f4
push eax
call fcn.007c9144
add esp, 0x2c
pop edi
jmp 0x7c65dd
lea eax, [ebp + 8]
lea esi, [esi + 0x7cd42c]
push 0
push eax
push dword [esi]
call fcn.007c7300
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 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0xa44008], 0x8088405
inc edx
mov dword [ebx + 0xa44008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cb64
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cb95
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cb7d
add dl, dl
jne 0x41cba0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cbf1
xor eax, eax
add dl, dl
jne 0x41cbad
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc8e
add dl, dl
jne 0x41cbbc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbc7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbdd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cbe7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cb8c
mov eax, 1
add dl, dl
jne 0x41cbff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cbf6
sub eax, ebx
mov ebx, 1
jne 0x41cc3d
mov ecx, 1
add dl, dl
jne 0x41cc23
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc2e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc1a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cb8c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cc54
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc5f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc4b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cb8c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ccaf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cb8c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41d828
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x41d83b
add esp, 0xfffffff0
call fcn.00403da8
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00403b30
mov byte [ebx + 4], 0
cmp dword [esi + 0x5c], 0
jne 0x41d861
cmp dword [esi + 0x58], 0x40
jb 0x41da47
jmp 0x41d867
jl 0x41da47
lea eax, [ebx + 0xc]
mov edx, 0x40
call fcn.00406e80
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0xc]
mov eax, esi
call fcn.0041d3e4
cmp word [ebx + 0xc], 0x5a4d
jne 0x41da47
mov ecx, dword [ebx + 0x48]
test ecx, ecx
jle 0x41da47
cmp ecx, 0x10000
jge 0x41da47
mov eax, ecx
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d8c2
cmp eax, dword [esi + 0x58]
ja 0x41da47
jmp 0x41d8c8
jg 0x41da47
lea eax, [ebx + 0x4c]
mov edx, 4
call fcn.00406e80
mov eax, dword [ebx + 0x48]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x4c]
mov eax, esi
call fcn.0041d3e4
cmp dword [ebx + 0x4c], 0x4550
jne 0x41da47
lea eax, [ebx + 0x50]
mov edx, 0x14
call fcn.00406e80
mov eax, dword [ebx + 0x48]
add eax, 4
cdq
push edx
push eax
push 0
push 0x14
lea edx, [ebx + 0x50]
mov eax, esi
call fcn.0041d3e4
mov ax, word [ebx + 0x50]
cmp ax, 0x8664
jne 0x41d97f
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xf0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d943
cmp eax, dword [esi + 0x58]
ja 0x41d9d0
jmp 0x41d949
jg 0x41d9d0
lea eax, [ebx + 0x144]
mov edx, 0xf0
call fcn.00406e80
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xf0
lea edx, [ebx + 0x144]
mov eax, esi
call fcn.0041d3e4
mov byte [ebx + 4], 1
jmp 0x41d9d0
cmp ax, 0x14c
jne 0x41d9d0
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xe0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d9a0
cmp eax, dword [esi + 0x58]
ja 0x41d9d0
jmp 0x41d9a2
jg 0x41d9d0
lea eax, [ebx + 0x64]
mov edx, 0xe0
call fcn.00406e80
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xe0
lea edx, [ebx + 0x64]
mov eax, esi
call fcn.0041d3e4
mov byte [ebx + 4], 1
cmp byte [ebx + 4], 0
je 0x41da47
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
mov di, word [ebx + 0x52]
movzx edx, di
shl edx, 3
lea edx, [edx + edx*4]
add eax, edx
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41da01
cmp eax, dword [esi + 0x58]
ja 0x41da47
jmp 0x41da03
jg 0x41da47
movzx eax, di
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0xa2e2fc]
call fcn.00405b74
add esp, 4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
cdq
push edx
push eax
movzx eax, word [ebx + 0x52]
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.0041d3e4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x41da5e
call fcn.00403e00
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41e758
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0xa2fc17
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e809
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e7f2
test esi, esi
jbe 0x41e809
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088a4
test eax, eax
jne 0x41e7e4
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e809
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e7c1
jmp 0x41e809
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e809
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa2fc1e
ret
Function at 0x41f04c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0xa305fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41f087
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41f0a0
lea eax, [ebp - 0x10]
mov edx, dword [0xa4623c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41f0b3
lea eax, [ebp - 0x10]
mov edx, dword [0xa4623c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41f0bf
adc edx, 0
mov edx, dword [edx*4 + 0xa450d0]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406af4
mov esi, eax
cmp esi, 0xffffffff
je 0x41f1cd
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41f1c0
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f1c0
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d94
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41f1c0
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f1c0
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f1c0
cmp dx, 0x150
ja 0x41f1c0
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41f1c0
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f1c0
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406aac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f1e5
inc ebx
cmp ebx, 0x19
jne 0x41f079
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa30602
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0xe26370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xe2638e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xe4f074
push ecx
mov edi, eax
call fcn.00e3a198
mov esi, eax
add esp, 8
test esi, esi
jne 0xe263cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00e3a02e
push esi
call fcn.00e39fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xe29850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xe298ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xe54720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe298ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00e3a1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xe298ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xe54720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe2992a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00e3b082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xe29957
mov word [eax], si
add eax, 2
push eax
call fcn.00e3b030
add esp, 4
jmp 0xe29959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xe298ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xe298b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xe29ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xe2a080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xe2a0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xe4f458
push ecx
call fcn.00e3a1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00e3a1e1
add esp, 0x10
jmp 0xe2a0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00e3a20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00e39dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00e2a050
mov eax, dword [0xe54728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xe2a13b
push esi
call fcn.00e29fb0
add esp, 4
mov dword [0xe54728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xe2a14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00e29ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xe2d440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xe2d4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xe2d48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xe2d471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xe2d47e
add edx, ecx
cmp ebx, edx
jb 0xe2d48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xe2d467
xor ecx, ecx
jmp 0xe2d4a2
test eax, eax
jne 0xe2d492
xor ecx, ecx
jmp 0xe2d4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00e2d3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xe2d8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xe2d921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xe2d946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xe2d96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xe2d993
push ecx
push esi
call fcn.00e2d4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret