joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54c6cc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x54e168
sub eax, eax
test esi, esi
je 0x54c7a4
sub eax, 1
test ecx, ecx
je 0x54c7a2
test esi, 3
je 0x54c70a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x54c6ef
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x54c789
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x54c714
mov ecx, edx
test ecx, ecx
je 0x54c7a2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x54c78f
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x54c7ac
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0054c82f
jae 0x54c7ba
xor ecx, ecx
call fcn.0054c82f
jae 0x54c7e9
xor eax, eax
call fcn.0054c82f
jae 0x54c7f9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0054c82f
adc al, al
jae 0x54c7db
jne 0x54c825
stosb byte es:[edi], al
jmp 0x54c7bd
call fcn.0054c83b
sub ecx, ebx
jne 0x54c802
call fcn.0054c839
jmp 0x54c821
lodsb al, byte [esi]
shr eax, 1
je 0x54c84b
adc ecx, ecx
jmp 0x54c81e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.0054c839
cmp eax, 0x7d00
jae 0x54c81e
cmp ah, 5
jae 0x54c81f
cmp eax, 0x7f
ja 0x54c820
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x54c7bd
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x54d17c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x550000]
jne 0x54d186
repz ret
jmp fcn.0054d42d
Function at 0x40c6a1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
or ebx, 0xffffffff
push dword [ebp + 8]
call dword [0x406030]
push esi
push esi
push esi
push 2
push esi
mov edi, eax
push dword [ebp + 8]
call dword [0x40604c]
push edi
push esi
push esi
push 4
push eax
mov dword [ebp - 4], eax
call dword [0x406048]
cmp edi, esi
mov ecx, eax
jbe 0x40c6ff
mov dword [ebp + 8], esi
movzx esi, byte [ecx]
mov edx, ebx
shr edx, 0x18
xor edx, esi
shl ebx, 8
mov edx, dword [edx*4 + 0x408ea0]
xor ebx, edx
inc ecx
inc dword [ebp + 8]
cmp dword [ebp + 8], edi
jb 0x40c6e0
push eax
call dword [0x40608c]
push dword [ebp - 4]
call dword [fcn.00406044]
mov eax, ebx
pop edi
pop esi
pop ebx
not eax
leave
ret

Function at 0x40dc5c
Capabilities:
Hash data using crc32b

Disassembly:
xor ecx, ecx
mov eax, ecx
push 8
shl eax, 0x18
pop edx
test eax, eax
jns 0x40dc73
add eax, eax
xor eax, 0x4c11db7
jmp 0x40dc75
add eax, eax
dec edx
jne 0x40dc66
mov dword [ecx*4 + 0x408ea0], eax
inc ecx
cmp ecx, 0x100
jl 0x40dc5e
ret
Function at 0x10059b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov dword [ebp - 4], ecx
jne 0x10059cb
push 0x80004005
call fcn.010055b0
mov ebx, dword [fcn.01001028]
xor edi, edi
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x10059d3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1006150
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x101a604]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea edx, [ebp - 0x210]
push edx
push 0x2001f
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi]
push 0
push ecx
push eax
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x210], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x208]
mov esi, eax
test esi, esi
jne 0x10061cb
test ecx, ecx
je 0x10061b9
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [ebp - 0x210]
mov esi, eax
mov dword [ebp - 0x208], ecx
je 0x10061d9
test ecx, ecx
je 0x10062a0
push ecx
jmp 0x100629a
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push 0
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x204]
push eax
push 0
push ecx
mov dword [ebp - 0x20c], 0x100
call esi
test eax, eax
jne 0x1006262
lea ecx, [ecx]
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x208]
call fcn.01006150
mov edi, eax
test edi, edi
jne 0x10062b4
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x208]
push eax
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x204]
push ecx
push edi
push edx
mov dword [ebp - 0x20c], 0x100
call esi
test eax, eax
je 0x1006210
mov edi, dword [ebp - 0x214]
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x100627d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x208], 0
mov eax, dword [ebp - 0x218]
mov ecx, dword [edi]
push eax
push ecx
call dword [entry0]
mov esi, eax
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x10062a0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100c1f6
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x10062c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0100c1f6
mov esp, ebp
pop ebp
ret 4
Function at 0x10085b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101743b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x101a604]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], 0x10017c4
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov byte [esi + 0x2c], al
mov dword [esi + 0x30], eax
mov dword [esi + 0xc], 0x100177c
mov dword [esi + 0x10], ecx
mov ecx, dword [0x101b6f0]
mov edx, dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100a8d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100a942
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x100a911
cmp eax, 2
jne 0x100a92c
test esi, esi
mov eax, dword [ebp + 0x10]
je 0x100a93c
test eax, eax
je 0x100a937
test al, 1
jne 0x100a92c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x100a93c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, esi
push edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401014
sub eax, edx
sar eax, 1
add eax, 1
push eax
push esi
call dword [sym.imp.MSVCR80.dll__wcslwr_s]
add esp, 8
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x40104c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor esi, esi
cmp dword [esp + 0x10], esi
mov dword [esp + 0x14], 0
jle 0x401087
mov ebx, dword [sym.imp.MSVCR80.dll_wcsstr]
mov eax, dword [edi + esi*4]
push 0x402144
push eax
call ebx
add esp, 8
cmp eax, dword [edi + esi*4]
jne 0x40107e
call fcn.004010a0
mov dword [esp + 0x14], eax
add esi, 1
cmp esi, dword [esp + 0x10]
jl 0x401062
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4010a0
Capabilities:
Check if file exists
Get file version info

Disassembly:
sub esp, 0x27c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x7c]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4010d7
or eax, 0xffffffff
jmp 0x401227
lea ecx, [esp + 0x78]
push 0x5c
push ecx
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 8
cmp eax, edi
je 0x4010cf
mov ebx, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x402158
lea edx, [esp + 0x7c]
push 0x104
push edx
mov word [eax + 2], di
call ebx
add esp, 0xc
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401225
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x401225
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x1c], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jbe 0x401225
push esi
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x18]
add esp, 4
mov ebp, eax
push ebp
push esi
push ecx
lea edx, [esp + 0x84]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40121c
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x40216c
push ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40121c
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x40121c
cmp word [eax + 0xa], 2
jb 0x40121c
push 0x40
lea edx, [esp + 0x38]
push edi
push edx
call sub.MSVCR80.dll_memset
xor eax, eax
push 0x402170
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x88]
push 0x104
push eax
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x38], edi
call ebx
add esp, 0x18
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0x98]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_erms_of_use_at_https:__www.verisign.com_rpa__c_101.0_U_VeriSign_Class_3_Code_Signing_2010_CA012042300]
test eax, eax
je 0x40121c
mov ecx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_https:__www.verisign.com_rpa__c_101.0_U_VeriSign_Class_3_Code_Signing_2010_CA0120423000000Z14062223]
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401258
add esp, 0x27c
ret
Function at 0x10001810
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push str.LOLBox_Fold
push 1
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1000185c
push 6
call fcn.10009b6a
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
push 0
push 0
push 0
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10001895
push 6
call fcn.10009b6a
add esp, 4
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x90c
call fcn.1000a430
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x100018cb
push ebx
call fcn.10009b64
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x100018f1
push 6
call fcn.10009b6a
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10001913
push 6
call fcn.10009b6a
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1000192f
push eax
mov ebx, eax
call fcn.10001000
inc eax
push eax
call fcn.10009b5e
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10001934
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10001945
push ebx
call fcn.10009b64
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x1000194a
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x10
call fcn.10009b5e
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov eax, 3
mov dword [ebx], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0
mov ebx, 0x210
call fcn.1000a480
add esp, 4
push 0
push 0
push 0
push 0x80000003
push edx
push eax
push 0x10031
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x9a8
call fcn.1000ab80
add esp, 0x28
push 0
push 0
push 0
push 0x10031
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x990
call fcn.1000aaa0
add esp, 0x1c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10001a09
push ebx
call fcn.10009b64
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
je 0x10001ad4
push 0
push 0
push 0
push 0x80000301
push 0
push dword [0x10016d00]
push 2
mov ebx, 0x2b4
call fcn.1000ad00
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10001a6f
push 0x80000301
push 0
push dword [0x10016d00]
push 1
mov ebx, 0x290
call fcn.1000ae60
add esp, 0x10
push 0x100163b0
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x100163b3
push dword [ebp - 8]
mov ecx, 4
call fcn.1000106b
add esp, 0x10
mov dword [ebp - 0x10], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x10001aa4
mov eax, 0x1001623d
push eax
push 0x80000301
push 0
push dword [0x10016d00]
push 2
mov ebx, 0x2a0
call fcn.1000aec0
add esp, 0x1c
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10001ad4
push ebx
call fcn.10009b64
add esp, 4
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10001af8
push 6
call fcn.10009b6a
add esp, 4
mov ebx, dword [ebp - 4]
push ebx
push 0x10031
push 0
push ebx
push 1
mov ebx, 0x984
call fcn.1000aa80
add esp, 0x10
call fcn.10009b64
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10001b2b
push ebx
call fcn.10009b64
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x10002d22
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
push 1
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10002d6e
push 6
call fcn.10009b6a
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
push 0
push 0
push 0
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10002da7
push 6
call fcn.10009b6a
add esp, 4
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x90c
call fcn.1000a430
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10002ddd
push ebx
call fcn.10009b64
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10002e03
push 6
call fcn.10009b6a
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10002e25
push 6
call fcn.10009b6a
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10002e41
push eax
mov ebx, eax
call fcn.10001000
inc eax
push eax
call fcn.10009b5e
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10002e46
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10002e57
push ebx
call fcn.10009b64
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10005b2d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x10005b74
push 6
call fcn.10009b6a
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x24], 0
je 0x10005b8e
push 0xffffffff
push dword [ebp - 4]
call fcn.10005bad
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
cmp dword [ebp - 4], 0
mov eax, 0
setne al
jmp 0x10005ba7
mov esp, ebp
pop ebp
ret 0x24
Function at 0x10005bad
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esp
push 0xc
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10005bfb
push 6
call fcn.10009b6a
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], esp
push 4
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10005c29
push 6
call fcn.10009b6a
add esp, 4
fild dword [ebp - 4]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x10016725]
fstp qword [ebp - 0x20]
mov dword [ebp - 0x24], esp
push 4
lea eax, [ebp + 0xc]
push eax
fld qword [ebp - 0x20]
call fcn.10002e5e
push eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x10005c6c
push 6
call fcn.10009b6a
add esp, 4
mov dword [ebp - 0x14], esp
mov eax, 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
push 0x10005e2f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10005cae
push 6
call fcn.10009b6a
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x10005d2b
mov dword [ebp - 0x14], esp
push 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10005ce2
push 6
call fcn.10009b6a
add esp, 4
mov dword [ebp - 0xc], eax
push 0
mov ebx, 0x350
call fcn.1000b730
add esp, 4
cmp dword [ebp - 0xc], 0
jne 0x10005cbb
mov dword [ebp - 0x14], esp
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10005d23
push 6
call fcn.10009b6a
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x10005d57
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10005d4d
push 6
call fcn.10009b6a
add esp, 4
mov eax, 0xffffffff
jmp 0x10005d57
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10009ff9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.10009ce0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x1000ad00
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x1000ad16
mov eax, 1
pop esi
add esp, 0xc
ret
push esi
call fcn.1000bee0
add esp, 4
test eax, eax
jne 0x1000ad2d
mov eax, 1
pop esi
add esp, 0xc
ret
mov eax, dword [esi]
push ebx
push ebp
cmp eax, 1
push edi
mov dword [esp + 0x10], 1
jne 0x1000addd
mov esi, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
mov ebx, eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x1000ae45
cmp edi, ebx
jae 0x1000ae45
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x1000ae45
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1000ae45
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x2c]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push edi
push esi
mov ebx, eax
call ebp
test ebx, ebx
je 0x1000ae45
mov al, byte [esp + 0x24]
test al, al
je 0x1000ae3d
cmp al, 0x1a
jne 0x1000ae45
pop edi
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
cmp eax, 2
jne 0x1000ae45
mov esi, dword [esi + 4]
mov ecx, esi
call fcn.1000bed0
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov edi, eax
cmp edi, ebx
jae 0x1000ae45
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x1000ae45
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1000ae45
mov edx, dword [esi]
lea eax, [esp + 0x24]
push 1
push eax
mov ecx, esi
call dword [edx + 0x20]
mov edx, dword [esi]
push 0
push edi
mov ecx, esi
mov ebp, eax
call dword [edx + 0x18]
test ebp, ebp
je 0x1000ae45
mov al, byte [esp + 0x24]
test al, al
je 0x1000ae3d
cmp al, 0x1a
jne 0x1000ae45
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret