joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443db0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x476e13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046a4aa
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046fb43
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047105f
test eax, eax
je 0x443ecc
mov ecx, dword [esp + 0x3c]
call fcn.0046fb70
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x443e90
push edi
mov ecx, esi
call fcn.0046d1d8
mov ecx, esi
call fcn.00444030
cmp dword [esp + 0x38], 1
jne 0x443ec5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046d313
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x446900
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x446933
push esi
call fcn.004499f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44692c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4469b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4469a2
mov eax, dword [esi + 8]
test eax, eax
je 0x446957
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44699e
cmp eax, 2
je 0x4469a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44694a
cmp eax, 3
je 0x44697d
cmp eax, 1
jne 0x44694a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44694a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44694a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004469e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4469c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004469e0
add esp, 4
pop esi
ret

Function at 0x452880
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x452923
test eax, eax
jbe 0x452923
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x452923
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4528ce
xor esi, esi
jmp 0x4528d4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4528ff
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004093d0
add esi, eax
push esi
mov ebx, esi
call fcn.004093d0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4528e0
pop ebp
test edi, edi
pop edi
jne 0x452923
test ebx, ebx
je 0x452923
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004599a0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x452a65
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x452b7d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x452b7d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046a8fc
mov esi, eax
test esi, esi
je 0x452b7d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x452b7d
mov ecx, esi
call fcn.004529d0
cmp edi, eax
jge 0x452b7d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x452b03
mov dword [esp + 0x34], 1
jmp 0x452b5e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x452b7d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00451fa0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x46b2a0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46b2d8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00469357
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046932f
jmp 0x46b2e4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46c992
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46c9d4
call fcn.00472445
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46c9d4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46c9cb
xor eax, eax
jmp 0x46c9dc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046c9e2
pop edi
pop esi
pop ebx
ret 4
Function at 0x472975
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4729a3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4729c1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004728db
jmp 0x4729c1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4729c1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004728db
test edi, edi
mov eax, edi
jne 0x4729ab
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401de0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x401deb
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
cmp esi, 8
not eax
jb 0x401ee0
push ebx
push edi
mov edi, esi
shr edi, 3
xor edx, edx
mov dl, byte [ecx]
mov ebx, eax
shr ebx, 8
sub esi, 8
xor edx, eax
and edx, 0xff
mov eax, dword [edx*4 + 0x410530]
xor eax, ebx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x410530]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x410530]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x410530]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x410530]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x410530]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x410530]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x410530]
shr eax, 8
xor eax, edx
inc ecx
dec edi
jne 0x401e06
pop edi
pop ebx
test esi, esi
je 0x401f00
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x410530]
shr eax, 8
xor eax, edx
inc ecx
dec esi
jne 0x401ee4
not eax
pop esi
ret

Function at 0x402430
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
mov cl, byte [ebx]
push ebp
mov ebp, dword [esp + 0x10]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x402471
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402466
mov byte [ebx + 8], 1
mov eax, dword [esp + 0x10]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
lea esi, [edx + eax]
cmp esi, ecx
push edi
jbe 0x402484
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
add esi, edx
mov ecx, eax
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 ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
xor edx, edx
div ebp
pop ebp
mov dword [ebx + 0x18], ecx
pop ebx
ret
Function at 0x4034c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x413030]
xor eax, dword [ebp + 4]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x220], eax
mov al, byte [esi]
test al, al
push edi
je 0x40358c
mov ebx, esi
mov ecx, esi
nop
cmp al, 0x2f
je 0x4034f8
cmp al, 0x5c
jne 0x4034fa
mov ebx, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4034f0
cmp ebx, esi
mov eax, ebx
je 0x403539
sub eax, esi
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov byte [esp + eax + 0x10], 0
lea eax, [esp + 0x10]
push eax
push edi
call fcn.004034c0
add esp, 8
lea eax, [ebx + 1]
jmp 0x40353c
mov edi, dword [ebp + 8]
lea esi, [esp + 0x118]
mov ecx, edi
sub esi, edi
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x403547
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403553
lea edi, [esp + 0x118]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403564
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x224]
xor ecx, dword [ebp + 4]
call fcn.0040a21b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4051c0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x405251
cmp dword [ebx + 4], 0xffffffff
jne 0x405251
lea edi, [ebx + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4051e7
mov ax, word [0x410bd8]
mov esi, dword [esp + 0x18]
cmp esi, 1
mov word [edi], ax
mov edi, dword [esp + 0x10]
jne 0x40521c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x40521c
pop edi
pop esi
mov eax, 0x2000000
pop ebx
ret 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push edi
call fcn.004021d0
add esp, 0x10
test eax, eax
jne 0x40523e
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
ret 0xc
push eax
call fcn.00404ce0
add esp, 4
pop edi
mov dword [ebx], eax
pop esi
xor eax, eax
pop ebx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebx
ret 0xc
Function at 0x406f20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x406f2b
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
cmp esi, 8
not eax
jb 0x407020
push ebx
push edi
mov edi, esi
shr edi, 3
xor edx, edx
mov dl, byte [ecx]
mov ebx, eax
shr ebx, 8
sub esi, 8
xor edx, eax
and edx, 0xff
mov eax, dword [edx*4 + 0x410d88]
xor eax, ebx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x410d88]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x410d88]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x410d88]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x410d88]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x410d88]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x410d88]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x410d88]
shr eax, 8
xor eax, edx
inc ecx
dec edi
jne 0x406f46
pop edi
pop ebx
test esi, esi
je 0x407040
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x410d88]
shr eax, 8
xor eax, edx
inc ecx
dec esi
jne 0x407024
not eax
pop esi
ret
Function at 0x4071c0
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x48
push esi
mov esi, dword [esp + 0x50]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4071de
mov eax, 0x1000000
pop esi
add esp, 0x48
ret
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x4071f8
mov eax, 0x200
pop esi
add esp, 0x48
ret
mov eax, dword [esp + 0x18]
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
je 0x40720b
mov ebp, 1
test al, 2
je 0x407212
or ebp, 2
test al, 4
je 0x407219
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x407223
or ebp, 0x10
test al, 0x20
je 0x40722a
or ebp, 0x20
test ecx, ecx
je 0x407236
or ebp, 0x40000000
jmp 0x40723c
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x40724c
or ebp, 0x800000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [esp + 0xc], eax
jbe 0x4072fd
push ebx
push edi
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]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
cmp word [esp + 0x10], 0x54ad
jne 0x4072fb
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea edx, [eax + 0x34]
cmp ecx, edx
jbe 0x4072fb
push 0
push 0
push eax
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push esi
call ebx
mov eax, dword [esp + 0x20]
cmp eax, 0x5a4d
je 0x4072f5
cmp eax, 0x454e
je 0x4072f5
cmp eax, 0x454c
je 0x4072f5
cmp eax, 0x4550
jne 0x4072fb
or ebp, 0x400000
pop edi
pop ebx
mov eax, dword [esp + 0x58]
test eax, eax
je 0x407307
mov dword [eax], ebp
mov eax, dword [esp + 0x5c]
test eax, eax
pop ebp
je 0x407316
mov edx, dword [esp + 8]
mov dword [eax], edx
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x407356
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.00407120
mov edx, dword [esp + 0x38]
mov dword [esi], eax
mov eax, dword [esp + 0x34]
push edx
push eax
call fcn.00407120
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
mov dword [esi + 4], eax
call fcn.00407120
add esp, 0x18
mov dword [esi + 8], eax
mov esi, dword [esp + 0x60]
test esi, esi
je 0x407384
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx eax, word [esp + 4]
movzx ecx, word [esp + 8]
shl eax, 0x10
or eax, ecx
mov dword [esi], eax
xor eax, eax
pop esi
add esp, 0x48
ret
Function at 0x407500
Capabilities:
Write file on windows

Disassembly:
push ebx
mov edx, ecx
mov ebx, dword [edx + 0x18]
test ebx, ebx
push esi
push edi
je 0x407550
mov edi, dword [edx + 0x1c]
mov eax, dword [esp + 0x14]
mov esi, dword [edx + 0x20]
lea ecx, [edi + eax]
cmp ecx, esi
jb 0x40752c
pop edi
pop esi
mov dword [edx + 0xc], 0x30000
xor eax, eax
pop ebx
ret 8
mov esi, dword [esp + 0x10]
add edi, ebx
mov ecx, eax
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0x1c]
pop edi
add ecx, eax
pop esi
mov dword [edx + 0x1c], ecx
pop ebx
ret 8
mov eax, dword [edx]
test eax, eax
je 0x407578
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
pop esi
mov dword [edx + 0xc], 0x1000000
xor eax, eax
pop ebx
ret 8

Function at 0x407860
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebx, ecx
mov edx, dword [ebx + 0x58]
test edx, edx
push esi
push edi
je 0x4078ca
mov eax, dword [ebx + 0x60]
mov ebp, dword [ebx + 0x5c]
cmp eax, ebp
jae 0x40791a
mov ecx, dword [esp + 0x18]
sub ebp, eax
cmp ebp, ecx
jbe 0x407887
mov ebp, ecx
lea esi, [eax + edx]
mov eax, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x48]
push ebp
push eax
mov eax, dword [ebx + 0x4c]
add edx, ebp
add ecx, ebp
push eax
mov dword [ebx + 0x60], edx
mov dword [ebx + 0x48], ecx
call fcn.00406f20
add esp, 0xc
pop edi
mov dword [ebx + 0x4c], eax
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 8
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x407913
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40791a
mov esi, dword [esp + 0x18]
mov ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x4c]
push esi
add ecx, esi
push edi
push eax
mov dword [ebx + 0x48], ecx
call fcn.00406f20
add esp, 0xc
pop edi
mov dword [ebx + 0x4c], eax
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8
mov dword [ebx + 0xc], 0x1000000
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x4079f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x24
mov eax, dword [0x413030]
xor eax, dword [esp + 0x24]
push ebx
push esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x28], eax
push edi
xor eax, eax
mov ecx, 1
lea edx, [esi + 0xfe4]
xor edi, edi
mov di, word [edx]
add di, ax
add edx, 2
shl edi, 1
mov eax, edi
mov word [esp + ecx*2 + 0xc], ax
inc ecx
cmp ecx, 0xf
jle 0x407a14
movzx ecx, word [esi + 0x1002]
movzx edx, ax
lea eax, [ecx + edx - 1]
cmp eax, 0x7fff
sete cl
push str.inconsistent_bit_counts
push ecx
push esi
call fcn.00405800
mov ebx, dword [esp + 0x48]
add esp, 0xc
xor esi, esi
test ebx, ebx
jl 0x407a8d
mov edi, dword [esp + 0x38]
movzx eax, word [edi + esi*4 + 2]
test eax, eax
je 0x407a88
xor ecx, ecx
mov cx, word [esp + eax*2 + 0xc]
movzx edx, cx
push eax
push edx
inc ecx
mov word [esp + eax*2 + 0x14], cx
call fcn.00406080
add esp, 8
mov word [edi + esi*4], ax
inc esi
cmp esi, ebx
jle 0x407a61
mov ecx, dword [esp + 0x2c]
xor ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebx
add esp, 0x24
jmp fcn.0040a21b
Function at 0x408960
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x6af90]
push edi
xor ebx, ebx
xor edi, edi
test eax, eax
mov dword [esi + 0x6af80], 2
je 0x408b91
cmp dword [esi + 0x6af90], 3
jb 0x4089d7
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebx, ebx
je 0x408a17
mov edx, dword [esi + 0x6af84]
sub edx, ebx
cmp edx, 0x7efa
ja 0x408a17
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x4089ff
mov dword [esi + 0x6afa0], eax
push ebx
push esi
call fcn.00406300
mov edi, eax
mov eax, dword [esi + 0x6af90]
add esp, 8
cmp edi, eax
jbe 0x408a17
mov edi, eax
cmp edi, 3
jb 0x408b05
mov ecx, dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
sub ecx, edx
push ecx
push esi
call fcn.00405c70
mov ecx, dword [esi + 0x6af98]
mov edx, eax
mov eax, dword [esi + 0x6af90]
sub eax, edi
add esp, 0xc
cmp edi, ecx
mov dword [esi + 0x6af90], eax
ja 0x408ab9
cmp eax, 3
jb 0x408ab9
dec edi
lea esp, [esp]
mov eax, dword [esi + 0x6af84]
mov ebx, dword [esi + 0x6af7c]
inc eax
mov dword [esi + 0x6af84], eax
mov ecx, eax
movzx eax, byte [esi + ecx + 0x1af72]
shl ebx, 5
xor eax, ebx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
dec edi
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x408a60
jmp 0x408b2e
mov ecx, dword [esi + 0x6af84]
add ecx, edi
mov eax, ecx
mov dword [esi + 0x6af84], ecx
lea ecx, [eax + esi]
movzx eax, byte [ecx + 0x1af70]
mov dword [esi + 0x6af7c], eax
movzx ecx, byte [ecx + 0x1af71]
shl eax, 5
push str.Call_UPDATE_HASH___MIN_MATCH_3_more_times
xor ecx, eax
and ecx, 0x7fff
push 1
push esi
xor edi, edi
mov dword [esi + 0x6af7c], ecx
call fcn.00405800
add esp, 0xc
jmp 0x408b34
mov edx, dword [esi + 0x6af84]
movzx eax, byte [edx + esi + 0x1af70]
push eax
push 0
push esi
call fcn.00405c70
mov ecx, dword [esi + 0x6af90]
add esp, 0xc
dec ecx
mov edx, eax
mov dword [esi + 0x6af90], ecx
inc dword [esi + 0x6af84]
test edx, edx
je 0x408b6e
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x408b4b
lea ecx, [eax + esi + 0x1af70]
jmp 0x408b4d
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.00408780
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x408b83
push esi
call fcn.004064d0
add esp, 4
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x408983
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x408ba4
lea ecx, [eax + esi + 0x1af70]
jmp 0x408ba6
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.00408780
add esp, 0x10
pop edi
pop esi
pop ebx
ret