joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406ac0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, edx
mov dword [ebp - 0xc], ecx
mov eax, 0xaaaaaaab
mov dword [ebp - 0x18], ebx
mul ebx
push esi
push edi
mov edi, edx
shr edi, 1
lea eax, [edi + edi*2]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
lea ecx, [eax + 2]
sbb ebx, ebx
mov dword [ebp - 0x20], ecx
neg ebx
add ebx, edi
shl ebx, 2
mov dword [ebp - 0x10], ebx
lea eax, [ebx + 1]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x406b13
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov dword [ebp - 4], ecx
test edi, edi
je 0x406ba3
mov edx, dword [ebp - 0xc]
lea ebx, [esi + 2]
add edx, 2
mov dword [ebp - 4], edi
mov dword [ebp - 8], edx
nop
movzx ecx, byte [edx - 2]
lea ebx, [ebx + 4]
movzx esi, byte [edx - 1]
mov eax, ecx
movzx edx, byte [edx]
shr eax, 2
shl ecx, 4
movzx eax, byte [eax + 0x446bb0]
mov byte [ebx - 6], al
mov eax, esi
shr eax, 4
or eax, ecx
mov ecx, edx
and eax, 0x3f
shr ecx, 6
and edx, 0x3f
movzx eax, byte [eax + 0x446bb0]
mov byte [ebx - 5], al
lea eax, [esi*4]
or ecx, eax
and ecx, 0x3f
movzx eax, byte [ecx + 0x446bb0]
mov byte [ebx - 4], al
movzx eax, byte [edx + 0x446bb0]
mov edx, dword [ebp - 8]
add edx, 3
mov byte [ebx - 3], al
mov dword [ebp - 8], edx
sub edi, 1
jne 0x406b30
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0x18]
cmp edi, dword [ebp - 0x1c]
jbe 0x406c10
mov eax, dword [ebp - 0xc]
lea eax, [eax + ecx*2]
add eax, ecx
mov dword [ebp - 0x1c], eax
movzx edx, byte [eax]
mov eax, edx
shr eax, 2
mov al, byte [eax + 0x446bb0]
mov byte [esi + ecx*4], al
cmp edi, dword [ebp - 0x20]
jne 0x406bf5
mov eax, dword [ebp - 0x1c]
shl edx, 4
movzx ecx, byte [eax + 1]
mov eax, ecx
shr ecx, 4
or ecx, edx
and eax, 0xf
and ecx, 0x3f
mov al, byte [eax*4 + 0x446bb0]
mov dl, byte [ecx + 0x446bb0]
mov ecx, dword [ebp - 4]
jmp 0x406c03
and edx, 3
mov al, 0x3d
shl edx, 4
mov dl, byte [edx + 0x446bb0]
mov byte [esi + ecx*4 + 1], dl
mov byte [esi + ecx*4 + 2], al
mov byte [esi + ecx*4 + 3], 0x3d
pop edi
mov byte [esi + ebx], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406ee0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
or edi, 0xffffffff
cmp dword [0x44bb40], 0
jne 0x406f0d
push 0x1590
push 0
push 0x44a5b0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [0x44bb40], 1
xor ebx, ebx
mov esi, 0x44a5b0
mov eax, esi
mov ecx, str.ver.bin
nop dword [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x406f40
test dl, dl
je 0x406f3c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x406f40
add ecx, 2
add eax, 2
test dl, dl
jne 0x406f20
xor eax, eax
jmp 0x406f45
sbb eax, eax
or eax, 1
test eax, eax
je 0x406f82
cmp byte [esi], 0
jne 0x406f54
cmp edi, 0xffffffff
cmove edi, ebx
add esi, 0x114
inc ebx
cmp esi, 0x44bb40
jl 0x406f14
cmp edi, 0xffffffff
jne 0x406f6e
pop edi
pop esi
xor eax, eax
pop ebx
ret
imul edx, edi, 0x114
pop edi
pop esi
pop ebx
add edx, 0x44a5b0
jmp fcn.00406c20
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x407010
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [0x44a5ac]
push esi
mov esi, edx
test eax, eax
jne 0x40702a
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x44a5ac], eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.00406ee0
test eax, eax
jne 0x407072
push 0x122
push str.utl_fcfg_get_value
push str._s_:_d
call fcn.00401070
push str.ver.bin
push str.Failed_get_cfg_file:__s_n
call fcn.00401070
add esp, 0x14
push dword [0x44a5ac]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
pop esi
ret
mov edx, esi
mov ecx, eax
call fcn.00406f90
push dword [0x44a5ac]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x40706e
mov eax, dword [esi + 4]
pop esi
ret
Function at 0x4071a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x44a008]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00407340
test eax, eax
jle 0x40731e
cmp byte [esp + 0x19], 8
je 0x40731b
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x20]
lea ecx, [eax + esi]
cmp ecx, eax
jle 0x40723c
push ecx
push dword [ebx]
mov dword [ebx + 4], ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov esi, eax
add esp, 8
test esi, esi
jne 0x407236
push 0x24
push str.JCBuffer::ReAllocate
push str._s_:_d
call fcn.00401070
add esp, 0xc
push str.realloc_failed__n
call fcn.00401070
add esp, 4
push dword [ebx]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [ebx], esi
mov esi, dword [esp + 0x20]
xor edi, edi
cmp dword [esp + 0x24], edi
jb 0x40728c
ja 0x407250
test esi, esi
je 0x40728c
nop word [eax + eax]
mov eax, dword [esp + 0x14]
sub esi, edi
mov ecx, dword [eax + 8]
push dword [eax + 0xc]
mov eax, dword [ebx]
push esi
mov edx, dword [ecx]
add eax, edi
mov esi, dword [esp + 0x18]
add eax, esi
push eax
call dword [edx + 0x14]
test eax, eax
js 0x4072c8
add edi, eax
mov eax, edi
cdq
cmp edx, dword [esp + 0x24]
jae 0x407282
mov esi, dword [esp + 0x20]
jmp 0x407250
ja 0x407290
mov esi, dword [esp + 0x20]
cmp eax, esi
jb 0x407250
mov esi, dword [esp + 0x10]
cmp byte [esp + 0x1a], 0
je 0x4072b2
mov edx, dword [ebx]
xor eax, eax
add edx, esi
test edi, edi
jle 0x4072b2
mov ecx, eax
and ecx, 3
mov cl, byte [esp + ecx + 0x28]
xor byte [eax + edx], cl
inc eax
cmp eax, edi
jl 0x4072a1
add esi, edi
cmp byte [esp + 0x18], 0
mov dword [esp + 0x10], esi
jne 0x407305
mov eax, dword [esp + 0x14]
jmp 0x4071c8
push 0xf9
push str.WebSocket::recvData
push str._s_:_d
call fcn.00401070
add esp, 0xc
push str.Failed_recv_data_n
call fcn.00401070
add esp, 4
mov eax, 0xfffffffc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0043ffd8
mov esp, ebp
pop ebp
ret 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0043ffd8
mov esp, ebp
pop ebp
ret 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043ffd8
mov esp, ebp
pop ebp
ret 4
Function at 0x429540
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
pcmpeqb xmm5, xmm5
psllw xmm5, 8
mov eax, 0x80808080
movd xmm6, eax
pshufd xmm6, xmm6, 0
mov eax, 0x807f807f
movd xmm7, eax
pshufd xmm7, xmm7, 0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
sub eax, esi
sub edx, esi
sub edi, esi
movq xmm0, qword [esi]
punpcklbw xmm0, xmm0
pxor xmm0, xmm5
movq xmm1, qword [eax + esi]
movq xmm2, qword [edx + esi]
punpcklbw xmm1, xmm2
psubb xmm1, xmm6
pmaddubsw xmm0, xmm1
paddw xmm0, xmm7
psrlw xmm0, 8
packuswb xmm0, xmm0
movq qword [edi + esi], xmm0
lea esi, [esi + 8]
sub ecx, 8
jg 0x429581
pop edi
pop esi
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp loc.00401219

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 0x4150d1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00414f42

Function at 0x4154cb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407b40
mov eax, dword [0x46bd00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00412ee6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41550d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x415669
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c820
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x46d910]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004164c2
mov ecx, dword [esi*4 + 0x46d910]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x415662
cmp eax, dword [edi + ecx + 0x24]
jne 0x415662
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415662
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004164c2
add esp, 0x14
test edx, edx
jl 0x415662
jg 0x4155d8
test eax, eax
jb 0x415662
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x415662
jl 0x4155f2
cmp dword [ebp - 0x1008], eax
ja 0x415662
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x415610
test ebx, ebx
je 0x415649
cmp ecx, edi
jae 0x415649
mov al, byte [ecx]
cmp al, 0xd
jne 0x41562a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x415636
cmp byte [ecx + 1], 0xa
jne 0x415636
inc ecx
jmp 0x415636
movzx eax, al
movsx eax, byte [eax + 0x46bfd8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x415610
cmp edx, ebx
jne 0x415610
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x415667
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406da7
leave
ret
Function at 0x415960
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x46d910]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4159a0
cmp byte [ebx], 0xa
jne 0x4159a0
or byte [eax + edi + 0x28], 4
jmp 0x4159a5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x415aa3
mov al, byte [edx]
cmp al, 0x1a
je 0x415a85
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4159d4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4159f9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x415a03
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4159b6
jmp 0x415aa3
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415a80
cmp dword [ebp - 0xc], 0
je 0x415a80
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x46d910]
test byte [eax + edi + 0x28], 0x48
je 0x415a5a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x415a45
mov byte [esi], dl
jmp 0x415a56
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46d910]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x415aa3
cmp byte [ebp - 1], 0xa
jne 0x415a69
cmp esi, ebx
jne 0x415a69
mov byte [esi], 0xa
jmp 0x415aa2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004164e0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x415aa3
mov byte [esi], 0xd
jmp 0x415aa2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x46d910]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x415a9f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415aa3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x415aac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x46d910]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x415aef
cmp word [esi], dx
jne 0x415aef
or byte [edi + eax + 0x28], 4
jmp 0x415af4
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x415c47
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x415c27
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x415b36
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x415b6c
cmp eax, edx
jae 0x415b78
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x415b0e
jmp 0x415c47
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415c23
cmp dword [ebp - 0x14], 0
je 0x415c23
mov eax, dword [ebx*4 + 0x46d910]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x415bfb
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x415bc4
mov word [esi], cx
jmp 0x415bf7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x46d910]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x46d910]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x46d910]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x415c47
pop ebx
cmp word [ebp - 4], bx
jne 0x415c0c
cmp esi, dword [ebp + 0xc]
jne 0x415c0c
mov word [esi], bx
jmp 0x415c44
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004164e0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x415c47
push 0xd
jmp 0x415c40
mov ecx, dword [ebx*4 + 0x46d910]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x415c3e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415c47
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416d3e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x46bd00]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x416d89
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00416edd
test al, al
jne 0x416d83
sub edx, 2
cmp edx, edi
jne 0x416d69
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x416dab
lea eax, [edi + 2]
cmp edx, eax
je 0x416dab
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00416c8a
add esp, 0x10
jmp 0x416ea5
push esi
lea ecx, [ebp - 0x255]
call fcn.00416edd
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x416dee
push dword [ebp - 0x25c]
jmp 0x416d9b
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x416e2b
cmp word [ebp - 0x226], 0
je 0x416e4c
cmp word [ebp - 0x226], ax
jne 0x416e2b
cmp word [ebp - 0x224], 0
je 0x416e4c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00416c8a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x416e98
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x416e05
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x416e80
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x416ea5
push 0x416aba
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041a970
add esp, 0x10
jmp 0x416e75
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406da7
leave
ret

Function at 0x41c7e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c80d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c80d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10c9058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.010c91a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10c907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c906a
add dl, dl
jne 0x10c9089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c90dc
xor eax, eax
add dl, dl
jne 0x10c9096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c917d
add dl, dl
jne 0x10c90a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c90b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c90bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c90c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10c90d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10c9075
mov eax, 1
add dl, dl
jne 0x10c90ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c90f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c90e1
sub eax, ebx
mov ebx, 1
jne 0x10c9128
mov ecx, 1
add dl, dl
jne 0x10c910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10c9119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c9105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c9075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10c913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10c914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c9136
cmp eax, 0x7d00
jae 0x10c916d
cmp eax, 0x500
jb 0x10c9168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c9075
cmp eax, 0x7f
ja 0x10c9170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c9075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10c919e
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 0x10c9075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x576020
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x68c67b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00680d2a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x5760a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0067e61a
mov eax, dword [eax]
push 0xfddcf4
push eax
call fcn.0066d1a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00680fb5
test bl, bl
je 0x5760a2
push 0xfddcf4
lea ecx, [esp + 0xc]
call fcn.00681345
push 0xfddd00
lea ecx, [esp + 0xc]
call fcn.00681345
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x5760de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00680fb5
jmp 0x5761a9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x576162
lea edx, [esp + 0x7c]
push 0xfddcfc
push edx
call fcn.0066d1a4
add esp, 8
test eax, eax
je 0x576162
lea eax, [esp + 0x7c]
push 0xfddcf8
push eax
call fcn.0066d1a4
add esp, 8
test eax, eax
je 0x576162
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x5760f2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00680fb5
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x5769b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x576a12
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc