joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473be0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a5107
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x4c6280]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 0xf4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x104]
lea eax, [esp + 0x74]
xor esi, esi
push eax
mov byte [esp + 0x1b], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.0046eb70
push 0x4b94d8
lea ecx, [esp + 0x24]
mov dword [esp + 0x100], esi
call fcn.00410510
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebp
lea eax, [esp + 0x2c]
mov byte [esp + 0x108], 1
call fcn.004739c0
test al, al
lea ecx, [esp + 0x20]
sete bl
mov byte [esp + 0xfc], 0
call fcn.00410570
test bl, bl
jne 0x473df8
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x74]
push eax
call fcn.0046f5e0
test al, al
je 0x473df8
push str.strings
lea ecx, [esp + 0x78]
call fcn.004079b0
cmp eax, esi
je 0x473df8
mov ecx, str.string
call fcn.0046e3e0
mov edi, eax
cmp edi, esi
je 0x473de7
mov edi, edi
lea ecx, [esp + 0x58]
call fcn.004104c0
lea ecx, [esp + 0x3c]
call fcn.004104c0
lea esi, [edi + 0x44]
push esi
mov ebx, 0x4b7a04
mov byte [esp + 0x100], 3
call fcn.0046f580
test eax, eax
je 0x473d05
mov ecx, eax
call fcn.00407a10
jmp 0x473d07
xor eax, eax
push eax
lea ecx, [esp + 0x5c]
call fcn.004105a0
push esi
mov ebx, str.value
call fcn.0046f580
test eax, eax
je 0x473d29
mov ecx, eax
call fcn.00407a10
jmp 0x473d2b
xor eax, eax
push eax
lea ecx, [esp + 0x40]
call fcn.004105a0
lea ecx, [esp + 0x58]
call fcn.00425e50
test eax, eax
je 0x473d98
lea ecx, [esp + 0x3c]
call fcn.00425e50
test eax, eax
je 0x473d98
lea ecx, [esp + 0x3c]
lea ebx, [esp + 0x20]
call fcn.00460400
mov ecx, ebx
push ecx
mov byte [esp + 0x100], 4
call fcn.00473b50
add esp, 4
mov edx, ebx
push edx
push ecx
lea edx, [ebp + 0x2c]
lea ecx, [esp + 0x60]
call fcn.00475460
add esp, 4
mov ecx, eax
call fcn.00421dc0
mov ecx, ebx
mov byte [esp + 0xfc], 3
call fcn.00421d90
mov ebx, str.string
mov eax, edi
call fcn.0046e350
mov esi, eax
test esi, esi
je 0x473dc9
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
jne 0x473deb
mov ebx, str.string
mov eax, esi
call fcn.0046e350
mov esi, eax
test esi, esi
jne 0x473daa
xor edi, edi
lea ecx, [esp + 0x3c]
call fcn.00410570
lea ecx, [esp + 0x58]
call fcn.00410570
test edi, edi
jne 0x473cd0
xor esi, esi
mov bl, 1
jmp 0x473dfc
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
mov edi, eax
jmp 0x473dcb
mov bl, byte [esp + 0x17]
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x473e0d
push eax
call fcn.00480167
add esp, 4
lea ecx, [esp + 0x74]
mov dword [esp + 0xfc], 0xffffffff
call fcn.00407ae0
mov al, bl
mov ecx, dword [esp + 0xf4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.0047f404
add esp, 0xec
ret 4
Function at 0x474d30
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a439b
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x4c6280]
xor eax, esp
mov dword [esp + 0x414], eax
push ebp
push esi
push edi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
xor edi, edi
push 0x206
lea eax, [esp + 0x1a]
push edi
push eax
mov word [esp + 0x20], di
call fcn.004806d0
push 0x206
lea ecx, [esp + 0x22e]
push edi
push ecx
mov word [esp + 0x234], di
call fcn.004806d0
add esp, 0x18
push edi
push 0x1a
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.kingsoftkclear_temp
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [0x4c8db0]
lea edx, [esp + 0x14]
shr edx, 0x10
mov dword [esp + 0x10], ecx
jne 0x474de3
lea eax, [esp + 0x14]
movzx ecx, ax
lea edx, [esp + 0x10]
call fcn.004723b0
jmp 0x474e1d
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, edi
je 0x474e1d
mov ecx, esi
lea edx, [esp + 0x10]
call fcn.00472540
test eax, eax
je 0x474e1d
lea eax, [esi + esi]
push eax
lea edx, [esp + 0x18]
push edx
add eax, 2
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x434], edi
call fcn.00472930
mov esi, dword [esp + 0x14]
lea edx, [esi - 0xc]
add esp, 4
cmp edx, 0x4c8da0
mov ebp, eax
je 0x474e59
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x474e59
push esi
call fcn.00480167
add esp, 4
test ebp, ebp
je 0x474ec6
lea eax, [esp + 0x21c]
push eax
push 0
push 0x4b95a4
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [esp + 0x21c]
push 0x4b95ac
push edx
call fcn.004837a3
mov esi, eax
add esp, 8
test esi, esi
je 0x474ec6
mov eax, dword [esp + 0x438]
push esi
push eax
push 1
push ebx
call fcn.00484d72
push esi
call fcn.00483487
add esp, 0x14
push 0x10
push 0x20
push 0x20
push 1
lea ecx, [esp + 0x22c]
push ecx
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, eax
lea edx, [esp + 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0047f404
add esp, 0x424
ret
Function at 0x478c20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4c6280]
xor eax, esp
mov dword [esp + 0x20c], eax
cmp dword [0x4ca364], 0
jne 0x478cb3
push esi
push 0x208
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.004806d0
add esp, 0xc
push 0x104
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xffffffffffffffff
push 0x4b9608
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.004843ab
add esp, 0x10
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x478cb2
push str.GetLocaleInfoEx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
sbb eax, eax
add eax, 2
push esi
mov dword [0x4ca364], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [esp + 0x20c]
xor eax, eax
cmp dword [0x4ca364], 1
sete al
xor ecx, esp
call fcn.0047f404
add esp, 0x210
ret
Function at 0x478ce0
Capabilities:
Check os version

Disassembly:
sub esp, 0x124
mov eax, dword [0x4c6280]
xor eax, esp
mov dword [esp + 0x120], eax
push edi
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004806d0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esi], 0
mov dword [esp + 0xc], 0x11c
call edi
test eax, eax
jne 0x478d53
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x114
call edi
test eax, eax
jne 0x478d53
xor eax, eax
pop edi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0047f404
add esp, 0x124
ret
push 0x80
lea eax, [esp + 0x20]
push str.Service_Pack_1
push eax
call fcn.00485d79
add esp, 0xc
test eax, eax
jne 0x478d73
or dword [esi], 1
jmp 0x478dd1
push 0x80
lea ecx, [esp + 0x20]
push str.Service_Pack_2
push ecx
call fcn.00485d79
add esp, 0xc
test eax, eax
jne 0x478d93
or dword [esi], 2
jmp 0x478dd1
push 0x80
lea edx, [esp + 0x20]
push str.Service_Pack_3
push edx
call fcn.00485d79
add esp, 0xc
test eax, eax
jne 0x478db3
or dword [esi], 3
jmp 0x478dd1
push 0x80
lea eax, [esp + 0x20]
push str.Service_Pack_4
push eax
call fcn.00485d79
add esp, 0xc
test eax, eax
jne 0x478dd1
or dword [esi], 4
shl dword [esi], 0x10
call fcn.00478c20
test eax, eax
je 0x478e11
cmp dword [esp + 0x18], 2
jne 0x478d3b
cmp dword [esp + 0xc], 6
jne 0x478d3b
mov eax, dword [esp + 0x10]
cmp eax, 2
je 0x478e42
cmp eax, 1
je 0x478e4f
test eax, eax
jne 0x478d3b
or dword [esi], 8
jmp 0x478f02
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x478f02
sub eax, 1
je 0x478edc
sub eax, 1
jne 0x478f02
mov eax, dword [esp + 0xc]
cmp eax, 6
jne 0x478e67
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x478e4a
or dword [esi], 0xa
jmp 0x478f02
cmp eax, 1
jne 0x478e57
or dword [esi], 9
jmp 0x478f02
test eax, eax
jne 0x478f02
or dword [esi], 8
jmp 0x478f02
cmp eax, 5
jne 0x478e90
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x478e7d
or dword [esi], 7
jmp 0x478f02
cmp eax, 1
jne 0x478e87
or dword [esi], 6
jmp 0x478f02
test eax, eax
jne 0x478f02
or dword [esi], 5
jmp 0x478f02
cmp eax, 4
ja 0x478f02
or dword [esi], 4
cmp eax, 4
jne 0x478f02
lea ecx, [esp + 0x1c]
push str.Service_Pack_6
push ecx
call fcn.00482c1c
add esp, 8
test eax, eax
jne 0x478f02
lea edx, [esp + 4]
push edx
push 1
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x478f02
cmp dword [esp + 0xc], 4
jne 0x478f02
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x478ef0
or dword [esi], 1
jmp 0x478f02
cmp eax, 0xa
jne 0x478efa
or dword [esi], 2
jmp 0x478f02
cmp eax, 0x5a
jne 0x478f02
or dword [esi], 3
mov ecx, dword [esp + 0x124]
pop edi
xor ecx, esp
mov eax, 1
call fcn.0047f404
add esp, 0x124
ret
Function at 0x47a930
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x47a937
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.0047a940
Function at 0x47a940
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x47a972
lea esp, [esp]
test cl, 3
je 0x47a972
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4aa9e8]
add ecx, 1
sub esi, 1
jne 0x47a950
cmp esi, 0x20
push ebx
push edi
jb 0x47ab5c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4aade8]
xor edx, dword [ebx*4 + 0x4ab1e8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4aa9e8]
add ecx, 4
xor edx, dword [eax*4 + 0x4ab5e8]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4aade8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4ab1e8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4aa9e8]
add ecx, 4
xor eax, dword [edx*4 + 0x4ab5e8]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4aade8]
xor edx, dword [ebx*4 + 0x4ab1e8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4aa9e8]
xor edx, dword [eax*4 + 0x4ab5e8]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4aade8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4ab1e8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4aa9e8]
xor eax, dword [edx*4 + 0x4ab5e8]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4aade8]
xor edx, dword [ebx*4 + 0x4ab1e8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4aa9e8]
xor edx, dword [eax*4 + 0x4ab5e8]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4aade8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4ab1e8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4aa9e8]
and edx, 0xff
xor eax, dword [edx*4 + 0x4ab5e8]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4aade8]
xor edx, dword [ebx*4 + 0x4ab1e8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4aa9e8]
add ecx, 4
xor edx, dword [eax*4 + 0x4ab5e8]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4aade8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4ab1e8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4aa9e8]
and edx, 0xff
xor eax, dword [edx*4 + 0x4ab5e8]
sub edi, 1
jne 0x47a982
cmp esi, 4
jb 0x47aba9
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4aade8]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x4ab1e8]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4aa9e8]
and eax, 0xff
xor edi, dword [eax*4 + 0x4ab5e8]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x47ab66
test esi, esi
pop edi
pop ebx
je 0x47abcd
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4aa9e8]
add ecx, 1
sub esi, 1
jne 0x47abb0
not eax
pop esi
ret
Function at 0x47dc29
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4c6280]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0047db68
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004806d0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x47dc78
cmp dword [ebp - 0x1c], 5
jb 0x47dc90
jmp 0x47dc8c
cmp dword [ebp - 0x10], 1
jne 0x47dc90
cmp dword [ebp - 0x1c], 4
ja 0x47dc8c
jne 0x47dc90
cmp dword [ebp - 0x18], 0
jbe 0x47dc90
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4a773c
call fcn.00401550
test eax, eax
jge 0x47dcb1
mov byte [0x4ca2ec], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047f404
add ebp, 0x78
leave
ret

Function at 0x47e1a2
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4c8ed8], 0
push esi
jne 0x47e115
call fcn.0047e040
test eax, eax
je 0x47e158
mov eax, dword [0x4c8ed8]
cmp eax, 1
jne 0x47e136
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x47e158
pop esi
ret
push eax
call dword [0x4c8ee0]
test eax, eax
jne 0x47e1a0
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x47e15c
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4c8ed8]
call dword [0x4c8ee0]
mov edi, eax
test edi, edi
je 0x47e183
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x47e19f
lea edi, [esi + 0xff0]
push esi
push dword [0x4c8ed8]
call dword [0x4c8edc]
add esi, 0x10
cmp esi, edi
jb 0x47e189
mov eax, esi
pop edi
pop esi
ret
jmp 0x47e102

Function at 0x47f404
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c6280]
jne 0x47f40e
repz ret
jmp fcn.0048c0ad

Function at 0x4846da
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x484707
call fcn.00486482
mov dword [eax], esi
call fcn.0048646f
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00482f0a
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4846e3
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x484736
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00486495
pop ecx
call fcn.0048646f
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x48475d
test al, 1
je 0x48475d
test byte [esp + 0xc], 2
je 0x48475d
call fcn.00486482
mov dword [eax], 5
call fcn.0048646f
mov dword [eax], 0xd
jmp 0x48472d
xor eax, eax
pop esi
ret
Function at 0x485a04
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x485a41
cmp dword [ebp + 0x14], edi
je 0x485a41
cmp ecx, edi
jne 0x485a48
call fcn.0048646f
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00482f0a
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x485a5c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x485a7d
cmp ebx, 0xffffffff
je 0x485a6c
push ebx
push edi
push ecx
call fcn.004806d0
add esp, 0xc
cmp esi, edi
je 0x485a29
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x485a29
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x485a99
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x485aa0
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x485b91
test word [esi + 0xc], 0x10c
je 0x485af4
mov eax, dword [esi + 4]
test eax, eax
je 0x485af4
jl 0x485bf2
cmp ebx, eax
mov edi, ebx
jb 0x485ac5
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x485b99
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0047f1a9
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x485b89
cmp ebx, dword [ebp - 0xc]
jb 0x485b61
cmp dword [ebp - 0xc], 0
je 0x485b1e
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x485b13
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x485b1a
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x485b29
mov eax, SysReAllocString
cmp ebx, eax
ja 0x485b29
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x485bc5
push eax
push dword [ebp - 8]
push esi
call fcn.0048f444
pop ecx
push eax
call fcn.00492ef2
add esp, 0xc
test eax, eax
je 0x485c04
cmp eax, 0xffffffff
je 0x485bf2
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x485b89
push esi
call fcn.00492811
cmp eax, 0xffffffff
pop ecx
je 0x485bf6
cmp dword [ebp - 4], 0
je 0x485bc5
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x485aa8
mov eax, dword [ebp + 0x14]
jmp 0x485a43
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x485bb0
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004806d0
add esp, 0xc
call fcn.0048646f
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x485a39
cmp dword [ebp + 0xc], 0xffffffff
je 0x485bdb
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004806d0
add esp, 0xc
call fcn.0048646f
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x485a39
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x485a43
or dword [esi + 0xc], 0x10
jmp 0x485bf6
Function at 0x48b717
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4c6560]
je 0x48b732
inc edi
cmp edi, 0x17
jb 0x48b723
cmp edi, 0x17
jae 0x48b8b2
push ebp
push 3
call fcn.00495b83
cmp eax, 1
pop ecx
je 0x48b87e
push 3
call fcn.00495b83
test eax, eax
pop ecx
jne 0x48b766
cmp dword [0x4c6270], 1
je 0x48b87e
cmp ebx, 0xfc
je 0x48b8b1
push 0x4a8958
mov ebx, 0x314
push ebx
mov ebp, 0x4c9300
push ebp
call fcn.00484e88
add esp, 0xc
test eax, eax
je 0x48b79c
push esi
push esi
push esi
push esi
push esi
call fcn.00482e0e
add esp, 0x14
push 0x104
mov esi, 0x4c9319
push esi
push 0
mov byte [0x4c941d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48b7e0
push 0x4a8940
push 0x2fb
push esi
call fcn.00484e88
add esp, 0xc
test eax, eax
je 0x48b7e0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00482e0e
add esp, 0x14
push esi
call fcn.0047fed0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x48b825
push esi
call fcn.0047fed0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4c9614
push 0x4a893c
sub ecx, eax
push ecx
push eax
call fcn.00485332
add esp, 0x14
test eax, eax
je 0x48b825
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00482e0e
add esp, 0x14
jmp 0x48b827
xor esi, esi
push 0x4a8938
push ebx
push ebp
call fcn.00493da8
add esp, 0xc
test eax, eax
je 0x48b847
push esi
push esi
push esi
push esi
push esi
call fcn.00482e0e
add esp, 0x14
push dword [edi*8 + 0x4c6564]
push ebx
push ebp
call fcn.00493da8
add esp, 0xc
test eax, eax
je 0x48b869
push esi
push esi
push esi
push esi
push esi
call fcn.00482e0e
add esp, 0x14
push 0x12010
push 0x4a8910
push ebp
call fcn.004959c6
add esp, 0xc
jmp 0x48b8b1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x48b8b1
cmp ebp, 0xffffffff
je 0x48b8b1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4c6564]
push dword [esi]
call fcn.0047fed0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4959c6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0048b9ca
xor ebx, ebx
cmp dword [0x4c9ca4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x495a9c
push 0x4a94dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x495b7c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a94d0
push edi
call esi
cmp eax, ebx
je 0x495b7c
push eax
call fcn.0048b95c
mov dword [esp], 0x4a94c0
push edi
mov dword [0x4c9ca4], eax
call esi
push eax
call fcn.0048b95c
mov dword [esp], 0x4a94ac
push edi
mov dword [0x4c9ca8], eax
call esi
push eax
call fcn.0048b95c
mov dword [0x4c9cac], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0048289a
test eax, eax
pop ecx
pop ecx
je 0x495a6a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00482e0e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x495a9c
push 0x4a9490
push edi
call esi
push eax
call fcn.0048b95c
cmp eax, ebx
pop ecx
mov dword [0x4c9cb4], eax
je 0x495a9c
push 0x4a9478
push edi
call esi
push eax
call fcn.0048b95c
pop ecx
mov dword [0x4c9cb0], eax
mov eax, dword [0x4c9cb0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x495b21
cmp dword [0x4c9cb4], ecx
je 0x495b21
push eax
call fcn.0048b9d3
push dword [0x4c9cb4]
mov esi, eax
call fcn.0048b9d3
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x495b21
cmp edi, ebx
je 0x495b21
call esi
cmp eax, ebx
je 0x495aee
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x495aee
test byte [ebp - 0x18], 1
jne 0x495b21
lea eax, [ebp - 0x10]
push eax
call fcn.004828d1
test eax, eax
pop ecx
je 0x495b09
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00482e0e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x495b18
or dword [ebp + 0x10], 0x200000
jmp 0x495b5c
or dword [ebp + 0x10], 0x40000
jmp 0x495b5c
mov eax, dword [0x4c9ca8]
cmp eax, dword [ebp - 8]
je 0x495b5c
push eax
call fcn.0048b9d3
cmp eax, ebx
pop ecx
je 0x495b5c
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x495b5c
mov eax, dword [0x4c9cac]
cmp eax, dword [ebp - 8]
je 0x495b5c
push eax
call fcn.0048b9d3
cmp eax, ebx
pop ecx
je 0x495b5c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c9ca4]
call fcn.0048b9d3
cmp eax, ebx
pop ecx
je 0x495b7c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x495b7e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret