joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499377
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x499397
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0049851a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4993ba
test byte [esp + 8], 2
je 0x4993ba
call fcn.0049858d
mov dword [eax], 0xd
call fcn.00498596
mov dword [eax], 5
jmp 0x499393
xor eax, eax
ret

Function at 0x4a99be
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a99f6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a7a48
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a7a20
jmp 0x4a9a02
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ab0b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ab0f2
call fcn.004b0b60
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ab0f2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ab0e9
xor eax, eax
jmp 0x4ab0fa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ab100
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b1090
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b10be
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b10dc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b0ff6
jmp 0x4b10dc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b10dc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b0ff6
test edi, edi
mov eax, edi
jne 0x4b10c6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x15840b95
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x66dc5ca7
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0xb54058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00b541a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb5407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb5406a
add dl, dl
jne 0xb54089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb540dc
xor eax, eax
add dl, dl
jne 0xb54096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb5417d
add dl, dl
jne 0xb540a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb540b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb540bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb540c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb540d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb54075
mov eax, 1
add dl, dl
jne 0xb540ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb540f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb540e1
sub eax, ebx
mov ebx, 1
jne 0xb54128
mov ecx, 1
add dl, dl
jne 0xb5410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb54119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb54105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb54075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb5413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb5414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb54136
cmp eax, 0x7d00
jae 0xb5416d
cmp eax, 0x500
jb 0xb54168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb54075
cmp eax, 0x7f
ja 0xb54170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb54075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb5419e
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 0xb54075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x403e59
pop dword [ebp - 0x30]
mov eax, 0x6b3e335e
sub eax, 0x6afdf505
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x9b767a94
add dword [ebp - 0x40], 0xb2dbcab7
mov dword [ebp - 0x3c], 0xeb0388c1
add dword [ebp - 0x3c], 0x472fc384
mov dword [ebp - 0x38], 0xee59b19
sub dword [ebp - 0x38], 0xc29956eb
mov dword [ebp - 0x34], 0xab1cb0c4
sub dword [ebp - 0x34], 0xab1cb0c4
lea eax, [ebp - 0x40]
push eax
mov eax, 0x4ebf45f
sub eax, 0x4ab73d3
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xd84a9847
sub dword [ebp - 0x40], 0x63d82ef1
mov dword [ebp - 0x3c], 0x41ea4ca4
add dword [ebp - 0x3c], 0xff8214d1
mov dword [ebp - 0x38], 0xca26d4dd
sub dword [ebp - 0x38], 0x66b76871
mov dword [ebp - 0x34], 0x373b321a
sub dword [ebp - 0x34], 0x373b321a
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xbbe93c6
sub eax, 0xb7e12f2
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3c111
push 0
call eax
mov ecx, 0x59b5883b
add ecx, 0xa64ad50c
mov esi, eax
mov edx, 0x702c4dac
add edx, 0x9014c254
add edx, dword [ebp - 0x30]
mov edi, 0x275dfa15
add edi, 0xeb693a82
xor dword [ebp - 0x18], esi
mov ebx, dword [edx]
xor dword [ebp - 0x20], 0x68411ec7
add ebx, edi
add dword [ebp - 0x20], 0x62eb9464
mov dword [esi], ebx
sub dword [ebp - 0x20], 0xf1164bd1
add esi, 0xb76b3adf
sub esi, 0xb76b3adb
add edx, 0x66dc3325
sub edx, 0x66dc3321
loop 0x403f7b
add eax, 0x5db39a98
sub eax, 0x5db232a9
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x22b8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.022b81a8
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 0x22b807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x22b806a
add dl, dl
jne 0x22b8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x22b80dc
xor eax, eax
add dl, dl
jne 0x22b8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x22b817d
add dl, dl
jne 0x22b80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x22b80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x22b80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x22b80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x22b80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x22b8075
mov eax, 1
add dl, dl
jne 0x22b80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x22b80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x22b80e1
sub eax, ebx
mov ebx, 1
jne 0x22b8128
mov ecx, 1
add dl, dl
jne 0x22b810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x22b8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x22b8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x22b8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x22b813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x22b814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x22b8136
cmp eax, 0x7d00
jae 0x22b816d
cmp eax, 0x500
jb 0x22b8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x22b8075
cmp eax, 0x7f
ja 0x22b8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x22b8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x22b819e
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 0x22b8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x408e90
Capabilities:
Create thread

Disassembly:
sub esp, 0x64
mov eax, dword [0x481180]
xor eax, esp
mov dword [esp + 0x60], eax
push esi
push edi
call fcn.004069b0
push 0
push 0
push 0
push 0x408390
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xa
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
push str.Black_John
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0
movups xmmword [esp + 0x28], xmm0
call fcn.004015e0
push 0xb
xorps xmm0, xmm0
mov dword [esp + 0x4c], 0
push str.Agent_Smith
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], 0
movups xmmword [esp + 0x40], xmm0
call fcn.004015e0
push 7
xorps xmm0, xmm0
mov dword [esp + 0x64], 0
push str.Alister
lea ecx, [esp + 0x58]
mov dword [esp + 0x6c], 0
movups xmmword [esp + 0x58], xmm0
call fcn.004015e0
lea eax, [esp + 8]
mov dword [esp + 0xc], 0
push eax
lea edx, [esp + 0x24]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], ecx
push eax
sub ecx, edx
mov dword [esp + 0x1c], 0
mov eax, 0x2aaaaaab
imul ecx
lea ecx, [esp + 0x14]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.00401680
mov edi, 3
lea esi, [esp + 0x68]
nop dword [eax]
mov ecx, dword [esi - 4]
lea esi, [esi - 0x18]
dec edi
cmp ecx, 7
jbe 0x408fdd
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x408fd3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4090b6
mov eax, edx
push ecx
push eax
call fcn.0040b534
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
test edi, edi
jne 0x408fa0
mov esi, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
cmp esi, ebp
je 0x40908d
push ebx
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x409010
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
push 0x482708
call fcn.00401e80
mov ebx, eax
add esp, 0xc
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [esp + 0x24], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [esp + 0x20]
push eax
call fcn.00402610
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
call dword [edx + 0x30]
movzx eax, ax
mov dword [esp + 0x10], eax
test edi, edi
je 0x409072
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x40906e
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [esp + 0x10]
push eax
mov ecx, ebx
call fcn.00407df0
mov ecx, ebx
call fcn.00406860
add esi, 0x18
cmp esi, ebp
jne 0x409006
pop ebx
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetNumberOfEventLogRecords]
lea ecx, [esp + 0x10]
call fcn.00404e30
mov ecx, dword [esp + 0x6c]
xor eax, eax
pop ebp
pop edi
pop esi
xor ecx, esp
call fcn.0040b547
add esp, 0x64
ret 0x10
call fcn.0041005f
int3
Function at 0x41e5a8
Capabilities:
Read file on windows

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

Function at 0x41e5b3
Capabilities:
Read file on windows

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

Function at 0x41e9ad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040c2f0
mov eax, dword [0x481180]
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.0041d2ad
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41e9ef
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41eb4b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042b570
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 + 0x483150]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041fb7d
mov ecx, dword [esi*4 + 0x483150]
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 0x41eb44
cmp eax, dword [edi + ecx + 0x24]
jne 0x41eb44
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 0x41eb44
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041fb7d
add esp, 0x14
test edx, edx
jl 0x41eb44
jg 0x41eaba
test eax, eax
jb 0x41eb44
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41eb44
jl 0x41ead4
cmp dword [ebp - 0x1008], eax
ja 0x41eb44
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41eaf2
test ebx, ebx
je 0x41eb2b
cmp ecx, edi
jae 0x41eb2b
mov al, byte [ecx]
cmp al, 0xd
jne 0x41eb0c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41eb18
cmp byte [ecx + 1], 0xa
jne 0x41eb18
inc ecx
jmp 0x41eb18
movzx eax, al
movsx eax, byte [eax + 0x481440]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41eaf2
cmp edx, ebx
jne 0x41eaf2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41eb49
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040b547
leave
ret
Function at 0x41f01b
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 + 0x483150]
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 0x41f05b
cmp byte [ebx], 0xa
jne 0x41f05b
or byte [eax + edi + 0x28], 4
jmp 0x41f060
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41f15e
mov al, byte [edx]
cmp al, 0x1a
je 0x41f140
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41f08f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41f0b4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41f0be
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 0x41f071
jmp 0x41f15e
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 0x41f13b
cmp dword [ebp - 0xc], 0
je 0x41f13b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x483150]
test byte [eax + edi + 0x28], 0x48
je 0x41f115
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41f100
mov byte [esi], dl
jmp 0x41f111
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x483150]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41f15e
cmp byte [ebp - 1], 0xa
jne 0x41f124
cmp esi, ebx
jne 0x41f124
mov byte [esi], 0xa
jmp 0x41f15d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041fb9b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41f15e
mov byte [esi], 0xd
jmp 0x41f15d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x483150]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f15a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f15e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41f167
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 + 0x483150]
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 0x41f1aa
cmp word [esi], dx
jne 0x41f1aa
or byte [edi + eax + 0x28], 4
jmp 0x41f1af
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 0x41f302
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 0x41f2e2
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41f1f1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41f227
cmp eax, edx
jae 0x41f233
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 0x41f1c9
jmp 0x41f302
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 0x41f2de
cmp dword [ebp - 0x14], 0
je 0x41f2de
mov eax, dword [ebx*4 + 0x483150]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41f2b6
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41f27f
mov word [esi], cx
jmp 0x41f2b2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x483150]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x483150]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x483150]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f302
pop ebx
cmp word [ebp - 4], bx
jne 0x41f2c7
cmp esi, dword [ebp + 0xc]
jne 0x41f2c7
mov word [esi], bx
jmp 0x41f2ff
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041fb9b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f302
push 0xd
jmp 0x41f2fb
mov ecx, dword [ebx*4 + 0x483150]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f2f9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f302
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 0x4229d7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x481180]
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 0x422a22
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00422b76
test al, al
jne 0x422a1c
sub edx, 2
cmp edx, edi
jne 0x422a02
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x422a44
lea eax, [edi + 2]
cmp edx, eax
je 0x422a44
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00422923
add esp, 0x10
jmp 0x422b3e
push esi
lea ecx, [ebp - 0x255]
call fcn.00422b76
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 0x422a87
push dword [ebp - 0x25c]
jmp 0x422a34
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 0x422ac4
cmp word [ebp - 0x226], 0
je 0x422ae5
cmp word [ebp - 0x226], ax
jne 0x422ac4
cmp word [ebp - 0x224], 0
je 0x422ae5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00422923
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x422b31
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x422a9e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x422b19
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x422b3e
push 0x422753
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004298d0
add esp, 0x10
jmp 0x422b0e
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.0040b547
leave
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40c470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40c47f
pop dword [ebp - 0x10]
mov eax, 0xf130625c
sub eax, 0xf0ef9ddd
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x87047d28
add dword [ebp - 0x20], 0xc74dc823
mov dword [ebp - 0x1c], 0x91c4b43c
add dword [ebp - 0x1c], 0xa06e9809
mov dword [ebp - 0x18], 0x3b9b1ed4
sub dword [ebp - 0x18], 0xef4edaa6
mov dword [ebp - 0x14], 0xef3738f6
sub dword [ebp - 0x14], 0xef3738f6
lea eax, [ebp - 0x20]
push eax
mov eax, 0xab90be8a
sub eax, 0xab4e8e16
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x5d6938bf
sub dword [ebp - 0x20], 0xe8f6cf69
mov dword [ebp - 0x1c], 0xe0b4a2cd
add dword [ebp - 0x1c], 0x60b7bea8
mov dword [ebp - 0x18], 0x73371f69
sub dword [ebp - 0x18], 0xfc7b2fd
mov dword [ebp - 0x14], 0xc62b9000
sub dword [ebp - 0x14], 0xc62b9000
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3c4e7
push 0
call eax
mov ecx, 0x97a8bc00
add ecx, 0x6857867d
mov ebx, eax
mov edi, 0x434400
add edi, dword [ebp - 0x10]
mov edx, 0x97349635
sub edx, 0x1e690513
xor dword [ebp - 8], 0x47c204a4
mov esi, dword [edi]
xor dword [ebp - 8], 0x87b89907
sub esi, edx
add dword [ebp - 0xc], 0xf2f4b9d5
mov dword [ebx], esi
xor dword [ebp - 4], edx
add ebx, 0xb02db1d
sub ebx, 0xb02db19
add edi, 0xfd9e3fd7
add edi, 0x261c02d
loop 0x40c596
add eax, 0xfcc7
mov ebx, eax
add eax, 5
mov ecx, 0x2e32c1e3
sub ecx, 0x2df2c1e3
add ecx, dword [ebp - 0x10]
call ebx
leave
ret