joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4164e7
Capabilities:
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
push str.Mozilla_4.0__compatible__MSIE_5.5__Windows_NT_5.0_
mov dword [ebp - 8], 0x80004005
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x416600
push esi
push edi
push 8
pop ecx
mov esi, str.Accept:___r_n_r_n
lea edi, [ebp - 0x34]
lea eax, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x41652a
push ebx
sub eax, edx
push 0x4000000
sar eax, 1
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x98]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4165f0
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x4165de
push 0xff
lea eax, [ebp - 0x133]
push ebx
push eax
mov byte [ebp - 0x134], bl
call fcn.00426af0
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
mov edi, 0x100
jmp 0x4165c4
cmp dword [ebp + 8], ebx
je 0x4165db
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4165a4
jmp 0x4165de
mov dword [ebp - 8], ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 8], ebx
pop edi
pop esi
jge 0x416609
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 8]
pop ebx
leave
ret 8

Function at 0x416611
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor esi, esi
push 0x206
lea eax, [ebp - 0x206]
push esi
push eax
mov word [ebp - 0x208], si
call fcn.00426af0
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push esi
push esi
push 0x10
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x416699
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x208]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, si
jne 0x416668
mov esi, str..url
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x208]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop edi
je 0x416699
shr eax, 4
not eax
and eax, 1
jmp 0x41669b
xor eax, eax
pop esi
leave
ret 4
Function at 0x4166a0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
push ebx
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [ebp - 4], 0x80004005
mov word [ebp - 0x20c], bx
call fcn.00426af0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push 0x10
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x41678e
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x20c]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x416702
push esi
mov esi, str..url
movsd dword es:[edi], dword [esi]
push 0x3ff
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60b]
push ebx
push eax
movsw word es:[edi], word [esi]
mov byte [ebp - 0x60c], bl
call fcn.00426af0
push dword [ebp + 0x10]
lea eax, [ebp - 0x60c]
push dword [ebp + 0xc]
push str._InternetShortcut__r_nURL_S_r_nIconFile_S_r_nIconIndex0_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
push ebx
push ebx
push 2
push ebx
push ebx
mov edi, eax
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41678c
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x60c]
push eax
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
pop esi
pop edi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0xc

Function at 0x418e2f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromIID]
push dword [ebp - 4]
mov esi, 0x442338
push 0x432478
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 8]
push eax
push esi
push esi
push SysReAllocStringLen
mov dword [ebp - 8], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
mov eax, esi
je 0x418e89
mov eax, 0x44234c
pop esi
leave
ret

Function at 0x4197bb
Capabilities:
Create http request
Create thread

Disassembly:
push ebx
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push 0x432d58
mov dword [esi + 8], edi
call dword [sym.imp.WININET.dll_InternetOpenA]
push edi
push edi
push edi
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
lea eax, [esi + 4]
push eax
push edi
push ebx
push 0x419849
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
mov eax, esi
pop ebx
ret
Function at 0x419914
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1818
call fcn.0042a4e0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x40300
push ebx
push ebx
push dword [ebp + 0xc]
push dword [eax + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
cmp edi, ebx
mov esi, 0x3ff
jne 0x419980
push esi
lea eax, [ebp - 0x40b]
push ebx
push eax
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], esi
mov byte [ebp - 0x40c], bl
call fcn.00426af0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x419a5e
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41998e
sub eax, edx
je 0x419a5e
push esi
lea eax, [ebp - 0x40b]
push ebx
push eax
mov byte [ebp - 0x40c], bl
call fcn.00426af0
add esp, 0xc
xor esi, esi
mov dword [ebp + 8], ebx
mov byte [ebp + 0xf], bl
lea eax, [ebp + 8]
push eax
mov eax, 0x400
sub eax, esi
push eax
lea eax, [ebp + esi - 0x40c]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4199e5
add esi, dword [ebp + 8]
cmp dword [ebp + 8], ebx
jne 0x4199f1
jmp 0x4199ed
mov byte [ebp - 0x40c], bl
xor esi, esi
mov byte [ebp + 0xf], 1
cmp byte [ebp + 0xf], bl
je 0x4199bc
mov eax, dword [str.NEWGUID]
mov dword [ebp - 0xc], eax
mov eax, dword [0x432d78]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x419a0c
sub eax, edx
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.00420f65
add esp, 0xc
test eax, eax
jne 0x419a5e
mov ecx, dword [ebp + 0x10]
push SysReAllocStringLen
lea eax, [ebp - 0x1814]
mov byte [ebp - 0x3e0], bl
call fcn.0040a13c
lea eax, [ebp - 0x404]
push eax
push str.PCMUID
lea eax, [ebp - 0x1814]
push eax
call fcn.0040a338
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x419ae4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov byte [ebp - 0x14], 0
push esi
push edi
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x419b02
sub eax, ecx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00419ed6
add esp, 0xc
push 5
lea ecx, [ebp - 0x14]
pop edi
xor esi, esi
lea eax, [ecx + 3]
mov dl, byte [eax]
xor byte [ecx + esi], dl
mov dl, byte [ecx + esi]
xor byte [eax], dl
mov dl, byte [eax]
xor byte [ecx + esi], dl
inc esi
dec eax
cmp esi, 2
jl 0x419b26
add ecx, 4
dec edi
jne 0x419b21
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x10
push eax
mov eax, dword [ebp + 0xc]
call fcn.00419b5a
add esp, 0xc
pop edi
pop esi
leave
ret
Function at 0x419b93
Capabilities:
Hash data using sha1

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
ret

Function at 0x419e44
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [eax + 0x1c]
mov byte [ecx + eax + 0x20], 0x80
inc dword [eax + 0x1c]
cmp ecx, 0x37
mov ecx, dword [eax + 0x1c]
jle 0x419e8e
jmp 0x419e64
mov byte [ecx + eax + 0x20], 0
inc dword [eax + 0x1c]
mov ecx, dword [eax + 0x1c]
cmp ecx, 0x40
jl 0x419e59
call fcn.00419c8f
jmp 0x419e7b
mov ecx, dword [eax + 0x1c]
mov byte [eax + ecx + 0x20], 0
inc dword [eax + 0x1c]
cmp dword [eax + 0x1c], 0x38
jl 0x419e70
jmp 0x419e93
mov byte [ecx + eax + 0x20], 0
inc dword [eax + 0x1c]
mov ecx, dword [eax + 0x1c]
cmp ecx, 0x38
jl 0x419e83
mov ecx, dword [eax + 0x18]
mov edx, ecx
shr edx, 0x18
mov byte [eax + 0x58], dl
mov edx, ecx
shr ecx, 8
mov byte [eax + 0x5a], cl
mov cl, byte [eax + 0x18]
shr edx, 0x10
mov byte [eax + 0x5b], cl
mov ecx, dword [eax + 0x14]
mov byte [eax + 0x59], dl
mov edx, ecx
shr edx, 0x18
mov byte [eax + 0x5c], dl
mov edx, ecx
shr edx, 0x10
shr ecx, 8
mov byte [eax + 0x5e], cl
mov cl, byte [eax + 0x14]
mov byte [eax + 0x5d], dl
mov byte [eax + 0x5f], cl
jmp fcn.00419c8f

Function at 0x419f05
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push esi
push edi
mov byte [ebp - 0x14], 0
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x432d80
stosb byte es:[edi], al
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x419f27
sub eax, esi
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
call fcn.00419ed6
add esp, 0xc
push 5
lea ecx, [ebp - 0x14]
pop edi
xor esi, esi
lea eax, [ecx + 3]
mov dl, byte [eax]
xor byte [ecx + esi], dl
mov dl, byte [ecx + esi]
xor byte [eax], dl
mov dl, byte [eax]
xor byte [ecx + esi], dl
inc esi
dec eax
cmp esi, 2
jl 0x419f49
add ecx, 4
dec edi
jne 0x419f44
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push 0x10
push eax
mov eax, dword [ebp + 8]
call fcn.00419b5a
add esp, 0xc
pop edi
pop esi
leave
ret

Function at 0x419f7d
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x184]
push eax
mov dword [ebp - 8], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x84]
call fcn.00419b93
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
push eax
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x84]
call fcn.00419c24
lea eax, [ebp - 0x184]
push eax
call edi
push eax
lea eax, [ebp - 0x184]
call fcn.00419c24
lea eax, [ebp - 0x1c]
push eax
call fcn.00419bc7
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push 0x14
push eax
mov eax, dword [ebp + 0xc]
call fcn.00419b5a
add esp, 0xc
pop edi
pop esi
leave
ret
Function at 0x419ffb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
mov ebx, eax
xor eax, eax
inc esi
cmp dword [ebp + 0x14], eax
push edi
mov edi, dword [ebp + 0x10]
je 0x41a06f
lea esi, [ebx + 1]
lea ebx, [esi + esi]
mov eax, ebx
call fcn.00425850
mov edi, esp
push ebx
push 0
push edi
call fcn.00426af0
add esp, 0xc
push esi
push dword [ebp + 0x10]
push edi
call fcn.00426780
add esp, 0xc
push esi
push edi
call fcn.00419f05
test esi, esi
pop ecx
pop ecx
je 0x41a06a
push esi
push dword [ebp + 0x10]
lea eax, [esi + edi]
push eax
mov dword [ebp - 8], eax
call fcn.00426780
add esp, 0xc
push esi
push dword [ebp - 8]
push dword [ebp + 0x14]
call fcn.00419f7d
add esp, 0xc
push 3
pop esi
xor eax, eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push 0x20006
push eax
push eax
push eax
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41a0ab
push ebx
push edi
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov dword [ebp + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a0b6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
sub esp, 0x14
push ebx
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x41a0cc
mov ecx, dword [eax]
jmp 0x41a0ce
xor ecx, ecx
cmp ecx, esi
mov dword [ebp - 4], ecx
jne 0x41a0d8
mov dword [ebp + 0x14], esi
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
xor ebx, ebx
inc ebx
cmp eax, esi
je 0x41a0ec
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41a0ef
mov dword [ebp - 8], ebx
xor eax, eax
cmp dword [ebp - 8], ebx
sete al
cmp dword [ebp + 0x1c], esi
mov dword [ebp - 0x14], eax
je 0x41a165
cmp dword [ebp + 0x14], esi
je 0x41a165
cmp eax, esi
mov dword [ebp - 0x10], ebx
je 0x41a119
lea eax, [ecx + ecx + 2]
mov dword [ebp - 4], eax
call fcn.00425850
mov edi, esp
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x41a1f3
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41a16a
mov eax, esi
jmp 0x41a1f3
mov dword [ebp - 0x10], esi
jmp 0x41a119
cmp dword [ebp - 0x10], 0
je 0x41a1d9
push dword [ebp - 4]
push edi
call fcn.00419f05
cmp dword [ebp - 0x14], 0
pop ecx
pop ecx
je 0x41a1d9
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [ebp - 4]
mov esi, eax
inc esi
cmp esi, ebx
jae 0x41a1ba
push ebx
push edi
call fcn.00419f05
sub dword [ebp - 4], esi
push dword [ebp - 4]
lea eax, [esi + edi]
push eax
push dword [ebp + 0x1c]
call fcn.00419f7d
mov ebx, dword [ebp - 4]
add esp, 0x14
dec ebx
mov dword [ebp - 4], ebx
jmp 0x41a1bc
xor esi, esi
push ebx
add esi, edi
push esi
mov esi, dword [ebp + 0x14]
push esi
call fcn.00426780
mov eax, dword [ebp + 0x18]
add esp, 0xc
cmp ebx, dword [eax]
jae 0x41a1dc
mov byte [ebx + esi], 0
jmp 0x41a1dc
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x41a1e5
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41a1f1
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41ba3c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x41ba83
cmp edx, 0x10
jl 0x41ba6f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x41ba5c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x41ba83
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x41ba7b
and edx, 3
cmp edx, 3
jne 0x41ba97
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x41ba9c
cmp edx, 2
jne 0x41baa8
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x41baad
cmp edx, 1
jne 0x41bab3
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x42227b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4222b8
cmp dword [ebp + 0x14], edi
je 0x4222b8
cmp ecx, edi
jne 0x4222bf
call fcn.0042403e
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004228dc
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4222d3
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4222f4
cmp ebx, 0xffffffff
je 0x4222e3
push ebx
push edi
push ecx
call fcn.00426af0
add esp, 0xc
cmp esi, edi
je 0x4222a0
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4222a0
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x422310
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x422317
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x422408
test word [esi + 0xc], 0x10c
je 0x42236b
mov eax, dword [esi + 4]
test eax, eax
je 0x42236b
jl 0x422469
cmp ebx, eax
mov edi, ebx
jb 0x42233c
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x422410
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042275b
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x422400
cmp ebx, dword [ebp - 0xc]
jb 0x4223d8
cmp dword [ebp - 0xc], 0
je 0x422395
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x42238a
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x422391
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4223a0
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4223a0
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x42243c
push eax
push dword [ebp - 8]
push esi
call fcn.00426f9b
pop ecx
push eax
call fcn.0042807c
add esp, 0xc
test eax, eax
je 0x42247b
cmp eax, 0xffffffff
je 0x422469
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x422400
push esi
call fcn.0042799b
cmp eax, 0xffffffff
pop ecx
je 0x42246d
cmp dword [ebp - 4], 0
je 0x42243c
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x42231f
mov eax, dword [ebp + 0x14]
jmp 0x4222ba
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x422427
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00426af0
add esp, 0xc
call fcn.0042403e
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4222b0
cmp dword [ebp + 0xc], 0xffffffff
je 0x422452
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00426af0
add esp, 0xc
call fcn.0042403e
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4222b0
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4222ba
or dword [esi + 0xc], 0x10
jmp 0x42246d
Function at 0x4231fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436d20]
jne 0x423206
repz ret
jmp fcn.004298fc

Function at 0x423c83
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x436308]
je 0x423c9e
inc edi
cmp edi, 0x17
jb 0x423c8f
cmp edi, 0x17
jae 0x423e1e
push ebp
push 3
call fcn.00429ca4
cmp eax, 1
pop ecx
je 0x423dea
push 3
call fcn.00429ca4
test eax, eax
pop ecx
jne 0x423cd2
cmp dword [0x4362f0], 1
je 0x423dea
cmp ebx, 0xfc
je 0x423e1d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4401e8
push ebp
call fcn.00420d8e
add esp, 0xc
test eax, eax
je 0x423d08
push esi
push esi
push esi
push esi
push esi
call fcn.004227e0
add esp, 0x14
push 0x104
mov esi, 0x440201
push esi
push 0
mov byte [0x440305], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x423d4c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00420d8e
add esp, 0xc
test eax, eax
je 0x423d4c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004227e0
add esp, 0x14
push esi
call fcn.00422d60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x423d91
push esi
call fcn.00422d60
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4404fc
push 0x42ee64
sub ecx, eax
push ecx
push eax
call fcn.00429bf1
add esp, 0x14
test eax, eax
je 0x423d91
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004227e0
add esp, 0x14
jmp 0x423d93
xor esi, esi
push 0x42ee60
push ebx
push ebp
call fcn.00420c47
add esp, 0xc
test eax, eax
je 0x423db3
push esi
push esi
push esi
push esi
push esi
call fcn.004227e0
add esp, 0x14
push dword [edi*8 + 0x43630c]
push ebx
push ebp
call fcn.00420c47
add esp, 0xc
test eax, eax
je 0x423dd5
push esi
push esi
push esi
push esi
push esi
call fcn.004227e0
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00429a34
add esp, 0xc
jmp 0x423e1d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x423e1d
cmp ebp, 0xffffffff
je 0x423e1d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43630c]
push dword [esi]
call fcn.00422d60
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret