joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100942ef
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [esi + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x10094328
mov dword [esi + 0x28], eax
jmp 0x1009433d
lea eax, [esi + 0x28]
push eax
push edi
push esi
push 0x10094413
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov eax, dword [ebp + 0x10]
dec eax
je 0x1009434a
dec eax
jne 0x10094353
push 1
jmp 0x1009434c
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
cmp dword [ebp + 0x14], 0
jne 0x10094364
test edi, edi
je 0x10094364
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x1009436a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
mov dword [esi], 1
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [esp + 0x10], 0
call ebp
mov dword [esp + 0x14], eax
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1c], 0
je 0x100943c2
push edi
call ebx
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
sub eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
jae 0x100943cd
jmp 0x1009439c
push edi
mov dword [esp + 0x14], 1
call ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4

Function at 0x100954b1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x100954d2
leave
ret
cmp dword [ebp + 8], 0
je 0x100954ed
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10095452
pop ecx
test eax, eax
pop ecx
jne 0x1009557d
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.100b1ae0
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push str.MacromedCommon_
push eax
call fcn.100b1580
pop ecx
lea eax, [ebp + eax - 0x104]
push eax
call fcn.100b1ae0
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.10095452
add esp, 0x10
test eax, eax
jne 0x1009557d
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.100b1ae0
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push str.MacromedShockwave_
push eax
call fcn.100b1580
pop ecx
lea eax, [ebp + eax - 0x104]
push eax
call fcn.100b1ae0
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.10095452
add esp, 0x10
leave
ret
Function at 0x100a7b90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push eax
push esi
xor edi, edi
call dword [0x10192ea0]
mov ecx, eax
add esp, 8
add ecx, 0x20
mov ebx, 8
sar ecx, 6
xor eax, eax
mov al, byte [esi + 7]
sub eax, ecx
cdq
mov ebp, eax
xor eax, eax
mov al, byte [esi + 6]
xor ebp, edx
sub eax, ecx
sub ebp, edx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
xor eax, eax
mov al, byte [esi + 5]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
xor eax, eax
mov al, byte [esi + 4]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
xor eax, eax
mov al, byte [esi + 3]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
xor eax, eax
mov al, byte [esi + 2]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
xor eax, eax
mov al, byte [esi + 1]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
xor eax, eax
mov al, byte [esi]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x18]
add eax, edi
add esi, edx
dec ebx
lea edi, [eax + ebp]
jne 0x100a7bb6
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100a8130
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov eax, 2
sub eax, edi
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, 3
sub eax, edi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, 4
sub eax, edi
mov ebp, 1
mov dword [esp + 0x14], eax
mov eax, 5
sub eax, edi
sub ebp, edi
mov dword [esp + 0x18], eax
mov eax, 6
sub eax, edi
lea ecx, [ebx + edi + 1]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 8
xor eax, eax
xor edx, edx
mov al, byte [ecx - 1]
mov dl, byte [ebx]
lea eax, [eax + edx + 1]
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov byte [esi], al
mov dl, byte [ecx]
xor eax, eax
mov al, byte [ebx + 1]
add ebx, edi
lea eax, [eax + edx + 1]
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov byte [esi + 1], al
mov dl, byte [ecx + 1]
xor eax, eax
mov al, byte [ecx + ebp]
lea eax, [eax + edx + 1]
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
mov byte [esi + 2], al
xor eax, eax
mov al, byte [edx + ecx]
xor edx, edx
mov dl, byte [ecx + 2]
lea eax, [eax + edx + 1]
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
mov byte [esi + 3], al
xor eax, eax
mov al, byte [ecx + edx]
xor edx, edx
mov dl, byte [ecx + 3]
lea eax, [eax + edx + 1]
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
mov byte [esi + 4], al
xor eax, eax
mov al, byte [ecx + edx]
xor edx, edx
mov dl, byte [ecx + 4]
lea eax, [eax + edx + 1]
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
mov byte [esi + 5], al
xor eax, eax
mov al, byte [ecx + edx]
xor edx, edx
mov dl, byte [ecx + 5]
lea eax, [eax + edx + 1]
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
mov byte [esi + 6], al
xor eax, eax
mov al, byte [ecx + edx]
xor edx, edx
mov dl, byte [ecx + 6]
add ecx, edi
lea eax, [eax + edx + 1]
cdq
sub eax, edx
sar eax, 1
mov byte [esi + 7], al
mov eax, dword [esp + 0x24]
add esi, edi
dec eax
mov dword [esp + 0x24], eax
jne 0x100a818d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x100a97d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
shl esi, 0xe
mov eax, dword [edi]
xor ebp, ebp
add eax, 4
add esi, 0x100d2d54
sar eax, 3
cmp eax, 1
jge 0x100a97fb
mov eax, 1
jmp 0x100a9807
cmp eax, 0xfe
jle 0x100a9807
mov eax, 0xfe
mov edx, dword [esp + 0x18]
mov ebx, 0x3f
sub edi, edx
mov dword [edx], eax
lea ecx, [edx + 4]
mov eax, dword [edi + ecx]
add ecx, 4
mov eax, dword [esi + eax*4]
mov dword [ecx - 4], eax
cdq
xor eax, edx
sub eax, edx
add ebp, eax
dec ebx
jne 0x100a9817
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x100a9b30
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
shl esi, 0xe
add esi, 0x100d2d54
sub edi, ecx
mov ebp, 0x40
mov eax, dword [edi + ecx]
add ecx, 4
mov eax, dword [esi + eax*4]
mov dword [ecx - 4], eax
cdq
xor eax, edx
sub eax, edx
add ebx, eax
dec ebp
jne 0x100a9b52
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
Function at 0x100b14e0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov eax, ecx
mov ebx, dword [esp + 0x10]
cdq
and edx, 7
push ebp
add eax, edx
and ecx, 7
sar eax, 3
push esi
mov esi, dword [esp + 0x10]
test eax, eax
mov ebp, ecx
jle 0x100b152b
push edi
mov edi, eax
push 8
mov ecx, esi
call fcn.100ac360
xor ecx, ecx
and eax, 0xff
mov cl, bh
xor edx, edx
xor eax, ecx
mov dh, bl
mov ebx, dword [eax*4 + 0x100beedc]
xor ebx, edx
dec edi
jne 0x100b1506
pop edi
test ebp, ebp
jle 0x100b1557
push 1
mov ecx, esi
call fcn.100ac360
mov ecx, ebx
and ebx, 0x7fff
shr ecx, 0xf
and ecx, 1
xor eax, ecx
shl ebx, 1
test eax, eax
je 0x100b1554
xor ebx, 0x8005
dec ebp
jne 0x100b152f
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
Function at 0x1000112f
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
push esi
push edi
push 0xa
push 0x66
xor esi, esi
push dword [0x10003298]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, esi
je 0x10001255
push edi
push dword [0x10003298]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov dword [ebp - 8], eax
push dword [0x10003298]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x10001255
cmp dword [ebp - 8], esi
je 0x10001255
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x10001255
lea eax, [ebp - 0x168]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x168]
push eax
push esi
lea eax, [ebp - 0x168]
push 0x100030d0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
push esi
push 2
push esi
push 1
lea eax, [ebp - 0x168]
pop ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001255
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x10], esi
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], eax
call edi
cmp dword [ebp - 4], ebx
jne 0x10001255
lea eax, [ebp - 0x64]
push 0x44
push eax
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x64], 0x44
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x168]
push esi
push eax
push esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x34], si
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x10001255
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0x20]
call edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10001334
Capabilities:
Check for time delay via gettickcount
Get disk information

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, 0x1388
push ebp
mov dword [esp + 0x14], eax
push dword [0x100032a4]
call edi
mov ebx, 0x102
cmp eax, ebx
jne 0x1000139c
call esi
cmp eax, dword [esp + 0x10]
jb 0x10001397
sub eax, dword [esp + 0x10]
cmp eax, 0x6ddd00
ja 0x10001397
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp eax, dword [esp + 0x14]
jne 0x10001397
push ebp
push dword [0x100032a4]
call edi
jmp 0x10001369
push 1
pop eax
jmp 0x1000139e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x442950
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x32000]
push edi
jmp 0x44296a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x442971
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x442960
mov eax, 1
add ebx, ebx
jne 0x442983
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x442978
jne 0x442994
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x442978
xor ecx, ecx
sub eax, 3
jb 0x4429a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x442a1a
mov ebp, eax
add ebx, ebx
jne 0x4429b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4429c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4429e4
inc ecx
add ebx, ebx
jne 0x4429d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4429c5
jne 0x4429e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4429c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x442a04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4429f5
jmp 0x442966
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x442a04
add edi, ecx
jmp 0x442966
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x442a22
cmp byte [edi], 0x12
jne 0x442a22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x442a27
lea edi, [esi + 0x40000]
mov eax, dword [edi]
or eax, eax
je 0x442a9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5feb0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5ff90]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x442a54
mov ecx, edi
jns 0x442a83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5ff98]
or eax, eax
je 0x442a99
mov dword [ebx], eax
add ebx, 4
jmp 0x442a71
call dword [esi + 0x5ff94]
mov ebp, dword [esi + 0x5ff9c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x442ad3
sub esp, 0xffffff80
jmp 0x41942f
Function at 0x401685
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x87fccc]
sub esp, 0x800
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x87fc24]
test esi, esi
je 0x4016d3
cmp eax, 0x959
jne 0x4016bf
push 0
lea eax, [ebp - 0x800]
push eax
push str.Subasosu_nigukole_padisekadapoyi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
call fcn.00401481
add edi, 8
dec esi
je 0x4016d3
mov eax, dword [0x87fccc]
jmp 0x4016a4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40d776
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419468]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004050d5
mov dword [ebp - 0x14], eax
cmp dword [0x816c44], esi
jne 0x40d869
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d7f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d949
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d949
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d949
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x816c44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x816c48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x816c4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x816c54], eax
test eax, eax
je 0x40d866
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x816c50], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d88e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d881
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d8a3
push 4
pop eax
jmp 0x40d94b
cmp dword [ebp - 0x14], esi
je 0x40d8a3
push dword [0x816c44]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d888
mov eax, dword [0x816c50]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d901
cmp dword [0x816c54], edi
je 0x40d901
push eax
call ebx
push dword [0x816c54]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d901
test eax, eax
je 0x40d901
call ecx
test eax, eax
je 0x40d8f6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d8f6
test byte [ebp - 8], 1
jne 0x40d901
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d931
mov eax, dword [0x816c48]
cmp eax, edi
je 0x40d92e
push eax
call ebx
test eax, eax
je 0x40d92e
call eax
mov esi, eax
test esi, esi
je 0x40d92e
mov eax, dword [0x816c4c]
cmp eax, edi
je 0x40d92e
push eax
call ebx
test eax, eax
je 0x40d92e
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x816c44]
call ebx
test eax, eax
je 0x40d949
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d94b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004043ad
mov esp, ebp
pop ebp
ret
Function at 0x407f90
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x401054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.00410b35
add esp, 4
mov esi, eax
mov edx, edi
mov ecx, esi
test edi, edi
je 0x407fe1
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x407fd6
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4080de
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi + 0x98], 0
mov ecx, dword [eax + esi + 0x9c]
mov dword [ebp - 0x44], ecx
je 0x4080de
mov eax, dword [ebp - 0x34]
test al, 7
jne 0x4080de
lea ebx, [eax + edi]
push ebx
call fcn.00410b35
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, ebx
mov ecx, eax
test ebx, ebx
je 0x40804b
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x408040
push edi
push esi
push eax
call fcn.0040c450
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x38]
add eax, edi
push eax
call fcn.0040c450
mov ecx, dword [esi + 0x3c]
add esp, 0x18
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
add ecx, edi
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x18], 0x6d0049
mov dword [ecx + 0x9c], eax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x14], 0x670061
mov dword [ebp - 0x10], 0x680065
mov dword [ebp - 0xc], 0x70006c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4080de
movaps xmm0, xmmword [0x401d10]
lea ecx, [ebp - 0x2c]
push ecx
push eax
movups xmmword [ebp - 0x2c], xmm0
mov word [ebp - 0x1c], 0x656c
mov byte [ebp - 0x1a], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4080f1
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b37c
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x48], 0
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x3c], 0
push ecx
push ebx
push edi
call eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x3c]
cmp eax, 0xffffffff
je 0x4080de
mov ecx, dword [ebp - 0x38]
push esi
mov dword [ecx + 0x58], eax
call fcn.00410b30
mov eax, dword [ebp - 0x4c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], ebx
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.0040b37c
mov esp, ebp
pop ebp
ret
Function at 0x4097d0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
test eax, eax
je 0x409946
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebx
push eax
call fcn.00410e2c
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
push 0xa
call esi
call fcn.00410e0b
xor edx, edx
mov ecx, 0x15
div ecx
mov edi, edx
call ebx
push eax
call fcn.00410e2c
add esp, 4
push 0xa
call esi
call fcn.00410e0b
mov esi, eax
and esi, 0x3ff
call ebx
push eax
call fcn.00410e2c
add esp, 4
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00410e0b
shl edi, 0xa
and eax, 0x3ff
push 0
push dword [ebp - 4]
add eax, 0x3200401
lea ebx, [esi + edi]
shl ebx, 0xa
add ebx, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub ebx, eax
mov dword [ebp - 8], eax
test bl, 7
je 0x40988e
inc ebx
test bl, 7
jne 0x409888
push ebx
mov dword [ebp - 0xc], 0
call fcn.00410b35
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00410e2c
add esp, 4
xor esi, esi
test ebx, ebx
je 0x4098c2
call fcn.00410e0b
mov byte [esi + edi], al
inc esi
cmp esi, ebx
jb 0x4098b5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push ebx
push edi
push esi
call fcn.00407f90
add esp, 0x10
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x409936
push 0
push 0x80
push 3
push 0
push 3
push 2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x409926
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00410b30
add esp, 4
test edi, edi
je 0x409943
push edi
call fcn.00410b30
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret