joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411a30
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 + 0x43a9b8]
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 0x411a76
cmp word [ebx], dx
jne 0x411a76
or byte [eax + edi + 0x28], 4
jmp 0x411a7b
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 0x411bde
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 0x411bbe
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x411abc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x411af2
cmp eax, edx
jae 0x411b00
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 0x411a97
jmp 0x411bde
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 0x411bb9
cmp dword [ebp - 0x18], 0
je 0x411bb9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x43a9b8]
test byte [eax + edi + 0x28], 0x48
je 0x411b8f
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 0x411b53
mov word [esi], cx
jmp 0x411b8a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x43a9b8]
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 + 0x43a9b8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x43a9b8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x411bde
pop eax
cmp word [ebp - 4], ax
jne 0x411b9f
cmp esi, ebx
jne 0x411b9f
mov word [esi], ax
jmp 0x411bdb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00411720
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x411bde
push 0xd
pop eax
jmp 0x411b9a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x43a9b8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x411bd8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x411bde
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416206
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x4162a1
push edi
push 0x43b660
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x43acbc]
test edi, edi
je 0x416274
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41626d
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0x43acbc
call fcn.00421468
pop ecx
pop ecx
jmp 0x41626f
mov edi, dword [edi]
test edi, edi
jne 0x416242
pop ebp
mov esi, dword [0x43a180]
push 0x10
push 0x43acbc
lea eax, [esi + 1]
mov dword [0x43a180], eax
call fcn.00421439
pop ecx
pop ecx
push 0x43b660
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x4167d7
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x41682c
push dword [esp + 0x10]
push 0x416756
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x43aed8]
test edi, edi
je 0x416885
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x416824
cmp byte [edi + 0x10], 0
je 0x416824
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 0x416800
jmp 0x416885
mov edi, dword [0x43aed8]
test edi, edi
je 0x416885
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x41687e
cmp byte [edi + 0x11], 0
je 0x416857
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x41686e
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 0x43aed8
call fcn.00421468
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x416839
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x418725
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x43b6e0]
call fcn.00420c04
xor ebx, ebx
mov ebp, eax
cmp dword [0x43b1d0], ebx
jne 0x4187b9
mov esi, 0xa8
push esi
push ebx
push 0x43b128
call fcn.004127a0
add esp, 0xc
mov dword [0x43b12c], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x43b128], 0xa
mov dword [0x43b130], 0x4182b3
push 0x7f89
push ebx
mov dword [0x43b1a0], 0x419750
mov dword [0x43b1a4], 0x4189db
mov dword [0x43b134], 0x4182d2
mov dword [0x43b1b8], 0x4182f2
call esi
mov dword [0x43b1d0], eax
test eax, eax
jne 0x4187b9
push 0x7f00
push ebx
call esi
mov dword [0x43b1d0], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0041aebb
push ebx
push dword [0x43a244]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40000000
push dword [esp + 0x48]
push str.STATIC
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x418885
push edi
push dword [esp + 0x14]
push dword [0x43b6e4]
call fcn.00420db5
mov edi, eax
push 8
or dword [edi + 0x10], 0xffffffff
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
push 0
mov dword [edi + 0x14], eax
push dword [0x43a240]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x43b128
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.00419429
push 0x4183d8
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20
Function at 0x419926
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 0x419aaa
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x419a8d
sub eax, 1
jne 0x419aaa
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.004198df
pop ecx
test eax, eax
je 0x41999a
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
cmp byte [esp + 0x23a], 1
jmp 0x4199cb
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x419aaa
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x356], 1
jne 0x4199d0
xor edi, edi
inc edi
sub ecx, 3
je 0x419a89
sub ecx, 1
je 0x419a85
sub ecx, 1
je 0x419a60
sub ecx, 1
je 0x419a10
sub ecx, 4
jne 0x419aaa
test eax, eax
jne 0x419aaa
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x419aaa
sub eax, 0
je 0x419a52
sub eax, 1
je 0x419a44
sub eax, 1
je 0x419a36
sub eax, 1
jne 0x419aaa
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x419aaa
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x419aaa
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x419aaa
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x419aaa
sub eax, 0
je 0x419a81
sub eax, 1
je 0x419a7d
sub eax, 1
jne 0x419aaa
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x419aaa
push 0x3c
jmp 0x419aa9
push 0x32
jmp 0x419aa9
push 0x14
jmp 0x419aa9
push 5
jmp 0x419aa9
mov eax, dword [esp + 0x14]
test eax, eax
je 0x419aa7
cmp eax, 0xa
je 0x419aa3
cmp eax, 0x5a
jne 0x419aaa
push 0x28
jmp 0x419aa9
push 0x1e
jmp 0x419aa9
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x41ab0b
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 0x41aba1
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x41ab9e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x41ab9e
lea eax, [esi - 1]
push eax
push dword [0x43b700]
call fcn.00420d76
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x41aba0
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x41ab8e
mov edx, 0xfa01
cmp word [ecx], dx
je 0x41ab99
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x41ab7e
jmp 0x41ab9e
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x41ac47
push eax
call esi
test al, al
jns 0x41ac47
push 0x11
call esi
test al, al
js 0x41ac47
push 0x10
call esi
test al, al
js 0x41ac47
push 0x12
call esi
test al, al
js 0x41ac47
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x41ac47
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.0040c142
add esp, 0xc
test eax, eax
je 0x41ac1b
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.0040c142
add esp, 0xc
test eax, eax
jne 0x41ac32
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x41ac88
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.004249db
pop ecx
pop ecx
test eax, eax
je 0x41ac88
test ebp, ebp
je 0x41ac6b
push 0x11
call esi
test al, al
js 0x41ac63
push 0x10
call esi
test al, al
js 0x41ac63
push 0x12
call esi
test al, al
jns 0x41ac6b
push 1
push ebp
call fcn.0041ac94
test ebx, ebx
je 0x41ac7f
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x41ac88
test edi, edi
je 0x41ac88
mov eax, dword [edi + 8]
jmp 0x41ac8a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x41b2c0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x41b2d9
push dword [0x43b724]
call fcn.00420e9c
pop edi
ret 4
push esi
push edi
push dword [0x43b724]
call fcn.00420d76
mov esi, eax
test esi, esi
je 0x41b343
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41b32f
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x41b31e
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 [0x43a240]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x43b724]
call fcn.00420d27
pop esi
pop edi
ret 4
Function at 0x41b350
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 0x41b38c
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 0x41b7d0
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov byte [esp + 7], 0
push dword [0x43b724]
call fcn.00420d76
test eax, eax
je 0x41b81b
cmp dword [eax + 4], 0
je 0x41b805
push 1
lea ecx, [esp + 7]
push ecx
push eax
call fcn.0041bb20
movsx eax, byte [esp + 3]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
lea ecx, [esp + 0xf]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x41b890
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push ebx
push dword [0x43b724]
mov dword [esp + 0x14], 0
call fcn.00420d76
mov ebp, eax
test ebp, ebp
je 0x41b9fa
push esi
push edi
push ebx
call fcn.0041bc50
cmp dword [ebp + 4], 0
mov esi, eax
mov edi, edx
je 0x41b8de
push 4
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.0041bb20
mov ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x41b8f9
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
cmp ecx, 2
jl 0x41b929
lea edx, [esp + 0x10]
mov eax, 0xfeff
cmp word [edx], ax
jne 0x41b929
add esi, 2
adc edi, 0
push edi
push esi
push ebx
call fcn.0041b720
pop edi
pop esi
pop ebp
mov eax, 0x19
pop ebx
add esp, 8
ret 4
cmp ecx, 3
jl 0x41b95c
lea edx, [esp + 0x10]
cmp word [edx], 0xbbef
jne 0x41b95c
cmp byte [edx + 2], 0xbf
jne 0x41b95c
add esi, 3
adc edi, 0
push edi
push esi
push ebx
call fcn.0041b720
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 8
ret 4
cmp ecx, 2
jl 0x41b98c
lea edx, [esp + 0x10]
mov eax, 0xfffe
cmp word [edx], ax
jne 0x41b98c
add esi, 2
adc edi, 0
push edi
push esi
push ebx
call fcn.0041b720
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 8
ret 4
cmp ecx, 4
jl 0x41b9e3
lea eax, [esp + 0x10]
cmp dword [eax], 0xfeff
jne 0x41b9ba
add esi, 4
adc edi, 0
push edi
push esi
push ebx
call fcn.0041b720
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 8
ret 4
lea eax, [esp + 0x10]
cmp dword [eax], 0xfffe0000
jne 0x41b9e3
add esi, 4
adc edi, 0
push edi
push esi
push ebx
call fcn.0041b720
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 8
ret 4
push edi
push esi
push ebx
call fcn.0041b720
pop edi
pop esi
pop ebp
mov eax, 0x18
pop ebx
add esp, 8
ret 4
pop ebp
mov eax, 0x18
pop ebx
add esp, 8
ret 4
Function at 0x41bb20
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 0x41bb42
push ebx
call fcn.0041b350
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 0x41bbbe
mov eax, esi
sub eax, 1
je 0x41bbaa
sub eax, 1
je 0x41bb94
sub eax, 2
je 0x41bb80
push esi
push ecx
push dword [esp + 0x20]
call fcn.00414700
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.00414700
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 0x41bc06
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 0x41bc26
mov esi, eax
mov eax, dword [esp + 0x18]
push esi
push dword [ebx + 4]
push eax
call fcn.00414700
sub dword [ebx + 0xc], esi
lea eax, [esi + ebp]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x41bcc0
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 0x41bdd7
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x41bd0d
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 0x41bd96
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x41bd7f
sub eax, 1
je 0x41bd66
sub eax, 2
je 0x41bd4f
push esi
push dword [esp + 0x24]
push ecx
call fcn.00414700
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.0041b350
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x41bdc5
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 0x41bd37
xor eax, eax
pop edi
add esp, 8
ret 0xc
Function at 0x41ce17
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 0x41ce75
add ebx, 2
lea eax, [ebx*2 + 2]
push eax
push edi
push dword [0x43a240]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x41ce75
cmp dword [ebp + 0xc], 0
je 0x41ce64
push dword [ebp + 0xc]
push edi
call fcn.00424979
push 0x431554
push edi
call fcn.00424948
add esp, 0x10
jmp 0x41ce71
push 0x431554
push edi
call fcn.00424979
pop ecx
pop ecx
mov esi, edi
jmp 0x41ce78
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 0x41cee1
mov eax, dword [0x43a1ac]
dec eax
sub eax, 1
je 0x41cebb
sub eax, 0x16
je 0x41ceb3
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 0x41cee1
push esi
call fcn.00422250
jmp 0x41cec1
push esi
call fcn.004221c0
mov esi, eax
lea eax, [ebp + 0x10]
push 0
push eax
push esi
call fcn.00424c50
pop ecx
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.004221b0
test edi, edi
je 0x41cef4
push edi
push 0
push dword [0x43a240]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x41e410
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 0x41e448
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 0x41e443
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.00414700
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x420c04
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x43b558]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x420c65
push esi
push dword [0x43b554]
push 8
push dword [0x43a240]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x43b558]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x43b550]
jmp 0x420c55
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x420c53
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x420c43
push edi
push 0x420ba2
call fcn.00422097
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x420c6f
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, edi
and ecx, 3
je 0x420c85
push 4
pop eax
sub eax, ecx
add edi, eax
mov esi, dword [0x43b554]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x420cbe
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
push 8
push dword [0x43a240]
mov dword [0x43b558], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x43b558]
call ebx
mov esi, dword [0x43b554]
lea eax, [edi + esi]
push eax
push dword [0x43b558]
mov dword [0x43b554], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x43a240]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x43b558]
call ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x420cfd
test ebx, ebx
je 0x420d1e
push 0x14
push 0x43b550
call fcn.00421439
pop ecx
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
test edi, edi
je 0x420d1e
lea ecx, [esi + ebp]
push ecx
call edi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x421570
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x43a1b0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov edi, eax
mov ebp, dword [esp + 0x14]
mov esi, dword [edi + 8]
mov ecx, dword [ebp]
sub esi, ebx
lea eax, [esi + 0xa]
push eax
test ecx, ecx
jne 0x4215a9
push ecx
push dword [0x43b8f4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x4215b8
push ecx
push 0
push dword [0x43b8f4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
shr esi, 1
mov dword [ebp], ecx
mov eax, dword [edi]
push esi
add eax, ebx
push eax
push ecx
call fcn.004218d0
mov dword [edi + 8], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x421660
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x43a1b0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov eax, ecx
ret

Function at 0x4216b0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x43a1b0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 8], 2
ret