joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418899
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
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 ebp, eax
test ebp, ebp
je 0x418931
push edi
push 0x43ba8c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x43a20c]
test edi, edi
je 0x418905
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4188fe
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x43a20c
call fcn.00430ead
pop ecx
pop ecx
jmp 0x418900
mov edi, dword [edi]
test edi, edi
jne 0x4188d5
pop ebx
mov eax, dword [0x437c6c]
mov esi, eax
inc eax
push 0x10
push 0x43a20c
mov dword [0x437c6c], eax
call fcn.00430eed
pop ecx
pop ecx
push 0x43ba8c
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x41b3f4
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x41b449
push dword [esp + 0x10]
push 0x41b373
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x43a428]
test esi, esi
je 0x41b4a2
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x41b441
cmp byte [esi + 0x10], 0
je 0x41b441
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x41b41d
jmp 0x41b4a2
mov esi, dword [0x43a428]
test esi, esi
je 0x41b4a2
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x41b49b
cmp byte [esi + 0x11], 0
je 0x41b477
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x41b48e
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x43a428
call fcn.00430ead
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x41b456
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41c5a5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x43bad0]
call fcn.00430569
mov edi, dword [eax + 0x24]
test edi, edi
je 0x41c663
cmp dword [edi + 8], 1
je 0x41c663
mov edi, dword [edi + 0xc]
test edi, edi
je 0x41c663
mov al, byte [edi]
cmp al, 0x20
je 0x41c5de
cmp al, 9
jne 0x41c5e1
inc edi
jmp 0x41c5d4
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call esi
push dword [esp + 0x14]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
call fcn.004313f0
push ebx
mov ebp, eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test ebx, ebx
jle 0x41c632
push 9
pop edx
lea eax, [ebp - 2]
lea eax, [eax + ebx*2]
movzx ecx, word [eax]
push 0x20
pop esi
cmp cx, si
je 0x41c64e
cmp cx, dx
je 0x41c64e
pop edi
pop esi
pop ebp
pop ebx
ret 4
movzx ecx, word [eax]
cmp cx, si
je 0x41c646
cmp cx, dx
jne 0x41c652
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, ebp
jae 0x41c639
push ebp
call sub.MSVCRT.dll_wcslen
pop ecx
sub ebx, eax
push ebx
call fcn.004314d0
jmp 0x41c632
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.004316d0
Function at 0x41d36c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x43bb08]
call fcn.004306da
mov ebx, eax
test ebx, ebx
je 0x41d3d0
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x41d395
push dword [esp + 0xc]
push ebx
call eax
jmp 0x41d3d0
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.004313f0
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 sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.004314d0
pop edi
pop esi
pop ebx
ret 8

Function at 0x41e33c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push 0
push 0
push 0x1304
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x41e3ae
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x41e365
mov ebx, eax
push dword [ebp]
call fcn.0041dabe
push ebx
push dword [ebp]
mov edi, eax
call fcn.0041da95
add esp, 0xc
mov esi, eax
push 0
push ebx
push 0x130c
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push dword [ebp]
call fcn.0041e3ce
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42558a
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp + 8]
or eax, 0x4000
push eax
push 0x2b4
lea eax, [ebp - 0x4bc]
push eax
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret 4
Function at 0x42588c
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x43b440], 0
jne 0x42595d
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x43bb10
mov dword [0x43b440], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x640
push eax
push 8
push dword [0x439e5c]
mov dword [0x43b904], eax
mov dword [0x43b444], 0x1f4
call esi
mov dword [0x43b914], eax
mov eax, dword [0x43b444]
add eax, eax
push eax
push 8
push dword [0x439e5c]
call esi
xor ebx, ebx
mov dword [0x43b910], eax
push 0x43b920
mov dword [0x43b908], ebx
mov dword [0x43b90c], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebp
push ebx
call esi
push ebx
push ebx
push ebp
push ebx
mov dword [0x43b938], eax
call esi
mov dword [0x43b93c], eax
cmp dword [0x43b938], ebx
je 0x425954
test eax, eax
je 0x425954
lea eax, [esp + 0xc]
mov dword [0x43b918], ebx
push eax
push ebx
push ebx
push 0x42538f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x43b91c], eax
jmp 0x42595a
mov dword [0x43b918], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x426338
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4264ae
mov eax, dword [esp + 0x24]
dec eax
je 0x426491
dec eax
jne 0x4264ae
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.004262f1
pop ecx
test eax, eax
je 0x4263ef
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x4263b2
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x42648d
dec ebx
je 0x426489
dec ebx
je 0x426468
dec ebx
je 0x426422
sub ebx, 4
jne 0x4264ae
test edi, edi
jne 0x4264ae
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x4264ae
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x4263b2
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x4263ad
sub edi, 0
je 0x42645a
dec edi
je 0x42644c
dec edi
je 0x42643e
dec edi
jne 0x4264ae
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x4264ae
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x4264ae
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x4264ae
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x4264ae
sub edi, 0
je 0x426485
dec edi
je 0x426481
dec edi
jne 0x4264ae
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x4264ae
push 0x3c
jmp 0x4264ad
push 0x32
jmp 0x4264ad
push 0x14
jmp 0x4264ad
push 5
jmp 0x4264ad
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4264ab
cmp eax, 0xa
je 0x4264a7
cmp eax, 0x5a
jne 0x4264ae
push 0x28
jmp 0x4264ad
push 0x1e
jmp 0x4264ad
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x426964
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x43bb30]
call fcn.004306da
mov esi, eax
test esi, esi
je 0x426a3e
cmp dword [ebp + 0xc], 0
je 0x4269b0
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x4269a1
cmp dword [esi + 0x1c], 0
jne 0x4269a1
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x426a3e
test byte [ebp + 0x10], 3
je 0x4269cb
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00427a30
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x4269f0
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x426a04
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x426a21
test ebx, ebx
je 0x426a15
push 8
jmp 0x426a27
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x426a34
test ebx, ebx
je 0x426a2a
push 3
pop ecx
jmp 0x426a34
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x427bc3
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 0x427c5b
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x427c58
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x427c58
lea eax, [esi - 1]
push eax
push dword [0x43bb30]
call fcn.004306da
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x427c5a
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x427c4f
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x427d42
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x427c35
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x427d01
push eax
call esi
test al, al
jns 0x427d01
push 0x11
call esi
test al, al
js 0x427d01
push 0x10
call esi
test al, al
js 0x427d01
push 0x12
call esi
test al, al
js 0x427d01
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x427d01
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x427cd5
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x427cec
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x427d4c
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x427d4c
test ebp, ebp
je 0x427d25
push 0x11
call esi
test al, al
js 0x427d1d
push 0x10
call esi
test al, al
js 0x427d1d
push 0x12
call esi
test al, al
jns 0x427d25
push 1
push ebp
call fcn.00427d58
test ebx, ebx
je 0x427d39
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x427d4c
test edi, edi
je 0x427d4c
mov eax, dword [edi + 8]
jmp 0x427d4e
and dword [esp + 0x14], 0
jmp 0x427c5a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x428330
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 0x428478
xor ecx, ecx
cmp word [eax], cx
je 0x428478
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x428389
cmp eax, 3
jne 0x4283c3
cmp word [esp + 0xa], 0x3a
jne 0x4283c3
cmp eax, 2
jne 0x4283a7
lea eax, [esp + 8]
push 0x43310c
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x428478
push 0xfffffffffffffffe
pop edi
jmp 0x428478
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4283d8
cmp ax, bx
jne 0x4283e2
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4283cb
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x428421
test byte [esp + 0x21c], 0x10
je 0x428408
push 0xfffffffffffffffe
pop edi
jmp 0x428418
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x428476
cmp word [esp + 0x10], bp
jne 0x42842f
cmp word [esp + 0x12], bp
je 0x42844e
cmp word [esp + 0x10], bx
jne 0x42843d
cmp word [esp + 0x12], bx
je 0x42844e
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x428476
cmp word [esp + 0x12], ax
jne 0x428476
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x428463
test al, 0x10
je 0x428476
jmp 0x428473
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x428476
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 0x42858a
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x43b980]
push esi
test eax, eax
jne 0x4285af
push fcn.004286b7
push 0x10
push 0x258
call fcn.004307ad
mov dword [0x43b980], eax
push dword [esp + 0xc]
push eax
call fcn.00430719
mov esi, eax
test esi, esi
je 0x4286b0
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x4285d1
mov edi, 0x433008
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4285e1
xor eax, eax
cmp word [ebx], ax
jne 0x4285e6
mov ebx, 0x433118
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x439e5c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x428697
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x428647
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x42864b
push 0x43310c
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x42864b
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x42866f
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x428685
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x428683
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x439e5c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x4286ae
cmp dword [esp + 0x14], 0xffffffff
je 0x4286a2
mov esi, dword [esp + 0x14]
push esi
push dword [0x43b980]
call fcn.0043068b
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x428d10
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 0x428d4c
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 0x429140
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x43bb48]
call fcn.004306da
mov esi, eax
test esi, esi
je 0x4291bf
cmp dword [esi + 4], 0
je 0x429190
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00429400
test eax, eax
je 0x429184
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4291ca
cmp dword [esp + 8], 0
je 0x4291ca
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x4292f0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x4293f8
cmp word [edx], 0
je 0x4293f8
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x42931e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x42937d
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x429350
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429330
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.004299d0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429350
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.00429ae0
mov edi, eax
test edi, edi
je 0x429373
cmp dword [esi + 4], 0
je 0x4293cb
push dword [esp + 0x14]
push edi
push esi
call fcn.004299d0
push edi
push 0
push dword [0x439e5c]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x439e5c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
Function at 0x429400
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x429421
push esi
call fcn.00428d10
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x429495
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x429482
dec ecx
je 0x42946d
sub ecx, 2
je 0x42945a
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x4294da
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x4294fb
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x429520
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x439e5c]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4296a4
mov cl, byte [esp + 3]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x42956e
test ebp, ebp
je 0x429610
dec ebp
cmp dword [ebx + 4], 0
je 0x429587
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00429400
mov dword [esp + 0x14], eax
jmp 0x4295a1
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
cmp eax, 1
jne 0x429610
test cl, cl
je 0x4295b5
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov edi, esi
mov edx, dword [esp + 0x20]
dec eax
sub edi, edx
cmp edi, eax
jle 0x4295f0
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x439e5c]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x20], edx
lea esi, [edi + edx]
test cl, cl
je 0x429610
cmp dword [esp + 0x2c], 0
jne 0x429560
cmp cl, 0xd
je 0x429617
cmp cl, 0xa
jne 0x429560
dec esi
jmp 0x429687
cmp dword [esp + 0x2c], 0
jne 0x429687
cmp cl, 0xa
jne 0x42961f
dec esi
jmp 0x429687
cmp cl, 0xd
jne 0x429687
dec esi
cmp dword [ebx + 4], 0
je 0x42963e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00429400
mov dword [esp + 0x14], eax
jmp 0x429654
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x429687
cmp dword [ebx + 4], 0
je 0x429666
inc dword [ebx + 0xc]
jmp 0x429687
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10