joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cbe0
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
push esi
push 0x567580
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x567598]
or esi, 0xffffffff
test eax, eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
je 0x41cd68
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x41cd68
push edi
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, esi
je 0x41cd2e
push ebp
mov ebp, dword [sym.imp.kernel32.dll_SetFilePointer]
push 2
push 0
push 0
push edi
call ebp
push 0
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp eax, 0xa00000
jae 0x41cd66
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x20]
push eax
push ecx
lea esi, [esp + 0x18]
call fcn.0041c740
add esp, 8
test al, al
je 0x41cd65
push 1
push 0
push 0
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x41cd65
push 0
push 4
lea edx, [esp + 0x1c]
push edx
push edi
call fcn.00419bb0
add esp, 0x10
test al, al
je 0x41cd65
mov eax, dword [esp + 0x30]
push eax
push edi
call dword [esp + 0x34]
add esp, 8
test al, al
je 0x41cd65
push 1
push 0
push 0
push edi
call ebp
cmp eax, 0xffffffff
je 0x41cd65
lea ecx, [esi + 4]
cmp eax, ecx
jb 0x41cd65
push 0
push 0
sub eax, esi
push esi
sub eax, 4
push edi
mov dword [esp + 0x24], eax
call ebp
cmp eax, 0xffffffff
je 0x41cd65
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.00419bb0
add esp, 0x10
test al, al
je 0x41cd65
mov eax, dword [esp + 0x14]
xor ebx, ebx
test eax, eax
jbe 0x41cd5a
nop
cmp eax, 0x800
jb 0x41cd34
mov esi, 0x800
jmp 0x41cd38
mov dword [esp + 0x10], esi
jmp 0x41cd67
sub eax, ebx
mov esi, eax
lea ecx, [esp + 0x10]
push ecx
push esi
push 0x566d80
push edi
call fcn.00419b60
add esp, 0x10
test al, al
je 0x41cd65
mov eax, dword [esp + 0x14]
add ebx, esi
cmp ebx, eax
jb 0x41cd20
lea eax, [esp + 0x10]
mov ecx, edi
call fcn.0041ca10
pop ebx
pop ebp
pop edi
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x567580
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop esi
add esp, 0xc
ret
Function at 0x41cd90
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1000
call fcn.0051d0b0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1014]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x531830
push edx
call dword [sym.imp.user32.dll_wsprintfA]
mov ecx, dword [esp + 0x1028]
add esp, 0x10
mov ebx, eax
lea eax, [esp + 0x101c]
push eax
push ecx
lea esi, [esp + ebx + 0x18]
push esi
call dword [sym.imp.user32.dll_wvsprintfA]
lea edx, [esp + 0x810]
mov ebp, eax
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41cdf0
lea edx, [esp + 0x810]
push edx
call fcn.0041c870
mov ecx, dword [edi + 4]
mov edx, dword [edi]
lea eax, [esp + 0x814]
push eax
push 0
push ecx
push edx
call fcn.0041cb00
add esp, 0x14
lea eax, [esp + 0x10]
add ebx, ebp
push eax
mov word [esp + ebx + 0x14], 0xa
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, dword [0x566d78]
push ecx
push esi
call dword [0x5542b8]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000
ret

Function at 0x41ce50
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1000
call fcn.0051d0b0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1014]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x531830
push edx
call dword [sym.imp.user32.dll_wsprintfA]
mov ecx, dword [esp + 0x102c]
add esp, 0x10
mov ebx, eax
lea eax, [esp + 0x1020]
push eax
push ecx
lea esi, [esp + ebx + 0x18]
push esi
call dword [sym.imp.user32.dll_wvsprintfA]
lea edx, [esp + 0x810]
mov ebp, eax
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41ceb0
lea edx, [esp + 0x810]
push edx
call fcn.0041c870
mov ecx, dword [esp + 0x101c]
mov edx, dword [edi + 4]
lea eax, [esp + 0x814]
push eax
mov eax, dword [edi]
push ecx
push edx
push eax
call fcn.0041cb00
add esp, 0x14
lea ecx, [esp + 0x10]
add ebx, ebp
push ecx
mov word [esp + ebx + 0x14], 0xa
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000
ret

Function at 0x41db70
Capabilities:
Hash data with md5

Disassembly:
lea edx, [ecx + 4]
test edx, edx
je 0x41db9f
push edi
mov ecx, 0x16
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx], 0x67452301
mov dword [edx + 4], 0xefcdab89
mov dword [edx + 8], 0x98badcfe
mov dword [edx + 0xc], 0x10325476
pop edi
ret
Function at 0x41f550
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.kernel32.dll_SetFilePointer]
push esi
push 0
mov esi, eax
push 0
lea esi, [esi*4 + 8]
push esi
push edi
call ebx
cmp eax, esi
je 0x41f57b
pop esi
mov eax, 0x10
pop ebx
add esp, 8
ret
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x41f59b
cmp dword [esp + 0xc], 4
je 0x41f5a6
pop esi
mov eax, 4
pop ebx
add esp, 8
ret
mov edx, dword [esp + 8]
push 0
push 0
push edx
push edi
call ebx
mov esi, dword [esp + 8]
xor ecx, ecx
cmp eax, esi
sete cl
pop esi
pop ebx
dec ecx
and ecx, 0x10
mov eax, ecx
add esp, 8
ret
Function at 0x41f880
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push 0
push 0
push 4
push esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 4
je 0x41f89b
xor eax, eax
add esp, 8
ret
push 0
lea eax, [esp + 8]
push eax
push 4
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.kernel32.dll_ReadFile]
mov ecx, dword [esp]
neg eax
sbb eax, eax
and eax, ecx
add esp, 8
ret

Function at 0x41fa00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push edi
push 0
push 0
push 0
call fcn.00419aa0
mov edi, dword [esp + 0x28]
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 8], eax
jne 0x41fa29
mov eax, 8
pop edi
add esp, 0x14
ret
push 0
push 0
push 0
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
test eax, eax
je 0x41fa44
mov eax, 0x10
pop edi
add esp, 0x14
ret
push ebx
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
push esi
push 0
lea eax, [esp + 0x28]
push eax
mov esi, 4
push esi
lea ecx, [esp + 0x24]
push ecx
push edi
call ebx
test eax, eax
je 0x41fa97
cmp dword [esp + 0x24], esi
jne 0x41fa97
cmp dword [esp + 0x18], 0x43524158
jne 0x41faaa
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.00419aa0
add esp, 0xc
lea ecx, [esp + 0x14]
mov edx, edi
call fcn.0041f520
test al, al
jne 0x41faa0
mov eax, esi
pop esi
pop ebx
pop edi
add esp, 0x14
ret
cmp dword [esp + 0x14], 0x10000
jbe 0x41fab6
pop esi
pop ebx
mov eax, 0xa
pop edi
add esp, 0x14
ret
push ebp
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.00419aa0
mov eax, dword [esp + 0x24]
add esp, 0xc
xor ebp, ebp
test eax, eax
lea esi, [eax*4 + 0xa]
jbe 0x41fb1f
jmp 0x41fae0
push 0
lea eax, [esp + 0x24]
push eax
push 4
lea ecx, [esp + 0x34]
push ecx
push edi
call ebx
test eax, eax
je 0x41fb64
cmp dword [esp + 0x20], 4
jne 0x41fb64
cmp dword [esp + 0x28], esi
jl 0x41fb71
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push 4
push eax
call fcn.00419aa0
mov eax, dword [esp + 0x24]
add esp, 0xc
inc ebp
cmp ebp, eax
jb 0x41fae0
push 0
lea ecx, [esp + 0x2c]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push edi
call ebx
test eax, eax
je 0x41fb64
cmp dword [esp + 0x28], 2
jne 0x41fb64
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push 2
push ecx
call fcn.00419aa0
add esp, 0xc
cmp word [esp + 0x14], 0
je 0x41fb7e
pop ebp
pop esi
pop ebx
mov eax, 0xb
pop edi
add esp, 0x14
ret
pop ebp
pop esi
pop ebx
mov eax, 4
pop edi
add esp, 0x14
ret
pop ebp
pop esi
pop ebx
mov eax, 0xa
pop edi
add esp, 0x14
ret
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41fb8c
mov edx, dword [esp + 0x18]
mov dword [eax], edx
pop ebp
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x14
ret

Function at 0x41fc50
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [eax]
push edi
mov edi, dword [eax + 4]
dec edi
test ebx, ebx
jbe 0x41fc81
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x1c]
sub esi, ecx
xor edx, edx
lea eax, [esi + ecx]
div edi
mov al, byte [edx + ebp]
xor byte [ecx], al
inc ecx
dec ebx
jne 0x41fc70
pop esi
pop edi
pop ebp
pop ebx
ret
Function at 0x41fc90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
push edi
je 0x41fd59
mov edi, dword [esp + 0x10]
test edi, edi
je 0x41fd59
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41fd59
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41fd59
mov eax, 0x200
xor ecx, ecx
test edi, edi
push esi
mov esi, eax
jbe 0x41fcdd
movzx edx, byte [ecx + ebp]
add eax, edx
sub esi, edx
inc ecx
cmp ecx, edi
jb 0x41fcd0
push ebx
xor ebx, ebx
test edi, edi
jbe 0x41fd10
movzx edx, byte [ebx + ebp]
xor eax, edx
mov ecx, eax
shl ecx, 0x1f
shr eax, 1
or eax, ecx
and edx, 0x1f
mov ecx, 0x20
sub ecx, edx
mov ebp, esi
shl ebp, cl
mov ecx, edx
shr esi, cl
or esi, ebp
mov ebp, dword [esp + 0x14]
inc ebx
cmp ebx, edi
jb 0x41fce4
xor edx, edx
test edi, edi
pop ebx
jbe 0x41fd38
movzx ecx, byte [edx + ebp]
xor eax, ecx
not ecx
xor esi, ecx
mov ecx, eax
shl ecx, 0x1f
shr eax, 1
or eax, ecx
mov ecx, esi
shl ecx, 0x1f
shr esi, 1
or esi, ecx
inc edx
cmp edx, edi
jb 0x41fd17
xor edx, edx
mov ecx, 0x401
div ecx
mov eax, dword [esp + 0x18]
mov dword [eax], edx
mov eax, esi
xor edx, edx
div ecx
mov eax, dword [esp + 0x1c]
pop esi
pop edi
pop ebp
mov dword [eax], edx
mov al, 1
ret
pop edi
xor al, al
pop ebp
ret

Function at 0x420040
Capabilities:
Read file on windows

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
push esi
push ebx
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.kernel32.dll_ReadFile]
test edi, edi
je 0x420068
push edi
push esi
push ebx
call fcn.00419aa0
add esp, 0xc
mov ecx, dword [esp]
xor eax, eax
cmp ecx, esi
sete al
pop ecx
ret
Function at 0x420500
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 4]
push edi
push 1
push 0
push 0
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov edi, eax
cmp edi, 0xffffffff
jne 0x420557
push 0x530474
lea ecx, [esp + 0x10]
push 0
push ecx
mov dword [esp + 0x18], 0x531a40
mov dword [esp + 0x1c], 0x1b1
call fcn.0041ce50
add esp, 0xc
pop edi
mov eax, 0x15
pop esi
add esp, 0xc
ret
mov eax, dword [esi + 0x74]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push 0
lea edx, [esp + 0x14]
push edx
push ebx
sub edi, eax
mov eax, dword [esi + 4]
push ebp
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x420595
push 0x530474
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], 0x1ba
push ecx
jmp 0x420618
cmp dword [esp + 0x10], ebx
jne 0x4205fe
mov eax, dword [esi + 0x7c]
test eax, eax
lea edx, [esp + 0x14]
jne 0x4205d2
push 0x530474
push eax
push edx
mov dword [esp + 0x20], 0x531a40
mov dword [esp + 0x24], 0x1c5
call fcn.0041ce50
add esp, 0xc
pop ebp
pop ebx
pop edi
mov eax, 0x1c
pop esi
add esp, 0xc
ret
mov ecx, dword [esi + 0x80]
push edx
push edi
push ebx
mov dword [esp + 0x24], 0
push ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
call fcn.0041fc50
add esp, 0x10
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
call dword [sym.imp.kernel32.dll_GetLastError]
push 0x530474
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], 0x1d7
push eax
mov dword [esp + 0x20], 0x531a40
call fcn.0041ce50
add esp, 0xc
pop ebp
pop ebx
pop edi
mov eax, 0xa
pop esi
add esp, 0xc
ret
Function at 0x421170
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x4211ae
push 0x530474
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x14], 0x531a40
mov dword [esp + 0x18], 0x748
call fcn.0041ce50
add esp, 0xc
mov eax, 0x17
pop esi
add esp, 0x14
ret 4
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esi + 0x10]
jb 0x4211e7
push 0x530474
lea ecx, [esp + 0xc]
push 0
push ecx
mov dword [esp + 0x14], 0x531a40
mov dword [esp + 0x18], 0x74f
call fcn.0041ce50
add esp, 0xc
mov eax, 0x18
pop esi
add esp, 0x14
ret 4
mov edx, dword [esi + 0x8c]
push ebx
mov ebx, dword [sym.imp.kernel32.dll_SetFilePointer]
push edi
lea edi, [edx + ecx*4 + 0x4a]
mov ecx, dword [esi + 0x74]
push 0
push 0
add ecx, edi
push ecx
push eax
mov dword [esp + 0x34], 0
call ebx
cmp eax, 0xffffffff
jne 0x421245
push 0x530474
lea edx, [esp + 0x14]
push 0
push edx
mov dword [esp + 0x1c], 0x531a40
mov dword [esp + 0x20], 0x75c
call fcn.0041ce50
add esp, 0xc
pop edi
pop ebx
mov eax, 0x15
pop esi
add esp, 0x14
ret 4
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x28]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
cmp dword [esp + 0x24], 4
je 0x421296
push 0x530474
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x1c], 0x531a40
mov dword [esp + 0x20], 0x766
call fcn.0041ce50
add esp, 0xc
pop edi
pop ebx
mov eax, 0xa
pop esi
add esp, 0x14
ret 4
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x84]
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x14]
push 4
push ecx
mov dword [esp + 0x28], edx
call fcn.0041fc50
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x74]
add esp, 0x10
push 0
push 0
add edx, eax
mov eax, dword [esi + 4]
push edx
push eax
call ebx
cmp eax, 0xffffffff
jne 0x42130a
push 0x530474
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x1c], 0x531a40
mov dword [esp + 0x20], 0x77c
call fcn.0041ce50
add esp, 0xc
pop edi
pop ebx
mov eax, 0x15
pop esi
add esp, 0x14
ret 4
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x14
ret 4
Function at 0x421173
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x4211ae
push 0x530474
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x14], 0x531a40
mov dword [esp + 0x18], 0x748
call fcn.0041ce50
add esp, 0xc
mov eax, 0x17
pop esi
add esp, 0x14
ret 4
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esi + 0x10]
jb 0x4211e7
push 0x530474
lea ecx, [esp + 0xc]
push 0
push ecx
mov dword [esp + 0x14], 0x531a40
mov dword [esp + 0x18], 0x74f
call fcn.0041ce50
add esp, 0xc
mov eax, 0x18
pop esi
add esp, 0x14
ret 4
mov edx, dword [esi + 0x8c]
push ebx
mov ebx, dword [sym.imp.kernel32.dll_SetFilePointer]
push edi
lea edi, [edx + ecx*4 + 0x4a]
mov ecx, dword [esi + 0x74]
push 0
push 0
add ecx, edi
push ecx
push eax
mov dword [esp + 0x34], 0
call ebx
cmp eax, 0xffffffff
jne 0x421245
push 0x530474
lea edx, [esp + 0x14]
push 0
push edx
mov dword [esp + 0x1c], 0x531a40
mov dword [esp + 0x20], 0x75c
call fcn.0041ce50
add esp, 0xc
pop edi
pop ebx
mov eax, 0x15
pop esi
add esp, 0x14
ret 4
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x28]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
cmp dword [esp + 0x24], 4
je 0x421296
push 0x530474
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x1c], 0x531a40
mov dword [esp + 0x20], 0x766
call fcn.0041ce50
add esp, 0xc
pop edi
pop ebx
mov eax, 0xa
pop esi
add esp, 0x14
ret 4
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x84]
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x14]
push 4
push ecx
mov dword [esp + 0x28], edx
call fcn.0041fc50
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x74]
add esp, 0x10
push 0
push 0
add edx, eax
mov eax, dword [esi + 4]
push edx
push eax
call ebx
cmp eax, 0xffffffff
jne 0x42130a
push 0x530474
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x1c], 0x531a40
mov dword [esp + 0x20], 0x77c
call fcn.0041ce50
add esp, 0xc
pop edi
pop ebx
mov eax, 0x15
pop esi
add esp, 0x14
ret 4
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x14
ret 4
Function at 0x421690
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push ebp
push ebp
mov esi, ecx
call fcn.00419aa0
add esp, 0xc
push 1
push ebp
push ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4216ef
push 0x530474
lea ecx, [esp + 0x1c]
push ebp
push ecx
mov dword [esp + 0x24], 0x531a40
mov dword [esp + 0x28], 0x8a5
call fcn.0041ce50
add esp, 0xc
pop edi
pop esi
mov eax, 0x15
pop ebp
add esp, 0x14
ret 8
mov ecx, dword [esi + 4]
push ebx
mov ebx, dword [esi + 0x74]
push ebp
lea edx, [esp + 0x20]
push edx
push 4
lea eax, [esp + 0x24]
push eax
sub edi, ebx
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
push ecx
mov dword [esp + 0x30], ebp
call ebx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.00419aa0
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, 4
je 0x421761
push 0x530474
lea ecx, [esp + 0x20]
push ebp
push ecx
mov dword [esp + 0x28], 0x531a40
mov dword [esp + 0x2c], 0x8ae
call fcn.0041ce50
add esp, 0xc
pop ebx
pop edi
pop esi
mov eax, 0xa
pop ebp
add esp, 0x14
ret 8
mov eax, dword [esi + 4]
push ebp
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x34]
push 4
push ebp
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push 4
push ebp
call fcn.00419aa0
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, 4
je 0x4217c4
mov dword [esp + 0x20], 0x8b6
push 0x530474
lea edx, [esp + 0x20]
push 0
push edx
mov dword [esp + 0x28], 0x531a40
call fcn.0041ce50
add esp, 0xc
pop ebx
pop edi
pop esi
mov eax, 0xa
pop ebp
add esp, 0x14
ret 8
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x30]
push eax
push 2
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x40], 0
call ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push 2
push ecx
call fcn.00419aa0
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp eax, 2
je 0x421807
mov dword [esp + 0x20], 0x8be
jmp 0x421799
cmp word [esp + 0x14], 0
je 0x421842
mov dword [esp + 0x20], 0x8c6
push 0x530474
lea eax, [esp + 0x20]
push 0
push eax
mov dword [esp + 0x28], 0x531a40
call fcn.0041ce50
add esp, 0xc
pop ebx
pop edi
pop esi
mov eax, 9
pop ebp
add esp, 0x14
ret 8
mov esi, dword [esp + 0x28]
push esi
push edi
lea ecx, [esp + 0x20]
push 4
push ecx
call fcn.0041fc50
push esi
add edi, 4
push edi
push 4
push ebp
call fcn.0041fc50
mov eax, dword [esp + 0x38]
add esp, 0x20
cmp eax, 0x54455344
je 0x4218a2
push 0x530474
lea edx, [esp + 0x20]
push 0
push edx
mov dword [esp + 0x28], 0x531a40
mov dword [esp + 0x2c], 0x8d5
call fcn.0041ce50
add esp, 0xc
pop ebx
pop edi
pop esi
mov eax, 9
pop ebp
add esp, 0x14
ret 8
cmp dword [ebp], 0x80000000
jbe 0x4218b8
mov dword [esp + 0x20], 0x8dd
jmp 0x421817
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x14
ret 8
Function at 0x4218d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push edi
push 1
push 0
mov edi, ecx
mov eax, dword [edi + 4]
push 0
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42191f
push 0x530474
lea ecx, [esp + 0xc]
push 0
push ecx
mov dword [esp + 0x14], 0x531a40
mov dword [esp + 0x18], 0x8fc
call fcn.0041ce50
add esp, 0xc
pop edi
mov eax, 0x15
pop esi
add esp, 8
ret 0xc
mov edx, dword [edi + 0x74]
mov eax, dword [edi + 4]
push ebx
mov ebx, dword [esp + 0x1c]
push 0
sub esi, edx
lea edx, [esp + 0x10]
push edx
push 4
push ebx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.kernel32.dll_ReadFile]
cmp dword [esp + 0xc], 4
je 0x42197e
push 0x530474
lea ecx, [esp + 0x10]
push 0
push ecx
mov dword [esp + 0x18], 0x531a40
mov dword [esp + 0x1c], 0x905
call fcn.0041ce50
add esp, 0xc
pop ebx
pop edi
mov eax, 0xa
pop esi
add esp, 8
ret 0xc
mov edx, dword [esp + 0x18]
push edx
push esi
push 4
push ebx
call fcn.0041fc50
mov eax, dword [ebx]
add esp, 0x10
test eax, 0xffff
je 0x4219ca
push 0x530474
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x18], 0x531a40
mov dword [esp + 0x1c], 0x912
call fcn.0041ce50
add esp, 0xc
pop ebx
pop edi
mov eax, 9
pop esi
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x20]
pop ebx
pop edi
mov dword [ecx], 4
xor eax, eax
pop esi
add esp, 8
ret 0xc

Function at 0x42bf40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52b9fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esi], 0x531e28
mov dword [esp + 0x18], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
lea edi, [esi + 0x44]
mov ecx, edi
mov byte [esp + 0x18], 1
call fcn.00417230
mov dword [edi], 0x531db0
lea edi, [esi + 0xbc]
mov ecx, edi
mov byte [esp + 0x18], 2
call fcn.00417230
mov dword [edi], 0x531db0
lea eax, [esi + 0x16c]
mov dword [esi + 0x168], 0x531e20
mov dword [eax], 0x531e1c
mov word [eax + 4], bx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], eax
mov dword [eax + 0x20], eax
mov dword [esi + 0x190], ebx
mov dword [esi + 0x194], ebx
mov dword [esi + 0x198], ebx
lea ecx, [esi + 0x19c]
mov byte [esp + 0x18], 4
call fcn.0042a620
mov dword [esi + 4], ebx
mov byte [esi + 0xc], bl
xor eax, eax
lea ecx, [esi + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov ecx, dword [esp + 0x10]
mov eax, 0xff
mov dword [esi + 0x30], eax
mov dword [esi + 0x148], eax
or eax, 0xffffffff
mov dword [esi + 0x150], eax
mov dword [esi + 0x158], eax
mov dword [esi + 0x134], ebx
mov dword [esi + 0x138], ebx
mov dword [esi + 0x13c], ebx
mov dword [esi + 0x140], ebx
mov dword [esi + 0x144], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x14c], ebx
mov dword [esi + 0x15c], ebx
mov dword [esi + 0x160], ebx
mov dword [esi + 0x1f0], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x42c7f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx]
lea eax, [esp]
push eax
mov eax, dword [esp + 0xc]
push edx
push 0
push 0
push eax
push ecx
mov dword [esp + 0x18], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
pop ecx
ret 8

Function at 0x42cbe0
Capabilities:
Get common file path

Disassembly:
sub esp, 8
call fcn.00446eb0
test al, al
je 0x42cc33
push 0
push 0x1a
push 0x567ea0
push 0
call dword [sym.imp.shell32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x42cc2a
push 0x530474
push eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x533294
mov dword [esp + 0x10], 0x2c1
call fcn.0041ce50
add esp, 0xc
xor al, al
add esp, 8
ret
mov ecx, dword [0x5544cc]
push ecx
jmp 0x42cc4a
push 0x5681b8
push 0x567ea0
call dword [sym.imp.kernel32.dll_lstrcpy]
mov edx, dword [0x5544d0]
push edx
push 0x567ea0
call dword [sym.imp.kernel32.dll_lstrcat]
mov eax, 0x567ea0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42cc60
sub eax, edx
cmp eax, 0xd2
jbe 0x42ccb3
mov eax, dword [0x554480]
mov ecx, dword [0x5683f8]
push 0x5332c8
push eax
push 0x10
push ecx
call fcn.00416760
push 0x530474
lea edx, [esp + 0x14]
push 0
push edx
mov dword [esp + 0x1c], 0x533294
mov dword [esp + 0x20], 0x2d0
call fcn.0041ce50
add esp, 0x1c
xor al, al
add esp, 8
ret
mov al, 1
add esp, 8
ret