joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2b90
Capabilities:
Encode data using base64
Terminate process

Disassembly:
sub esp, 0x118
mov ecx, 0x3f
mov eax, 0x80808080
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x41
mov cl, al
sub cl, 0x41
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x5a
jle 0x4a2bb2
mov eax, 0x61
mov dl, al
sub dl, 0x47
mov byte [esp + eax + 0x28], dl
inc eax
cmp eax, 0x7a
jle 0x4a2bc6
mov eax, 0x30
mov cl, al
add cl, 4
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x39
jle 0x4a2bda
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x53], 0x3e
mov byte [esp + 0x57], 0x3f
mov byte [esp + 0x65], 0
mov dword [esp + 0x18], ebp
je 0x4a2d6d
mov ebx, dword [esp + 0x130]
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x12c]
xor eax, eax
lea esi, [edx + ecx]
movsx ecx, byte [esi + eax]
mov dl, byte [esp + ecx + 0x28]
test dl, 0x80
jne 0x4a2d3e
mov byte [esp + eax + 0x20], cl
mov byte [esp + eax + 0x1c], dl
inc eax
cmp eax, 4
jl 0x4a2c3c
mov esi, dword [esp + 0x138]
mov edx, dword [esp + 0x10]
cmp edx, dword [esi]
jle 0x4a2ca6
mov eax, dword [esp + 0x14]
push eax
call fcn.004d52e7
mov ecx, dword [esi]
mov esi, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
mov dword [esp + 0x2c], eax
rep movsb byte es:[edi], byte [esi]
call fcn.004d51fe
mov ecx, dword [esp + 0x140]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
add esp, 8
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov dl, ch
mov al, cl
sar dl, 4
shl al, 2
or dl, al
mov eax, dword [esp + 0x14]
mov byte [ebx + ebp], dl
inc ebp
inc eax
mov cl, ch
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x1e]
mov dl, al
inc edi
sar dl, 2
shl cl, 4
or dl, cl
mov ecx, dword [esp + 0x14]
shl al, 6
or al, byte [esp + 0x1f]
mov byte [ebx + ebp], dl
inc ebp
mov edx, edi
inc ecx
inc edx
mov byte [ebx + ebp], al
mov al, byte [esp + 0x22]
inc ebp
inc ecx
inc edx
mov dword [esp + 0x10], edi
cmp al, 0x3d
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
je 0x4a2d53
mov cl, byte [esp + 0x23]
xor eax, eax
cmp cl, 0x3d
setne al
add eax, 2
cmp eax, 3
jl 0x4a2d53
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
add edx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], edx
cmp edx, ecx
jae 0x4a2d74
jmp 0x4a2c2c
push ecx
push str.Illegal_character__c_in_input._n
call fcn.004d72e4
add esp, 8
push 1
call fcn.004d6dc3
mov eax, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [eax], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
mov ebx, dword [esp + 0x130]
mov ecx, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [ecx], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x4a36d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
mov esi, 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4a3743
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WheelScrollLines
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a3738
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call fcn.004d7541
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x8c
ret

Function at 0x4b53c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4fa248
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004ed304
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.004b5300
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004ed232
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4b5487
cmp dword [esp + 0x40], 1
jne 0x4b5485
cmp ecx, eax
jge 0x4b5487
mov eax, ecx
cmp eax, 0x12c
jge 0x4b5493
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.004b54e0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004ed376
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4b97d0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4fa736
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x53f128]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.004e8ab2
mov edx, dword [0x53f128]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x4b982a
mov dword [esp + 0x1c], ebx
jmp 0x4b9831
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.004eac1e
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.004e6792
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x4b9882
mov dword [esp + 0x14], ebx
jmp 0x4b9889
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x4b98a4
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x4b989e
cmp eax, 2
jne 0x4b98a4
mov dword [esp + 0x18], edi
jmp 0x4b98a8
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4b98b6
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004e80e8
mov edi, eax
cmp edi, ebx
jne 0x4b98c6
xor eax, eax
jmp 0x4b98c9
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4b98f1
mov ecx, esi
call fcn.004eac1e
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x4b990d
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b992c
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x4b992c
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.004e66a5
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.004e66a5
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4ba5c0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4fa846
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x53f128]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.004e8ab2
cmp dword [0x58b948], ebx
je 0x4ba630
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004e66a5
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x53f128]
push ebp
push edi
mov edi, 1
mov dword [0x58b948], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x4ba659
mov dword [esp + 0x20], ebx
jmp 0x4ba660
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.004eac1e
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.004e6792
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x4ba6be
mov dword [esp + 0x14], ebx
jmp 0x4ba6c5
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x4ba6df
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x4ba6d9
cmp eax, 2
jne 0x4ba6df
mov dword [esp + 0x18], edi
jmp 0x4ba6e3
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4ba6f1
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004e80e8
mov edi, eax
cmp edi, ebx
jne 0x4ba701
xor eax, eax
jmp 0x4ba704
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4ba72c
mov ecx, esi
call fcn.004eac1e
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x4ba744
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x58b948], 0
test eax, eax
je 0x4ba76d
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x4ba76d
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.004e66a5
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.004e66a5
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4bf600
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x58ba64]
xor edx, edx
cmp eax, edx
jne 0x4bf626
xor eax, eax
mov byte [eax + 0x58b964], al
inc eax
cmp eax, 0x100
jl 0x4bf60e
mov dword [0x58ba64], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x58b964
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4bf6b7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4bf68a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4bf658
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4bf730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4bf783
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4bf76a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c6120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fad4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004c6a40
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x50e7c4
call fcn.004e63e6
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4c61b3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004e63e6
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4c61ac
push 0
mov ecx, eax
call fcn.004bd230
mov dword [esi + 0xc], eax
jmp 0x4c61b5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4c61b5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4e8ab2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4e8aea
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.004e6b00
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004e6ad8
jmp 0x4e8af6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ea32a
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 0x4ea36c
call fcn.004f097c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ea36c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ea363
xor eax, eax
jmp 0x4ea374
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ea37a
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ebdaf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x4fb6a4
call fcn.004d79b8
push ecx
push ecx
push esi
push 0x14
call fcn.004e63e6
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4ebe02
mov ecx, esi
call fcn.004e6be1
mov eax, dword [0x53f128]
lea ecx, [esi + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CFileException.0
mov dword [esi + 0xc], eax
call fcn.004e67e2
jmp 0x4ebe04
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x51dbe8
push eax
mov dword [ebp - 0x10], esi
call fcn.004d7cbc
pop esi

Function at 0x4f0eac
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 0x4f0eda
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f0ef8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f0e12
jmp 0x4f0ef8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f0ef8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f0e12
test edi, edi
mov eax, edi
jne 0x4f0ee2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4f3749
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4f3771
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4f3782
push 2
call edi
test ax, ax
jge 0x4f3782
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004e80e8
cmp dword [esi + 0x30], ebx
jne 0x4f385c
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004e80e8
cmp eax, dword [esp + 0x34]
jne 0x4f385c
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4f37f8
push 1
push pe_nt_image_headers32
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4f383d
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4f385c
cmp eax, 0x205
je 0x4f385c
cmp eax, 0x201
je 0x4f385c
cmp eax, 0x204
je 0x4f385c
cmp eax, ebx
jne 0x4f3823
cmp dword [esp + 0x1c], 0x1b
je 0x4f385c
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x59d584]
jbe 0x4f3852
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4f37b5
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x40138b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push ecx
cmp dword [0x4329f0], 0
push esi
je 0x4013b0
call fcn.00401474
cmp dword [0x4329f4], 0
mov esi, 0x400
jne 0x4013ee
push dword [0x4329fc]
call fcn.0040fb11
mov dword [0x4329f4], eax
pop ecx
test eax, eax
jne 0x4013ee
push esi
mov dword [0x4329fc], esi
call fcn.0040fb11
mov dword [0x4329f4], eax
pop ecx
test eax, eax
jne 0x4013ee
push 0xb
pop eax
jmp 0x40146a
cmp dword [0x4329f8], 0
jne 0x401422
push dword [0x432a00]
call fcn.0040fb11
mov dword [0x4329f8], eax
pop ecx
test eax, eax
jne 0x401422
push esi
mov dword [0x432a00], esi
call fcn.0040fb11
mov dword [0x4329f8], eax
pop ecx
test eax, eax
je 0x4013e9
mov ecx, dword [ebx + 8]
call fcn.00407ae2
mov dword [0x4329f0], eax
test eax, eax
jne 0x401437
push 6
jmp 0x4013eb
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x40143e
mov dword [ecx*4 + 0x435640], edx
inc ecx
cmp ecx, 0x100
jb 0x401439
call fcn.004095a4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x401508
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push esi
push edi
push 6
pop esi
xor eax, eax
lea edi, [esp + 0x18]
mov ecx, esi
rep stosd dword es:[edi], eax
call fcn.0040aefc
mov dword [esp + 0xc], eax
test eax, eax
jne 0x401535
push 0x27
pop eax
jmp 0x40166d
mov eax, dword [0x4329f4]
xor ecx, ecx
and dword [esp + 0x28], ecx
xor edx, edx
mov dword [esp + 0x18], eax
xor edi, edi
mov eax, dword [0x4329f8]
mov dword [esp + 0x24], eax
mov eax, dword [0x432a00]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], edi
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x401631
cmp edi, dword [eax + 8]
jge 0x4015b0
cmp ecx, edx
jne 0x4015b0
push dword [0x4329fc]
mov ecx, dword [0x4329f0]
mov edx, eax
push dword [0x4329f4]
push edi
call fcn.00407ebb
add esp, 0xc
test eax, eax
jle 0x401634
add edi, eax
mov dword [esp + 0x20], eax
and dword [esp + 0x1c], 0
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
call fcn.0040ae7f
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], eax
cmp edi, dword [0x432a00]
jne 0x4015ef
push dword [ebp + 0xc]
push edi
push 1
push dword [0x4329f8]
call fcn.0040f94b
add esp, 0x10
cmp eax, edi
jne 0x401604
mov eax, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x28], edi
test eax, eax
jne 0x401608
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
jmp 0x401566
push 0x46
jmp 0x401633
cmp eax, 1
je 0x401611
push 0x27
jmp 0x401633
push dword [ebp + 0xc]
push edi
push 1
push dword [0x4329f8]
call fcn.0040f94b
add esp, 0x10
xor esi, esi
cmp eax, edi
push 0x46
pop ecx
cmovne esi, ecx
jmp 0x401634
push 0x28
pop esi
mov eax, dword [esp + 0xc]
mov edi, dword [eax + 0x4b0]
cmp dword [edi + 0x3c], 0
je 0x40164d
push dword [edi + 0x18]
call fcn.0040faba
pop ecx
push edi
call fcn.0040faba
mov edi, dword [esp + 0x10]
pop ecx
push dword [edi + 0x4b4]
call fcn.0040faba
pop ecx
push edi
call fcn.0040faba
pop ecx
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40169e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x432008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
push ebx
push 0x20
push 1
push edi
call fcn.0040fcf5
add esp, 0x10
cmp eax, 0x20
je 0x4016cc
push 6
jmp 0x401746
push dword [edi + 8]
mov esi, dword [sym.imp.WSOCK32.dll_ntohl]
call esi
push dword [edi + 0xc]
mov dword [edi + 8], eax
call esi
push dword [edi + 0x10]
mov dword [edi + 0xc], eax
call esi
push dword [edi + 0x14]
mov dword [edi + 0x10], eax
call esi
push dword [edi + 0x18]
mov dword [edi + 0x14], eax
call esi
push dword [edi + 0x1c]
mov dword [edi + 0x18], eax
call esi
push ebx
mov dword [edi + 0x1c], eax
call fcn.00417f6f
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.00410729
add esp, 0xc
test eax, eax
jne 0x4016c8
cmp dword [edi], 0x4944424d
jne 0x401744
cmp dword [edi + 4], 0x30314646
jne 0x401744
mov ecx, dword [edi + 0x14]
add ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
add eax, 0x20
add eax, ecx
sub eax, dword [ebp - 0x24]
neg eax
sbb eax, eax
and eax, 0x29
jmp 0x401747
push 0x29
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b844
mov esp, ebp
pop ebp
ret