joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a740
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48d018
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4ac44c]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004800af
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004800fe
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.0048005b
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x41a7c6
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x41a7c6
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x40], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047fc7f
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x41aa20
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x41c320
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x48d2a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov eax, dword [0x4ac44c]
lea ecx, [esi + 4]
mov dword [esp + 0x20], 0
mov dword [ecx], eax
mov edx, dword [0x4ac44c]
mov dword [esi + 0x10], edx
mov eax, dword [0x4ac44c]
lea edi, [esi + 0x14]
mov dword [edi], eax
mov edx, dword [0x4ac44c]
lea ebp, [esi + 0x18]
mov dword [ebp], edx
mov eax, dword [0x4ac44c]
mov dword [esi + 0x1c], eax
mov edx, dword [0x4ac44c]
mov dword [esi + 0x20], edx
mov eax, dword [0x4ac44c]
mov dword [esi + 0x24], eax
mov edx, dword [0x4ac44c]
mov dword [esi + 0x28], edx
mov eax, dword [0x4ac44c]
mov dword [esi + 0x2c], eax
mov edx, dword [0x4ac44c]
mov dword [esi + 0x30], edx
mov eax, dword [0x4ac44c]
mov dword [esi + 0x34], eax
mov edx, dword [0x4ac44c]
mov dword [esi + 0x38], edx
mov eax, dword [0x4ac44c]
mov dword [esi + 0x3c], eax
mov edx, dword [0x4ac44c]
mov dword [esi + 0x40], edx
mov eax, dword [0x4ac44c]
mov dword [esi + 0x44], eax
lea edx, [esp + 0x28]
mov byte [esp + 0x20], 0xf
push edx
mov dword [esi], 0x4926e4
call fcn.0047fdb8
push 0x4a8964
mov ecx, edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 1
call fcn.0047fe08
push 0x4a8964
mov ecx, ebp
call fcn.0047fe08
push str.UserConfig.xml
lea ecx, [esp + 0x10]
call fcn.0047fced
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov byte [esp + 0x28], 0x10
call fcn.0047f9f4
mov ecx, esi
call fcn.0041c5c0
mov eax, dword [esi + 8]
mov dword [esi + 0xc], 0
test eax, eax
jne 0x41c469
push str.SystemConfig.xml
lea ecx, [esp + 0x10]
call fcn.0047fe08
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0047f9f4
mov ecx, esi
call fcn.0041c5c0
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0xf
call fcn.0047fc7f
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.0047fc7f
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x18
ret 4
Function at 0x41c4c0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x48d34a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x4926e4
lea ecx, [esi + 0x44]
mov dword [esp + 0x10], 0xd
call fcn.0047fc7f
lea ecx, [esi + 0x40]
mov byte [esp + 0x10], 0xc
call fcn.0047fc7f
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 0xb
call fcn.0047fc7f
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 0xa
call fcn.0047fc7f
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 9
call fcn.0047fc7f
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 8
call fcn.0047fc7f
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 7
call fcn.0047fc7f
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 6
call fcn.0047fc7f
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 5
call fcn.0047fc7f
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 4
call fcn.0047fc7f
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 3
call fcn.0047fc7f
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 2
call fcn.0047fc7f
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 1
call fcn.0047fc7f
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 0
call fcn.0047fc7f
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.0047fc7f
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x439380
Capabilities:
Get socket status

Disassembly:
sub esp, 0x324
mov eax, dword [esp + 0x328]
push ebx
push ebp
push esi
xor esi, esi
mov ebx, dword [esp + 0x338]
mov dword [eax + 0x191b0], esi
mov eax, dword [esp + 0x33c]
push edi
mov ebp, eax
mov edx, 1
xor edi, edi
and ebp, edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
je 0x4393c8
lea edi, [esp + 0x28]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edx
mov ecx, eax
and ecx, 2
mov dword [esp + 0x20], ecx
je 0x4393ec
lea ecx, [esp + 0x12c]
mov dword [esp + 0x130], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x12c], edx
and eax, 4
mov dword [esp + 0x24], eax
je 0x43940e
lea eax, [esp + 0x230]
mov dword [esp + 0x234], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x230], edx
mov ecx, dword [esp + 0x344]
cmp ecx, esi
jl 0x439423
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
jmp 0x439448
mov eax, 0xbce4217d
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
neg eax
mov dword [esp + 0x18], edx
mov ecx, 0xf4240
cdq
idiv ecx
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
lea edx, [ebx + 1]
push edi
push edx
call dword [sym.imp.WSOCK32.dll_select]
mov esi, eax
test esi, esi
jle 0x4394bf
xor esi, esi
test ebp, ebp
je 0x43947e
push edi
push ebx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x43947e
mov esi, 1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x439498
mov eax, dword [esp + 0x14]
push eax
push ebx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x439498
or esi, 2
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4394d4
mov ecx, dword [esp + 0x10]
push ecx
push ebx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4394d4
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x324
ret
jge 0x4394d4
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edx, dword [esp + 0x338]
mov dword [edx + 0x191b0], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x324
ret
Function at 0x4479c0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x48dc7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x4ac44c]
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 8], eax
mov dword [esp + 0x220], 1
mov dword [esp + 0x10], eax
push 0x4b15a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x224], 2
call fcn.0047fced
lea eax, [esp + 0x18]
push 0x200
push eax
mov byte [esp + 0x228], 3
call dword [sym.imp.WSOCK32.dll_gethostname]
cmp eax, edi
jne 0x447a9d
lea ecx, [esp + 0x18]
push ebx
push ecx
lea ecx, [esp + 0x18]
call fcn.0047fe08
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
cmp ebx, edi
je 0x447a8e
push ebp
mov ebp, dword [sym.imp.WSOCK32.dll_inet_ntoa]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + edi]
test eax, eax
je 0x447a8d
mov ecx, dword [eax]
push ecx
call ebp
mov edx, dword [esp + 0x10]
mov esi, eax
mov eax, dword [edx - 8]
test eax, eax
jle 0x447a7e
push 0x4ab7f0
lea ecx, [esp + 0x14]
call fcn.0048005b
push esi
lea ecx, [esp + 0x14]
call fcn.0048005b
add edi, 4
jmp 0x447a54
pop ebp
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
call fcn.0047fdb8
pop ebx
mov esi, dword [esp + 0x228]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0047f9f4
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x220], 2
call fcn.0047fc7f
lea ecx, [esp + 0x10]
mov byte [esp + 0x220], 1
call fcn.0047fc7f
lea ecx, [esp + 8]
mov byte [esp + 0x220], 0
call fcn.0047fc7f
mov ecx, dword [esp + 0x218]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x449420
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
xor ebp, ebp
push esi
cmp ebx, 1
push edi
jl 0x44943b
cmp ebx, 8
jg 0x44943b
mov eax, 1
jmp 0x44943d
xor eax, eax
mov esi, dword [esp + 0x14]
push str.bad_pack_level
push eax
push esi
call fcn.00447ca0
mov eax, dword [esi + 0x6af70]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af78], ebp
jne 0x449474
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
mov ecx, 0x7fff
xor eax, eax
lea edi, [esi + 0x4af70]
mov dword [esi + 0x6af6c], ebp
rep stosd dword es:[edi], eax
mov ax, word [ebx*8 + 0x493582]
xor ecx, ecx
mov dword [esi + 0x6af98], eax
mov cx, word [ebx*8 + 0x493580]
xor edx, edx
mov dword [esi + 0x6af9c], ecx
mov dx, word [ebx*8 + 0x493584]
xor eax, eax
mov dword [esi + 0x6afa0], edx
mov ax, word [ebx*8 + 0x493586]
cmp ebx, 2
mov dword [esi + 0x6af94], eax
jg 0x4494d5
mov eax, dword [esp + 0x1c]
or byte [eax], 4
jmp 0x4494e1
cmp ebx, 8
jl 0x4494e1
mov eax, dword [esp + 0x1c]
or byte [eax], 2
lea edi, [esi + 0x1af70]
push 0x10000
push edi
push esi
mov dword [esi + 0x6af84], ebp
mov dword [esi + 0x6af74], ebp
call dword [esi + 0xc]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af90], eax
je 0x44955a
cmp eax, 0xffffffff
je 0x44955a
cmp eax, 0x106
mov dword [esi + 0x6af8c], ebp
jae 0x449525
push esi
call fcn.00449770
add esp, 4
mov dword [esi + 0x6af7c], ebp
xor eax, eax
mov edx, dword [esi + 0x6af7c]
xor ecx, ecx
mov cl, byte [edi + eax]
and edx, 0x3ff
and ecx, 0x7fff
shl edx, 5
xor ecx, edx
inc eax
cmp eax, 2
mov dword [esi + 0x6af7c], ecx
jb 0x44952d
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x44a7f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x44a7fb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x44a8fe
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4935d0]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4935d0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4935d0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4935d0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4935d0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4935d0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4935d0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4935d0]
xor eax, edx
inc ecx
dec edi
jne 0x44a816
pop edi
test esi, esi
je 0x44a920
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4935d0]
xor eax, edx
inc ecx
dec esi
jne 0x44a902
pop esi
pop ebx
not eax
ret

Function at 0x44a930
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [ecx]
and esi, 0xff
mov eax, edx
and eax, 0xff
xor eax, esi
shr edx, 8
mov eax, dword [eax*4 + 0x4935d0]
xor eax, edx
mov edx, dword [ecx + 4]
mov dword [ecx], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 8]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 4], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x4935d0]
xor eax, edx
mov dword [ecx + 8], eax
ret
Function at 0x44ab70
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x44
lea eax, [esp + 0x10]
push esi
mov esi, dword [esp + 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x44ab92
mov eax, 0x200
pop esi
add esp, 0x44
ret
mov eax, dword [esp + 0x14]
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
je 0x44aba5
mov ebp, 1
test al, 2
je 0x44abac
or ebp, 2
test al, 4
je 0x44abb3
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x44abbd
or ebp, 0x10
test al, 0x20
je 0x44abc4
or ebp, 0x20
test ecx, ecx
je 0x44abd0
or ebp, 0x40000000
jmp 0x44abd6
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x44abe6
or ebp, 0x800000
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [esp + 0x14], eax
jbe 0x44ac95
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x60]
push 2
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 4
push ecx
push esi
call ebx
cmp word [esp + 0x58], 0x54ad
jne 0x44ac95
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [eax + 0x34]
cmp ecx, edx
jbe 0x44ac95
push 0
push 0
push eax
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push esi
call ebx
mov eax, dword [esp + 0x1c]
cmp eax, 0x5a4d
je 0x44ac8f
cmp eax, 0x454e
je 0x44ac8f
cmp eax, 0x454c
je 0x44ac8f
cmp eax, 0x4550
jne 0x44ac95
or ebp, 0x400000
mov eax, dword [esp + 0x5c]
pop edi
test eax, eax
pop ebx
je 0x44aca1
mov dword [eax], ebp
mov eax, dword [esp + 0x58]
pop ebp
test eax, eax
je 0x44acb0
mov edx, dword [esp + 8]
mov dword [eax], edx
mov esi, dword [esp + 0x58]
test esi, esi
je 0x44acf9
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.0044aad0
mov dword [esi], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x34]
push edx
push eax
call fcn.0044aad0
mov ecx, dword [esp + 0x2c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x28]
push ecx
push edx
call fcn.0044aad0
mov dword [esi + 0x10], eax
add esp, 0x18
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x44ad38
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x50]
lea ecx, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
call fcn.0044ab00
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
and ecx, 0xffff
and edx, 0xffff
shl ecx, 0x10
add esp, 0x10
or ecx, edx
mov dword [esi], ecx
xor eax, eax
pop esi
add esp, 0x44
ret
Function at 0x44aef0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0x10]
mov al, byte [ebx + 0x2d]
push esi
mov esi, dword [esp + 0x10]
push edi
test al, al
je 0x44af75
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x44af21
cmp dword [ebx + 0x40], ebp
jae 0x44af21
push eax
call fcn.00480210
add esp, 4
mov dword [ebx + 0x3c], 0
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x44af3b
lea eax, [ebp + ebp]
push eax
call fcn.004801e7
add esp, 4
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], ebp
mov edi, dword [ebx + 0x3c]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
test ebp, ebp
jbe 0x44af72
lea edi, [ebx + 0x30]
mov eax, dword [ebx + 0x3c]
mov cl, byte [esi + eax]
push ecx
push edi
call fcn.0044a9b0
mov edx, dword [ebx + 0x3c]
add esp, 8
mov byte [esi + edx], al
inc esi
cmp esi, ebp
jb 0x44af57
mov esi, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x44afbd
mov eax, dword [ebx + 0x24]
mov edi, dword [ebx + 0x28]
lea ecx, [eax + ebp]
cmp ecx, edi
jb 0x44af99
pop edi
pop esi
mov dword [ebx + 0x14], 0x30000
pop ebp
xor eax, eax
pop ebx
ret 8
mov ecx, ebp
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x24]
pop edi
add eax, ebp
pop esi
mov dword [ebx + 0x24], eax
mov eax, ebp
pop ebp
pop ebx
ret 8
mov eax, dword [ebx + 4]
test eax, eax
je 0x44afdf
lea ecx, [esp + 0x14]
push 0
push ecx
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
mov dword [ebx + 0x14], 0x1000000
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x44b470
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov edx, dword [ebx + 0x84]
test edx, edx
je 0x44b4e9
mov eax, dword [ebx + 0x8c]
mov ebp, dword [ebx + 0x88]
cmp eax, ebp
jae 0x44b53a
mov ecx, dword [esp + 0x14]
sub ebp, eax
cmp ebp, ecx
jbe 0x44b49f
mov ebp, ecx
mov ecx, ebp
lea esi, [eax + edx]
mov eax, dword [esp + 0x10]
mov edx, ecx
push edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x8c]
mov ecx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x78]
add edx, ebp
add ecx, ebp
push eax
mov dword [ebx + 0x8c], edx
mov dword [ebx + 0x74], ecx
call fcn.0044a7f0
add esp, 0xc
mov dword [ebx + 0x78], eax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x44b533
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44b53a
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x74]
add ecx, eax
push eax
mov eax, dword [ebx + 0x78]
push esi
push eax
mov dword [ebx + 0x74], ecx
call fcn.0044a7f0
add esp, 0xc
mov dword [ebx + 0x78], eax
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
ret 8
mov dword [ebx + 0x14], 0x1000000
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x44ca60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov ebx, ecx
mov eax, dword [ebp]
push eax
push 1
call fcn.0044cb70
mov ecx, dword [ebp]
mov esi, eax
add ecx, esi
push ecx
call fcn.004801e7
mov edi, dword [ebp]
add esp, 4
add edi, esi
mov esi, dword [esp + 0x20]
mov ecx, edi
mov dword [ebp], edi
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x10], eax
and ecx, 3
mov dword [esp + 0x28], 0
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp]
test ecx, ecx
mov dword [esp + 0x18], edx
jle 0x44cb3d
mov esi, dword [esp + 0x24]
mov edi, eax
sub esi, eax
mov dword [esp + 0x20], esi
mov eax, dword [ebx + 8]
test eax, eax
je 0x44caee
lea eax, [ebx + 0xc]
push 1
lea ecx, [esi + edi]
push eax
push ecx
push edi
mov ecx, ebx
call fcn.0044cba0
jmp 0x44cb24
lea edx, [ebx + 0xc]
add esi, edi
push 1
push edx
push esi
push edi
mov ecx, ebx
call fcn.0044cba0
xor eax, eax
mov cl, byte [esp + eax + 0x14]
mov dl, byte [esi + eax]
xor dl, cl
mov byte [esi + eax], dl
inc eax
cmp eax, 8
jl 0x44cb01
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp]
add eax, 8
add edi, 8
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x44cad3
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp]
mov esi, dword [esp + 0x24]
xor edx, edx
push eax
mov dl, byte [ecx + esi - 1]
sub ecx, edx
mov dword [ebp], ecx
call fcn.00480210
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc

Function at 0x44cc30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x44d1f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48de47
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov dword [esp + 0xc], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 1
call fcn.00481598
mov eax, dword [0x4ac44c]
mov dword [esp + 8], eax
push 0x4b15a0
lea ecx, [esp + 8]
mov byte [esp + 0x30], 3
call fcn.0047fced
mov ecx, dword [esp + 0x38]
push 0
push 0x4000
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 4
call fcn.0048160d
test eax, eax
je 0x44d2d4
lea edx, [esp + 8]
lea ecx, [esp + 0x10]
push edx
xor esi, esi
call fcn.004817f0
test eax, eax
je 0x44d2a7
test esi, esi
je 0x44d282
push 0x4a755c
lea ecx, [esp + 8]
call fcn.0048005b
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
mov esi, 1
call fcn.00480097
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x14]
call fcn.004817f0
test eax, eax
jne 0x44d270
mov edx, dword [esp + 4]
mov eax, dword [edx - 8]
test eax, eax
jne 0x44d2cb
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x44d2cb
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
call fcn.0047fdb8
lea ecx, [esp + 0x10]
call fcn.0048193d
mov esi, dword [esp + 0x34]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.0047f9f4
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x2c], 3
call fcn.0047fc7f
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call fcn.0047fc7f
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call fcn.004815ca
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0
call fcn.0047fc7f
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4505e0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x74]
test eax, eax
je 0x450620
call fcn.00451260
test eax, eax
je 0x450627
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x450ba0
push 0
push 0
call fcn.0045db7a
add esp, 0x18
mov dword [esi + 0x90], eax
test eax, eax
je 0x450620
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x98]
test eax, eax
je 0x450620
mov ecx, dword [eax]
lea edx, [esp + 8]
push edi
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0x98]
lea edx, [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 8]
push 0
mov edi, ecx
mov eax, dword [esi + 0x98]
neg edi
push edi
mov edi, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esi + 0x50]
mov edx, dword [eax]
push 0
push ecx
mov ecx, dword [esi + 0x4c]
push ecx
mov ecx, dword [esi + 0x78]
push 0
push 0
push ecx
push eax
call dword [edx + 0x20]
test eax, eax
pop edi
jne 0x450620
mov edx, dword [esi + 0x1c]
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
add esp, 8
ret