joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f50
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x401f8c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x401fa0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x401fb9
push dword [0x4428b8]
call fcn.0040a1d0
pop edi
ret 4
push esi
push edi
push dword [0x4428b8]
call fcn.00409f8c
mov esi, eax
test esi, esi
je 0x402023
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40200f
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x401ffe
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x4424e4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x4428b8]
call fcn.00409fb4
pop esi
pop edi
ret 4

Function at 0x402440
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x4024a5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x40249d
push dword [esp + 0x10]
push dword [0x4428b8]
call fcn.00409f8c
test eax, eax
je 0x402493
cmp dword [eax + 4], 0
je 0x402482
push edi
push esi
push eax
call fcn.0040a330
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x405398
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x442c64]
call fcn.00409f8c
mov ebx, eax
test ebx, ebx
je 0x4053fc
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4053c1
push dword [esp + 0xc]
push ebx
call eax
jmp 0x4053fc
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00409db0
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call fcn.00409a8d
pop ecx
sub edi, eax
push edi
call fcn.00409e50
pop edi
pop esi
pop ebx
ret 8

Function at 0x40617e
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4061a7
test byte [esp + 8], 2
je 0x40619b
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4061a9
xor eax, eax
ret 8

Function at 0x4061ba
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x406302
xor ecx, ecx
cmp word [eax], cx
je 0x406302
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00409d65
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.00409a8d
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x406213
cmp eax, 3
jne 0x40624d
cmp word [esp + 0xa], 0x3a
jne 0x40624d
cmp eax, 2
jne 0x406231
lea eax, [esp + 8]
push 0x43bcec
push eax
call fcn.00409a3a
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x406302
push 0xfffffffffffffffe
pop edi
jmp 0x406302
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x406262
cmp ax, bx
jne 0x40626c
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x406255
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4062ab
test byte [esp + 0x21c], 0x10
je 0x406292
push 0xfffffffffffffffe
pop edi
jmp 0x4062a2
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x406300
cmp word [esp + 0x10], bp
jne 0x4062b9
cmp word [esp + 0x12], bp
je 0x4062d8
cmp word [esp + 0x10], bx
jne 0x4062c7
cmp word [esp + 0x12], bx
je 0x4062d8
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x406300
cmp word [esp + 0x12], ax
jne 0x406300
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4062ed
test al, 0x10
je 0x406300
jmp 0x4062fd
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x406300
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4
Function at 0x409905
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40995a
push dword [esp + 0x10]
push 0x4099b9
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x4430bc]
test edi, edi
je 0x4099b3
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x409952
cmp byte [edi + 0x10], 0
je 0x409952
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, ebx
test ebx, ebx
jne 0x40992e
jmp 0x4099b3
mov edi, dword [0x4430bc]
test edi, edi
je 0x4099b3
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x4099ac
cmp byte [edi + 0x11], 0
je 0x409985
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x40999c
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [edi + 8]
push eax
push 0x4430bc
call fcn.00409ecf
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x409967
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40a037
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x40a0f6
cmp dword [esp + 0x24], 2
je 0x40a0f6
push 0x2000
push ebp
push dword [0x4424e4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x40a0c5
cmp dword [esp + 0x18], 2
jne 0x40a0e1
cmp dword [esp + 0x28], 0xffffffff
je 0x40a089
cmp ebp, dword [esp + 0x28]
jae 0x40a0e1
add ebp, 2
test ebx, ebx
jne 0x40a0ae
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x4424e4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x40a0e1
cmp ax, 0xd
je 0x40a0c5
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a075
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.00416e90
jmp 0x40a188
push eax
push 0
push dword [0x4424e4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x40a114
cmp ebp, dword [esp + 0x28]
jae 0x40a16c
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a16c
cmp dword [esp + 0x18], 1
jne 0x40a16c
inc ebp
test ebx, ebx
jne 0x40a159
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x4424e4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x40a16c
cmp al, 0xd
je 0x40a107
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x40a107
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x40a183
call fcn.00416e20
jmp 0x40a188
call fcn.0040cd50
push esi
push 0
push dword [0x4424e4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x40a200
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x40a222
push ebx
call fcn.00401f50
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov ebp, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x1c]
sub ecx, ebp
add ecx, dword [ebx + 0x10]
cmp ebp, esi
jl 0x40a29e
mov eax, esi
sub eax, 1
je 0x40a28a
sub eax, 1
je 0x40a274
sub eax, 2
je 0x40a260
push esi
push ecx
push dword [esp + 0x20]
call fcn.0040bad0
add esp, 0xc
mov eax, esi
sub dword [ebx + 0xc], esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [ecx]
pop edi
mov dword [eax], ecx
mov eax, esi
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov cx, word [ecx]
pop edi
mov word [eax], cx
mov eax, esi
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov dl, byte [ecx]
mov eax, esi
mov ecx, dword [esp + 0x18]
pop edi
mov byte [ecx], dl
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
push ebp
push ecx
push eax
call fcn.0040bad0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, ebp
mov ecx, dword [ebx]
sub esi, ebp
mov dword [esp + 0x18], eax
push 0
cmp esi, edx
jl 0x40a2e6
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
add eax, ebp
mov dword [ebx + 0xc], 0
pop ebp
pop ebx
ret 0xc
lea eax, [esp + 0x18]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
cmp esi, eax
jle 0x40a306
mov esi, eax
mov eax, dword [esp + 0x18]
push esi
push dword [ebx + 4]
push eax
call fcn.0040bad0
sub dword [ebx + 0xc], esi
lea eax, [esi + ebp]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x40a330
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x10], 0
cmp dword [edi + 0x1c], 0
jne 0x40a447
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x40a37d
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x10]
push 1
neg eax
cdq
push ecx
push eax
push dword [edi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
push esi
mov esi, dword [esp + 0x24]
cmp eax, esi
jle 0x40a406
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x40a3ef
sub eax, 1
je 0x40a3d6
sub eax, 2
je 0x40a3bf
push esi
push dword [esp + 0x24]
push ecx
call fcn.0040bad0
add esp, 0xc
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov ax, word [eax]
mov word [ecx], ax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov al, byte [eax]
mov byte [ecx], al
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
push edi
call fcn.00401f50
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x40a435
push 0
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x2c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov ecx, dword [edi + 4]
sub ecx, dword [edi + 0xc]
push esi
push dword [esp + 0x24]
add ecx, eax
jmp 0x40a3a7
xor eax, eax
pop edi
add esp, 8
ret 0xc
Function at 0x40cfae
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d132
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x40d115
sub eax, 1
jne 0x40d132
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.0040d13e
pop ecx
test eax, eax
je 0x40d022
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
cmp byte [esp + 0x23a], 1
jmp 0x40d053
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d132
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x356], 1
jne 0x40d058
xor edi, edi
inc edi
sub ecx, 3
je 0x40d111
sub ecx, 1
je 0x40d10d
sub ecx, 1
je 0x40d0e8
sub ecx, 1
je 0x40d098
sub ecx, 4
jne 0x40d132
test eax, eax
jne 0x40d132
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x40d132
sub eax, 0
je 0x40d0da
sub eax, 1
je 0x40d0cc
sub eax, 1
je 0x40d0be
sub eax, 1
jne 0x40d132
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x40d132
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x40d132
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x40d132
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x40d132
sub eax, 0
je 0x40d109
sub eax, 1
je 0x40d105
sub eax, 1
jne 0x40d132
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x40d132
push 0x3c
jmp 0x40d131
push 0x32
jmp 0x40d131
push 0x14
jmp 0x40d131
push 5
jmp 0x40d131
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40d12f
cmp eax, 0xa
je 0x40d12b
cmp eax, 0x5a
jne 0x40d132
push 0x28
jmp 0x40d131
push 0x1e
jmp 0x40d131
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x4100b1
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x410147
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x410144
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x410144
lea eax, [esi - 1]
push eax
push dword [0x443104]
call fcn.00409f8c
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x410146
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x410134
mov edx, 0xfa01
cmp word [ecx], dx
je 0x41013f
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x410124
jmp 0x410144
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x4101ed
push eax
call esi
test al, al
jns 0x4101ed
push 0x11
call esi
test al, al
js 0x4101ed
push 0x10
call esi
test al, al
js 0x4101ed
push 0x12
call esi
test al, al
js 0x4101ed
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x4101ed
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.004123a7
add esp, 0xc
test eax, eax
je 0x4101c1
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.004123a7
add esp, 0xc
test eax, eax
jne 0x4101d8
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x41022e
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.0040c044
pop ecx
pop ecx
test eax, eax
je 0x41022e
test ebp, ebp
je 0x410211
push 0x11
call esi
test al, al
js 0x410209
push 0x10
call esi
test al, al
js 0x410209
push 0x12
call esi
test al, al
jns 0x410211
push 1
push ebp
call fcn.00410352
test ebx, ebx
je 0x410225
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x41022e
test edi, edi
je 0x41022e
mov eax, dword [edi + 8]
jmp 0x410230
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x411428
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041a130
mov eax, dword [0x441da0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00418588
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41146a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4115c6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041a080
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x443518]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00419c0a
mov ecx, dword [esi*4 + 0x443518]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4115bf
cmp eax, dword [ecx + edi + 0x24]
jne 0x4115bf
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4115bf
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419c0a
add esp, 0x14
test edx, edx
jl 0x4115bf
jg 0x411535
test eax, eax
jb 0x4115bf
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4115bf
jl 0x41154f
cmp dword [ebp - 0x1008], eax
ja 0x4115bf
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41156d
test ebx, ebx
je 0x4115a6
cmp ecx, edi
jae 0x4115a6
mov al, byte [ecx]
cmp al, 0xd
jne 0x411587
lea eax, [edi - 1]
cmp ecx, eax
jae 0x411593
cmp byte [ecx + 1], 0xa
jne 0x411593
inc ecx
jmp 0x411593
movzx eax, al
movsx eax, byte [eax + 0x441da8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41156d
cmp edx, ebx
jne 0x41156d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4115c4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00418700
leave
ret

Function at 0x411a30
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x411a68
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411a63
xor eax, eax
cmp dword [esp + 0xc], esi
pop edi
sete al
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call fcn.0040bad0
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x4137e6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
je 0x413844
add ebx, 2
lea eax, [ebx*2 + 2]
push eax
push edi
push dword [0x4424e4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x413844
cmp dword [ebp + 0xc], 0
je 0x413833
push dword [ebp + 0xc]
push edi
call fcn.00409a6b
push 0x43c964
push edi
call fcn.00409a3a
add esp, 0x10
jmp 0x413840
push 0x43c964
push edi
call fcn.00409a6b
pop ecx
pop ecx
mov esi, edi
jmp 0x413847
mov esi, dword [ebp + 0xc]
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x4138b0
mov eax, dword [0x441bb4]
dec eax
sub eax, 1
je 0x41388a
sub eax, 0x16
je 0x413882
push 0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebx + ebx]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4138b0
push esi
call fcn.00416d90
jmp 0x413890
push esi
call fcn.0040ccb0
mov esi, eax
lea eax, [ebp + 0x10]
push 0
push eax
push esi
call fcn.004206a0
pop ecx
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.0040cd40
test edi, edi
je 0x4138c3
push edi
push 0
push dword [0x4424e4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x414dd6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4322a0
push 0x432298
push str.FlsAlloc
push 0x1f
call fcn.004151ed
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414e0a
push dword [ebp + 8]
mov ecx, esi
call dword [0x43cd60]
call esi
jmp 0x414e10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x414e54
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4322b0
push 0x4322a8
push str.FlsGetValue
push 0x21
call fcn.004151ed
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414e8b
push dword [ebp + 8]
mov ecx, esi
call dword [0x43cd60]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x414e93
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4322b8
push 0x4322b0
push str.FlsSetValue
push 0x22
call fcn.004151ed
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414ecd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43cd60]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41970b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x443518]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41974b
cmp byte [ebx], 0xa
jne 0x41974b
or byte [edi + eax + 0x28], 4
jmp 0x419750
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41984f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x419832
inc eax
cmp dl, 0xd
je 0x41977c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4197a2
cmp eax, ecx
jae 0x4197b0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x419764
jmp 0x41984f
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41982d
cmp dword [ebp - 0x10], 0
je 0x41982d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x443518]
test byte [eax + edi + 0x28], 0x48
je 0x419807
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4197f2
mov byte [esi], dl
jmp 0x419803
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x443518]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41984f
cmp byte [ebp - 1], 0xa
jne 0x419816
cmp esi, ebx
jne 0x419816
mov byte [esi], 0xa
jmp 0x41984e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00419bac
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41984f
mov byte [esi], 0xd
jmp 0x41984e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x443518]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41984c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41984f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret