joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060f6
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 4
mov esi, ecx
push 0
push esi
push 0x4060e7
mov dword [esi + 0x20], eax
call fcn.0043ec48
test eax, eax
mov dword [esi + 0x14], eax
je 0x40612c
and dword [eax + 0x24], 0
mov eax, dword [esi + 0x14]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ebp
ret 4

Function at 0x40777c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ax, word [0x48813c]
and word [0x48c2e6], 0
mov word [0x48c2e8], ax
mov ax, word [0x488138]
inc dword [0x488138]
push esi
push edi
mov word [0x48c2ea], ax
mov edi, ecx
mov byte [0x48c2e4], 8
mov byte [0x48c2e5], 0
xor eax, eax
mov cl, al
add cl, 0x31
mov byte [eax + 0x48c2ec], cl
inc eax
cmp eax, 0x20
jl 0x4077b9
push 0x28
mov esi, 0x48c2e4
push esi
mov ecx, edi
call fcn.00407725
push 0x10
push dword [ebp + 0xc]
mov word [0x48c2e6], ax
push 0
push 0x28
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
pop edi
pop esi
pop ebp
ret 8

Function at 0x407c07
Capabilities:
Create directory
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x48ae20]
xor eax, ebp
mov edx, ecx
mov dword [ebp - 4], eax
mov eax, dword [edx + 0x10c]
mov dword [ebp - 0x428], eax
mov eax, dword [edx + 0x108]
push ebx
mov ebx, dword [eax]
cmp ebx, eax
mov dword [ebp - 0x420], edx
je 0x407d1b
and dword [ebp - 0x424], 0
push esi
push edi
jmp 0x407c50
mov edx, dword [ebp - 0x420]
lea esi, [ebx + 8]
mov ecx, 0x86
lea edi, [ebp - 0x41c]
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0x41c], 0
je 0x407c95
push 0
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x42c]
mov ecx, dword [ebp - 0x420]
push ebx
push eax
add ecx, 0x104
call fcn.00407b42
mov ebx, dword [eax]
jmp 0x407cda
lea eax, [ebp - 0x41c]
push eax
mov ecx, edx
call fcn.00407a36
test al, al
je 0x407caf
lea eax, [ebp - 0x430]
jmp 0x407c7e
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x204]
push str.IsSameFile:__s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, dword [ebx]
mov ecx, dword [0x48be40]
cmp dword [ecx + 0x74], 0
jne 0x407d19
add dword [ebp - 0x424], 0x64
mov eax, dword [ebp - 0x424]
xor edx, edx
div dword [ebp - 0x428]
add ecx, 0x62c
push eax
call fcn.004024ff
mov eax, dword [ebp - 0x420]
cmp ebx, dword [eax + 0x108]
jne 0x407c4a
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00424262
leave
ret

Function at 0x409903
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esi + 8], eax
je 0x409939
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov word [esi + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0xe], ax
xor eax, eax
inc eax
pop esi
pop ebp
ret 8
Function at 0x409b00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00424540
test eax, eax
pop ecx
je 0x409b70
push esi
call fcn.00424540
test al, 1
pop ecx
jne 0x409b70
push esi
call fcn.00424540
shr eax, 1
push eax
call fcn.0043e0c7
mov ebx, eax
push ebx
push esi
call fcn.00401155
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
je 0x409b70
lea eax, [esi + 1]
push edi
push eax
call fcn.0043e0c7
test esi, esi
mov edi, eax
pop ecx
mov byte [edi + esi], 0
jle 0x409b64
mov ecx, ebx
sub ecx, edi
mov dl, byte [ecx + eax]
xor dl, 0x5d
mov byte [eax], dl
inc eax
dec esi
jne 0x409b58
push ebx
call fcn.0043e0c2
pop ecx
mov eax, edi
pop edi
jmp 0x409b72
xor eax, eax
pop esi
pop ebx
pop ebp
ret

Function at 0x40ce54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x48ae20]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
lea edx, [ebp - 0x10c]
push edx
push 1
xor eax, ebp
push 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x40ceca
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00424262
leave
ret 0xc
Function at 0x40d1d3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x48ae20]
push ebx
push dword [ebp + 0xc]
xor ebx, ebx
push ebx
xor eax, ebp
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push str.open
push ebx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x218], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov dword [ebp - 0x210], eax
ja 0x40d2e5
mov ecx, dword [ebp - 0x214]
push edi
lea eax, [ebp - 0x20c]
push eax
push str..htm
mov edi, SysReAllocString
push edi
call fcn.0040ce54
test eax, eax
jne 0x40d2e4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
lea eax, [ebp - 0x20c]
push eax
call esi
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
push eax
push edi
call fcn.0040ce54
test eax, eax
jne 0x40d2e3
lea eax, [ebp - 0x20c]
push str.__1_
push eax
call fcn.0042584f
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0x40d2b4
lea eax, [ebp - 0x20c]
push 0x469dc0
push eax
call fcn.0042584f
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0x40d2b4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebp + eax - 0x20d]
jmp 0x40d2b6
mov byte [edi], bl
push 0x469dbc
push edi
call esi
push dword [ebp - 0x218]
push edi
call esi
call dword [0x488128]
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 0x210], eax
pop esi
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
xor ecx, ebp
pop ebx
call fcn.00424262
leave
ret 8

Function at 0x40e315
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x46683e
call fcn.00425140
sub esp, 0x2c
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.0045c4fd
mov esi, dword [eax + 0xc]
movzx eax, word [ebp + 8]
push 0x46be10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x40e391
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40e390
push 0
push ebx
push eax
lea ecx, [ebp - 0x38]
call fcn.0044eb4b
mov ecx, dword [ebp - 0x10]
and dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
call fcn.0040e2c3
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0044ef08
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x416d0f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x416d62
call fcn.0045c4fd
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x416d62
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x416d58
xor eax, eax
jmp 0x416e7b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x416d92
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x416d92
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x416e78
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x416dbf
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004157d0
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x416e78
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x416e08
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x416e08
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x416e02
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004157d0
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x416e68
and dword [ebp + 0xc], 0
jmp 0x416e68
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x416e68
push 0xc
call fcn.0043e097
mov esi, eax
test esi, esi
pop ecx
je 0x416e4a
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x416e4c
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x416e63
push dword [ebp - 8]
call fcn.0043ce55
jmp 0x416e68
call fcn.0043cdb2
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x416dcd
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x426382
Capabilities:
Terminate process

Disassembly:
push 8
push 0x476bc8
call fcn.004274b0
push 8
call fcn.0042c225
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x48e6cc], esi
jne 0x4263b6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x48e6c8], esi
mov al, byte [ebp + 0x10]
mov byte [0x48e6c4], al
cmp dword [ebp + 0xc], edi
jne 0x426400
cmp dword [0x48ff6c], edi
je 0x4263f0
mov eax, dword [0x48ff68]
sub eax, 4
mov dword [0x48ff68], eax
cmp eax, dword [0x48ff6c]
jb 0x4263f0
mov eax, dword [eax]
cmp eax, edi
je 0x4263d1
call eax
jmp 0x4263d1
push 0x4880b8
mov eax, 0x4880b0
call fcn.004262e2
pop ecx
push 0x4880c4
mov eax, 0x4880bc
call fcn.004262e2
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x426431
cmp dword [ebp + 0x10], edi
jne 0x42643f
mov dword [0x48e6cc], esi
push dword [ebp + 8]
call fcn.004262a0
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x42643e
push 8
call fcn.0042c158
pop ecx
ret
call fcn.004274eb
ret

Function at 0x427605
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00425720
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4276a0
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x48e68c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4276a0
cmp eax, 1
je 0x4276c1
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4276a0
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42766d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x42769c
xor eax, eax
inc eax
jmp 0x4276e0
cmp edi, eax
jae 0x4276a4
xor eax, eax
jmp 0x4276e0
cmp eax, esi
jae 0x4276ab
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x48e68c]
jmp 0x4276c4
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x427aca
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x476c70
call fcn.004274b0
mov edi, 0x94
mov eax, edi
call fcn.00425720
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x48e68c], ecx
mov eax, dword [esi + 4]
mov dword [0x48e698], eax
mov edx, dword [esi + 8]
mov dword [0x48e69c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x48e690], esi
cmp ecx, 2
je 0x427b2a
or esi, 0x8000
mov dword [0x48e690], esi
shl eax, 8
add eax, edx
mov dword [0x48e694], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x427b65
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x427b65
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x427b7d
cmp eax, 0x20b
je 0x427b6a
mov dword [ebp - 0x1c], esi
jmp 0x427b91
cmp dword [ecx + 0x84], 0xe
jbe 0x427b65
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x427b8b
cmp dword [ecx + 0x74], 0xe
jbe 0x427b65
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0042c270
pop ecx
test eax, eax
jne 0x427ba5
push 0x1c
call fcn.00427a50
pop ecx
call fcn.0042b299
test eax, eax
jne 0x427bb6
push 0x10
call fcn.00427a50
pop ecx
call fcn.0042e1b5
mov dword [ebp - 4], esi
call fcn.0043021b
test eax, eax
jge 0x427bcf
push 0x1b
call fcn.00427a2b
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x48ff60], eax
call fcn.00431341
mov dword [0x48e6d0], eax
call fcn.0043129f
test eax, eax
jge 0x427bf5
push 8
call fcn.00427a2b
pop ecx
call fcn.0043106c
test eax, eax
jge 0x427c06
push 9
call fcn.00427a2b
pop ecx
push 1
call fcn.00426318
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x427c1c
push eax
call fcn.00427a2b
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0043100f
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x427c3d
movzx eax, word [ebp - 0x40]
jmp 0x427c40
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00438a10
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x427c5e
push edi
call fcn.00426445
call fcn.00426467
jmp 0x427c90
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004274eb
ret
Function at 0x42802f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x42804c
call fcn.00427da4
mov dword [eax], 0x16
xor eax, eax
jmp 0x4280b6
push esi
push 0x8c
push 1
call fcn.00429334
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4280a1
push esi
call fcn.0042b093
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x42807f
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x427f9a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4280b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00425475
test ebx, ebx
pop ecx
je 0x4280b3
push ebx
call fcn.00427db6
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42da99
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x42dc6f
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x48ebe0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x42dc6f
test cl, 0x48
je 0x42db04
cmp byte [eax + 5], 0xa
je 0x42db04
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42db56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x42db3e
call fcn.00427da4
mov dword [eax], 9
call fcn.00427dad
mov dword [eax], esi
jmp 0x42db4e
cmp eax, 0x6d
je 0x42dc6f
push eax
call fcn.00427db6
pop ecx
or eax, 0xffffffff
jmp 0x42dc71
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x42dc6a
test eax, eax
je 0x42db7d
cmp byte [ebx], 0xa
jne 0x42db7d
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x42db86
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x42dc64
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x42dc54
cmp al, 0xd
je 0x42dbb8
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x42dc46
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x42dbd2
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x42dbcd
add dword [ebp + 0x10], 2
jmp 0x42dc26
mov dword [ebp + 0x10], eax
jmp 0x42dc42
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42dbfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42dc42
cmp dword [ebp - 0xc], 0
je 0x42dc42
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42dc1b
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x42dc26
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x42dc45
cmp ebx, dword [ebp + 0xc]
jne 0x42dc2b
cmp byte [ebp - 1], 0xa
jne 0x42dc2b
mov byte [ebx], 0xa
jmp 0x42dc45
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00435140
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42dc46
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x42db9c
jmp 0x42dc64
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x42dc64
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x42dc71
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42df4e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x48ae20]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x42df8a
xor eax, eax
jmp 0x42e0f4
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x48ebe0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x42dfc8
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00435140
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x42e062
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x42e0c5
jmp 0x42dfec
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x42e027
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x42e018
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x42dff8
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42e086
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x42e08f
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x42dfea
jmp 0x42e08f
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42e086
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x42e08f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x42e0ef
cmp dword [ebp - 0x68], eax
je 0x42e0c2
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x42e0b7
call fcn.00427da4
mov dword [eax], 9
call fcn.00427dad
mov dword [eax], esi
jmp 0x42e0ea
push dword [ebp - 0x68]
call fcn.00427db6
pop ecx
jmp 0x42e0ea
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42e0d7
cmp byte [edi], 0x1a
jne 0x42e0d7
xor eax, eax
jmp 0x42e0f2
call fcn.00427da4
mov dword [eax], 0x1c
call fcn.00427dad
and dword [eax], 0
or eax, 0xffffffff
jmp 0x42e0f2
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.00424262
add ebp, 0x3a4
leave
ret