joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433430
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 0x43344c
cmp dword [esi + 4], 0
je 0x433479
test byte [ebx + 0x55], 1
jne 0x43346b
mov eax, ebx
call fcn.00431fd0
test eax, eax
jne 0x43346b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x433589
mov edx, esi
mov eax, ebx
call fcn.00432f54
jmp 0x433589
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 0x433582
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004352a0
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.0042fc6c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00433430
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.004352a0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433589
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 0x439b58
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45213c]
cmp byte [eax + 0xc], 0
je 0x439cc5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x439cbe
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x453b64], 0
jne 0x439bac
push 0x439ccc
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x439cd4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b64], eax
cmp dword [0x451b1c], 0
jne 0x439ca7
push 0x439ce4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x451b1c], eax
cmp dword [0x451b1c], 0
je 0x439ca7
push 0x439cf0
mov eax, dword [0x451b1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b68], eax
push 0x439d00
mov eax, dword [0x451b1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b6c], eax
push 0x439d14
mov eax, dword [0x451b1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b70], eax
push 0x439d2c
mov eax, dword [0x451b1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b74], eax
push 0x439d44
mov eax, dword [0x451b1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b78], eax
push 0x439d58
mov eax, dword [0x451b1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b7c], eax
push 0x439d70
mov eax, dword [0x451b1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b80], eax
push 0x439d88
mov eax, dword [0x451b1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b84], eax
push 0x439da4
mov eax, dword [0x451b1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b88], eax
push 0x439db0
mov eax, dword [0x451b1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439cc5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43db50
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.004042dc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43db9f
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.0040454c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4452b4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x445304]
test si, 4
je 0x4452c8
or bl, 1
test si, 8
je 0x4452d2
or bl, 4
test si, 1
je 0x4452dc
or bl, 8
test si, 2
je 0x4452e6
or bl, 0x10
test si, 0x10
je 0x4452f0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4452ff
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x445308
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x445340]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445321
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445330
or bl, 4
test esi, 0x20000000
je 0x44533b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44b9e8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44b9fa
add esp, 0xfffffff0
call fcn.004038b0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419468
mov eax, dword [0x451e14]
mov dword [eax + 4], ebx
mov dword [eax], 0x44bd8c
mov eax, dword [0x451e20]
mov dword [eax + 4], ebx
mov dword [eax], 0x44bd98
mov eax, ebx
call fcn.0044bda4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411760]
call fcn.00403574
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411760]
call fcn.00403574
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411760]
call fcn.00403574
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411760]
call fcn.00403574
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411760]
call fcn.00403574
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4481c0
push eax
push 0
push 0
mov eax, dword [0x451f60]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ae8c]
call fcn.0041c2d0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ae8c]
call fcn.0041c2d0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ae8c]
call fcn.0041c2d0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044c1c4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c0a0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c0a0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c0a0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44bb37
call fcn.00403908
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44be84
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44c02f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44c010
mov dl, 1
mov eax, dword [0x411b7c]
call fcn.00403574
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004042dc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44bfff
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00439eb8
test al, al
je 0x44bff2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44c040
lea eax, [ebp - 0x254]
call fcn.00408cb8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44bff2
xor eax, eax
push ebp
push 0x44bfeb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44c078
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44bfd4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040454c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44bfd4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040454c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44bff2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44bef5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415658
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c036
lea eax, [ebp - 0x260]
call fcn.004042dc
ret

Function at 0x44c964
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x453bb0]
cmp byte [eax + 0xa5], 0
jne 0x44c9d5
cmp dword [0x453bc8], 0
jne 0x44c996
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44c920
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x453bc8], eax
cmp dword [0x453bc4], 0
jne 0x44c9b1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x453bc4], eax
cmp dword [0x453bcc], 0
jne 0x44c9d5
push esp
push 0
push 0
push 0x44c8c4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x453bcc], eax
pop edx
ret
Function at 0x44cacc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44cae3
add esp, 0xfffffff0
call fcn.004038b0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419468
mov eax, dword [0x451f4c]
cmp word [eax + 2], 0
jne 0x44cb0b
mov eax, dword [0x451f4c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044e1a4
mov eax, dword [0x451ff8]
cmp word [eax + 2], 0
jne 0x44cb25
mov eax, dword [0x451ff8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044e39c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411760]
call fcn.00403574
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411760]
call fcn.00403574
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b63c]
call fcn.00421284
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44ccac
mov eax, dword [0x451e74]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00421654
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44e93c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x451e74]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c2f4
test eax, eax
je 0x44cc1a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408698
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c31c
test eax, eax
je 0x44cc2e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040454c
mov eax, dword [0x451d74]
cmp byte [eax], 0
jne 0x44cc62
mov eax, ebx
call fcn.0044cdd4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044eb18
mov eax, ebx
call fcn.0044f4dc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44cca2
call fcn.00403908
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44d054
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x453bb0]
cmp dword [eax + 0x30], 0
je 0x44d0fe
cmp dword [ebx + 0x94], 0
jne 0x44d0f8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44cfe4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44d0f8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44d0be
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44d0f8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413ac8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44d0cd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44dc60
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44dc95
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004043cc
jmp 0x44dca2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404330
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44ecf4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44ed35
mov eax, esi
call fcn.00435578
test al, al
je 0x44ed35
mov eax, dword [ebx + 0x84]
call fcn.004352a0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44ed35
push 0
mov eax, dword [ebx + 0x84]
call fcn.004352a0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x1381a7f
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x139f044]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.0138c400
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x1381b31
push edi
mov edi, 0x139bd44
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1381aca
sub eax, edx
sar eax, 1
je 0x1381b30
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [fcn.0139a0ac]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.01388b61
push 0x139bd60
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.013890bb
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x1381b30
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.013893ae
push dword [ebp - 0x78]
call fcn.01389442
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.01388b52
add ebp, 0x198
leave
ret

Function at 0x1381b4a
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x139f044]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.0138c400
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x1381c25
push edi
mov edi, 0x139bc90
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1381b99
sub eax, edx
sar eax, 1
je 0x1381c24
cmp dword [0x13a006c], 3
mov esi, 0x104
lea eax, [ebp - 0x74]
jne 0x1381bd6
push esi
push eax
call dword [0x139a028]
push 0x139bd68
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.01388b61
add esp, 0xc
jmp 0x1381bde
push eax
push esi
call dword [fcn.0139a0ac]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.01388b61
push 0x139bd60
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.013890bb
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x1381c24
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.013893ae
push dword [ebp - 0x78]
call fcn.01389442
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.01388b52
add ebp, 0x198
leave
ret
Function at 0x13822c1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x139f044]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
xor esi, esi
call fcn.0138c400
add esp, 0xc
test edi, edi
je 0x1382387
and dword [ebp - 0x7c], esi
mov ecx, 0x139bc40
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x138230c
sub eax, esi
sar eax, 1
je 0x1382330
push 0x139bddc
push ecx
lea eax, [ebp - 0x7c]
push eax
call fcn.013890bb
add esp, 0xc
jmp 0x1382364
lea eax, [ebp - 0x78]
push eax
mov esi, 0x104
push esi
call dword [fcn.0139a0ac]
push 0x139bd44
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.01388b61
push 0x139bddc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.013890bb
add esp, 0x18
xor esi, esi
inc esi
cmp dword [ebp - 0x7c], 0
je 0x1382387
push dword [ebp - 0x7c]
push esi
push 0x200
push edi
call fcn.0138975b
push dword [ebp - 0x7c]
call fcn.01389442
add esp, 0x14
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01388b52
add ebp, 0x194
leave
ret

Function at 0x138239f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0x139bd60
push dword [ebp + 8]
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.013890bb
add esp, 0xc
test eax, eax
je 0x13823c9
xor eax, eax
jmp 0x138244c
push ebx
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.01389867
push dword [ebp - 4]
call fcn.01389a89
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.01389867
lea eax, [esi + 0x32]
push eax
mov dword [ebp - 8], eax
call fcn.01389b46
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.013893ae
push dword [ebp - 4]
call fcn.01389442
push 0x32
lea ebx, [edi + esi]
call fcn.0138244f
push 0x139bddc
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.013890bb
add esp, 0x44
pop esi
pop ebx
test eax, eax
jne 0x13823c2
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.0138975b
push dword [ebp - 4]
call fcn.01389442
xor eax, eax
add esp, 0x14
inc eax
pop edi
leave
ret
Function at 0x1386ea8
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x1386eb3
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x1386f65
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x139d308]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x139d308]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x139d308]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x139d308]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x139d308]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x139d308]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x139d308]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x139d308]
inc ecx
sub edi, 8
dec esi
jne 0x1386eca
pop ebx
test edi, edi
je 0x1386f7e
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x139d308]
inc ecx
dec edi
jne 0x1386f69
pop esi
not eax
pop edi
ret

Function at 0x1386f83
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x139d308]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x139d308]
pop esi
mov dword [ecx + 8], eax
ret