joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ca40
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x447170
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x34]
mov esi, dword [edi - 0xc]
lea eax, [esi + esi + 2]
xor ebp, ebp
push eax
mov dword [esp + 0x30], ebp
call fcn.0043da51
mov ebx, eax
push edi
push ebx
call fcn.0042924a
add esp, 0xc
cmp esi, ebp
jl 0x41cb71
mov dword [esp + 0x14], ebp
mov ebp, 2
sub ebp, ebx
inc esi
mov edi, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], esi
mov ax, word [edi]
cmp ax, 0x2c
je 0x41cab3
test ax, ax
jne 0x41cb5b
mov ecx, dword [esp + 0x14]
add ecx, ebx
push ecx
lea ecx, [esp + 0x14]
mov word [edi], 0
call fcn.00404410
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0xb0]
add esi, 0xac
test eax, eax
lea edx, [edi + ebp]
mov byte [esp + 0x2c], 1
mov dword [esp + 0x14], edx
jne 0x41caec
xor edx, edx
jmp 0x41caf4
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x41cb26
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x41cb26
mov eax, dword [esp + 0x34]
mov ebp, dword [esi + 8]
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
push 1
push ebp
call fcn.00403d40
add ebp, 4
mov dword [esi + 8], ebp
mov ebp, dword [esp + 0x20]
jmp 0x41cb38
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, esi
call fcn.00404760
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cb5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add edi, 2
dec eax
mov dword [esp + 0x18], eax
jne 0x41caa1
mov edi, dword [esp + 0x34]
lea eax, [edi - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x41cb97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x41da50
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x850
mov eax, dword [0x45b1e4]
push edi
mov edi, dword [esp + 0x858]
test edi, edi
mov dword [esp + 0x850], eax
mov dword [esp + 8], ecx
je 0x41dce0
mov eax, dword [esp + 0x85c]
test eax, eax
je 0x41dce0
push ebx
lea eax, [esp + 0x10]
push eax
push 1
push 0x41cef0
push 0x41cee0
push 0x41ced0
push 0x41cec0
push 0x41ceb0
push 0x41cea0
push 0x41ce90
call sub.Cabinet.dll_FDICreate
mov ebx, eax
add esp, 0x24
test ebx, ebx
mov dword [esp + 8], ebx
jne 0x41dad9
pop ebx
pop edi
mov ecx, dword [esp + 0x84c]
call fcn.00428731
add esp, 0x850
ret 0xc
push ebp
push esi
push edi
lea ecx, [esp + 0x144]
push 0x448cf8
push ecx
call fcn.00428c0a
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0xc
push 0
push 0
push 0x104
lea edx, [esp + 0x48]
push edx
push 0x104
lea eax, [esp + 0x154]
push eax
push 0
push 1
call ebp
push 0
lea ecx, [esp + 0x40]
push 0x8020
push ecx
call fcn.0042a40d
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x41db57
push ebx
call sub.Cabinet.dll_FDIDestroy
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x84c]
call fcn.00428731
add esp, 0x850
ret 0xc
lea edx, [esp + 0x24]
push edx
push esi
push ebx
call sub.Cabinet.dll_FDIIsCabinet
add esp, 0xc
test eax, eax
push esi
jne 0x41db7b
call fcn.0042aa39
push ebx
call sub.Cabinet.dll_FDIDestroy
add esp, 8
jmp 0x41db3c
call fcn.0042aa39
push 0x5c
push edi
call fcn.00429604
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, eax
add esp, 0xc
test esi, esi
lea eax, [esp + 0x654]
jne 0x41dbb8
push edi
push eax
call ebx
push 1
lea ecx, [esp + 0x34c]
push 0x448de4
push ecx
call fcn.0042ae4d
jmp 0x41dbdf
lea edx, [esi + 2]
push edx
push eax
call ebx
sub esi, edi
sar esi, 1
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x34c]
push edi
push edx
call fcn.0042ae4d
mov word [esp + esi*2 + 0x356], 0
mov eax, dword [esp + 0x874]
add esp, 0xc
push eax
push 0x45c3c8
call ebx
mov eax, dword [esp + 0x86c]
test eax, eax
je 0x41dc04
push eax
push 0x45c1c0
call ebx
push 0x45c3c8
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41dc1f
push eax
push 0x45c3c8
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x654]
push ecx
lea edx, [esp + 0x144]
push 0x448cf8
push edx
call fcn.00428c0a
add esp, 0xc
push 0
push 0
push 0x104
lea eax, [esp + 0x48]
push eax
push 0x104
lea ecx, [esp + 0x154]
push ecx
push 0
push 1
call ebp
lea edx, [esp + 0x348]
push edx
lea eax, [esp + 0x144]
push 0x448cf8
push eax
call fcn.00428c0a
add esp, 0xc
push 0
push 0
push 0x104
lea ecx, [esp + 0x55c]
push ecx
push 0x104
lea edx, [esp + 0x154]
push edx
push 0
push 1
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov esi, dword [esp + 0x10]
push ecx
push 0
push 0x41cf60
push 0
lea edx, [esp + 0x560]
push edx
lea eax, [esp + 0x50]
push eax
push esi
call sub.Cabinet.dll_FDICopy
add esp, 0x1c
cmp eax, 1
push esi
jne 0x41db34
call sub.Cabinet.dll_FDIDestroy
add esp, 4
jmp 0x41db3e
mov ecx, dword [esp + 0x850]
xor eax, eax
pop edi
call fcn.00428731
add esp, 0x850
ret 0xc
Function at 0x41dfd0
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x45b1e4]
push esi
push edi
mov dword [esp + 0x21c], eax
mov esi, ecx
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
test eax, eax
push 0
je 0x41e014
push 0x17
lea eax, [esp + 0x18]
push eax
jmp 0x41e01b
push 2
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x41e03b
mov ecx, dword [esp + 0x21c]
call fcn.00428731
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0x10]
push 0x44c8f0
push edx
call fcn.00429220
lea eax, [esp + 0x18]
push 0x44d1e4
push eax
call fcn.00429220
add esp, 0xc
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.00404410
mov ecx, esi
call fcn.0041dd00
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x21c]
mov eax, 1
call fcn.00428731
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41e0a0
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x45b1e4]
push esi
push edi
mov dword [esp + 0x21c], eax
mov esi, ecx
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
test eax, eax
push 0
je 0x41e0e4
push 0x17
lea eax, [esp + 0x18]
push eax
jmp 0x41e0eb
push 2
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x41e10b
mov ecx, dword [esp + 0x21c]
call fcn.00428731
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0x10]
push 0x44c8f0
push edx
call fcn.00429220
lea eax, [esp + 0x18]
push 0x44d1f0
push eax
call fcn.00429220
add esp, 0xc
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.00404410
mov ecx, esi
call fcn.0041dd00
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x21c]
mov eax, 1
call fcn.00428731
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41e3a3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x400
xor ebx, ebx
push ebx
mov esi, 0x45c5d8
push esi
call fcn.0042ae90
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e423
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41e41a
cmp dword [ebp - 4], 1
je 0x41e41a
cmp dword [ebp - 4], 2
je 0x41e41a
cmp dword [ebp - 4], 7
je 0x41e41a
mov byte [0x45c5d8], bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e44d
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov byte [ebp - 1], bl
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41e50f
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41e4f6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x10], ebx
push dword [ebp - 8]
mov dword [ebp - 0x14], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41e4ea
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
neg eax
sbb al, al
inc al
mov byte [ebp - 1], al
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp - 0xc], 1
jne 0x41e506
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop ebx
leave
ret

Function at 0x41f470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41f485
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x41f497
xor eax, eax
jmp 0x41f4c9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x41f4bb
cmp esi, eax
jae 0x41f493
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x41f4ad
cmp esi, eax
jae 0x41f493
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x42019f
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 0x4201f2
call fcn.00442837
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x4201f2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4201e8
xor eax, eax
jmp 0x42030b
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 0x420222
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 0x420222
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x420308
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x42024f
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00420e89
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x420308
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x420298
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x420298
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x420292
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00420e89
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4202f8
and dword [ebp + 0xc], 0
jmp 0x4202f8
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4202f8
push 0xc
call fcn.0043da21
mov esi, eax
test esi, esi
pop ecx
je 0x4202da
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 0x4202dc
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4202f3
push dword [ebp - 8]
call fcn.0043878e
jmp 0x4202f8
call fcn.00438765
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x42025d
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42852c
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x450658
call fcn.0042bf00
mov edi, 0x94
mov eax, edi
call fcn.0042ae10
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 [0x45ec24], ecx
mov eax, dword [esi + 4]
mov dword [0x45ec30], eax
mov edx, dword [esi + 8]
mov dword [0x45ec34], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x45ec28], esi
cmp ecx, 2
je 0x42858c
or esi, 0x8000
mov dword [0x45ec28], esi
shl eax, 8
add eax, edx
mov dword [0x45ec2c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4285c7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4285c7
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4285df
cmp eax, 0x20b
je 0x4285cc
mov dword [ebp - 0x1c], esi
jmp 0x4285f3
cmp dword [ecx + 0x84], 0xe
jbe 0x4285c7
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4285ed
cmp dword [ecx + 0x74], 0xe
jbe 0x4285c7
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0042d226
pop ecx
test eax, eax
jne 0x428607
push 0x1c
call fcn.00428508
pop ecx
call fcn.0042d11d
test eax, eax
jne 0x428618
push 0x10
call fcn.00428508
pop ecx
call fcn.0042ce75
mov dword [ebp - 4], esi
call fcn.0042cc77
test eax, eax
jge 0x428631
push 0x1b
call fcn.004284e3
pop ecx
call fcn.0042cbd8
mov dword [0x4605f0], eax
call fcn.0042ca6e
mov dword [0x45ec14], eax
call fcn.0042c9d8
test eax, eax
jge 0x428656
push 8
call fcn.004284e3
pop ecx
call fcn.0042c7a5
test eax, eax
jge 0x428667
push 9
call fcn.004284e3
pop ecx
push 1
call fcn.0042bab9
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42867d
push eax
call fcn.004284e3
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0042c75f
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42869e
movzx eax, word [ebp - 0x40]
jmp 0x4286a1
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00437dd2
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4286bf
push edi
call fcn.0042bbe6
call fcn.0042bc08
jmp 0x4286f1
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0042bf3b
ret
Function at 0x429bb4
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 0x429bd1
call fcn.0042c06c
mov dword [eax], 0x16
xor eax, eax
jmp 0x429c3b
push esi
push 0x8c
push 1
call fcn.0042c390
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x429c26
push esi
call fcn.0042cf23
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 0x429c04
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x429b1f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x429c3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0042a0b5
test ebx, ebx
pop ecx
je 0x429c38
push ebx
call fcn.0042c07e
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42a4b7
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 0x42a68b
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4604e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x42a68b
test cl, 0x48
je 0x42a522
cmp byte [eax + 5], 0xa
je 0x42a522
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 0x42a574
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x42a55c
call fcn.0042c06c
mov dword [eax], 9
call fcn.0042c075
mov dword [eax], esi
jmp 0x42a56c
cmp eax, 0x6d
je 0x42a68b
push eax
call fcn.0042c07e
pop ecx
or eax, 0xffffffff
jmp 0x42a68d
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x42a686
test eax, eax
je 0x42a59b
cmp byte [ebx], 0xa
jne 0x42a59b
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x42a5a4
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 0x42a680
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x42a670
cmp al, 0xd
je 0x42a5d6
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x42a662
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x42a5f0
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x42a5eb
add dword [ebp + 0x10], 2
jmp 0x42a644
mov dword [ebp + 0x10], eax
jmp 0x42a65e
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 0x42a618
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42a65e
cmp dword [ebp - 0xc], 0
je 0x42a65e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42a639
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x42a644
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x42a661
cmp ebx, dword [ebp + 0xc]
jne 0x42a649
cmp byte [ebp - 1], 0xa
jne 0x42a649
mov byte [ebx], 0xa
jmp 0x42a661
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042aad4
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x42a662
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x42a5ba
jmp 0x42a680
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x42a680
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 0x42a68d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42a73d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x45b1e4]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x42a76e
xor eax, eax
jmp 0x42a8f7
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4604e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x42a7aa
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0043239b
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x42a885
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x42a8c3
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x42a80e
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x42a7ff
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x42a7df
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42a84e
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x42a857
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x42a7d0
jmp 0x42a859
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x42a8f2
cmp dword [ebp - 0x6c], edi
je 0x42a8c3
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x42a8b8
call fcn.0042c06c
mov dword [eax], 9
call fcn.0042c075
mov dword [eax], esi
jmp 0x42a8ed
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42a8ad
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x42a859
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x42a859
push dword [ebp - 0x6c]
call fcn.0042c07e
pop ecx
jmp 0x42a8ed
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42a8db
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x42a8db
xor eax, eax
jmp 0x42a8f5
call fcn.0042c06c
mov dword [eax], 0x1c
call fcn.0042c075
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x42a8f5
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00428731
add ebp, 0x3a0
leave
ret