joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443548
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x443594
mov eax, esi
call fcn.0043316c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x443594
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x443594
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4436d3
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4435d4
cmp eax, 0x108
ja 0x4435d4
mov eax, esi
call fcn.0043316c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4436ca
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x4436d3
jmp 0x4436ca
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4436b3
cmp eax, 0x20a
ja 0x4436b3
test byte [esi + 0x50], 0x80
jne 0x443606
sub eax, 0x203
je 0x443603
sub eax, 3
je 0x443603
sub eax, 3
jne 0x443606
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x44361a
dec eax
je 0x44362f
dec eax
je 0x44364c
dec eax
je 0x44362f
jmp 0x443653
mov ecx, ebx
mov eax, dword [0x48f914]
mov eax, dword [eax]
mov edx, esi
call fcn.0043c8c8
jmp 0x4436ca
cmp byte [esi + 0x5d], 1
jne 0x443645
mov eax, esi
mov si, 0xffed
call fcn.0040389c
jmp 0x4436d3
or word [esi + 0x54], 1
jmp 0x4436ca
and word [esi + 0x54], 0xfffe
jmp 0x4436ca
mov eax, dword [0x490b40]
cmp byte [eax + 0x20], 0
je 0x4436ca
mov eax, dword [0x490b40]
cmp dword [eax + 0x1c], 0
je 0x4436ca
mov eax, dword [ebx]
mov edx, dword [0x490b40]
cmp eax, dword [edx + 0x1c]
jne 0x4436ca
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.004330b0
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.0040389c
jmp 0x4436d3
cmp eax, 0xb00b
jne 0x4436ca
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00441ea4
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446b68
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x446b84
cmp dword [esi + 4], 0
je 0x446bb1
test byte [ebx + 0x55], 1
jne 0x446ba3
mov eax, ebx
call fcn.00445774
test eax, eax
jne 0x446ba3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x446cc1
mov edx, esi
mov eax, ebx
call fcn.0044668c
jmp 0x446cc1
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x446cba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004489d8
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0044347c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00446b68
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004489d8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446cc1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44d120
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x48fad4]
cmp byte [eax + 0xc], 0
je 0x44d28d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44d286
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x490b94], 0
jne 0x44d174
push 0x44d294
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
push 0x44d29c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x490b94], eax
cmp dword [0x48ece8], 0
jne 0x44d26f
push 0x44d2ac
call sub.kernel32.dll_LoadLibraryA
mov dword [0x48ece8], eax
cmp dword [0x48ece8], 0
je 0x44d26f
push 0x44d2b8
mov eax, dword [0x48ece8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x490b98], eax
push 0x44d2c8
mov eax, dword [0x48ece8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x490b9c], eax
push 0x44d2dc
mov eax, dword [0x48ece8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x490ba0], eax
push 0x44d2f4
mov eax, dword [0x48ece8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x490ba4], eax
push 0x44d30c
mov eax, dword [0x48ece8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x490ba8], eax
push 0x44d320
mov eax, dword [0x48ece8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x490bac], eax
push 0x44d338
mov eax, dword [0x48ece8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x490bb0], eax
push 0x44d350
mov eax, dword [0x48ece8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x490bb4], eax
push 0x44d36c
mov eax, dword [0x48ece8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x490bb8], eax
push 0x44d378
mov eax, dword [0x48ece8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x490bbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d28d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44e7a0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404548
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44e7ef
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004047b8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469d78
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x469dc9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x469db0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x469da0
jmp 0x469dc9
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x469db1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x484688
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov esi, ecx
mov ebp, edx
mov ebx, eax
test esi, esi
jg 0x4846a3
xor eax, eax
mov dword [esp], eax
jmp 0x484735
mov eax, dword [ebx + 0x88]
mov eax, dword [eax + 0x4c]
cmp eax, esi
jae 0x4846b2
mov esi, eax
cmp byte [ebx + 0x54], 0
jne 0x4846c4
cmp byte [ebx + 0x4c], 0
jne 0x4846c4
cmp dword [ebx + 0x5c], 0
jle 0x4846fe
mov eax, dword [ebx + 0x88]
mov edi, dword [eax + 0x54]
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 4]
lea eax, [edx + eax]
mov edx, ebp
mov ecx, esi
call fcn.00402d90
add dword [edi + 0xc], esi
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
jl 0x4846f9
xor eax, eax
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [edi + 0x10], eax
xor eax, eax
mov dword [edi + 0x14], eax
mov dword [esp], esi
jmp 0x484729
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x14
call fcn.00403070
lea eax, [esp + 4]
push eax
lea eax, [esp + 4]
push eax
push esi
push ebp
mov eax, dword [ebx + 0x88]
mov eax, dword [eax + 0x58]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebx + 0x88]
mov edx, dword [esp]
sub dword [eax + 0x4c], edx
mov eax, dword [esp]
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x484a28
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov ebx, eax
mov eax, dword [ebx + 0x54]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 0x10]
mov edx, dword [ebx + 0x50]
cmp ecx, edx
jae 0x484a46
call fcn.00483ba4
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x14
call fcn.00403070
lea edx, [esp + 4]
push edx
lea edx, [esp + 4]
push edx
mov edx, dword [ebx + 0x50]
push edx
mov eax, dword [ebx + 0x54]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 4]
add eax, edx
push eax
mov eax, dword [ebx + 0x58]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebx + 0x54]
mov edx, dword [esp]
add dword [eax + 0x10], edx
mov eax, dword [esp]
sub dword [ebx + 0x50], eax
mov eax, dword [ebx + 0x44]
cmp dword [eax + 0x5c], 0
jle 0x484ab7
mov eax, dword [ebx + 0x54]
mov edx, dword [eax + 0x10]
sub edx, dword [eax + 0xc]
mov dword [ebx + 0x4c], edx
push 0
push 0
push 0x408
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + 0x40]
push eax
call sub.user32.dll_PostMessageA
jmp 0x484b8c
mov eax, dword [ebx + 0x44]
cmp word [eax + 0x92], 0
je 0x484b8c
cmp byte [eax + 0x54], 0
je 0x484b79
jmp 0x484b43
mov ebp, dword [ebx + 0x54]
mov edx, dword [ebp + 4]
add edx, dword [ebp + 0x14]
mov eax, ebx
call fcn.004849e4
test al, al
je 0x484b3d
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + 0x58]
call fcn.00404808
mov edx, dword [ebx + 0x54]
add dword [edx + 0x14], eax
mov esi, dword [ebx + 0x54]
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0xc]
mov dword [ebx + 0x4c], eax
push 0
push 0
push 0x403
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + 0x40]
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [ebx + 0x44]
cmp word [eax + 0x92], 0
je 0x484b8c
cmp dword [ebx + 0x4c], 0
jne 0x484af9
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0xc]
mov edx, dword [ebx + 0x54]
cmp eax, dword [edx + 0x10]
je 0x484b8c
jmp 0x484b43
mov eax, dword [ebx + 0x54]
inc dword [eax + 0x14]
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + 0x58]
call fcn.00404808
mov edi, dword [ebx + 0x54]
mov edx, dword [edi + 0x10]
sub edx, dword [edi + 0x14]
cmp eax, edx
jle 0x484ad4
jmp 0x484b8c
mov dword [ebx + 0x4c], edi
push 0
push 0
push 0x403
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + 0x40]
push eax
call sub.user32.dll_SendMessageA
mov esi, dword [ebx + 0x54]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov edx, dword [ebx + 0x44]
mov edi, dword [edx + 0x48]
cmp eax, edi
jge 0x484b61
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4875b8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
mov esi, edx
mov ebx, eax
test cl, cl
je 0x48764f
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403070
mov dword [ebp - 0x3c], 0x3c
mov eax, ebx
call fcn.00404a08
mov dword [ebp - 0x2c], eax
mov eax, esi
call fcn.00404a08
mov dword [ebp - 0x28], eax
mov eax, dword [0x491084]
call fcn.00404a08
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x38], 0x40
lea eax, [ebp - 0x3c]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x487675
cmp dword [ebp + 8], 0
je 0x48762c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [eax], edx
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp dword [ebp + 8], 0
je 0x487644
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x487675
push 1
mov eax, dword [0x491084]
call fcn.00404a08
push eax
mov eax, esi
call fcn.00404a08
push eax
mov eax, ebx
call fcn.00404a08
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x488304
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x488399
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x109]
push eax
push 0
push 0x4883a8
mov eax, ebx
call fcn.00404a08
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x488329
mov edx, esi
lea eax, [ebp - 0x109]
call fcn.004095c0
test edi, edi
je 0x488383
mov edx, dword [esi]
lea eax, [ebp - 4]
mov ecx, edi
call fcn.00404854
mov eax, dword [ebp - 4]
call fcn.00408f84
call fcn.00409040
mov eax, dword [esi]
call fcn.004090c0
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040459c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4883a0
lea eax, [ebp - 4]
call fcn.00404548
ret
Function at 0x489bfc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x489d26
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x194]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x198]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00405658
mov esi, eax
dec esi
cmp esi, 0
jl 0x489d18
lea eax, [esi + esi*2]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
lea edx, [edx + eax*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov edi, eax
test edi, edi
je 0x489d12
mov eax, dword [ebx + 0x34]
call fcn.00405658
inc eax
push eax
lea eax, [ebx + 0x34]
mov ecx, 1
mov edx, dword [0x4871c4]
call fcn.00405834
add esp, 4
mov eax, dword [ebx + 0x38]
call fcn.00405658
inc eax
push eax
lea eax, [ebx + 0x38]
mov ecx, 1
mov edx, dword [0x4871ec]
call fcn.00405834
add esp, 4
mov eax, dword [ebx + 0x34]
call fcn.00405658
mov edx, dword [ebx + 0x34]
mov dword [edx + eax*4 - 4], edi
mov eax, dword [ebp + 8]
inc dword [eax - 0x18]
dec esi
cmp esi, 0xffffffff
jne 0x489c9d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489d2d
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x906058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x9061a8
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 0x90607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x90606a
add dl, dl
jne 0x906089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9060dc
xor eax, eax
add dl, dl
jne 0x906096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x90617d
add dl, dl
jne 0x9060a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9060d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x906075
mov eax, 1
add dl, dl
jne 0x9060ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9060f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9060e1
sub eax, ebx
mov ebx, 1
jne 0x906128
mov ecx, 1
add dl, dl
jne 0x90610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x906119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x906105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x906075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x90613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x90614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x906136
cmp eax, 0x7d00
jae 0x90616d
cmp eax, 0x500
jb 0x906168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x906075
cmp eax, 0x7f
ja 0x906170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x906075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x90619e
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 0x906075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x10001b2c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x10001b54
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10001b5a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10001bc2
jg 0x10001b71
test esi, esi
je 0x10001bc2
test ecx, ecx
jl 0x10001bbd
jg 0x10001b7b
test eax, eax
je 0x10001bbd
cmp edi, ecx
jg 0x10001b8f
jl 0x10001b85
cmp esi, eax
jae 0x10001b8f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10001bc5
mov ecx, dword [ebp + 8]
jmp 0x10001bcf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10001be9
jg 0x10001bcf
test esi, esi
je 0x10001be9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10001be9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001c00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x10001c24
jl 0x10001c19
test ecx, ecx
jne 0x10001c24
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10001c3e
push eax
push ecx
push dword [ebp + 8]
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push esi
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x10001c8a
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 4], edx
mov eax, dword [eax]
test eax, eax
je 0x10001c90
mov edi, dword [ebp + 8]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp + 8], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x10001c90
lea eax, [ebx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x10001d06
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10001cbc
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x10001cf4
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10001d06
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10001cd0
test edi, edi
je 0x10001d06
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc