joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b44e
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 0x42b4e4
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x42b4e1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x42b4e1
lea eax, [esi - 1]
push eax
push dword [0x487fa0]
call fcn.00412ede
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x42b4e3
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x42b4d1
mov edx, 0xfa01
cmp word [ecx], dx
je 0x42b4dc
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x42b4c1
jmp 0x42b4e1
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x42b58a
push eax
call esi
test al, al
jns 0x42b58a
push 0x11
call esi
test al, al
js 0x42b58a
push 0x10
call esi
test al, al
js 0x42b58a
push 0x12
call esi
test al, al
js 0x42b58a
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x42b58a
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.00430348
add esp, 0xc
test eax, eax
je 0x42b55e
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.00430348
add esp, 0xc
test eax, eax
jne 0x42b575
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x42b5cb
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.0044ac48
pop ecx
pop ecx
test eax, eax
je 0x42b5cb
test ebp, ebp
je 0x42b5ae
push 0x11
call esi
test al, al
js 0x42b5a6
push 0x10
call esi
test al, al
js 0x42b5a6
push 0x12
call esi
test al, al
jns 0x42b5ae
push 1
push ebp
call fcn.0042b6ef
test ebx, ebx
je 0x42b5c2
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x42b5cb
test edi, edi
je 0x42b5cb
mov eax, dword [edi + 8]
jmp 0x42b5cd
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x42b7f3
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x10c
push 8
push dword [0x4857e4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x487dc8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x487dcc], esi
mov eax, esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 7
mov dword [esi], 0x42b9a8
mov dword [esi + 4], 0x42ba5f
mov dword [esi + 8], 0x42baf7
mov dword [esi + 0xc], 0x42bc47
mov dword [esi + 0x10], 0x42bd2a
mov dword [esi + 0x14], 0x42bd86
mov dword [esi + 0x18], 0x42bdc4
mov dword [esi + 0x1c], 0x42bddc
mov dword [esi + 0x20], fcn.0042bdf4
mov dword [esi + 0x24], 0x42c106
mov dword [esi + 0x28], fcn.0042bf57
mov dword [esi + 0x2c], 0x42c122
mov dword [esi + 0x30], 0x42c20b
mov dword [esi + 0x34], 0x42c354
mov dword [esi + 0x38], 0x42bb36
mov dword [esi + 0x3c], 0x42c40b
mov dword [esi + 0x40], 0x42b9c8
mov dword [esi + 0x44], 0x42c4ab
mov dword [esi + 0x48], 0x42c5a9
mov dword [esi + 0x4c], 0x42c5fa
mov dword [esi + 0x50], 0x42c6bc
mov dword [esi + 0x54], 0x42c84e
mov dword [esi + 0x58], 0x42c9aa
mov dword [esi + 0x5c], 0x42ca65
mov dword [esi + 0x60], 0x42c960
mov dword [esi + 0x64], 0x42c90a
pop esi
ret
Function at 0x42ccb0
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 0x42ccd2
push ebx
call fcn.0040cef0
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 0x42cd4e
mov eax, esi
sub eax, 1
je 0x42cd3a
sub eax, 1
je 0x42cd24
sub eax, 2
je 0x42cd10
push esi
push ecx
push dword [esp + 0x20]
call fcn.0041e130
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.0041e130
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 0x42cd96
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 0x42cdb6
mov esi, eax
mov eax, dword [esp + 0x18]
push esi
push dword [ebx + 4]
push eax
call fcn.0041e130
sub dword [ebx + 0xc], esi
lea eax, [esi + ebp]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x42cde0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0x4857e4]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x42cf70
mov cl, byte [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x42ce2e
test ebp, ebp
je 0x42ced6
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x42ce4a
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0042ccb0
mov dword [esp + 0x10], eax
jmp 0x42ce64
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x24]
cmp eax, 1
jne 0x42ced9
test cl, cl
je 0x42ce78
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, esi
mov edx, dword [esp + 0x1c]
dec eax
sub edi, edx
cmp edi, eax
jle 0x42ceb3
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x4857e4]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x24]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [edi + edx]
test cl, cl
je 0x42ced6
cmp dword [esp + 0x28], 0
jne 0x42ce20
cmp cl, 0xd
je 0x42cee2
cmp cl, 0xa
jne 0x42ce20
dec esi
jmp 0x42cf53
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x42cf53
jmp 0x42cee5
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x42ceed
dec esi
jmp 0x42cf53
cmp cl, 0xd
jne 0x42cf53
dec esi
cmp dword [edi], 0
je 0x42cf0b
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0042ccb0
mov dword [esp + 0x10], eax
jmp 0x42cf21
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x24], 0xa
je 0x42cf53
cmp dword [edi], 0
je 0x42cf32
inc dword [ebx + 0xc]
jmp 0x42cf53
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x30]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
Function at 0x42cf80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push 0x1000
push 0
push dword [0x4857e4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 8], edx
test edx, edx
je 0x42d13f
mov ax, word [esp + 0x1c]
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x1c], 0x1000
mov dword [esp + 0x18], 0x7ff
mov ecx, dword [esp + 0x30]
cmp ecx, 0xffffffff
je 0x42cfd9
test ecx, ecx
je 0x42d09c
dec ecx
mov dword [esp + 0x30], ecx
cmp dword [ebx + 4], 0
lea ebp, [ebx + 4]
je 0x42cff5
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.0042ccb0
mov dword [esp + 0x10], eax
jmp 0x42d00f
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
cmp eax, 2
mov ax, word [esp + 0x28]
jne 0x42d09f
test ax, ax
je 0x42d02d
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, edi
mov ecx, dword [esp + 0x18]
sub esi, edx
sar esi, 1
cmp esi, ecx
jle 0x42d074
mov eax, dword [esp + 0x1c]
add ecx, 0x800
add eax, 0x1000
mov dword [esp + 0x18], ecx
push eax
push edx
push 8
push dword [0x4857e4]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
mov ax, word [esp + 0x28]
mov dword [esp + 0x14], edx
lea edi, [edx + esi*2]
test ax, ax
je 0x42d09f
cmp dword [esp + 0x2c], 0
jne 0x42cfc3
cmp ax, 0xd
je 0x42d0a6
cmp ax, 0xa
jne 0x42cfc3
sub edi, 2
jmp 0x42d11e
lea ebp, [ebx + 4]
cmp dword [esp + 0x2c], 0
jne 0x42d11e
cmp ax, 0xa
jne 0x42d0b1
sub edi, 2
jmp 0x42d11e
cmp ax, 0xd
jne 0x42d11e
sub edi, 2
cmp dword [ebp], 0
je 0x42d0d3
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.0042ccb0
mov dword [esp + 0x10], eax
jmp 0x42d0e9
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x28], 0xa
je 0x42d11e
cmp dword [ebp], 0
je 0x42d0fd
add dword [ebx + 0xc], 2
jmp 0x42d11e
push 1
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, edi
sub ecx, dword [esp + 0x14]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10
Function at 0x42d150
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x4857e4]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x42d2a0
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x42d19c
test edi, edi
je 0x42d20d
dec edi
push esi
push ebp
call fcn.0044ac90
mov dword [esp + 0x20], eax
test eax, eax
jne 0x42d1af
xor cl, cl
jmp 0x42d1b1
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x42d1f4
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x4857e4]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x42d20d
test eax, eax
jne 0x42d192
cmp cl, 0xd
je 0x42d211
cmp cl, 0xa
jne 0x42d192
dec esi
jmp 0x42d283
test eax, eax
jne 0x42d283
cmp cl, 0xa
jne 0x42d219
dec esi
jmp 0x42d283
cmp cl, 0xd
jne 0x42d283
dec esi
cmp dword [ebp + 4], 0
je 0x42d238
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.0042ccb0
mov dword [esp + 0x20], eax
jmp 0x42d24f
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x42d283
cmp dword [ebp + 4], 0
je 0x42d261
inc dword [ebp + 0xc]
jmp 0x42d283
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x42d2b0
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 0x42d3c7
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x42d2fd
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 0x42d386
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x42d36f
sub eax, 1
je 0x42d356
sub eax, 2
je 0x42d33f
push esi
push dword [esp + 0x24]
push ecx
call fcn.0041e130
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.0040cef0
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x42d3b5
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 0x42d327
xor eax, eax
pop edi
add esp, 8
ret 0xc
Function at 0x42f161
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0044b6f0
mov eax, dword [0x484fc0]
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.00437623
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42f1a3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42f2ff
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0044b640
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 + 0x4882b8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0044b1bb
mov ecx, dword [esi*4 + 0x4882b8]
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 0x42f2f8
cmp eax, dword [ecx + edi + 0x24]
jne 0x42f2f8
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 0x42f2f8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044b1bb
add esp, 0x14
test edx, edx
jl 0x42f2f8
jg 0x42f26e
test eax, eax
jb 0x42f2f8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42f2f8
jl 0x42f288
cmp dword [ebp - 0x1008], eax
ja 0x42f2f8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42f2a6
test ebx, ebx
je 0x42f2df
cmp ecx, edi
jae 0x42f2df
mov al, byte [ecx]
cmp al, 0xd
jne 0x42f2c0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42f2cc
cmp byte [ecx + 1], 0xa
jne 0x42f2cc
inc ecx
jmp 0x42f2cc
movzx eax, al
movsx eax, byte [eax + 0x4850c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42f2a6
cmp edx, ebx
jne 0x42f2a6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42f2fd
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043662e
leave
ret

Function at 0x42f760
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 0x42f798
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 0x42f793
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.0041e130
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x434342
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45fba8
push 0x45fba0
push str.FlsAlloc
push 0x1f
call fcn.00434759
mov esi, eax
add esp, 0x10
test esi, esi
je 0x434376
push dword [ebp + 8]
mov ecx, esi
call dword [0x471330]
call esi
jmp 0x43437c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4343c0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45fbb8
push 0x45fbb0
push str.FlsGetValue
push 0x21
call fcn.00434759
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4343f7
push dword [ebp + 8]
mov ecx, esi
call dword [0x471330]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4343ff
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45fbc0
push 0x45fbb8
push str.FlsSetValue
push 0x22
call fcn.00434759
mov esi, eax
add esp, 0x10
test esi, esi
je 0x434439
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x471330]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43a361
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 + 0x4882b8]
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 0x43a3a1
cmp byte [ebx], 0xa
jne 0x43a3a1
or byte [edi + eax + 0x28], 4
jmp 0x43a3a6
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 0x43a4a5
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43a488
inc eax
cmp dl, 0xd
je 0x43a3d2
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x43a3f8
cmp eax, ecx
jae 0x43a406
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 0x43a3ba
jmp 0x43a4a5
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 0x43a483
cmp dword [ebp - 0x10], 0
je 0x43a483
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4882b8]
test byte [eax + edi + 0x28], 0x48
je 0x43a45d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43a448
mov byte [esi], dl
jmp 0x43a459
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4882b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43a4a5
cmp byte [ebp - 1], 0xa
jne 0x43a46c
cmp esi, ebx
jne 0x43a46c
mov byte [esi], 0xa
jmp 0x43a4a4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044b15d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43a4a5
mov byte [esi], 0xd
jmp 0x43a4a4
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4882b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43a4a2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43a4a5
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43a4ae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4882b8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43a4f4
cmp word [ebx], dx
jne 0x43a4f4
or byte [eax + edi + 0x28], 4
jmp 0x43a4f9
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x43a65c
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x43a63c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x43a53a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43a570
cmp eax, edx
jae 0x43a57e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x43a515
jmp 0x43a65c
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43a637
cmp dword [ebp - 0x18], 0
je 0x43a637
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4882b8]
test byte [eax + edi + 0x28], 0x48
je 0x43a60d
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x43a5d1
mov word [esi], cx
jmp 0x43a608
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4882b8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4882b8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4882b8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43a65c
pop eax
cmp word [ebp - 4], ax
jne 0x43a61d
cmp esi, ebx
jne 0x43a61d
mov word [esi], ax
jmp 0x43a659
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044b15d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43a65c
push 0xd
pop eax
jmp 0x43a618
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4882b8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43a656
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43a65c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret