joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418510
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x40
mov esi, ecx
push 0x3000
push 0x800
push 0
mov eax, dword [esi + 4]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
xor bl, bl
mov dword [ebp - 4], edi
test edi, edi
je 0x4185cc
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x418550
mov ecx, dword [ecx]
push 0
lea eax, [eax*2 + 2]
push eax
mov eax, dword [esi + 4]
push ecx
push edi
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4185b4
push 0x45811c
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push edi
push eax
mov eax, dword [esi + 4]
push 0
push 0
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
je 0x4185b1
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov edi, dword [ebp - 4]
mov eax, dword [esi + 4]
test eax, eax
je 0x4185cc
push 0x8000
push 0
push edi
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x418900
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c3c8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x45f4b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0x30]
lea edx, [esi + 0x18]
lea ecx, [ebp - 0x34]
call fcn.00418b80
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov dword [esi + 0x34], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0x38], ecx
mov ecx, dword [eax + 8]
add eax, 0xc
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x40]
cmp ecx, eax
je 0x418968
push 0xffffffffffffffff
push 0
push eax
call fcn.0040a570
cmp dword [ebp - 0x14], 8
jb 0x418979
push dword [ebp - 0x28]
call fcn.00431bdf
add esp, 4
xor eax, eax
cmp dword [esi + 0x3c], eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431be4
mov esp, ebp
pop ebp
ret
Function at 0x4189a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c750
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x45f4b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x269], cl
xor esi, esi
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], esi
je 0x418b36
xor eax, eax
mov dword [ebp - 0x268], 0x22c
push 0x228
push eax
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x264]
push eax
call fcn.00433990
xor eax, eax
mov dword [ebp - 0x14], 7
add esp, 0xc
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], ax
push eax
push 2
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
je 0x418b36
push 1
push 0
push 0x457f48
lea ecx, [ebp + 8]
call fcn.00412740
cmp eax, 0xffffffff
jne 0x418a5d
push 4
push str..exe
lea ecx, [ebp + 8]
call fcn.00406e50
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x418b2e
mov edi, edi
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.00433422
add esp, 8
test eax, eax
jne 0x418b13
cmp byte [ebp - 0x269], al
je 0x418b64
push dword [ebp - 0x260]
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
push eax
push 0x410
movdqu xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x38], 0x28
movdqu xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x418af2
push 0x28
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessMemoryInfo]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x418af8
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
test esi, esi
je 0x418b07
cmp eax, dword [ebp - 0x274]
jb 0x418b13
mov esi, dword [ebp - 0x260]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x418a80
push dword [ebp - 0x270]
call edi
cmp dword [ebp + 0x1c], 8
jb 0x418b47
push dword [ebp + 8]
call fcn.00431bdf
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431be4
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x270]
call edi
mov esi, dword [ebp - 0x260]
jmp 0x418b36
Function at 0x418b80
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c790
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x45f4b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x46c], edx
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x468], eax
xor eax, eax
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x2c]
push eax
push 0x456098
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
call fcn.0040a970
mov eax, dword [ebp - 0x468]
mov dword [ebp - 4], 1
test eax, eax
je 0x418ce8
xor esi, esi
mov edi, edi
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x418c3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x418ce8
mov eax, dword [ebp - 0x468]
inc esi
cmp esi, 0x64
jl 0x418c10
lea eax, [ebp - 0x464]
mov dword [ebp - 0x464], 0x428
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x418ce1
mov esi, dword [sym.imp.KERNEL32.dll_Module32NextW]
mov ecx, dword [ebp - 0x46c]
lea eax, [ebp - 0x444]
push eax
call fcn.0040aad0
push eax
call fcn.00433422
add esp, 8
test eax, eax
je 0x418c90
lea eax, [ebp - 0x464]
push eax
push edi
call esi
test eax, eax
jne 0x418c61
jmp 0x418ce1
cmp word [ebp - 0x244], 0
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x44c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x30], eax
jne 0x418cb9
xor ecx, ecx
jmp 0x418cd1
lea ecx, [ebp - 0x244]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418cc2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a970
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
lea ecx, [ebx + 0xc]
mov dword [ebx], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx + 8], eax
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040a570
cmp dword [ebp - 0x18], 8
jb 0x418d2c
push dword [ebp - 0x2c]
call fcn.00431bdf
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00431be4
mov esp, ebp
pop ebp
ret
Function at 0x418e40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c7cb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45f4b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0xc]
mov dword [esi], vtable.TrRemote.0
lea ecx, [eax + 0xc]
mov dword [esi + 4], 0
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x10], eax
mov word [ecx], dx
mov dword [ebp - 4], edx
push edx
push 0x456098
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
call fcn.0040a970
xor eax, eax
mov dword [esi + 0x44], 7
mov dword [esi + 0x40], 0
mov word [esi + 0x30], ax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 7
mov word [esi + 0x48], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x419140
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44c838
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x45f4b0]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x45f4b0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push 4
push eax
mov eax, dword [ecx + 4]
push edx
push 0
push 0
mov eax, dword [eax + 4]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
jne 0x419233
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0x2c]
call fcn.004164a0
add esp, 0xc
push eax
mov edx, 0x464f30
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0xc]
call fcn.004166a0
add esp, 4
mov ecx, 0x464db0
cmp dword [0x464dc4], 8
cmovae ecx, dword [0x464db0]
cmp dword [eax + 0x14], 8
jb 0x4191e6
mov eax, dword [eax]
push 0
push ecx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x1c], 8
jb 0x419205
push dword [esp + 8]
call fcn.00431bdf
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
cmp dword [esp + 0x34], 8
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
jb 0x41922f
push dword [esp + 0x20]
call fcn.00431bdf
add esp, 4
xor al, al
jmp 0x41924c
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00431be4
mov esp, ebp
pop ebp
ret 8
Function at 0x445e95
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45f4b0]
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.004366c8
mov dword [ebp - 0x14], eax
cmp dword [0x464b0c], esi
jne 0x445f88
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x445f15
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x446068
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x446068
push 0x455438
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x446068
push eax
call ebx
push 0x455444
push edi
mov dword [0x464b0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x455454
push edi
mov dword [0x464b10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x455468
push edi
mov dword [0x464b14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x464b1c], eax
test eax, eax
je 0x445f85
push 0x455484
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x464b18], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x445fad
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x445fa0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x445fc2
push 4
pop eax
jmp 0x44606a
cmp dword [ebp - 0x14], esi
je 0x445fc2
push dword [0x464b0c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x445fa7
mov eax, dword [0x464b18]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x446020
cmp dword [0x464b1c], edi
je 0x446020
push eax
call ebx
push dword [0x464b1c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x446020
test eax, eax
je 0x446020
call ecx
test eax, eax
je 0x446015
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 0x446015
test byte [ebp - 8], 1
jne 0x446020
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x446050
mov eax, dword [0x464b10]
cmp eax, edi
je 0x44604d
push eax
call ebx
test eax, eax
je 0x44604d
call eax
mov esi, eax
test esi, esi
je 0x44604d
mov eax, dword [0x464b14]
cmp eax, edi
je 0x44604d
push eax
call ebx
test eax, eax
je 0x44604d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x464b0c]
call ebx
test eax, eax
je 0x446068
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x44606a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00431be4
mov esp, ebp
pop ebp
ret
Function at 0x311cc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x342c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00326cc0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x311d8f
mov eax, 0x33c894
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x311d05
sub eax, edx
sar eax, 1
je 0x311d8f
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [fcn.00339234]
push 0x33c894
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.003248ea
push 0x33c8b0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00324e3b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x311d8f
push eax
push 1
push 0x200
push esi
call fcn.0032512e
mov eax, dword [esp + 0x14]
push eax
call fcn.003251c2
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.003248db
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.003248db
add esp, 0x214
ret

Function at 0x311db0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x342c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00326cc0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x311eb5
mov eax, 0x33c7e0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x311df5
sub eax, edx
sar eax, 1
je 0x311eb5
cmp dword [0x343fbc], 3
jne 0x311e3c
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [fcn.00339214]
push 0x33c8b8
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.003248ea
add esp, 0xc
jmp 0x311e4c
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [fcn.00339234]
push 0x33c7e0
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.003248ea
push 0x33c8b0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00324e3b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x311eb5
push eax
push 1
push 0x200
push esi
call fcn.0032512e
mov edx, dword [esp + 0x14]
push edx
call fcn.003251c2
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.003248db
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.003248db
add esp, 0x214
ret
Function at 0x3125c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.003249e8
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x33e4b0]
fadd qword [0x33e4c8]
call fcn.003289e0
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x3126e0
call fcn.003249e8
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x33e4b0]
fmul qword [0x33e4c0]
fadd qword [0x33e4b8]
call fcn.003289e0
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x3126c8
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x3126b9
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x3126b0
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x312677
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret

Function at 0x312780
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x342c20]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.00326cc0
add esp, 0xc
cmp edi, esi
je 0x312868
mov eax, 0x33c790
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x3127c5
sub eax, edx
sar eax, 1
je 0x3127ef
push 0x33c924
lea edx, [esp + 8]
push 0x33c790
push edx
call fcn.00324e3b
add esp, 0xc
jmp 0x31282a
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [fcn.00339234]
push 0x33c894
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.003248ea
push 0x33c924
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00324e3b
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x31284d
push eax
push 1
push 0x200
push edi
call fcn.00325401
mov ecx, dword [esp + 0x14]
push ecx
call fcn.003251c2
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.003248db
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.003248db
add esp, 0x214
ret
Function at 0x312880
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x33c8b0
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.00324e3b
add esp, 0xc
test eax, eax
je 0x3128a4
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.0032550d
mov eax, dword [esp + 0x1c]
push eax
call fcn.0032572f
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.0032550d
lea ebp, [esi + 0x32]
push ebp
call fcn.003257ec
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.0032512e
mov eax, dword [esp + 0x40]
push eax
call fcn.003251c2
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.00312950
mov ecx, dword [esp + 0x4c]
push 0x33c924
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00324e3b
add esp, 0x40
test eax, eax
je 0x312922
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.00325401
mov ecx, dword [esp + 0x20]
push ecx
call fcn.003251c2
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x314570
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.00329170
mov eax, dword [0x342c20]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x1010]
push ebx
push ebp
mov ebp, dword [0x3393d4]
xor ebx, ebx
push ebx
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x3145c8
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.003248db
add esp, 0x100c
ret
cmp dword [esp + 8], ebx
jbe 0x314607
push esi
nop
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x314606
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00325401
add ebx, esi
add esp, 0x10
cmp ebx, dword [esp + 0xc]
jb 0x3145d0
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.003251c2
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp ebx, dword [esp + 8]
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.003248db
add esp, 0x100c
ret
Function at 0x3161b0
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
mov eax, 0x1068
call fcn.00329170
mov eax, dword [0x342c20]
xor eax, esp
mov dword [esp + 0x1064], eax
mov eax, dword [esp + 0x106c]
push ebx
push ebp
push 0x33c8b0
push eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
xor ebp, ebp
call fcn.00324e3b
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
jne 0x31621b
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
pop ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.003248db
add esp, 0x1068
ret
push esi
push 2
push ebx
push eax
call fcn.0032550d
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0032572f
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push edx
mov dword [esp + 0x2c], eax
call fcn.0032550d
mov eax, dword [esp + 0x28]
push eax
push 0x1000
lea ecx, [esp + 0x94]
push 1
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], 0x67452301
mov dword [esp + 0x4c], 0xefcdab89
mov dword [esp + 0x50], 0x98badcfe
mov dword [esp + 0x54], 0x10325476
mov dword [esp + 0x58], 0xc3d2e1f0
call fcn.0032512e
mov esi, eax
add esp, 0x2c
cmp esi, ebx
jbe 0x3162c6
lea edx, [esp + 0x70]
push esi
push edx
lea ebx, [esp + 0x1c]
call fcn.00316020
mov eax, dword [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x80]
push 1
push ecx
add ebp, esi
call fcn.0032512e
mov esi, eax
add esp, 0x18
test esi, esi
ja 0x316291
xor ebx, ebx
push edi
lea esi, [esp + 0x18]
call fcn.003160c0
mov edx, dword [esp + 0x10]
push edx
call fcn.003251c2
add esp, 8
pop esi
cmp ebp, dword [esp + 0xc]
jb 0x3161f4
mov ecx, dword [esp + 0x106c]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.003248db
add esp, 0x1068
ret