joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419f10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f3e31
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x545628]
xor eax, esp
mov dword [esp + 0x344], eax
push ebx
push esi
mov eax, dword [0x545628]
xor eax, esp
push eax
lea eax, [esp + 0x358]
mov dword fs:[0], eax
xor ebx, ebx
cmp byte [0x54d2fa], bl
jne 0x41a066
push 0x206
lea ecx, [esp + 0x14a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x150], ax
call fcn.004d6770
add esp, 0xc
lea ecx, [esp + 0x144]
mov byte [esp + 0x13], bl
call fcn.00419b90
cmp eax, 1
jne 0x41a059
lea eax, [esp + 0x144]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x419fa0
sub eax, edx
sar eax, 1
mov esi, eax
lea edx, [esp + 0x144]
call fcn.0041a130
push str.iexplore.exe
push edx
call fcn.004d49f7
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.00410c10
lea eax, [esp + 0x144]
lea edx, [esp + 0x1c]
call fcn.00410e40
mov dword [esp + 0x360], 1
mov byte [esp + 0x18], bl
mov dword [esp + 0x14], ebx
push 5
push ebx
push edi
lea ebx, [esp + 0x20]
lea ecx, [esp + 0x28]
mov byte [esp + 0x36c], 2
call fcn.00417bf0
test al, al
jne 0x41a021
mov ecx, ebx
call fcn.0040faa0
mov bl, byte [esp + 0x13]
jmp 0x41a023
mov bl, 1
lea ecx, [esp + 0x14]
call fcn.0040f9f0
cmp byte [esp + 0x138], 0
mov dword [esp + 0x1c], vtable.t_str.0
jne 0x41a053
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x41a053
push eax
call fcn.004d1d15
add esp, 4
test bl, bl
jne 0x41a066
xor ebx, ebx
push 5
push ebx
push ebx
push edi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x358]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x344]
xor ecx, esp
call fcn.004d158d
mov esp, ebp
pop ebp
ret

Function at 0x41a160
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push ebp
mov byte [esp + 0x13], bl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x41a196
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
push esi
push eax
call fcn.004d1df2
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
push esi
push ecx
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41a1f4
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0x52a4b8
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41a1f4
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 0xa]
mov word [edi], cx
movzx edx, word [eax + 8]
mov word [edi + 2], dx
movzx ecx, word [eax + 0xe]
mov word [edi + 4], cx
movzx edx, word [eax + 0xc]
mov word [edi + 6], dx
mov byte [esp + 0xf], 1
cmp esi, ebx
je 0x41a201
push esi
call fcn.004d1d15
add esp, 4
mov al, byte [esp + 0xf]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x41a210
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x545628]
xor eax, esp
mov dword [esp + 0x210], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004d6770
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x41a269
xor al, al
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004d158d
add esp, 0x214
ret
push edi
push 0x52bf9c
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.004d3269
lea ecx, [esp + 0x18]
push ecx
lea edi, [esp + 0x14]
call fcn.0041a160
add esp, 0x10
pop edi
test al, al
je 0x41a252
movzx ecx, word [esp + 4]
movzx edx, word [esp]
movzx eax, word [esp + 2]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x210]
mov dword [esi + 4], edx
xor edx, edx
mov dword [esi + 8], eax
xor ecx, esp
mov dword [esi], 0x114
mov dword [esi + 0x10], 2
mov word [esi + 0x14], dx
mov al, 1
call fcn.004d158d
add esp, 0x214
ret

Function at 0x41a780
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4f1fd3
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x545628]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
fld dword [0x534ce0]
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], 0x11
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], ebx
fstp dword [esi + 0xc]
fld dword [0x534cdc]
mov ecx, esi
fstp dword [esi + 0x10]
fld dword [0x534cd8]
fstp dword [esi + 0x14]
call fcn.0040f2d0
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x41c660
Capabilities:
Set file attributes

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov esi, eax
mov eax, dword [edi + 0x130]
mov edx, dword [eax + 0x18]
lea ebx, [edi + 0x130]
push esi
push ebp
mov ecx, ebx
call edx
test al, al
jne 0x41c6af
mov ecx, ebp
call fcn.0040fa50
push 0x52b5a0
push 0x52a3bc
mov edx, eax
call fcn.004114a0
add esp, 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 8
push ebx
push ebp
lea ecx, [edi + 0x344]
call fcn.0041c110
test al, al
je 0x41c688
mov ebx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov eax, ebp
mov dword [edi + 8], ebx
call fcn.0041c480
add esp, 0xc
test al, al
jne 0x41c73b
cmp byte [esi + 0x11c], al
je 0x41c6ff
add esi, 0xc
jmp 0x41c702
mov esi, dword [esi + 8]
mov ecx, ebp
call fcn.0040fa50
mov edi, eax
push 0x52c2d8
push 0x52a3bc
mov edx, edi
call fcn.004114a0
add esi, 4
push esi
push 0x52a3bc
mov edx, edi
call fcn.004114a0
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 8
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push ebp
push 0
push eax
push ecx
mov ecx, esi
call fcn.004162a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 4], eax
mov ebx, 1
cmp eax, 0xffffffff
jne 0x41c7de
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x24], eax
cmp eax, 0x20
jne 0x41c792
cmp ebx, 3
jge 0x41c82c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41c7b3
cmp eax, 5
jne 0x41c7f3
cmp ebx, 3
jge 0x41c82c
push 0x80
mov ecx, esi
call fcn.004162a0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0
push 0x80
push ebp
push 0
push edx
push eax
mov ecx, esi
call fcn.004162a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
inc ebx
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x41c770
push esi
lea ecx, [edi + 0xc]
call fcn.00416380
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret 8
test eax, eax
jne 0x41c82c
cmp byte [esi + 0x11c], al
je 0x41c804
add esi, 0xc
jmp 0x41c807
mov esi, dword [esi + 8]
mov ecx, dword [esp + 0x20]
add esi, 4
push esi
push 0x52c2e8
call fcn.00401490
mov ecx, eax
call fcn.004109f0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 8
cmp byte [esi + 0x11c], 0
lea ebx, [esi + 0xc]
jne 0x41c83b
mov ebx, dword [esi + 8]
mov ebp, dword [esp + 0x20]
mov ecx, ebp
call fcn.0040fa50
mov edi, dword [esp + 0x24]
mov esi, eax
call fcn.004108a0
mov ecx, ebp
call fcn.0040fa50
add ebx, 4
push ebx
push 0x52c2d8
mov ecx, eax
call fcn.004109f0
mov ecx, eax
call fcn.004109f0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 8
Function at 0x41c920
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push edi
push 0
mov ebx, eax
mov edi, ecx
mov esi, edx
call ebp
test edi, edi
jne 0x41c949
test ebx, ebx
je 0x41c93f
mov dword [ebx], edi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ecx
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c9cf
lea ebx, [esi + 0x18]
cmp byte [esi + 0x128], al
jne 0x41c97a
mov ebx, dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
mov edi, eax
call fcn.0040fa50
mov esi, eax
call fcn.004108a0
push 0
call ebp
mov ecx, dword [esp + 0x18]
call fcn.0040fa50
mov esi, eax
push 0x52c308
push 0x52a3bc
mov edx, esi
call fcn.004114a0
add ebx, 4
push ebx
push 0x52a3bc
mov edx, esi
call fcn.004114a0
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x41c9d9
mov dword [ebx], eax
test eax, eax
jne 0x41c93f
cmp byte [esi + 0x128], al
je 0x41c9ee
add esi, 0x18
jmp 0x41c9f1
mov esi, dword [esi + 0x14]
mov ecx, dword [esp + 0x18]
call fcn.0040fa50
mov edi, eax
push 0x52c318
push 0x52a3bc
mov edx, edi
call fcn.004114a0
add esi, 4
push esi
push 0x52a3bc
mov edx, edi
call fcn.004114a0
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8

Function at 0x41ca30
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push edi
push 0
mov edi, eax
mov esi, ecx
call ebp
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41cacd
push ebx
lea ebx, [esi + 0x18]
cmp byte [esi + 0x128], al
jne 0x41ca78
mov ebx, dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
mov edi, eax
call fcn.0040fa50
mov esi, eax
call fcn.004108a0
push 0
call ebp
mov ecx, dword [esp + 0x18]
call fcn.0040fa50
mov esi, eax
push 0x52c338
push 0x52a3bc
mov edx, esi
call fcn.004114a0
add ebx, 4
push ebx
push 0x52a3bc
mov edx, esi
call fcn.004114a0
add esp, 0x10
pop ebx
pop edi
pop esi
xor al, al
pop ebp
pop ecx
ret 0xc
test edi, edi
je 0x41cad7
mov ecx, dword [esp + 0xc]
mov dword [edi], ecx
pop edi
pop esi
mov al, 1
pop ebp
pop ecx
ret 0xc

Function at 0x41cb40
Capabilities:
Get file size

Disassembly:
push ecx
mov ecx, dword [ecx + 4]
push esi
lea eax, [esp + 4]
push eax
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41cb6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41cb6f
xor eax, eax
pop esi
pop ecx
ret
mov eax, esi
pop esi
pop ecx
ret
Function at 0x41e450
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, ebx
call fcn.0041df20
test eax, eax
jl 0x41e688
mov edx, dword [ebx + 0xf0]
add edx, edx
push esi
add edx, edx
xor esi, esi
push edi
test edx, edx
jle 0x41e4bd
lea ecx, [ebx + edx*4 + 8]
lea eax, [ebx + 8]
push ebp
lea esp, [esp]
mov ebp, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebp
mov ebp, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebp
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x41e480
pop ebp
mov edx, 1
cmp dword [ebx + 0xf0], edx
jle 0x41e684
lea eax, [ebx + 2]
mov ecx, dword [eax + 0xe]
movzx edi, byte [eax + 0xf]
mov edi, dword [edi*4 + 0x5252f8]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x5252f8]
and esi, 0xff
mov esi, dword [esi*4 + 0x525ef8]
and edi, 0xff
xor esi, dword [edi*4 + 0x5266f8]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5252f8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x526af8]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + 0x5252f8]
movzx edi, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x5262f8]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov edi, dword [edi*4 + 0x5252f8]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x5252f8]
and esi, 0xff
mov esi, dword [esi*4 + 0x525ef8]
and edi, 0xff
xor esi, dword [edi*4 + 0x5266f8]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + 0x5252f8]
and edi, 0xff
xor esi, dword [edi*4 + 0x5262f8]
movzx edi, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5252f8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x526af8]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov edi, dword [edi*4 + 0x5252f8]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x5252f8]
and esi, 0xff
mov esi, dword [esi*4 + 0x525ef8]
and edi, 0xff
xor esi, dword [edi*4 + 0x5266f8]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + 0x5252f8]
and edi, 0xff
xor esi, dword [edi*4 + 0x5262f8]
movzx edi, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5252f8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x526af8]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov edi, dword [edi*4 + 0x5252f8]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x5252f8]
and esi, 0xff
mov esi, dword [esi*4 + 0x525ef8]
and edi, 0xff
xor esi, dword [edi*4 + 0x5266f8]
movzx edi, byte [eax + 0xc]
mov edi, dword [edi*4 + 0x5252f8]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5252f8]
and edi, 0xff
xor esi, dword [edi*4 + 0x5262f8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x526af8]
inc edx
mov dword [eax + 0xa], esi
cmp edx, dword [ebx + 0xf0]
jl 0x41e4d1
pop edi
xor eax, eax
pop esi
ret
Function at 0x41f1d0
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
mov edi, eax
cmp edi, 3
mov esi, edx
jl 0x41f255
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
lea eax, [edx + edx*2]
sub edi, eax
push ebx
lea ebx, [ebx]
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and eax, 3
shl eax, 4
shr ebx, 4
or eax, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 2]
inc ecx
and eax, 0xf
add eax, eax
add eax, eax
shr ebx, 6
or eax, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
add esi, 3
sub edx, 1
jne 0x41f1f0
pop ebx
test edi, edi
jle 0x41f2b5
movzx edx, byte [esi]
shr edx, 2
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov al, byte [esi]
and al, 3
inc ecx
shl al, 4
cmp edi, 1
jle 0x41f27d
mov dl, byte [esi + 1]
shr dl, 4
or al, dl
movzx eax, al
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
cmp edi, 2
jge 0x41f29f
mov eax, 0x3d
mov byte [ecx], al
inc ecx
mov byte [ecx], al
inc ecx
pop edi
mov byte [ecx], 0
pop esi
ret
movzx eax, byte [esi + 1]
and eax, 0xf
movsx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
pop edi
mov byte [ecx], 0
pop esi
ret

Function at 0x41f430
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
push ebx
push esi
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x41f442
mov esi, 0x54d2bc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.0041d4d0
add esp, 4
lea ebx, [esp + 8]
mov eax, esi
call fcn.0041d770
mov eax, esi
pop esi
pop ebx
add esp, 0x5c
ret

Function at 0x41f530
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push edi
push 0
push eax
mov eax, dword [esp + 0x14]
mov edi, ecx
call fcn.0041c660
test al, al
jne 0x41f54b
pop edi
ret 8
mov edx, dword [edi + 4]
push esi
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41f576
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41f576
xor esi, esi
mov dword [edi + 0x350], esi
pop esi
mov al, 1
pop edi
ret 8
Function at 0x420120
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4f3dab
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x545628]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x545628]
xor eax, esp
push eax
lea eax, [esp + 0x378]
mov dword fs:[0], eax
mov eax, dword [esp + 0x388]
mov ebp, dword [esp + 0x38c]
mov ebx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
xor edi, edi
cmp eax, edi
je 0x42018a
push eax
call fcn.004d1d15
add esp, 4
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
lea esi, [esp + 0x1c]
call fcn.0041c530
mov esi, vtable.t_fileRead.0
mov dword [esp + 0x1c], esi
mov dword [esp + method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [esp + 0x36c], edi
mov dword [esp + 0x370], edi
mov ecx, dword [esp + 0x14]
push ebp
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x388], edi
call fcn.0041f530
test al, al
jne 0x4201f9
mov dword [esp + 0x380], 0xffffffff
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x1c]
mov dword [esp + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.0041c5a0
xor al, al
jmp 0x42035e
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x420220
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x420220
xor esi, esi
lea ecx, [esi + 4]
push ecx
call fcn.004d1df2
mov edi, eax
add esp, 4
test edi, edi
jne 0x420289
cmp byte [ebp + 0x11c], al
je 0x42023f
add ebp, 0xc
jmp 0x420242
mov ebp, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
call fcn.0040fa50
push 0x52c3e8
mov esi, eax
push 0x52a3bc
mov edx, esi
call fcn.004114a0
add ebp, 4
push ebp
push 0x52a3bc
mov edx, esi
call fcn.004114a0
mov dword [esp + 0x390], 0xffffffff
add esp, 0x10
mov dword [esp + 0x1c], vtable.t_fileRead.0
jmp 0x4201de
mov edx, dword [esp + 0x14]
push esi
push edi
push edx
lea ecx, [esp + 0x374]
call fcn.0041f590
test al, al
jne 0x4202ce
cmp byte [ebp + 0x11c], al
je 0x4202bb
mov ecx, dword [esp + 0x14]
add ebp, 0xc
call fcn.0040fa50
push 0x52c2d8
jmp 0x420250
mov ecx, dword [esp + 0x14]
mov ebp, dword [ebp + 8]
call fcn.0040fa50
push 0x52c2d8
jmp 0x420250
lea ecx, [esp + 0x1c]
call fcn.0041c880
xor eax, eax
xor ecx, ecx
push esi
mov word [edi + esi + 2], ax
mov word [edi + esi], cx
mov esi, dword [esp + 0x18]
push esi
push ebx
mov ebx, edi
call fcn.004204f0
test al, al
jne 0x420335
cmp byte [ebp + 0x11c], al
je 0x420303
add ebp, 0xc
jmp 0x420306
mov ebp, dword [ebp + 8]
add ebp, 4
push ebp
push 0x52c2d8
mov ecx, esi
call fcn.00401490
mov ecx, eax
call fcn.004109f0
mov dword [esp + 0x380], 0xffffffff
mov dword [esp + 0x1c], vtable.t_fileRead.0
jmp 0x4201de
mov dword [esp + 0x380], 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.t_fileRead.0
mov dword [esp + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.0041c5a0
mov al, 1
mov ecx, dword [esp + 0x378]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x360]
xor ecx, esp
call fcn.004d158d
add esp, 0x370
ret 8
Function at 0x423340
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x545628]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
xor eax, eax
push 0x1fe
mov esi, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.004d6770
add esp, 0xc
lea edx, [esp + 4]
push edx
push 0x20019
push 0
push str.SoftWareSogouInput
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4233b1
xor al, al
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004d158d
add esp, 0x210
ret
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push esi
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x423399
lea eax, [esp + 0x10]
mov edx, edi
call fcn.00410e40
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
mov al, 1
call fcn.004d158d
add esp, 0x210
ret

Function at 0x423940
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 8
mov ecx, dword [edi + 0x26c]
push ebx
push ebp
xor ebp, ebp
cmp byte [esp + 0x18], 0
push esi
mov ebx, eax
mov dword [esp + 0xc], ebp
je 0x423961
cmp ebx, ecx
jge 0x423961
mov ecx, ebx
mov esi, dword [edi + 0x258]
call fcn.0040b730
cmp byte [esi + 0x114], 0
je 0x42397a
add esi, 4
jmp 0x42397c
mov esi, dword [esi]
add esi, 4
nop
mov eax, dword [edi + 0x270]
test eax, eax
je 0x423994
mov al, byte [eax]
test al, al
jne 0x423a58
cmp byte [esp + 0x1c], 0
mov eax, dword [edi + 0x26c]
je 0x4239a7
cmp ebx, eax
jge 0x4239a7
mov eax, ebx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push ecx
push eax
push esi
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x423a33
add ebp, eax
cmp byte [esp + 0x1c], 0
mov eax, dword [edi + 0x26c]
je 0x4239da
cmp ebx, eax
jge 0x4239da
mov eax, ebx
mov esi, dword [edi + 0x258]
lea ecx, [eax + ebp]
call fcn.0040b730
cmp byte [esi + 0x114], 0
je 0x4239f6
add esi, 4
jmp 0x4239f8
mov esi, dword [esi]
mov eax, dword [edi + 0x264]
lea esi, [esi + ebp + 4]
test eax, eax
je 0x423a22
cmp byte [esp + 0x1c], 0
je 0x423a11
mov ecx, ebx
jmp 0x423a14
or ecx, 0xffffffff
mov edx, dword [edi + 0x268]
push edx
push ecx
push ebp
call eax
add esp, 0xc
cmp byte [esp + 0x1c], 0
mov eax, dword [esp + 0xc]
je 0x423a33
sub ebx, eax
test ebx, ebx
jle 0x423a42
cmp dword [esp + 0x10], 0
je 0x423a42
test eax, eax
ja 0x423980
xor eax, eax
cmp dword [esp + 0x10], eax
pop esi
mov dword [edi + 0x25c], ebp
pop ebp
setne al
pop ebx
add esp, 8
ret
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret