joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a168
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 0x45a313
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45a2f4
mov dl, 1
mov eax, dword [0x414ef8]
call fcn.004032a0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404008
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45a2e3
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.00447d3c
test al, al
je 0x45a2d6
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, 0x45a324
lea eax, [ebp - 0x254]
call fcn.00408e10
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45a2d6
xor eax, eax
push ebp
push 0x45a2cf
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 0x45a35c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45a2b8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404278
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 0x45a2b8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404278
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a2d6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45a1d9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004189d4
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 0x45a31a
lea eax, [ebp - 0x260]
call fcn.00404008
ret

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

Disassembly:
push ecx
mov eax, dword [0x470bbc]
cmp byte [eax + 0xa5], 0
jne 0x45acb9
cmp dword [0x470bd4], 0
jne 0x45ac7a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45ac04
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x470bd4], eax
cmp dword [0x470bd0], 0
jne 0x45ac95
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x470bd0], eax
cmp dword [0x470bd8], 0
jne 0x45acb9
push esp
push 0
push 0
push 0x45aba8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x470bd8], eax
pop edx
ret
Function at 0x45adb0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45adc7
add esp, 0xfffffff0
call fcn.004035dc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c834
mov eax, dword [0x46fa64]
cmp word [eax + 2], 0
jne 0x45adef
mov eax, dword [0x46fa64]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c488
mov eax, dword [0x46fb1c]
cmp word [eax + 2], 0
jne 0x45ae09
mov eax, dword [0x46fb1c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c680
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x414adc]
call fcn.004032a0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x414adc]
call fcn.004032a0
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 [0x41ea68]
call fcn.00424bc4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45af90
mov eax, dword [0x46f978]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424f94
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45cc20
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46f978]
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.0040c4c8
test eax, eax
je 0x45aefe
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408804
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c4f0
test eax, eax
je 0x45af12
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.00404278
mov eax, dword [0x46f858]
cmp byte [eax], 0
jne 0x45af46
mov eax, ebx
call fcn.0045b0b8
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.0045cdfc
mov eax, ebx
call fcn.0045d7c0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45af86
call fcn.00403634
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b338
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x470bbc]
cmp dword [eax + 0x30], 0
je 0x45b3e2
cmp dword [ebx + 0x94], 0
jne 0x45b3dc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45b2c8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45b3dc
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 0x45b3a2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45b3dc
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.00416e44
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45b3b1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45bf44
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 0x45bf79
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.004040f8
jmp 0x45bf86
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040405c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45cfd8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45d019
mov eax, esi
call fcn.004432e0
test al, al
je 0x45d019
mov eax, dword [ebx + 0x84]
call fcn.00442fdc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d019
push 0
mov eax, dword [ebx + 0x84]
call fcn.00442fdc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x461c24
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov edi, eax
xor eax, eax
push ebp
push 0x461dfa
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [edi + 0x38], 0
jne 0x461de1
mov eax, dword [edi + 0x30]
call fcn.004042c8
test eax, eax
jne 0x461c7a
mov eax, dword [edi + 0x34]
call fcn.004042c8
test eax, eax
jne 0x461c7a
mov eax, edi
call fcn.00461e98
jmp 0x461de1
cmp dword [edi + 0xa0], 0
jne 0x461cb1
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x30]
call fcn.00408860
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x470be8]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa0], eax
cmp dword [edi + 0xa4], 0
jne 0x461ce8
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x34]
call fcn.00408860
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x470be8]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa4], eax
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.00461ed8
mov ebx, eax
test bl, bl
jne 0x461d96
mov eax, dword [edi + 0x30]
call fcn.004042c8
test eax, eax
jne 0x461d20
mov eax, dword [edi + 0xc0]
call fcn.004042c8
test eax, eax
je 0x461d96
mov eax, dword [edi + 0xc0]
call fcn.004042c8
test eax, eax
je 0x461d42
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0xc0]
call fcn.00408860
jmp 0x461d6e
push dword [edi + 0x30]
push 0x461e14
push dword [edi + 0x34]
lea eax, [ebp - 0x108]
mov edx, 3
call fcn.00404388
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x101]
call fcn.00408860
push 7
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_WinExec
cmp eax, 0x20
jb 0x461d96
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.00461ed8
mov ebx, eax
test bl, bl
jne 0x461da3
mov eax, edi
call fcn.00461e98
jmp 0x461de1
mov eax, dword [edi + 0x58]
test eax, eax
je 0x461db2
mov dword [edi + 0xa8], eax
jmp 0x461dbc
mov dword [edi + 0xa8], 1
mov eax, edi
call fcn.00461f50
test al, al
je 0x461de1
mov eax, edi
mov si, 0xffee
call fcn.004034cc
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.00461ffc
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461e01
lea eax, [ebp - 0x108]
call fcn.00404008
ret
Function at 0x463770
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4142b0]
call fcn.00404974
xor eax, eax
push ebp
push 0x4638b4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x467ee8], 0
jne 0x4637c3
mov ecx, dword [0x46f868]
mov dl, 1
mov eax, dword [0x407110]
call fcn.0040b800
call fcn.00403a44
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402cdc
mov eax, ebx
call fcn.00404844
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4638c4
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004058c8
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404854
test eax, eax
jle 0x46385b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x463854
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404290
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404278
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00407ee8
test eax, eax
jne 0x463854
mov ebx, 0x15
jmp 0x463860
mov ebx, 0x10
jmp 0x463860
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x467ee8]
call fcn.004636c8
mov eax, dword [ebp - 8]
call fcn.004636c8
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004058e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4638bb
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0040402c
lea eax, [ebp - 0x10]
mov edx, dword [0x4142b0]
call fcn.00404a38
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x409621
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a344]
jne 0x40962b
repz ret
jmp fcn.0040e00c

Function at 0x41223c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b6af
and dword [ebp - 0x14], 0
cmp dword [0x46b3cc], 0
mov dword [ebp - 0x18], eax
jne 0x4122ef
push 0x403764
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412397
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403758
push ebx
call edi
test eax, eax
je 0x412397
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403748
push ebx
mov dword [0x46b3cc], eax
call edi
push eax
call esi
push 0x403734
push ebx
mov dword [0x46b3d0], eax
call edi
push eax
call esi
push 0x403718
push ebx
mov dword [0x46b3d4], eax
call edi
push eax
call esi
mov dword [0x46b3dc], eax
test eax, eax
je 0x4122ef
push 0x403700
push ebx
call edi
push eax
call esi
mov dword [0x46b3d8], eax
mov eax, dword [0x46b3d8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412348
cmp dword [0x46b3dc], ecx
je 0x412348
push eax
call esi
push dword [0x46b3dc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412348
test ebx, ebx
je 0x412348
call edi
test eax, eax
je 0x41233f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41233f
test byte [ebp - 8], 1
jne 0x412348
or dword [ebp + 0x10], 0x200000
jmp 0x41237b
mov eax, dword [0x46b3d0]
cmp eax, dword [ebp - 0x18]
je 0x41237b
push eax
call esi
test eax, eax
je 0x41237b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41237b
mov eax, dword [0x46b3d4]
cmp eax, dword [ebp - 0x18]
je 0x41237b
push eax
call esi
test eax, eax
je 0x41237b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46b3cc]
call esi
test eax, eax
je 0x412397
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412399
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409621
leave
ret
Function at 0x4141b0
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.00413810
cmp dword [0x80b524], 0x37
jne 0x414241
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x403f58
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x403fb4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0
lea edx, [esp + 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x80c108]
mov edx, dword [0x808584]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x402a10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x43604c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 8], 0
push 0xb0
lea ecx, [ebp - 0xb8]
call fcn.004028f0
push 1
push 0x40
push 2
push str.oxsu.bin
lea ecx, [ebp - 0xb8]
call fcn.00403c00
lea eax, [ebp - 8]
push eax
push 0x40
push 0x77e
push 0x4626d8
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push str.r48XbAl_A821
lea ecx, [ebp - 0xb8]
push ecx
call fcn.00407c90
add esp, 8
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0xbc]
push eax
mov ecx, dword [ebp - 0xc0]
call fcn.00403cd0
mov dword [ebp - 0xc4], eax
push 0x407fb0
mov ecx, dword [ebp - 0xc4]
call fcn.00403e90
lea ecx, [ebp - 0xb8]
call fcn.00403b60
lea ecx, [ebp - 0xb8]
call fcn.00402ae0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a143
mov esp, ebp
pop ebp
ret
Function at 0x402f30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x43604c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x10], 0
jg 0x402f5a
jl 0x402f51
cmp dword [ebp + 0xc], 0
ja 0x402f5a
xor eax, eax
xor edx, edx
jmp 0x40309b
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0
je 0x402f7c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00403950
jmp 0x40309b
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
call fcn.004055b0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x402feb
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.004030b0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00405710
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004060c0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00405690
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x4c], 0
je 0x40308c
mov ecx, dword [ebp - 0x10]
call fcn.00405130
mov dword [ebp - 0x2c], 0xfff
cmp dword [ebp - 8], 0xfff
jbe 0x40305b
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00410f66
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
cmp dword [ebp - 0x18], 0xfff
je 0x403059
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x40309b
jmp 0x403007
cmp dword [ebp - 8], 0
jbe 0x40308c
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00410f66
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a143
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x43604c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x38], ecx
call fcn.00405fe0
mov dword [ebp - 0x50], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.00406040
add esp, 8
movzx edx, al
test edx, edx
je 0x403564
lea eax, [ebp + 8]
push eax
call fcn.00405ff0
add esp, 4
jmp 0x4036f5
mov ecx, dword [ebp - 0x38]
call fcn.004056f0
test eax, eax
je 0x4035aa
mov ecx, dword [ebp - 0x38]
call fcn.004056f0
mov esi, eax
mov ecx, dword [ebp - 0x38]
call fcn.00405670
cmp esi, eax
jae 0x4035aa
lea ecx, [ebp + 8]
push ecx
call fcn.00403710
add esp, 4
mov byte [ebp - 0x39], al
mov ecx, dword [ebp - 0x38]
call fcn.00405520
mov dl, byte [ebp - 0x39]
mov byte [eax], dl
mov eax, dword [ebp + 8]
jmp 0x4036f5
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x4c], 0
jne 0x4035bd
call fcn.00405fe0
jmp 0x4036f5
mov ecx, dword [ebp - 0x38]
call fcn.00405130
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x38], 0
jne 0x403616
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x54], eax
lea ecx, [ebp + 8]
push ecx
call fcn.00403710
add esp, 4
mov byte [ebp - 0x3a], al
mov edx, dword [ebp - 0x54]
push edx
movzx eax, byte [ebp - 0x3a]
push eax
call fcn.00402970
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x403606
mov edx, dword [ebp + 8]
mov dword [ebp - 0x48], edx
jmp 0x40360e
call fcn.00405fe0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
jmp 0x4036f5
mov dword [ebp - 0x5c], 0x20
lea eax, [ebp + 8]
push eax
call fcn.00403710
add esp, 4
mov byte [ebp - 0x2a], al
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x29]
push ecx
lea edx, [ebp - 0x2a]
push edx
mov eax, dword [ebp - 0x38]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x58]
call fcn.00404f70
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x403673
cmp dword [ebp - 0x40], 1
je 0x403673
cmp dword [ebp - 0x40], 3
je 0x4036c0
jmp 0x4036f0
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x44], ecx
je 0x4036a5
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.004107cc
add esp, 0x10
cmp dword [ebp - 0x44], eax
je 0x4036a5
call fcn.00405fe0
jmp 0x4036f5
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 0x2a]
cmp dword [ebp - 0x34], edx
je 0x4036b9
mov eax, dword [ebp + 8]
jmp 0x4036f5
call fcn.00405fe0
jmp 0x4036f5
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x2a]
push edx
call fcn.00402970
add esp, 8
movzx eax, al
test eax, eax
je 0x4036e3
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
jmp 0x4036eb
call fcn.00405fe0
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
jmp 0x4036f5
call fcn.00405fe0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a143
mov esp, ebp
pop ebp
ret 4