joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6329f0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, 0x98
call fcn.0042f520
mov eax, dword [0x71906c]
xor eax, esp
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0xa8]
push edi
mov edi, dword [esp + 0xa0]
mov dword [esp + 4], edi
mov eax, dword [ecx]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 0x1c]
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x84], eax
mov dword [esp + 0x58], 0x61707865
mov dword [esp + 0x5c], 0x3320646e
mov eax, dword [ecx]
mov dword [esp + 0x88], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x8c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x90], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x60], 0x79622d32
mov dword [esp + 0x64], 0x6b206574
test eax, eax
je 0x632bed
push ebx
mov ebx, dword [esp + 0xa8]
push ebp
push esi
nop
mov esi, 0x40
cmp eax, esi
cmovb esi, eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], esi
push eax
call fcn.00632c10
add esp, 8
xor eax, eax
test esi, esi
je 0x632bbc
cmp esi, 0x20
jb 0x632b94
lea edx, [edi - 1]
lea ecx, [esp + esi + 0x23]
add edx, esi
cmp edi, ecx
ja 0x632b0c
lea ecx, [esp + 0x24]
cmp edx, ecx
jae 0x632b94
lea ecx, [ebx - 1]
add ecx, esi
cmp edi, ecx
ja 0x632b19
cmp edx, ebx
jae 0x632b94
mov ebp, esi
lea edx, [edi + 0x10]
lea esi, [esp + 0x24]
mov ecx, ebx
sub ecx, esi
and ebp, 0xffffffe0
mov dword [esp + 0x14], ecx
mov ecx, edi
sub ecx, esi
mov dword [esp + 0x18], ecx
mov ecx, ebx
mov ebx, dword [esp + 0x14]
sub ecx, edi
mov esi, dword [esp + 0x18]
mov edi, ecx
mov dword [esp + 0x1c], ecx
nop word [eax + eax]
movups xmm0, xmmword [esp + eax + 0x24]
lea ecx, [ebx + eax]
movups xmm1, xmmword [esp + ecx + 0x24]
lea ecx, [esi + eax]
lea edx, [edx + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [esp + eax + 0x34]
add eax, 0x20
movups xmmword [esp + ecx + 0x24], xmm1
movups xmm1, xmmword [edi + edx - 0x20]
pxor xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
cmp eax, ebp
jb 0x632b50
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0xb0]
cmp eax, esi
jae 0x632bbc
lea ecx, [esp + 0x24]
mov ebp, edi
sub ebx, ecx
sub ebp, ecx
lea edx, [esp + 0x24]
add edx, eax
inc eax
mov cl, byte [ebx + edx]
xor cl, byte [edx]
mov byte [edx + ebp], cl
cmp eax, esi
jb 0x632ba2
mov ebx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
add edi, esi
inc dword [esp + 0x94]
sub eax, esi
add ebx, esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], eax
test eax, eax
jne 0x632ac0
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
pop edi
xor ecx, esp
call fcn.0042e1e5
add esp, 0x98
ret
Function at 0x66f880
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa8
call fcn.0042f520
mov eax, dword [0x71906c]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xac]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push esi
mov esi, dword [esp + 0xbc]
xor ebp, ebp
mov dword [esp + 0x2c], eax
push edi
mov eax, dword [esi + 8]
mov dword [esp + 0x10], eax
sub eax, ebx
mov dword [esp + 0x24], eax
cmp dword [esi + 0xc], ebx
jae 0x66f8e0
push 0x4d4
push 0x6fc764
push str.assertion_failed:_rec__orig_len___md_size
call fcn.005c01c0
add esp, 0xc
cmp ebx, 0x40
jbe 0x66f8fc
push 0x4d5
push 0x6fc764
push str.assertion_failed:_md_size___EVP_MAX_MD_SIZE
call fcn.005c01c0
add esp, 0xc
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x34]
neg eax
mov dword [esp + 0x20], ecx
and eax, 0x3f
lea edi, [esp + 0x34]
add edi, eax
lea eax, [ebx + 0x100]
mov dword [esp + 0x2c], edi
cmp ecx, eax
jbe 0x66f92a
mov ebp, ecx
sub ebp, ebx
sub ebp, 0x100
push ebx
xor esi, esi
mov dword [esp + 0x18], 0
push esi
push edi
call fcn.00507ac0
add esp, 0xc
mov dword [esp + 0x18], esi
cmp ebp, dword [esp + 0x20]
jae 0x66f9dd
mov eax, dword [esp + 0xc0]
mov ecx, ebp
sub ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0x14]
mov dword [esp + 0x28], eax
mov eax, ebp
mov edx, ecx
xor eax, dword [esp + 0x24]
xor edx, dword [esp + 0x10]
lea edi, [eax - 1]
not eax
shr eax, 0x1f
shr edi, 0x1f
and edi, eax
mov eax, ebp
xor eax, dword [esp + 0x10]
neg edi
or edx, eax
mov eax, dword [esp + 0x28]
xor edx, ebp
shr edx, 0x1f
neg edx
mov cl, byte [eax + ebp]
mov eax, edi
or eax, dword [esp + 0x14]
inc ebp
and eax, edx
mov edx, dword [esp + 0x18]
and edi, edx
mov dword [esp + 0x14], eax
and al, cl
or esi, edi
mov edi, dword [esp + 0x2c]
or byte [edx + edi], al
inc edx
mov ecx, edx
mov eax, edx
sub ecx, ebx
xor eax, ebx
xor ecx, ebx
or ecx, eax
xor ecx, edx
shr ecx, 0x1f
neg ecx
and edx, ecx
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
cmp ebp, dword [esp + 0x20]
jb 0x66f965
xor edx, edx
test ebx, ebx
je 0x66fa11
mov ebp, dword [esp + 0x30]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + edi]
movzx eax, byte [esi + edi]
inc esi
mov byte [edx + ebp], al
mov ecx, esi
sub ecx, ebx
mov eax, esi
xor ecx, ebx
xor eax, ebx
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, ebx
jb 0x66f9e7
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042e1e5
add esp, 0xa8
ret
Function at 0x670550
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.0042f520
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x28]
inc edi
mov eax, dword [eax + 0x64]
test byte [eax + 0x34], 1
je 0x67059d
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 8]
lea eax, [edi + ecx]
cmp eax, edx
jbe 0x67058d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
add dword [esi + 0x14], ecx
sub edx, ecx
add dword [esi + 0x18], ecx
sub dword [esi + 0xc], ecx
mov dword [esi + 8], edx
jmp 0x6705a2
cmp edi, dword [esi + 8]
ja 0x670584
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
push ebp
push dword [ebx + 0xb0]
mov al, byte [ecx + eax - 1]
movzx ebp, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebp
call fcn.005ad640
push eax
call fcn.005a9b70
add esp, 8
test eax, 0x200000
je 0x6705e8
or eax, 0xffffffff
sub eax, ebp
add dword [esi + 8], eax
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov edx, dword [esi + 8]
lea ecx, [edi + ebp]
mov ebx, edx
mov dword [esp + 0x10], edx
sub ebx, ecx
mov eax, edx
xor ebx, ecx
xor eax, ecx
or ebx, eax
mov eax, 0x100
xor ebx, edx
shr ebx, 0x1f
dec ebx
cmp edx, eax
cmovb eax, edx
xor edi, edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x670674
mov eax, dword [esi + 0x14]
mov esi, dword [esp + 0x20]
mov edx, esi
mov ebp, dword [esp + 0x10]
shr edx, 0x1f
dec ebp
mov dword [esp + 0x18], edx
add ebp, eax
nop
mov ecx, esi
lea ebp, [ebp - 1]
sub ecx, edi
mov eax, edi
shr ecx, 0x1f
inc edi
shr eax, 0x1f
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [esp + 0x2c]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [ebp + 1]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x18]
cmp edi, dword [esp + 0x14]
jb 0x670630
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
not ebx
movzx eax, bl
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [ebp + 1]
neg ecx
and eax, ecx
sub edx, eax
mov eax, ecx
pop ebp
pop edi
mov dword [esi + 8], edx
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebx
add esp, 0xc
ret
Function at 0x674e90
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x20]
cmp dword [eax], 5
je 0x674eab
push eax
push esi
call fcn.006754d0
add esp, 8
test eax, eax
jle 0x674ef3
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push esi
mov edi, eax
call fcn.005a9920
add esp, 8
test edi, edi
jg 0x674ef0
push edi
call fcn.005f1b40
add esp, 4
test eax, eax
je 0x674ef0
push 0xa
push esi
call fcn.005aa080
add esp, 8
mov eax, edi
pop edi
pop esi
ret
Function at 0x5e2511
Capabilities:
Encode data using xor

Disassembly:
popfd
dec edi
cmpsd dword [esi], dword es:[edi]
adc byte [ebx], 0xca
and edi, dword [edi]
xchg ebp, eax
xor al, byte [edx]
add al, 0xed
ficom word [edx]
ja 0x5e256e
int3
dec edx
nop
popfd
imul edi, eax, 0xd
movsb byte es:[edi], byte [esi]
mov ah, 0xb8
add esi, dword [ecx]
dec ecx
js 0x5e25ce
xor dword [ecx + 0x78], ecx
pop esp
push ds
xor al, dh
fbstp tbyte [esi]
xlatb
loope 0x5e2563
fidivr word [ecx + ecx*2]
das
mov bh, 0x12
ja 0x5e25ce
int3
faddp st(3)
add ebp, edx
test eax, 0x9edee9f3
ja 0x5e264e
push ds
xor al, dh
ffreep st(1)
or byte [ebx], 0xea
faddp st(3)
pop ebx
jb 0x5e261a
invalid
invalid
dec edi
cmpsd dword [esi], dword es:[edi]
adc byte [ebx], 0xd6
adc ah, dh
jmp 0xea43ea0e
Function at 0x5e47cd
Capabilities:
Encode data using xor

Disassembly:
outsb dx, byte [esi]
in al, 0xfb
jno 0x5e47f3
jae 0x5e484b
imul ebp, dword [eax + 0x63], 0xb833df6a
pop edi
push 0x65
imul ebp, dword [eax + 0x14], 0x10
sub bl, byte [esi + edx*4 - 0xd288843]
xor al, 0xb0
out dx, eax
push 0xffffffffffffffdf
xor edi, dword [eax + 0x6b656a5f]
push 0x9c2a1014
xchg esi, eax
mov ebp, 0x34f2d777
mov al, 0xef
mov ch, 0x67
sbb edx, edi
mov ebx, 0x4c3e7277
jb 0x5e4833
dec esp
std
shl esp, cl
mov esp, 0xbced5b62
ja 0x5e47d7
and dh, byte [0x1422efb7]
mul dword [ebx + 0x7e]
adc ah, ah
wait
xchg byte [ebp - 0x12], ah
insd dword es:[edi], dx
dec eax
ror byte [eax - 0x3f], 0x6f
or byte [edi], 0x72
shr byte ds:[esp + ecx*8 - 0x1c], 0xbc
bound ebx, qword [ebx - 0x21]
mov esp, 0x8069d777
pop ds
sbb ch, byte [ebp - 0x37]
cdq
xchg esp, eax
in al, 0xc1
invalid
push 0x6e
leave
cdq
xchg esp, eax
in al, 0x33
test al, 0xf
jb 0x5e47ce
sti
salc
in eax, dx
daa
adc esi, 0xb3eebbf2
jp 0x5e487e
test al, 0x13
push 0xffffffffffffff80
adc ebp, dword [edx - 0x80]
adc esi, dword [eax + 0x24]
or al, 0xf6
popfd
inc edi
fisttp dword [eax - 0x3f]
neg byte [ebp - 0x3eb724b9]
shr bl, 0xe2
mov ebx, 0x37f47277
ja 0x5e4852
jbe 0x5e47f5
ja 0x5e483f
imul ebp, esi, 0xffffff9b
mov dh, byte [esi + esi]
pop ebp
pushfd
pop es
aam 0xe4
ret
push esp
jl 0x5e48fb
ret 0xc2f6
jo 0x5e48c1
and byte [edx], ch
pushfd
cmp byte [ebp + 0x63f2d777], 4
pushal
sub bl, byte [edx + eax*4 - 0xd288843]
arpl word [eax], ax
ja 0x5e4873
xlatb
arpl word [eax], ax
idiv dword [ebx + 0x35227f77]
aas
out dx, eax
imul esp, dword [esi + 0x6f], 0xead69f68
ja 0x5e4893
fisttp word [ecx]
and byte [ebx], ch
add al, 0x62
jno 0x5e4896
mov esp, 0x6fbfd777
pop ds
ja 0x5e4893
mov edi, 0x71ee1f6f
out dx, al
jno 0x5e489a
fdiv dword [edi - 0x29]
ja 0x5e489b
xor al, 0xb8
pop edi
sar ch, 1
ja 0x5e490a
or cl, al
dec eax
shr dword [edi + 0x70], 3
push ss
sub ecx, dword [edi + esi*2]
xlatb
mov ebx, 0xbd33083f
ja 0x5e48b7
jno 0x5e4872
sti
xlatb
in eax, dx
daa
js 0x5e48bf
mov ebx, 0x33eeaeee
test al, 0x13
push 0x75
pop es
jo 0x5e4919
or al, 0xee
mov bl, 0x7a
inc eax
inc eax
arpl ax, di
jbe 0x5e4902
call 0x6c62551f
add al, 0x6c
idiv dword [ebx - 0x280b8d89]
jns 0x5e48fa
imul edx, dword [esi + 0x77], 0xffffffd7
cmp al, 0xd2
inc edi
in eax, 0xdf
or edi, edx
in eax, dx
sub byte [ecx - 0x9440d29], bl
jecxz 0x5e48a7
mov ebp, 0xbc1f5b62
ja 0x5e48ff
jno 0x5e48ba
pop ds
xlatb
in eax, dx
daa
add bh, dl
mov ebx, 0xabd86dee
dec eax
shr dword [edi - 0x80], 3
push ss
sub ecx, dword [edi + esi*2]
xlatb
mov ebx, 0xbbf2cb04
ja 0x5e49b8
hlt
idiv dword [ebx + 0x7069d777]
pop es
pop esp
lcall 0x77bb, 0xf27eebc2
push 0x2f
shl ah, 0xe9
outsd dx, dword [esi]
imul edi
scasb al, byte es:[edi]
loop 0x5e4a05
scasb al, byte es:[edi]
invalid
mov ebx, 0xc29c1877
mul dh
mov ebx, 0xd6a76877
ljmp 0x2bf2
Function at 0x40179c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
jmp 0x40184b
mov eax, dword [ebp - 8]
lea edx, [eax*4]
mov eax, dword [ebp - 0x1c]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [esp], eax
call fcn.004015db
cmp dword [ebp + 0xc], eax
jne 0x401847
mov eax, dword [ebp - 8]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x20]
add eax, edx
movzx eax, word [eax]
movzx eax, ax
lea edx, [eax*4]
mov eax, dword [ebp - 0x18]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x401856
add dword [ebp - 8], 1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
cmp dword [ebp - 8], eax
jb 0x401800
cmp dword [ebp - 4], 0
je 0x401866
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add eax, edx
jmp 0x40186b
mov eax, 0
leave
ret

Function at 0x8d3f80
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.008d4cc0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.008d4cc0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x8d3fe0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x8d8074]
test esi, esi
jle 0x8d4100
mov eax, dword [0x8d8078]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x8d4014
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x8d4097
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x8d4000
mov dword [esp], ebx
call fcn.008d49d0
mov edi, eax
test eax, eax
je 0x8d4127
mov eax, dword [0x8d8078]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.008d4b10
mov edx, dword [0x8d8078]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x8d4107
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x8d4090
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x8d40a0
add dword [0x8d8074], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x8d8078]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x8d4090
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.008d3f80
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x8d401e
mov eax, dword [0x8d8078]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.008d3f80
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.008d3f80
lea esi, [esi]
nop

Function at 0x8d4640
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x8d8090
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x8d8088]
sub esp, 4
test ebx, ebx
je 0x8d4695
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x8d468e
test esi, esi
je 0x8d468e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x8d4670
mov dword [esp], 0x8d8090
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x8d49d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x8d49f5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x8d4a00
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x8d49f5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x8d4a48
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x8d4a3e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x8d4a4a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x8d4a30
xor eax, eax
pop ebx
pop esi
ret
Function at 0xd0e370
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 0xd0e38e
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 0xd37074
push ecx
mov edi, eax
call fcn.00d22198
mov esi, eax
add esp, 8
test esi, esi
jne 0xd0e3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00d2202e
push esi
call fcn.00d21fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xd11850
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 0xd118ae
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 0xd3c720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd118ba
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.00d221e1
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 0xd118ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xd3c720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd1192a
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.00d23082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xd11957
mov word [eax], si
add eax, 2
push eax
call fcn.00d23030
add esp, 4
jmp 0xd11959
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 0xd118ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xd118b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xd11ff0
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 0xd12080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xd120c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xd37458
push ecx
call fcn.00d221e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00d221e1
add esp, 0x10
jmp 0xd120d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00d2220b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00d21dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00d12050
mov eax, dword [0xd3c728]
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 0xd1213b
push esi
call fcn.00d11fb0
add esp, 4
mov dword [0xd3c728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xd1214c
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.00d11ff0
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 0xd15440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xd154b7
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 0xd1548e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd15471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd1547e
add edx, ecx
cmp ebx, edx
jb 0xd1548a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd15467
xor ecx, ecx
jmp 0xd154a2
test eax, eax
jne 0xd15492
xor ecx, ecx
jmp 0xd154a2
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.00d153c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xd158f0
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 0xd15921
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 0xd15946
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 0xd1596e
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 0xd15993
push ecx
push esi
call fcn.00d154c0
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