joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ac7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43b034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x14], 1
jne 0x401afb
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00412770
add esp, 0xc
jmp 0x401b0e
push dword [esi + 0x1c]
lea eax, [ebp - 0xc]
push 8
push 1
push eax
call fcn.004131eb
add esp, 0x10
movzx ecx, byte [ebp - 8]
movzx eax, byte [ebp - 7]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, eax
mov byte [ebp - 8], 0
movzx eax, byte [ebp - 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 5]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0xc]
push str.EA06
push eax
mov dword [edi], ecx
call fcn.004134b0
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
neg eax
pop esi
call fcn.004126e7
mov esp, ebp
pop ebp
ret 4

Function at 0x401bf3
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x10000
mov eax, dword [esi + 0x460]
test eax, eax
je 0x401c09
cmp eax, ecx
jne 0x401c24
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x458]
call fcn.004131eb
add esp, 0x10
and dword [esi + 0x460], 0
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x460], ecx
pop esi
ret

Function at 0x401c3c
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x18], 1
mov eax, dword [edi + 0x440]
je 0x401cf9
cmp eax, dword [edi + 0x438]
jae 0x401cc3
push ebx
mov ebx, 0x10000
mov esi, dword [edi + 0x440]
mov eax, dword [edi + 0x434]
and esi, 0x1ffff
mov ecx, dword [edi + 0x45c]
mov edx, dword [edi + 0x454]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
inc dword [edi + 0x45c]
cmp dword [edi + 0x45c], ebx
jne 0x401cab
push dword [edi + 0x20]
push ebx
push 1
push dword [edi + 0x454]
call fcn.0041375f
add esp, 0x10
and dword [edi + 0x45c], 0
inc dword [edi + 0x440]
mov eax, dword [edi + 0x440]
inc dword [edi + 8]
cmp eax, dword [edi + 0x438]
jb 0x401c5e
pop ebx
and dword [edi + 0x43c], 0
pop edi
pop esi
ret
mov esi, dword [edi + 0x440]
mov eax, dword [edi + 0x434]
and esi, 0x1ffff
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
inc dword [edi + 8]
inc dword [edi + 0x440]
mov eax, dword [edi + 0x440]
cmp eax, dword [edi + 0x438]
jb 0x401ccd
jmp 0x401cc3
Function at 0x401d03
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov ebx, dword [esi + 0x10]
mov dword [ebp - 4], ebx
jmp 0x401e4f
push 1
mov ecx, esi
call fcn.00401e8e
mov ecx, esi
cmp eax, 1
jne 0x401d55
push 8
call fcn.00401e8e
mov edx, dword [esi + 0x438]
mov ecx, dword [esi + 0x434]
and edx, 0x1ffff
mov byte [edx + ecx], al
inc dword [esi + 0x438]
inc dword [esi + 0x43c]
jmp 0x401dfa
push 0xf
call fcn.00401e8e
push 2
mov ecx, esi
mov dword [ebp - 8], eax
xor edi, edi
call fcn.00401e8e
cmp eax, 3
jne 0x401db8
push eax
pop edi
push eax
mov ecx, esi
call fcn.00401e8e
cmp eax, 7
jne 0x401db8
push 0xa
pop edi
push 5
mov ecx, esi
call fcn.00401e8e
cmp eax, 0x1f
jne 0x401db8
push 0x29
pop edi
push 8
mov ecx, esi
call fcn.00401e8e
mov ebx, 0xff
cmp eax, ebx
jne 0x401db8
lea edi, [ebx + 0x29]
jmp 0x401dab
add edi, ebx
push 8
mov ecx, esi
call fcn.00401e8e
cmp eax, ebx
je 0x401da9
mov ebx, dword [esi + 0x438]
add edi, 3
sub ebx, dword [ebp - 8]
add edi, eax
je 0x401df7
mov ecx, dword [esi + 0x438]
mov eax, ebx
mov edx, dword [esi + 0x434]
and eax, 0x1ffff
and ecx, 0x1ffff
inc ebx
mov al, byte [eax + edx]
mov byte [ecx + edx], al
inc dword [esi + 0x438]
inc dword [esi + 0x43c]
dec edi
jne 0x401dc8
mov ebx, dword [ebp - 4]
mov ecx, esi
call fcn.00401c3c
mov eax, dword [0x43de00]
cmp eax, 0x1000
jbe 0x401e40
and dword [0x43de00], 0
mov edi, dword [esi + 0x450]
test edi, edi
je 0x401e46
mov ecx, dword [esi + 8]
xor edx, edx
imul eax, ecx, 0x64
div dword [esi + 0x10]
push eax
push ecx
push dword [esi + 0xc]
call edi
add esp, 0xc
test eax, eax
jne 0x401e46
mov byte [esi + 0x444], 1
jmp 0x401e46
inc eax
mov dword [0x43de00], eax
cmp byte [esi + 0x444], 0
jne 0x401e89
cmp dword [esi + 0x438], ebx
jb 0x401d18
mov eax, dword [esi + 0x45c]
test eax, eax
je 0x401e80
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x454]
call fcn.0041375f
add esp, 0x10
and dword [esi + 0x45c], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
pop eax
jmp 0x401e82

Function at 0x401f2a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
je 0x401f55
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov edx, dword [ecx]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0x401f69
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004131eb
add esp, 0x10
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4021be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x10]
push ebx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x40223d
push 0
push str.SCRIPT
push 0xa
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x40223d
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40223d
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40223d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40223d
mov ecx, dword [ebx]
push 0
push edi
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0x10]
mov eax, dword [ebx]
xor edx, edx
push edx
push edx
push edx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov byte [esi + 0x14], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40249b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x43b034]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0xe4]
call fcn.00411637
push dword [ebp + 0x10]
lea ecx, [ebp - 0xe4]
call fcn.0041177c
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x4024e9
push ecx
push ecx
lea ecx, [ebp - 0xe4]
call fcn.00411750
xor byte [edi + esi], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x4024d3
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004126e7
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402aaa
Capabilities:
Parse pe header

Disassembly:
cmp byte [ecx + 0xd], 0
je 0x402abb
mov dword [ecx + 0x10], 8
xor al, al
jmp 0x402b27
and dword [ecx + 0x10], 0
mov edx, dword [ecx + 8]
push esi
test edx, edx
je 0x402b17
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x402b0e
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x402b05
movzx edx, word [eax + 4]
mov esi, 0x14c
cmp dx, si
je 0x402af6
mov esi, 0x8664
cmp dx, si
jne 0x402b05
push 3
pop edx
cmp word [eax + 0x5c], dx
je 0x402b1e
mov word [eax + 0x5c], dx
jmp 0x402b1e
mov dword [ecx + 0x10], 7
jmp 0x402b1e
mov dword [ecx + 0x10], 6
jmp 0x402b1e
mov dword [ecx + 0x10], 1
xor eax, eax
cmp dword [ecx + 0x10], eax
pop esi
sete al
ret 4

Function at 0x402b2a
Capabilities:
Parse pe header

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0xd], 0
je 0x402b40
mov dword [esi + 0x10], 8
xor al, al
jmp 0x402b91
and dword [esi + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x402b82
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402b79
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x402b70
call fcn.00402c17
test eax, eax
je 0x402b89
mov dword [edi + 8], eax
jmp 0x402b89
mov dword [esi + 0x10], 7
jmp 0x402b89
mov dword [esi + 0x10], 6
jmp 0x402b89
mov dword [esi + 0x10], 1
xor eax, eax
cmp dword [esi + 0x10], eax
sete al
pop edi
pop esi
pop ecx
ret
Function at 0x402b95
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xd], 0
je 0x402ba9
mov dword [esi + 0x10], 8
xor al, al
pop esi
ret
and dword [esi + 0x10], 0
mov eax, dword [esi + 8]
push edi
test eax, eax
je 0x402c05
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402bfc
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x402bf3
movzx eax, word [edi + 4]
mov ecx, 0x14c
cmp ax, cx
je 0x402be4
mov ecx, 0x8664
cmp ax, cx
jne 0x402bf3
push dword [edi + 0x58]
mov ecx, esi
call fcn.00402c93
mov dword [edi + 0x58], eax
jmp 0x402c0c
mov dword [esi + 0x10], 7
jmp 0x402c0c
mov dword [esi + 0x10], 6
jmp 0x402c0c
mov dword [esi + 0x10], 1
xor eax, eax
cmp dword [esi + 0x10], eax
pop edi
sete al
pop esi
ret

Function at 0x402c93
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
xor eax, eax
mov dword [esi + 0x10], eax
cmp dword [esi + 8], eax
je 0x402cf3
push ebx
push edi
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 8]
mov ebx, eax
mov esi, dword [esi + 8]
mov ecx, edx
neg edx
not ecx
sbb edx, edx
lea edi, [ebx + 1]
and edx, ecx
shr edi, 1
je 0x402ce3
movzx eax, word [esi]
lea esi, [esi + 2]
add edx, eax
mov eax, edx
shr eax, 0x10
test ax, ax
je 0x402ce0
mov ecx, eax
movzx edx, dx
add edx, ecx
dec edi
jne 0x402cc7
mov ecx, edx
movzx eax, dx
shr ecx, 0x10
add ecx, ebx
pop edi
add eax, ecx
pop ebx
jmp 0x402cfc
mov dword [esi + 0x10], 1
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x402d01
Capabilities:
Parse pe header

Disassembly:
and dword [ecx + 0x10], 0
mov edx, dword [ecx + 8]
push esi
test edx, edx
je 0x402d57
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x402d4e
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x402d45
movzx edx, word [eax + 4]
mov esi, 0x14c
cmp dx, si
jne 0x402d3b
and dword [ecx + 0x10], 0
mov eax, dword [eax + 0x58]
pop esi
ret
mov esi, 0x8664
cmp dx, si
je 0x402d32
mov dword [ecx + 0x10], 7
jmp 0x402d5e
mov dword [ecx + 0x10], 6
jmp 0x402d5e
mov dword [ecx + 0x10], 1
xor eax, eax
pop esi
ret

Function at 0x402f7f
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x402fa7
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x402f99
pop edi
pop esi
pop ebp
ret 4
Function at 0x4047eb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push edi
push eax
mov edi, 0x20019
xor ebx, ebx
push edi
push ebx
push str.SoftwareAutoIt_v3Aut2Exe
push 0x80000001
call esi
test eax, eax
je 0x404830
lea eax, [ebp - 8]
push eax
push edi
push ebx
push str.SoftwareHiddenSoftAutoIt3Aut2Exe
push 0x80000001
call esi
test eax, eax
jne 0x40492f
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push 0x43de88
push ebx
push ebx
push str.LastScriptDir
push dword [ebp - 8]
mov edi, 0x208
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x43e090
push ebx
push ebx
push str.LastExeDir
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x43e298
push ebx
push ebx
push str.LastIconDir
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
mov edi, 0x43e4a0
push edi
push ebx
push ebx
push str.LastIcon
push dword [ebp - 8]
call esi
cmp word [0x43e4a0], bx
je 0x4048d1
mov ecx, edi
call fcn.0040e9b9
cmp eax, 0xffffffff
jne 0x4048d1
cmp dword [0x43f5ec], 1
jg 0x4048c9
push 0xa03b
mov ecx, 0x43de50
call fcn.004040a5
xor eax, eax
mov word [0x43e4a0], ax
push 4
pop edi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x43e6a8
push ebx
push ebx
push str.LastCompression
push dword [ebp - 8]
call esi
cmp dword [0x43e6a8], edi
jbe 0x4048fe
mov dword [0x43e6a8], 3
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x43e6ac
push ebx
push ebx
push str.UseUPX
push dword [ebp - 8]
call esi
xor eax, eax
inc eax
cmp dword [0x43e6ac], eax
jbe 0x404926
mov dword [0x43e6ac], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404936
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push ebx
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareAutoIt_v3AutoIt
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404a54
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push 0x433194
push ebx
push str.SoftwareAutoIt_v3Aut2Exe
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, 0x43de88
push esi
call fcn.00412e4b
pop ecx
lea eax, [eax*2 + 2]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push ebx
push str.LastScriptDir
push dword [ebp - 4]
call esi
mov ebx, 0x43e090
push ebx
call fcn.00412e4b
pop ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push str.LastExeDir
push dword [ebp - 4]
call esi
mov ebx, 0x43e298
push ebx
call fcn.00412e4b
pop ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push str.LastIconDir
push dword [ebp - 4]
call esi
mov ebx, 0x43e4a0
push ebx
call fcn.00412e4b
pop ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push str.LastIcon
push dword [ebp - 4]
call esi
push 4
pop ebx
push ebx
push 0x43e6a8
push ebx
push 0
push str.LastCompression
push dword [ebp - 4]
call esi
push ebx
push 0x43e6ac
push ebx
push 0
push str.UseUPX
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408420
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 8], ecx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x408450
xor al, al
jmp 0x4084a9
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.00411fe0
pop ecx
push ebx
lea ecx, [ebp - 4]
mov dword [ebp + 8], eax
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
mov esi, dword [ebp + 8]
je 0x40849f
mov ecx, dword [ebp - 8]
push ebx
push str.SCRIPT
push 0xa
push dword [ebp - 4]
add ecx, 0x1750
push esi
call fcn.0040a21b
mov bl, al
push esi
call fcn.00415950
pop ecx
mov al, bl
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4097e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 2
xor ebx, ebx
push ebx
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x409802
xor al, al
jmp 0x40989b
lea eax, [ebp - 4]
mov dword [0x43de10], ebx
push eax
push 0x409750
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
test eax, eax
jne 0x40982c
cmp dword [ebp - 4], ebx
jne 0x40982c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4097fb
push 0xe
push 0x63
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x409823
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409892
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
movzx ecx, word [eax + 4]
mov dword [0x43de14], ecx
test ecx, ecx
je 0x409872
lea edx, [eax + 0x12]
mov ax, word [edx]
lea edx, [edx + 0xe]
mov word [ebx*2 + 0x43de20], ax
inc ebx
cmp ebx, ecx
jb 0x40985f
cmp ecx, 0x10
jae 0x409890
mov eax, dword [0x43de10]
sub eax, ecx
inc eax
add eax, ecx
mov word [ecx*2 + 0x43de20], ax
inc ecx
inc eax
cmp ecx, 0x10
jb 0x409881
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bdae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebx]
push 2
pop edx
lea eax, [ecx + 4]
mov dword [ebx], eax
mov esi, dword [ecx + edi]
xor ecx, ecx
mov dword [ebp + 8], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412718
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
mov edi, eax
push esi
push ecx
push edi
call fcn.00412770
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [esi + edi], ax
add esp, 0x10
add dword [ebx], esi
test ecx, ecx
jle 0x40be09
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x40be00
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40d491
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x40d4cd
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x40d50a
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
test dword [ebp + 8], eax
je 0x40d4f3
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x40d4c5
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40d541
or eax, 0xffffffff
jmp 0x40d4c5
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x40d518
cmp eax, 0xffffffff
je 0x40d518
push 1
mov edx, esi
mov ecx, eax
call fcn.0040d3cd
pop ecx
jmp 0x40d4c3
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40000000
push 0x4378e8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x40d4c1
test eax, eax
je 0x40d4c1
mov ecx, dword [esi]
lea edx, [ebp + 0x10]
push 1
call fcn.0040d3cd
pop ecx
mov ecx, esi
call fcn.0040d3b8
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40d4c3

Function at 0x40d55f
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x40d59a
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x40d5d5
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
test al, 1
je 0x40d5bf
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x40d592
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40d60c
or eax, 0xffffffff
jmp 0x40d592
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x40d5e3
cmp eax, 0xffffffff
je 0x40d5e3
push 1
mov edx, esi
mov ecx, eax
call fcn.0040d3cd
pop ecx
jmp 0x40d590
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push 0x80000000
push 0x4378e8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x40d58e
test eax, eax
je 0x40d58e
mov ecx, dword [esi]
lea edx, [ebp + 0x10]
push 1
call fcn.0040d3cd
pop ecx
mov ecx, esi
call fcn.0040d3b8
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40d590

Function at 0x40d68f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
xor ecx, ecx
cmp dword [esi + 0x30], ecx
jne 0x40d6b3
lea eax, [ebp - 4]
push eax
push ecx
push esi
push 0x40d819
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x30], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d6b8
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x30]
cmp dword [edi], 0
je 0x40d717
push ebx
lea ebx, [esi + 0x34]
push dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp eax, 0x1f6
je 0x40d716
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1f6
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.0040d3b8
push 0x1f6
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
pop esi
ret

Function at 0x40d833
Capabilities:
Read file on windows

Disassembly:
push 0x14
mov eax, 0x428d2f
call fcn.00417869
mov edi, ecx
lea esi, [edi + 0x34]
push 0x1f5
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0xffff
call fcn.00412718
mov ebx, eax
mov eax, 0xffff
push eax
mov dword [edi + 0x10], eax
call fcn.00412718
pop ecx
pop ecx
push 0
mov dword [edi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 0xffff
push ebx
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d947
cmp dword [ebp - 0x10], 0
jbe 0x40d944
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x10]
add eax, ecx
cmp dword [edi + 0x10], eax
jae 0x40d903
mov eax, dword [edi + 0xc]
add eax, dword [ebp - 0x10]
mov esi, dword [edi + 8]
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
jns 0x40d8ce
fadd qword [0x4379d8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fmul qword [0x4379b8]
call fcn.004280b6
push eax
mov dword [edi + 0x10], eax
call fcn.00412718
push dword [edi + 0xc]
mov dword [edi + 8], eax
push esi
push dword [edi + 8]
call fcn.00412770
push esi
call fcn.00412769
mov ecx, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [edi + 0xc]
add eax, dword [edi + 8]
push ecx
push ebx
push eax
call fcn.00412770
mov eax, dword [ebp - 0x10]
add esp, 0xc
add dword [edi + 0xc], eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea eax, [ebp - 0x10]
push eax
push 0xffff
push ebx
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d88f
mov esi, dword [ebp - 0x18]
push ebx
call fcn.00412769
pop ecx
mov edi, 0x1f6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, edi
call fcn.00417846
ret