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

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
push edi
xor edi, edi
test eax, eax
je 0x439922
cmp word [eax], di
je 0x439922
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x43991e
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x439914
push ebx
push ebp
call fcn.00439c80
mov ebx, eax
test ebx, ebx
je 0x439913
push esi
push 2
pop eax
cmp ebp, 0xffffffff
cmovne eax, ebp
push eax
push dword [esp + 0x20]
call fcn.0043a107
mov esi, eax
test esi, esi
je 0x439909
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [esi + 0x2c], ebx
cmove eax, esi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x24]
add eax, 8
mov dword [esi + 0x40], edi
push eax
push edi
mov dword [esi + 0x14], edi
push dword [0x846350]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x43982f
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x28]
mov dword [eax], edi
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp ebp, 0xffffffff
je 0x43983b
mov dword [esi + 0x34], 1
push esi
push ebx
call fcn.0045a1b0
mov edx, dword [esp + 0x2c]
mov ebp, 0x4000
pop ecx
pop ecx
mov ecx, edi
mov dword [esp + 0x1c], ecx
lea eax, [ecx + ebp]
cmp eax, edx
jle 0x43985e
mov ebp, edx
sub ebp, ecx
push ebp
push ebx
call fcn.00459a70
mov dword [esp + 0x1c], eax
pop ecx
pop ecx
test eax, eax
je 0x4398f8
push edi
lea ecx, [esp + 0x24]
push ecx
push ebp
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x20]
cmp ecx, ebp
jne 0x4398e8
mov eax, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x14], edi
jne 0x4398b1
push ecx
push dword [esp + 0x18]
call fcn.00439d2b
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x24]
jl 0x4398bb
push 1
jmp 0x4398bc
push edi
push ecx
push ebx
call fcn.00459da0
add esp, 0xc
test eax, eax
je 0x4398dc
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
cmp ecx, edx
jl 0x439853
jmp 0x439906
push ebx
call fcn.00459d80
pop ecx
mov dword [esi + 0x18], eax
jmp 0x4398ff
mov dword [esi + 0x18], 0x100
mov dword [esi + 0x24], str.file_read_error
jmp 0x439906
mov dword [esi + 0x18], 1
push ebx
push esi
call fcn.00439dd7
mov dword [esi + 0x2c], edi
push ebx
call fcn.00459ee0
pop ecx
mov edi, esi
pop esi
pop ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x439924
xor eax, eax
pop edi
pop ebp
pop ecx
pop ecx
ret 0xc
Function at 0x43a6f2
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x43a747
push dword [esp + 0x10]
push 0x43a671
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x847e08]
test edi, edi
je 0x43a7a0
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x43a73f
cmp byte [edi + 0x10], 0
je 0x43a73f
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 0x43a71b
jmp 0x43a7a0
mov edi, dword [0x847e08]
test edi, edi
je 0x43a7a0
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x43a799
cmp byte [edi + 0x11], 0
je 0x43a772
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x43a789
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 0x847e08
call fcn.00452c91
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x43a754
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x43af65
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 0x43b024
cmp dword [esp + 0x24], 2
je 0x43b024
push 0x2000
push ebp
push dword [0x846350]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x43aff3
cmp dword [esp + 0x18], 2
jne 0x43b00f
cmp dword [esp + 0x28], 0xffffffff
je 0x43afb7
cmp ebp, dword [esp + 0x28]
jae 0x43b00f
add ebp, 2
test ebx, ebx
jne 0x43afdc
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x846350]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x43b00f
cmp ax, 0xd
je 0x43aff3
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 0x43afa3
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.004a2df0
jmp 0x43b0b6
push eax
push 0
push dword [0x846350]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x43b042
cmp ebp, dword [esp + 0x28]
jae 0x43b09a
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 0x43b09a
cmp dword [esp + 0x18], 1
jne 0x43b09a
inc ebp
test ebx, ebx
jne 0x43b087
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x846350]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x43b09a
cmp al, 0xd
je 0x43b035
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x43b035
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x43b0b1
call fcn.004a2e40
jmp 0x43b0b6
call fcn.004a3070
push esi
push 0
push dword [0x846350]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x43bfed
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x43bf40
push 0x10
push 0x2c
call fcn.00452aad
push 0
push 0
push 8
mov dword [0x847e2c], eax
call fcn.004522d0
cmp word [0x847e24], 0
mov dword [0x848d8c], eax
jne 0x43c0cd
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
push str.ws2_32.dll
sbb eax, eax
inc eax
mov word [0x847e24], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x847e30], eax
test eax, eax
je 0x43c0cd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x847e30]
mov dword [0x847e14], eax
call esi
push str.getnameinfo
push dword [0x847e30]
mov dword [0x847e18], eax
call esi
push str.WSAStringToAddressA
push dword [0x847e30]
mov dword [0x847e1c], eax
call esi
cmp dword [0x847e14], 0
mov ecx, eax
mov dword [0x847e20], ecx
pop esi
je 0x43c0cd
cmp dword [0x847e18], 0
je 0x43c0cd
cmp dword [0x847e1c], 0
je 0x43c0cd
mov eax, dword [0x847e28]
xor edx, edx
inc edx
test ecx, ecx
cmovne eax, edx
mov dword [0x847e28], eax
add esp, 0x190
ret
Function at 0x440025
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x848d30]
call fcn.004529db
mov ebx, eax
test ebx, ebx
je 0x440089
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x44004e
push dword [esp + 0xc]
push ebx
call eax
jmp 0x440089
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.004530e0
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.00421ebf
pop ecx
sub edi, eax
push edi
call fcn.00453170
pop edi
pop esi
pop ebx
ret 8

Function at 0x442aba
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 0x442c23
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x442c06
sub eax, 1
jne 0x442c23
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.00442a73
pop ecx
test eax, eax
je 0x442b31
cmp byte [esp + 0x23a], 1
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
jne 0x442b67
inc edi
jmp 0x442b67
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x442c23
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [esp + 0x14]
inc edx
cmp byte [esp + 0x356], dl
cmove edi, edx
sub ecx, 3
je 0x442c02
sub ecx, 1
je 0x442bfe
sub ecx, 1
je 0x442be0
sub ecx, 1
je 0x442ba4
sub ecx, 4
jne 0x442c23
test eax, eax
jne 0x442c23
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x442c23
sub eax, 0
je 0x442bd3
sub eax, 1
je 0x442bc6
sub eax, 1
je 0x442bbf
sub eax, 1
jne 0x442c23
push 0x69
pop esi
push 0x64
jmp 0x442bd8
push 0x5a
pop esi
push 0x5f
jmp 0x442bcb
push 0x50
pop esi
push 0x55
test edi, edi
pop eax
cmove esi, eax
jmp 0x442c23
push 0x4b
pop esi
push 0x46
test edi, edi
pop eax
cmovne esi, eax
jmp 0x442c23
sub eax, 0
je 0x442bfa
sub eax, 1
je 0x442bf6
sub eax, 1
jne 0x442c23
push 0x41
pop esi
push 0x3c
jmp 0x442bd8
push 0x3c
jmp 0x442c22
push 0x32
jmp 0x442c22
push 0x14
jmp 0x442c22
push 5
jmp 0x442c22
mov eax, dword [esp + 0x14]
test eax, eax
je 0x442c20
cmp eax, 0xa
je 0x442c1c
cmp eax, 0x5a
jne 0x442c23
push 0x28
jmp 0x442c22
push 0x1e
jmp 0x442c22
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x442e13
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x848d34]
call fcn.004529db
mov esi, eax
test esi, esi
je 0x442eef
cmp dword [ebp + 0xc], 0
je 0x442e5f
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x442e50
cmp dword [esi + 0x1c], 0
jne 0x442e50
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x442eef
test byte [ebp + 0x10], 3
push ebx
push 4
pop ebx
je 0x442e7d
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00443501
cmp dword [esi + 0x3c], 0xffffffff
je 0x442ea1
xor eax, eax
cmp dword [esi + 0x3c], 0x1000000
sete al
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x442eb9
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
mov eax, dword [ebp + 8]
test dword [ebp + 0x10], 0x2000000
je 0x442ed4
test eax, eax
je 0x442eca
push 8
jmp 0x442eda
push 7
test ecx, ecx
pop eax
cmovne ebx, eax
jmp 0x442ee5
test eax, eax
je 0x442edd
push 3
pop ebx
jmp 0x442ee5
xor ebx, ebx
test ecx, ecx
setne bl
inc ebx
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x4440be
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 0x444154
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je FindNextFileW
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x444151
lea eax, [esi - 1]
push eax
push dword [0x848d34]
call fcn.004529db
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x444153
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x444141
mov edx, 0xfa01
cmp word [ecx], dx
je 0x44414c
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x444131
jmp 0x444151
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x4441fa
push eax
call esi
test al, al
jns CreateProcessW
push 0x11
call esi
test al, al
js 0x4441fa
push 0x10
call esi
test al, al
js 0x4441fa
push 0x12
call esi
test al, al
js 0x4441fa
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x4441fa
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.004235c3
add esp, 0xc
test eax, eax
je 0x4441ce
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.004235c3
add esp, 0xc
test eax, eax
jne GetComputerNameW
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x44423b
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.004b9369
pop ecx
pop ecx
test eax, eax
je 0x44423b
test ebp, ebp
je reloc.KERNEL32.dll_GetFileTime
push 0x11
call esi
test al, al
js 0x444216
push 0x10
call esi
test al, al
js 0x444216
push 0x12
call esi
test al, al
jns reloc.KERNEL32.dll_GetFileTime
push 1
push ebp
call fcn.00444247
test ebx, ebx
je 0x444232
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x44423b
test edi, edi
je 0x44423b
mov eax, dword [edi + 8]
jmp 0x44423d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x44453a
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 GetCPInfo
xor ecx, ecx
cmp word [eax], cx
je GetCPInfo
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004b92f8
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.00421ebf
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x444593
cmp eax, 3
jne 0x4445cd
cmp word [esp + 0xa], 0x3a
jne TlsFree
cmp eax, 2
jne TlsSetValue
lea eax, [esp + 8]
push TlsGetValue
push eax
call fcn.004b9338
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe GetLocaleInfoW
push 0xfffffffffffffffe
pop edi
jmp GetCPInfo
push ebx
push ebp
push 0x5c
pop ebp
push GetTempPathW
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je reloc.KERNEL32.dll_GetTimeFormatW
cmp ax, bx
jne 0x4445ec
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4445d5
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je LCMapStringW
test byte [esp + 0x21c], 0x10
je 0x444612
push 0xfffffffffffffffe
pop edi
jmp 0x444622
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x444680
cmp word [esp + 0x10], bp
jne 0x444639
cmp word [esp + 0x12], bp
je 0x444658
cmp word [esp + 0x10], bx
jne 0x444647
cmp word [esp + 0x12], bx
je 0x444658
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x444680
cmp word [esp + 0x12], ax
jne 0x444680
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x44466d
test al, 0x10
je 0x444680
jmp 0x44467d
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe GetACP
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 0x4449df
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je BeginPaint
test byte [esp + 8], 2
je 0x4449fc
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x444a0a
xor eax, eax
ret 8

Function at 0x444c72
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x444cea
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.004b92f8
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00421ebf
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x444ccb
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x444cc8
cmp ecx, 0x5c
je 0x444cc8
cmp ecx, 0x2f
jne 0x444cd5
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x444cb5
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x444cec
xor eax, eax
leave
ret 4

Function at 0x445080
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x445099
push dword [0x848dfc]
call fcn.004524c6
pop edi
ret 4
push esi
push edi
push dword [OpenProcessToken]
call fcn.004529db
mov esi, eax
test esi, esi
je 0x445103
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4450ef
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x4450de
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 [RegEnumValueW]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [RevertToSelf]
call fcn.0045298c
pop esi
pop edi
ret 4

Function at 0x445110
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 0x44514c
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 0x4455d0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x445635
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je GdipCreateBitmapFromHICON
push dword [esp + 0x10]
push dword [0x848dfc]
call fcn.004529db
test eax, eax
je GdipStartPathFigure
cmp dword [eax + 4], 0
je reloc.gdiplus.dll_GdipCreateBitmapFromScan0
push edi
push esi
push eax
call fcn.00445af0
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 0x4459b0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], NetUserGetInfo
test edx, edx
je reloc.WININET.dll_InternetCloseHandle
cmp word [edx], 0
je reloc.WININET.dll_InternetCloseHandle
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x4459de
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x445a34
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4459f0
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x445a16
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00445af0
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
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
lea eax, [esp + 0x14]
push eax
push edx
xor edx, edx
mov eax, 0xfde9
cmp ecx, 2
cmovne eax, edx
push eax
call GetDefaultUserProfileDirectoryW
mov edi, eax
test edi, edi
je 0x445a2a
cmp dword [esi + 4], 0
je 0x445a81
push dword [esp + 0x14]
push edi
push esi
call fcn.00445af0
push edi
push 0
push dword [0x846350]
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 [0x846350]
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 0x445af0
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 InternetReadFile
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x445b3d
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 0x445bc6
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x445baf
sub eax, 1
je 0x445b96
sub eax, 2
je OpenPrinterW
push esi
push dword [esp + 0x24]
push ecx
call fcn.004303c0
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.00445110
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x445bf5
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 0x445b67
xor eax, eax
pop edi
add esp, 8
ret 0xc
Function at 0x445c10
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x445c33
push ebx
call fcn.00445110
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
mov ebp, dword [esp + 0x20]
sub eax, esi
add eax, dword [ebx + 4]
mov dword [esp + 0x10], esi
cmp esi, ebp
jl 0x445cb7
mov ecx, ebp
sub ecx, 1
je 0x445ca2
sub ecx, 1
je 0x445c8b
sub ecx, 2
je 0x445c76
push ebp
push eax
push dword [esp + 0x24]
call fcn.004303c0
add esp, 0xc
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], ecx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov word [eax], cx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x1c]
mov dl, byte [eax]
mov eax, ebp
pop edi
pop esi
mov byte [ecx], dl
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
push esi
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.004303c0
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, esi
mov ecx, dword [ebx]
sub ebp, esi
mov dword [esp + 0x1c], eax
push 0
cmp ebp, edx
jl 0x445d00
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x18]
pop edi
add eax, esi
mov dword [ebx + UnregisterWaitxc], 0
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
lea eax, [esp + 0x1c]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x18]
cmp ebp, esi
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
cmovle esi, ebp
push esi
push dword [ebx + 4]
push eax
call fcn.004303c0
sub dword [ebx + 0xc], esi
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc