joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c790
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push ebx
sub ecx, eax
push ebp
sar ecx, 4
xor ebp, ebp
push edi
test ecx, ecx
je 0x41c80b
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor edi, edi
jmp 0x41c7b0
mov eax, dword [edi + eax + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c7f9
mov edx, dword [esi]
mov eax, dword [edi + edx + 0xc]
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push eax
call ebx
cmp eax, 0xffffffff
jne 0x41c7ee
call fcn.0041e1d0
test eax, eax
jns 0x41c7f9
xor al, al
pop edi
pop ebp
pop ebx
ret
test eax, eax
je 0x41c7f9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
sub ecx, eax
inc ebp
sar ecx, 4
add edi, 0x10
cmp ebp, ecx
jb 0x41c7b0
pop edi
pop ebp
mov al, 1
pop ebx
ret

Function at 0x41c820
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4f48f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebx, ecx
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x3c], ebp
call fcn.0041c410
mov ecx, dword [esp + 0x3c]
push ecx
lea esi, [esp + 0x1c]
call fcn.0041bd30
mov esi, eax
cmp esi, ebp
je 0x41c892
lea ebx, [esp + 0x18]
mov dword [esp + 0x34], 0xffffffff
call fcn.0041db00
mov eax, esi
jmp 0x41c95d
lea edx, [esp + 0x18]
push edx
mov ecx, ebx
call fcn.0041bde0
mov esi, eax
cmp esi, ebp
jne 0x41c87a
lea esi, [esp + 0x18]
call fcn.0041c790
test al, al
mov eax, dword [esp + 0x1c]
je 0x41c8f6
mov esi, dword [esp + 0x18]
sub eax, esi
sar eax, 4
cmp eax, ebp
jbe 0x41c929
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esi, 8
mov ebp, eax
lea ecx, [ecx]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 1
push eax
push ecx
call edi
test eax, eax
jne 0x41c8ee
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 5
push eax
push ecx
call edi
mov byte [ebx + 0xc], 1
add esi, 0x10
dec ebp
jne 0x41c8d0
jmp 0x41c925
sub eax, dword [esp + 0x18]
mov byte [ebx + 0xc], 1
sar eax, 4
cmp eax, ebp
jbe 0x41c925
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esi, 8
mov edi, eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 5
push eax
push ecx
call ebx
add esi, 0x10
dec edi
jne 0x41c914
mov esi, dword [esp + 0x18]
mov dword [esp + 0x34], 0xffffffff
cmp esi, ebp
je 0x41c95b
cmp esi, dword [esp + 0x1c]
je 0x41c952
jmp 0x41c940
call fcn.0041c710
add esi, 0x10
cmp esi, dword [esp + 0x1c]
jne 0x41c940
mov esi, dword [esp + 0x18]
push esi
call fcn.004c9387
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x41d430
Capabilities:
Access peb ldr_data
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ec938
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x54]
lea eax, [esp + 0x20]
push eax
mov ecx, str.GUID
call fcn.00405cc0
mov eax, dword [esp + 0x20]
xor ebx, ebx
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [ebp]
push ebx
lea edx, [esp + 0x30]
push edx
push ebx
push eax
push ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, dword [esp + 0x20]
sete byte [esp + 0x1b]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d4c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], bl
jne 0x41d5af
xor eax, eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x41d5af
mov edx, dword [0x52a1ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x52a1ec
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x4c], ebx
movzx ecx, byte [esp + 0x3b]
movzx edx, byte [esp + 0x3a]
mov eax, dword [esp + 0x38]
push ecx
push edx
movzx ecx, ah
push ecx
movzx ecx, byte [esp + 0x42]
movzx edx, al
movzx eax, byte [esp + 0x43]
push edx
push eax
mov eax, dword [esp + 0x48]
push ecx
movzx ecx, word [esp + 0x4a]
movzx edx, ah
push edx
movzx edx, word [esp + 0x4c]
movzx eax, al
push eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
push str._08X_04X_04X_02X_02X_02X_02X_02X_02X_02X_02X
lea edi, [esp + 0x4c]
call fcn.00404770
mov esi, dword [esp + 0x4c]
xor eax, eax
add esp, 0x30
cmp esi, ebx
setne al
cmp eax, ebx
je 0x41d58b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebx
push str.GUID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esi, 0xfffffff0
mov dword [esp + 0x4c], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d5af
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c9392
add esp, 0x3c
ret 4
Function at 0x41e4b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4ef5b1
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], 0
push eax
mov ecx, str.InstalledVersion
mov dword [esp + 0x20], 0
call fcn.00405cc0
lea ecx, [esp + 0xc]
push ecx
mov ebx, 1
mov ecx, str.SoftwareGoogleGoogle_Pinyin_2Autoupdate
mov dword [esp + 0x30], ebx
call fcn.00405cc0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push edi
mov edx, 0x200
mov byte [esp + 0x38], 2
call fcn.00413da0
add esp, 0xc
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x1c], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e555
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e57a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
jne 0x41e646
lea edx, [esp + 0x18]
push edx
mov ecx, str.InstalledVersion
call fcn.00405cc0
lea eax, [esp + 0x14]
push eax
mov ecx, str.SoftwareGoogleGoogle_Pinyin_2Autoupdate
mov dword [esp + 0x30], 3
call fcn.00405cc0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
mov bl, 4
push eax
mov edx, 0x100
mov byte [esp + 0x38], bl
call fcn.00413da0
add esp, 0xc
mov byte [esp + 0x2c], 5
call fcn.00403900
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e5fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e621
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e646
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x24
ret 4
Function at 0x41e6f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e85f8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
xor esi, esi
push 0x40
lea eax, [esp + 0x2c]
push esi
push eax
mov dword [esp + 0x88], esi
call fcn.004cf830
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x90]
add esp, 0xc
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], 0x44
cmp dword [eax - 4], 1
jle 0x41e76d
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x88]
push edx
call fcn.004063d0
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
push esi
push esi
push 1
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
or edi, 0xffffffff
test eax, eax
jne 0x41e7c7
mov dword [esp + 0x7c], edi
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e7b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x74
ret
mov ecx, dword [esp + 0x14]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41e7f3
mov dword [esp + 0x7c], edi
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41e7a7
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x41e78d
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x7c], edi
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x41e847
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x74
ret
Function at 0x41ee70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ef468
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
lea eax, [esp + 0x18]
push eax
mov ecx, str.InstalledVersion
mov dword [esp + 0x1c], 0
call fcn.00405cc0
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.SoftwareGoogleGoogle_PinyinAutoupdate
mov dword [esp + 0x2c], 0
call fcn.00405cc0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
mov edx, 0x200
mov byte [esp + 0x34], 1
call fcn.00413da0
add esp, 0xc
mov byte [esp + 0x28], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ef10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ef34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
call fcn.004144c0
mov eax, dword [eax]
mov ecx, 0x5082e4
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41ef76
test dx, dx
je 0x41ef72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41ef76
add eax, 4
add ecx, 4
test dx, dx
jne 0x41ef50
xor eax, eax
jmp 0x41ef7a
sbb eax, eax
sbb eax, edi
test eax, eax
mov eax, dword [esp + 0x1c]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ef9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41efaf
push ebp
mov ecx, 0x506c24
call fcn.00405cc0
jmp 0x41efc1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00406260
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x41efe2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x41f000
Capabilities:
Write file on windows

Disassembly:
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [eax]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41f022
call fcn.0041e1d0
ret 4
xor eax, eax
ret 4
Function at 0x41f0a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e85ce
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebx, ebx
push 0x14
mov byte [esi], bl
call fcn.004c958c
mov dword [esi + 4], eax
push 0x38
mov dword [esp + 0x24], ebx
call fcn.004c958c
mov dword [esi + 8], eax
mov byte [esp + 0x24], 1
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
push 0x18
mov dword [esi + 0x20], ebx
call fcn.004c958c
add esp, 0xc
cmp eax, ebx
je 0x41f190
mov dword [esi + 0x1c], eax
mov dword [eax], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 8], eax
mov eax, dword [esi + 0x1c]
mov byte [eax + 0x14], 1
mov ecx, dword [esi + 0x1c]
mov byte [ecx + 0x15], 1
call fcn.00422490
mov eax, dword [esi + 8]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x30], ebx
mov dword [eax + 0x34], ebx
mov eax, dword [esi + 4]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov edx, dword [esi + 4]
mov dword [edx], 0x41f030
mov eax, dword [esi + 4]
mov dword [eax + 4], 0x41f080
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], vtable.stdext::bad_alloc.0
lea esi, [esp + 0xc]
mov byte [esp + 0x1c], 2
call fcn.00406640
int3
Function at 0x41f320
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4ef428
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6c]
mov ebp, dword [esp + 0x68]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [ecx]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x41f378
xor al, al
jmp 0x41f4d3
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x41f371
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x41f371
mov ecx, dword [ebp + 4]
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 4]
push esi
mov dword [ecx + 0xc], eax
mov edi, dword [ebp + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [edi + 0x10], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 4]
call fcn.004249f0
test eax, eax
jne 0x41f371
mov eax, dword [ebp + 8]
mov byte [ebp], 1
cmp dword [eax + 0x18], ebx
jbe 0x41f4d1
lea edi, [ebp + 0x18]
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
add eax, dword [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov ecx, dword [eax + 8]
mov eax, ecx
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41f3f6
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00404fd0
lea eax, [esp + 0x38]
mov esi, 8
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x64], esi
call fcn.004195a0
add esp, 4
mov byte [esp + 0x60], 9
cmp dword [eax + 0x14], esi
jb 0x41f430
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00405cc0
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 0xa
call fcn.0041f660
mov dword [eax], ebx
mov byte [esp + 0x60], 9
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f471
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 8
cmp dword [esp + 0x4c], esi
jb 0x41f489
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004c9387
add esp, 4
xor edx, edx
mov esi, 0x10
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], dx
cmp dword [esp + 0x30], esi
jb 0x41f4c0
mov eax, dword [esp + 0x1c]
push eax
call fcn.004c9387
add esp, 4
mov ecx, dword [ebp + 8]
add dword [esp + 0x18], esi
inc ebx
cmp ebx, dword [ecx + 0x18]
jb 0x41f3cf
mov al, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004c9392
add esp, 0x50
ret 8
Function at 0x41f5c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call fcn.0041f500
test al, al
jne 0x41f5f8
xor al, al
pop esi
add esp, 0xc
ret 0xc
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41f659
call fcn.0041e1d0
test eax, eax
js 0x41f5ef
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41f645
call fcn.0041e1d0
test esi, esi
je 0x41f650
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
add esp, 0xc
ret 0xc
mov esi, eax
jmp 0x41f624

Function at 0x420330
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esi + 0x54]
mov edx, dword [esi + 0x40]
push 0
lea ecx, [esp + 4]
push ecx
push 0x60016
push eax
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420364
call fcn.0041e1d0
test eax, eax
jns 0x42036d
xor al, al
pop ecx
ret
cmp dword [esp], 0x60016
jne 0x420360
mov eax, dword [esi + 0x60]
add dword [esi + 0x54], 0x60016
add eax, 0x14
mov dword [esi + 0x50], eax
mov al, 1
pop ecx
ret

Function at 0x420390
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
xor ecx, ecx
push edi
mov edi, dword [ebp + 0x54]
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x4203ad
mov eax, dword [ebp + 0x50]
mov esi, dword [eax]
jmp 0x4203ba
mov edx, dword [ebp + 0x50]
mov esi, dword [edx + ecx*4]
sub esi, dword [edx + ecx*4 - 4]
lea eax, [edx + ecx*4]
test esi, esi
je 0x420404
mov ecx, dword [ebp + 0x40]
push 0
lea eax, [esp + 0x1c]
push eax
lea ebx, [esi + esi]
push ebx
push edi
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42041e
call fcn.0041e1d0
test eax, eax
js 0x420424
mov eax, esi
test esi, esi
jle 0x4203fe
nop
mov dx, word [edi + eax*2 - 2]
sub word [edi + eax*2], dx
dec eax
test eax, eax
jg 0x4203f0
mov ecx, dword [esp + 0x10]
add edi, ebx
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, 0x10000
jl 0x4203a2
mov dword [ebp + 0x54], edi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 4
cmp dword [esp + 0x18], ebx
je 0x4203e9
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 4
Function at 0x420430
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
xor ecx, ecx
push edi
mov edi, dword [ebp + 0x54]
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x42044d
mov eax, dword [ebp + 0x50]
mov esi, dword [eax]
jmp 0x42045a
mov edx, dword [ebp + 0x50]
mov esi, dword [edx + ecx*4]
sub esi, dword [edx + ecx*4 - 4]
lea eax, [edx + ecx*4]
test esi, esi
je 0x4204a6
mov ecx, dword [ebp + 0x40]
push 0
lea eax, [esp + 0x1c]
push eax
lea ebx, [esi + esi]
push ebx
push edi
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4204c0
call fcn.0041e1d0
test eax, eax
js 0x4204c6
mov eax, 1
cmp esi, eax
jle 0x4204a0
mov dx, word [edi + eax*2 - 2]
add word [edi + eax*2], dx
inc eax
cmp eax, esi
jl 0x420492
mov ecx, dword [esp + 0x10]
add edi, ebx
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, 0x10000
jl 0x420442
mov dword [ebp + 0x54], edi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 4
cmp dword [esp + 0x18], ebx
je 0x420489
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 4

Function at 0x4204d0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esi + 0x50]
mov edx, dword [esi + 0x40]
push edi
mov edi, dword [eax + 0x3fffc]
mov eax, dword [esi + 0x54]
push 0
lea ecx, [esp + 8]
push ecx
push edi
push eax
push edx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42050b
call fcn.0041e1d0
test eax, eax
jns 0x420511
xor al, al
pop edi
pop ecx
ret
cmp dword [esp + 4], edi
jne 0x420506
add dword [esi + 0x54], edi
mov al, 1
pop edi
pop ecx
ret

Function at 0x420520
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov edx, dword [esi + 0x40]
push 0
lea eax, [esp + 4]
push eax
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42055e
call fcn.0041e1d0
test eax, eax
jns 0x420564
xor al, al
add esp, 8
ret
cmp dword [esp], 4
jne 0x420558
cmp dword [esp + 4], 0xbeef
jne 0x420558
mov eax, dword [esi + 0x54]
mov dword [eax], 0xbeef
add dword [esi + 0x54], 4
mov al, 1
add esp, 8
ret