joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405cb6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
push str.SOFTWAREReflexiveArcade
lea eax, [ebp - 0x210]
push 0x42f6b8
push eax
call fcn.004177f3
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea eax, [ebp - 8]
mov edi, 0xf003f
push eax
xor ebx, ebx
push edi
lea eax, [ebp - 0x210]
push ebx
push eax
push 0x80000001
call esi
test eax, eax
jne 0x405d2b
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.DoTimeBeeping
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405d74
cmp dword [ebp - 4], ebx
jmp 0x405d6c
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x210]
push ebx
push eax
push 0x80000002
call esi
test eax, eax
jne 0x405d74
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.DoTimeBeeping
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405d74
cmp dword [ebp - 0xc], ebx
setne al
mov byte [0x437bb0], al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405f88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push ebx
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405fce
push dword [ebp + 0x18]
lea eax, [ebp + 8]
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405fc5
mov bl, 1
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ebp
ret

Function at 0x406150
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x800
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp dword [esi + 0x64], ebx
jne 0x40619d
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x64], eax
jne 0x40619d
call ebp
push eax
lea eax, [esp + 0x14]
push str.GameWrapper:_Create_Pause_Event_Failed__last_error__x_n
push eax
call fcn.004177f3
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esi + 0x68], ebx
jne 0x4061d0
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x68], eax
jne 0x4061d0
call ebp
push eax
lea eax, [esp + 0x14]
push str.GameWrapper:_Create_Timeout_Event_Failed__last_error__x_n
push eax
call fcn.004177f3
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x814]
mov eax, dword [esi + 0x64]
pop edi
mov dword [ecx], eax
mov eax, dword [esi + 0x68]
mov ecx, dword [esp + 0x814]
pop esi
pop ebp
pop ebx
mov dword [ecx], eax
add esp, 0x800
ret 8
Function at 0x406218
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x406287
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x224
push eax
push edi
call sub.KERNEL32.dll_Module32First
jmp 0x40627c
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call fcn.00423820
pop ecx
test eax, eax
pop ecx
je 0x40628e
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x224
push eax
push edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x406250
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
leave
ret 4
mov al, 1
jmp 0x406289

Function at 0x406292
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
call fcn.004083f0
test al, al
je 0x4062c5
lea eax, [esp]
push 0x400
push eax
call fcn.00408940
pop ecx
test al, al
pop ecx
jne 0x4062c5
push str.No_unlock_code_when_purchased___bad_error_for_you
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, 1
jmp 0x4062c7
xor al, al
add esp, 0x400
ret

Function at 0x4069b9
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x406a24
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4069f6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406a24
push ebx
call fcn.004184d2
cmp eax, esi
pop ecx
mov dword [ebp + 8], eax
je 0x4069ed
lea ecx, [ebp - 4]
push esi
push ecx
push ebx
push eax
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x406a28
xor al, al
jmp 0x406a43
push ebx
push dword [ebp + 8]
call fcn.00406858
mov ecx, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ecx], eax
call fcn.004183e9
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408e15
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x408e43
push esi
call fcn.0040bcfd
cmp dword [esi + 0x40], 0
pop ecx
je 0x408e3c
xor eax, eax
mov dword [esi + 0x10], 0xcf
inc eax
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x408eb5
mov eax, dword [esi + 0x1b0]
cmp dword [eax + 0x10], 0
je 0x408ea7
mov eax, dword [esi + 8]
test eax, eax
je 0x408e64
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x1b0]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x408ea3
cmp eax, 2
je 0x408ea7
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x408e59
cmp eax, 3
je 0x408e88
cmp eax, 1
jne 0x408e59
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x408e59
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x408e59
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
mov dword [esi + 0x98], eax
jmp 0x408ed3
cmp eax, 0xcc
je 0x408ed3
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
push esi
call fcn.00408edc
pop ecx
pop esi
ret
Function at 0x41331c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp byte [esi], 0
jne 0x413385
push dword [esi + 8]
lea ecx, [ebp - 8]
call fcn.00414db6
mov ecx, esi
call fcn.00412cc0
test al, al
jne 0x41337d
lea ecx, [ebp - 4]
call fcn.00414d97
lea ecx, [ebp - 8]
call fcn.004151c9
push eax
lea eax, [ebp - 4]
push str.There_is_something_wrong_with__s.__It_may_be_an_empty_or_damaged_archive.
push eax
call fcn.00415134
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.004151c9
push eax
push str.FATAL_ERROR_IN_ZIP
call fcn.00414bc2
pop ecx
pop ecx
push 0xffffffffffffffff
call fcn.00418fe4
lea ecx, [ebp - 8]
call fcn.00414e71
pop esi
leave
ret

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

Disassembly:
mov edx, dword [esp + 0xc]
test edx, edx
mov eax, dword [esp + 4]
je 0x4137ff
mov ecx, dword [esp + 8]
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
mov esi, dword [esi*4 + 0x430fb8]
shr eax, 8
xor eax, esi
inc ecx
dec edx
jne 0x4137e5
pop edi
pop esi
ret

Function at 0x4156dd
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00417cd0
lea eax, [ebp - 0x104]
push eax
call fcn.0041575f
add esp, 0xc
push 0
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
jne 0x41575a
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.00417dc0
test eax, eax
pop ecx
pop ecx
jne 0x415742
lea eax, [ebp - 0x104]
push 0x2f
push eax
call fcn.00417dc0
test eax, eax
pop ecx
pop ecx
je 0x415756
and byte [eax], 0
push 0
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
je 0x41571a
jmp 0x4156ed
xor al, al
jmp 0x41575c
mov al, 1
pop esi
leave
ret

Function at 0x415825
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x415837
xor al, al
ret
and eax, 1
dec al
neg al
sbb eax, eax
inc eax
ret

Function at 0x415842
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x415869
and eax, 0xfffffffe
cmp byte [esp + 8], 0
je 0x41585e
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x41d746
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x434a30
cmp edx, dword [eax]
je 0x41d768
add eax, 8
inc ecx
cmp eax, str.__t__r_
jl 0x41d759
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x434a30]
jne 0x41d896
mov eax, dword [0x439ec8]
cmp eax, 1
je 0x41d870
test eax, eax
jne 0x41d799
cmp dword [0x432204], 1
je 0x41d870
cmp edx, 0xfc
je 0x41d896
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41d7d0
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00417cd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00417c50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41d813
lea eax, [ebp - 0x1a4]
push eax
call fcn.00417c50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42f5b4
push edi
call fcn.00417e70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00417cd0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00417ce0
lea eax, [ebp - 0xa0]
push 0x42b9d4
push eax
call fcn.00417ce0
push dword [esi + 0x434a34]
lea eax, [ebp - 0xa0]
push eax
call fcn.00417ce0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041db1e
add esp, 0x2c
pop edi
jmp 0x41d896
lea eax, [ebp + 8]
lea esi, [esi + 0x434a34]
push 0
push eax
push dword [esi]
call fcn.00417c50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x48da22
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d7a
mov eax, dword [0x531e00]
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.00405d80
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x48da64
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x48dbc0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405eca
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 + 0x5356f8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403247
mov ecx, dword [esi*4 + 0x5356f8]
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 0x48dbb9
cmp eax, dword [edi + ecx + 0x24]
jne 0x48dbb9
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 0x48dbb9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403247
add esp, 0x14
test edx, edx
jl 0x48dbb9
jg 0x48db2f
test eax, eax
jb 0x48dbb9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x48dbb9
jl 0x48db49
cmp dword [ebp - 0x1008], eax
ja 0x48dbb9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x48db67
test ebx, ebx
je 0x48dba0
cmp ecx, edi
jae 0x48dba0
mov al, byte [ecx]
cmp al, 0xd
jne 0x48db81
lea eax, [edi - 1]
cmp ecx, eax
jae 0x48db8d
cmp byte [ecx + 1], 0xa
jne 0x48db8d
inc ecx
jmp 0x48db8d
movzx eax, al
movsx eax, byte [eax + 0x532150]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x48db67
cmp edx, ebx
jne 0x48db67
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x48dbbe
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403021
leave
ret
Function at 0x48e2ff
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 + 0x5356f8]
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 0x48e33f
cmp byte [ebx], 0xa
jne 0x48e33f
or byte [eax + edi + 0x28], 4
jmp 0x48e344
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x48e442
mov al, byte [edx]
cmp al, 0x1a
je 0x48e424
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x48e373
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x48e398
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x48e3a2
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 0x48e355
jmp 0x48e442
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 0x48e41f
cmp dword [ebp - 0xc], 0
je 0x48e41f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5356f8]
test byte [eax + edi + 0x28], 0x48
je 0x48e3f9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x48e3e4
mov byte [esi], dl
jmp 0x48e3f5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5356f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x48e442
cmp byte [ebp - 1], 0xa
jne 0x48e408
cmp esi, ebx
jne 0x48e408
mov byte [esi], 0xa
jmp 0x48e441
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040191a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48e442
mov byte [esi], 0xd
jmp 0x48e441
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5356f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48e43e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48e442
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48e49e
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 + 0x5356f8]
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 0x48e4e1
cmp word [esi], dx
jne 0x48e4e1
or byte [edi + eax + 0x28], 4
jmp 0x48e4e6
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 0x48e639
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 0x48e619
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x48e528
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x48e55e
cmp eax, edx
jae 0x48e56a
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 0x48e500
jmp 0x48e639
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 0x48e615
cmp dword [ebp - 0x14], 0
je 0x48e615
mov eax, dword [ebx*4 + 0x5356f8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x48e5ed
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x48e5b6
mov word [esi], cx
jmp 0x48e5e9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5356f8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x5356f8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5356f8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x48e639
pop ebx
cmp word [ebp - 4], bx
jne 0x48e5fe
cmp esi, dword [ebp + 0xc]
jne 0x48e5fe
mov word [esi], bx
jmp 0x48e636
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040191a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x48e639
push 0xd
jmp 0x48e632
mov ecx, dword [ebx*4 + 0x5356f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48e630
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48e639
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 0x49602f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x531e00]
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 0x49607a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004964f1
test al, al
jne 0x496074
sub edx, 2
cmp edx, edi
jne 0x49605a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49609c
lea eax, [edi + 2]
cmp edx, eax
je 0x49609c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00495c28
add esp, 0x10
jmp 0x496196
push esi
lea ecx, [ebp - 0x255]
call fcn.004964f1
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 0x4960df
push dword [ebp - 0x25c]
jmp 0x49608c
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 0x49611c
cmp word [ebp - 0x226], 0
je 0x49613d
cmp word [ebp - 0x226], ax
jne 0x49611c
cmp word [ebp - 0x224], 0
je 0x49613d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00495c28
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x496189
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4960f6
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x496171
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x496196
push 0x495610
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004054a7
add esp, 0x10
jmp 0x496166
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.00403021
leave
ret
Function at 0x10018c71
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x10018c80
pop dword [ebp - 0x44]
mov eax, 0x10018c80
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x42560
push 0
mov eax, 0x27f7e98a
add eax, 0xe80b7752
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x5a0c042e
sub ecx, 0x5a0bb481
mov edx, eax
mov esi, 0xc843533b
sub esi, 0xb83f953b
add esi, dword [ebp - 0x44]
mov ebx, 0xefa52b9e
sub ebx, 0x89e74bd3
add dword [ebp - 0x28], edx
mov edi, dword [esi]
sub dword [ebp - 0x30], 0x24c23c1d
sub edi, ebx
mov dword [ebp - 0x38], 0x4020ab21
mov dword [edx], edi
xor dword [ebp - 0xc], 0xd375dbd8
add edx, 0x72620c8
add edx, 0xf8d9df3c
add esi, 4
loop 0x10018cda
add eax, 0xd5f7c67d
add eax, 0x2a096b0a
xor ebx, ebx
add ebx, eax
add eax, 0xe0d87610
sub eax, 0xe0d8760b
mov ecx, 0x7d8764ec
sub ecx, 0x6d8764ec
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.10018c71
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.10018c71
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret