joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41162a
Capabilities:
Terminate process

Disassembly:
push eax
push edx
push esi
mov ebx, dword [ebp - 0x84]
sub ebx, 0xa
mov esi, dword [ebx]
sub ebx, 4
shr esi, 1
jb 0x411657
je 0x411653
shr esi, 1
jae 0x411678
shl esi, 2
mov esi, dword [ebp + esi]
call fcn.0040edbd
jmp 0x411636
pop esi
pop edx
pop eax
ret
shr esi, 1
jb 0x411689
push ebx
shl esi, 2
lea ebx, [ebp + esi]
mov eax, 1
call fcn.0040b0e9
pop ebx
jae 0x411636
pop esi
pop edx
pop eax
jmp fcn.0040a97c
shl esi, 2
mov ecx, dword [ebp + esi]
jecxz 0x411636
push ecx
mov ecx, dword [ecx]
call dword [ecx + 8]
jmp 0x411636
lea ecx, [ebp + esi*4]
push ecx
call dword [sym.imp.OLEAUT32.DLL_VariantClear]
jmp 0x411636

Function at 0x411e27
Capabilities:
Terminate process

Disassembly:
mov edx, eax
call fcn.0040f54d
jb 0x411e58
mov ebx, eax
cmp dword [ebx + 4], 1
jne 0x411e58
xor ecx, ecx
xchg dword [ebx + 0x10], ecx
jecxz 0x411e46
push ecx
call dword [sym.imp.GDI32.DLL_DeleteObject]
xor ecx, ecx
xchg dword [ebx + 0x14], ecx
jecxz 0x411e54
push ecx
call dword [sym.imp.GDI32.DLL_DeleteObject]
dec dword [ebx + 4]
ret
jmp 0x40a95e

Function at 0x411e5d
Capabilities:
Terminate process

Disassembly:
mov edx, 5
jmp fcn.0040a971
push esi
push edi
mov edi, dword [ebp - 0x88]
mov edi, dword [ebp + edi - 0x6c]
call fcn.0040edf6
push ebp
mov ebp, esp
cmp edx, 0x1f
jb 0x411e7b
mov edx, 0x1f
push edx
push edi
xor eax, eax
mov ecx, 0xf
push eax
loop 0x411e84
cld
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 8]
lea edi, [ebp - 0x28]
rep movsb byte es:[edi], byte [esi]
xor al, al
stosb byte es:[edi], al
mov eax, dword [ebp + 0x14]
mov byte [ebp - 0x29], al
mov eax, dword [ebp + 0x18]
mov byte [ebp - 0x2d], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x2d], 1
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x411ebb
mov eax, 0x41000000
mov dword [ebp + 0x20], eax
mov dword [ebp - 0x34], 0x190
mov edx, dword [ebp + 0x1c]
test edx, 1
je 0x411ed7
mov dword [ebp - 0x34], 0x2bc
test edx, 2
je 0x411ee3
mov byte [ebp - 0x30], 1
test edx, 4
je 0x411eef
mov byte [ebp - 0x2f], 1
test edx, 8
je 0x411efb
mov byte [ebp - 0x2e], 1
call fcn.0040f4e5
jb 0x411f2b
mov edi, eax
inc dword [edi + 4]
mov edx, dword [ebp + 0x20]
mov dword [edi + 0x18], edx
cld
mov ecx, 0xf
lea esi, [ebp - 0x44]
lea edi, [edi + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0xc]
mov esp, ebp
pop ebp
call fcn.00411cc7
pop edi
pop esi
ret 0x14
mov esp, ebp
pop ebp
call fcn.00411cc7
pop edi
pop esi
pop eax
add esp, 0x14
push eax
xor eax, eax
jmp 0x40a95e
Function at 0x403e70
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x47c000], 0
push ebx
push ebp
push esi
push edi
mov ebx, pe_overlay
mov edi, 0x47c000
je 0x403e8f
push edi
call fcn.00406250
jmp 0x403e95
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [0x44bb44]
mov ecx, esi
dec esi
test ecx, ecx
je 0x403ee9
mov ecx, dword [0x44bb08]
mov ecx, dword [ecx + 0x64]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x44bb40]
mov bp, word [ecx]
xor bp, ax
and ebp, ebx
test bp, bp
je 0x403ed0
mov ebp, esi
dec esi
add ecx, edx
test ebp, ebp
jne 0x403eb8
jmp 0x403ee9
mov edx, dword [ecx + 2]
mov dword [0x447ae0], edx
mov edx, dword [ecx + 6]
mov dword [0x44bba8], edx
lea edx, [ecx + 0xa]
test edx, edx
jne 0x403efb
cmp bx, 0xffff
jne 0x403ef7
mov ebx, 0x3ff
jmp 0x403e95
xor ebx, ebx
jmp 0x403e95
mov dword [0x447adc], edx
movzx eax, word [ecx]
push eax
push edi
call fcn.00406237
push 0xfffffffffffffffe
push 0x447b00
call fcn.00406309
push eax
push dword [0x4354b4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x44bb2c]
mov esi, dword [0x44bb28]
mov ecx, eax
dec eax
test ecx, ecx
je 0x403f55
lea ebx, [esi + 0x18]
lea ebp, [eax + 1]
mov edi, 0x2018
mov eax, dword [esi]
test eax, eax
je 0x403f4e
push eax
push ebx
call fcn.00406309
add esi, edi
add ebx, edi
dec ebp
jne 0x403f41
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405b0a
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x43acd8], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405b2e
test al, 0x10
jne 0x405b31
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x43acd8
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405b5c
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x401b50
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401b9b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b94
test esi, esi
je 0x401b94
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b70
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d80
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401dd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401ea8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401e0e
cmp eax, 4
jne 0x401e30
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401e1e
cmp edx, 4
je 0x401e1e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d80
Function at 0x407420
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x4914c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x3f4]
push edx
push 0x20019
push 0
push str.TypeLib
push SysReAllocStringLen
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x400], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocStringLen
mov esi, eax
call edi
test esi, esi
je 0x407487
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453d13
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x3f4]
lea eax, [ebp - 0x3f0]
push eax
push 0x20019
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp - 0x3f4]
push edx
mov esi, eax
call edi
test esi, esi
jne 0x407475
mov edx, dword [ebp - 0x3f0]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x3ec]
push ecx
push esi
push edx
mov dword [ebp - 0x3f8], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x3f0]
push eax
call edi
test esi, esi
jne 0x407475
mov ecx, dword [ebp - 0x400]
mov edx, dword [ebp - 0x3fc]
push ecx
push edx
lea eax, [ebp - 0x3ec]
push str._d._d
push eax
call fcn.00454e55
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.00453d13
mov esp, ebp
pop ebp
ret
Function at 0x407520
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x271c
call fcn.0046b270
mov eax, dword [0x4914c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x270f
push eax
lea eax, [ebp - 0x2714]
push eax
mov esi, ecx
mov ebx, edx
mov byte [ebp - 0x2715], 0
call fcn.00454f20
add esp, 0xc
test esi, esi
je 0x4075a7
push edi
lea edi, [ebp - 0x2714]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407568
mov cx, word [0x47adf4]
mov eax, esi
mov word [edi], cx
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407580
lea edi, [ebp - 0x2714]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407590
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push 0
lea edx, [ebp - 0x271c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x2714]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407649
test ebx, ebx
je 0x407603
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4075e0
mov ecx, dword [ebp - 0x271c]
sub eax, edx
inc eax
push eax
push ebx
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x407624
mov edx, dword [ebp - 0x271c]
push edx
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453d13
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x271c]
mov bl, byte [ebp - 0x2715]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453d13
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x2715]
pop esi
xor ecx, ebp
pop ebx
call fcn.00453d13
mov esp, ebp
pop ebp
ret

Function at 0x407660
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2714
call fcn.0046b270
mov eax, dword [0x4914c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x270f
push eax
lea eax, [ebp - 0x2714]
push eax
call fcn.00454f20
add esp, 0xc
lea ecx, [ebp - 0x2714]
push ecx
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 4]
test eax, eax
sete al
xor ecx, ebp
call fcn.00453d13
mov esp, ebp
pop ebp
ret
Function at 0x40c680
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475e8b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x4914c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov ecx, dword [0x47a1e8]
mov dword [esi + 0xc], ecx
mov edx, dword [0x47a1ec]
mov dword [esi + 0x10], edx
mov ecx, dword [0x47a1f0]
mov dword [esi + 0x14], ecx
mov edx, dword [0x47a1f4]
mov dword [esi + 0x18], edx
mov dword [esi + 8], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov dword [esi + 0x30], edi
cmp edi, ebx
je 0x40c754
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push esi
push edi
call ecx
cmp eax, ebx
mov eax, dword [esi + 0x30]
jl 0x40c745
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x30]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp + 8]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
cmp eax, ebx
jl 0x40c754
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
lea eax, [esi + 4]
push eax
mov eax, dword [edx + 0x20]
push ecx
call eax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40c754
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp + 8], ebx
jmp 0x40c754
cmp eax, ebx
je 0x40c754
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x30], ebx
push 8
call fcn.00453f6d
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x40c785
mov dword [ebx], vtable.tcomxTypeHandler.0
mov dword [ebx + 4], edi
test edi, edi
je 0x40c787
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
jmp 0x40c787
xor ebx, ebx
mov dword [esi + 0x28], ebx
lea eax, [esi + 0x34]
mov ecx, 0x96
mov dword [eax], 0
add eax, 0x10
dec ecx
jne 0x40c792
mov eax, dword [0x4941f8]
mov dword [esi + 0x994], eax
inc eax
mov dword [0x4941f8], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4157e5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov edx, dword [ebp + 0xc]
lea eax, [edx + 5]
push esi
cmp eax, 4
ja case.0x4157c3.2
jmp dword [eax*4 + 0x41586c]
mov ecx, dword [ebp + 8]
xor eax, eax
add ecx, 0xffffffc0
cmp edx, 0xfffffffc
sete al
push eax
call fcn.00415ee0
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x18]
lea eax, [esi + 8]
push eax
call edx
test byte [esi + 0x68], 4
je 0x415821
mov eax, dword [esi + 0x5c]
and dword [esi + 0x68], 0xfffffffb
test eax, eax
je 0x415821
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x415821
mov eax, dword [esi + 0x5c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, str.FAIL
test edx, edx
jle 0x41584e
push 0x30b
push 0x493250
call fcn.00414ca0
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
push 0x317
push str.Unrecognized_Negative_verb_in_DoVerb__.__bad.
call fcn.00414ca0
add esp, 8
mov eax, 0x80004001
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x41ad60
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4914c4]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0041ac50
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41ade1
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x41ada7
mov edx, dword [ebp - 0x18]
push edx
jmp 0x41addb
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0043c800
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453d13
mov esp, ebp
pop ebp
ret
Function at 0x41b320
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
push edi
test esi, esi
jne 0x41b338
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test esi, esi
jne 0x41b356
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x41b34d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41b34d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41b34d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov edi, eax
push edi
push edx
call fcn.00419ae0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov eax, 0x47b8f0
push esi
sub eax, 0xbc
push edi
mov dword [esp + 0x14], 0xbc
mov dword [esp + 0x1c], eax
jmp 0x42c748
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx]
mov eax, esi
mov dword [esp + 0x10], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42c758
sub eax, edx
mov edi, eax
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0x18], edi
mov edx, edi
cmp edi, ecx
jb 0x42c798
movzx eax, byte [esi + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
mov esi, dword [esp + 0x10]
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x42c775
mov dword [esp + 0x18], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x42c806
lea ecx, [ecx]
cmp dword [eax + 0xc], edi
jne 0x42c800
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x42c7d4
nop
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x42c7f8
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x42c7c0
test ecx, ecx
je 0x42c846
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x42c7f8
cmp ecx, 1
jbe 0x42c846
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x42c7f8
cmp ecx, 2
jbe 0x42c846
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x42c846
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x42c7b0
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, ebx
call fcn.0042dda0
add esp, 8
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov esi, dword [edx + 0x10]
mov dword [ecx + esi], eax
mov edx, dword [edx + 0x10]
mov eax, dword [ecx + edx]
or byte [eax + 5], 0x20
add ecx, 4
mov dword [esp + 0x14], ecx
cmp ecx, 0x100
jl 0x42c744
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x42c815
xor cl, 3
mov byte [eax + 5], cl
jmp 0x42c815
Function at 0x42de70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0xc], edi
mov edx, edi
cmp edi, ecx
jb 0x42deb1
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x42de8f
mov dword [esp + 0xc], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x42df1a
cmp dword [eax + 0xc], edi
jne 0x42df14
mov esi, dword [ebp + 0xc]
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x42deec
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x42df10
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x42ded8
test ecx, ecx
je 0x42df33
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x42df10
cmp ecx, 1
jbe 0x42df33
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x42df10
cmp ecx, 2
jbe 0x42df33
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x42df33
mov ebx, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x42dec6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov eax, ebx
call fcn.0042dda0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
mov cl, byte [eax + 5]
movzx edx, byte [edx + 0x14]
movzx ebx, cl
not edx
and ebx, 3
test bl, dl
je 0x42df2c
pop edi
xor cl, 3
pop esi
mov byte [eax + 5], cl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4914c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x20c]
push edi
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], 0
mov edi, 0x200
jmp 0x442996
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
sub ecx, edx
mov dword [ebp - 0x224], ecx
je 0x442a00
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x44]
mov esi, eax
cmp edx, dword [ecx + 0x40]
jb 0x4429b8
call fcn.004282b0
mov eax, dword [ebp - 0x224]
mov ebx, dword [esi + 8]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push esi
call fcn.0042de70
mov dword [ebx], eax
mov dword [ebx + 8], 4
add dword [esi + 8], 0x10
inc dword [ebp - 0x214]
lea eax, [ebp - 0x218]
add esp, 0xc
lea edx, [ebp - 0x20c]
push eax
mov dword [ebp - 0x218], edx
call fcn.0041d2f0
add esp, 4
mov ebx, dword [ebp + 0xc]
cmp edi, ebx
jbe 0x442a09
mov edi, ebx
mov ecx, dword [ebp - 0x21c]
push ecx
push edi
lea edx, [ebp - 0x20c]
push 1
push edx
call fcn.0045abf6
mov ecx, dword [ebp - 0x218]
add ecx, eax
add esp, 0x10
sub ebx, eax
mov dword [ebp - 0x218], ecx
mov dword [ebp + 0xc], ebx
je 0x442a3f
cmp eax, edi
je 0x442990
lea eax, [ebp - 0x20c]
sub ecx, eax
mov edi, ecx
je 0x442a99
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x44]
mov esi, eax
cmp edx, dword [ecx + 0x40]
jb 0x442a63
call fcn.004282b0
mov ebx, dword [esi + 8]
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0042de70
mov dword [ebx], eax
mov dword [ebx + 8], 4
add dword [esi + 8], 0x10
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x20c]
add esp, 0xc
inc dword [ebp - 0x214]
mov dword [ebp - 0x218], ecx
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x210]
call fcn.0041a660
mov dword [ebp - 0x214], 1
test ebx, ebx
je 0x442b16
mov edi, dword [ebp - 0x220]
mov esi, dword [edi + 8]
mov eax, dword [esi - 8]
sub esi, 0x10
add eax, 0xfffffffd
cmp eax, 4
ja case.0x442acf.6
jmp dword [eax*4 + 0x442b2c]
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
jmp 0x442aff
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
jmp 0x442aff
mov eax, dword [esi]
call fcn.004267a0
jmp 0x442aff
call fcn.004284e0
test eax, eax
je 0x442afd
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
jmp 0x442aff
xor eax, eax
test eax, eax
jne 0x442b16
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453d13
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00453d13
mov esp, ebp
pop ebp
ret