joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b14b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x569434]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
lea eax, [esp + 8]
push esi
push edi
push eax
mov esi, dword [ebp + 0x4e8]
lea eax, [esp + 0x18]
mov edi, dword [ebp]
push eax
mov dword [esp + 0x18], 0x80
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x4b1536
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.00489ad0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x4b1571
push str.Received_too_short_packet
push edi
call fcn.0049a4f0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004dbfda
add esp, 0x88
ret
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x4b1592
jmp dword [ecx*4 + 0x4b169c]
cmp edx, 4
jle case.0x4b1592.4
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [esi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x4b1592.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi + 0x15c]
add eax, 4
push eax
push 1
push ebp
call fcn.0049a3d0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4b15f6
push 5
push esi
call fcn.004b1df0
add esp, 8
mov eax, ebx
jmp 0x4b1558
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x70], eax
adc dword [edi + 0x74], edx
push dword [edi + 0x74]
push dword [edi + 0x70]
push edi
call fcn.004a4590
jmp 0x4b1671
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
mov eax, dword [esi + 0x15c]
add eax, 4
mov dword [esi + 8], ecx
push eax
push 0x535180
push edi
call fcn.0049a5c0
jmp 0x4b1671
lea eax, [edx - 2]
push eax
mov eax, dword [esi + 0x15c]
add eax, 2
push eax
push esi
call fcn.004b1240
add esp, 0xc
test eax, eax
je case.0x4b1592.4
jmp 0x4b1558
push str.Internal_error:_Unexpected_packet
push 0x535cf0
push edi
call fcn.0049a4f0
add esp, 0xc
push ebp
call fcn.004a47f0
add esp, 4
test eax, eax
je 0x4b1556
push 5
push esi
call fcn.004b1df0
add esp, 8
mov eax, 0x2a
jmp 0x4b1558
Function at 0x4b8770
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x569434]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00508487
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4b87d5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4b87d5
lea eax, [esp]
push eax
call dword [0x56936c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004dbfda
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.004dbfda
add esp, 0x108
ret
Function at 0x4bc2d0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4bc2fb
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4bc2ea
pop edi
xor eax, eax
pop esi
ret
push dword [eax + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call ecx
jmp 0x4bc330
cmp dword [esi + 8], 0
jne 0x4bc31e
push 0x556264
push dword [eax + 8]
call fcn.004f99a3
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4bc31e
pop edi
or eax, 0xffffffff
pop esi
ret
push dword [esi + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call fcn.004fd350
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4bc352
mov eax, dword [esi + 8]
test eax, eax
je 0x4bc34c
push eax
call fcn.004f9a77
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x4c0640
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4c0650
sub esi, ecx
lea ebp, [esi + esi]
push ebp
call dword [0x569360]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4c0677
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ecx, ecx
test esi, esi
je 0x4c0690
nop dword [eax]
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x4c0680
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x4c070a
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4c06fe
push 0
push ebp
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x569364]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4c0730
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
sub esp, 0x24
mov eax, dword [0x569434]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, dword [esp + 0x30]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x38]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [esp + 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4c07d4
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0
push eax
xorps xmm0, xmm0
movups xmmword [esp + 0x18], xmm0
push edi
mov word [esp + 0x1c], 0x208
mov dword [esp + 0x20], 0x6601
mov dword [esp + 0x24], 8
call fcn.004c0840
lea eax, [esp + 0x28]
push 8
push eax
call fcn.004c5690
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4c07e7
push eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004dbfda
add esp, 0x24
ret
mov ecx, dword [esp + 0x30]
push dword [esp + 0xc]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 0
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x28]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.004dbfda
add esp, 0x24
ret
Function at 0x4c5ab0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4c5abc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004c5ad0

Function at 0x4c6670
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x569360]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4c6697
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x4c66df
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x4c66e3
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4c6745
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4c6704
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x4c6777
nop word [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x540358
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x540359
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4c6750
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x4e0656
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x51271a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00512599

Function at 0x519539
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005191f9
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x40208b
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push 0
push 2
push 0x404052
push 0x404044
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
jne 0x402103
mov byte [0x404067], al
push 0x404067
push 0x404070
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
cmp eax, 1
jne 0x402103
call fcn.00403535
push edx
mov eax, eax
push 0
push 2
push 0x404052
push 0x404054
call dword [sym.imp.Winmm.dll_mciSendStringA]
pop edx
add edx, eax
push edx
push 2
push 0x404069
push 0x404070
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
pop edx
add dl, byte [0x404069]
add edx, 0x100
call edx
xor eax, eax
add esp, 0x18
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x403570
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push 0x40
push ebx
push eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
ret
Function at 0x401e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x418004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp + 0xc], 0
cmp dword [0x4197cc], 0
je 0x401e58
jmp 0x401e7c
mov byte [ebp - 0x1f5], 0x10
mov ecx, 0x401e7c
xor edx, edx
mov edx, 0x5dc
mov al, byte [ecx]
xor al, byte [ebp - 0x1f5]
mov byte [ecx], al
inc ecx
dec edx
cmp edx, 0
jne 0x401e6b
test al, 0x11
adc byte [eax], dl
adc byte [eax + 0x10101011], ch
test al, 0x11
adc byte [eax], dl
adc byte [eax + 0x10101011], ch
test al, 0x11
adc byte [eax], dl
adc byte [eax + 0x10101011], ch
test al, 0x11
adc byte [eax], dl
adc byte [eax + 0x10101011], ch
mov cl, 0xdc
xchg dword [ecx + 0x10], edx
adc dword [eax], edx
adc byte [eax], dl
test al, 0x11
adc byte [eax], dl
adc byte [ecx + 0x105187dc], dh
xchg ebx, eax
rcl byte [ecx]
mov bl, 0xdc
xchg dword [ecx + 0x10], edx
xlatb
xchg ebp, eax
nop
out dx, al
out dx, eax
out dx, eax
adc byte [eax], dl
adc byte [eax], dl
jp 0x401ece
js 0x401e9b
adc dl, byte [eax]
adc al, bh
xor byte [ecx], bl
adc byte [eax], dl
xchg ebx, eax
aam 0x18
cdq
push ebp
call 0x10ba734b
push esp
jp 0x401ee1
popfd
popfd
add dh, ch
out dx, eax
out dx, eax
inc ecx
clc
shr dword [ebx], cl
adc byte [eax], dl
xchg ebx, eax
aam 0x1c
and eax, edx
cdq
test dword [esi + ebp*8 - 0x7a661011], edi
mov al, byte [0x99efefee]
test dword [esi + ebp*8 - 0x7a661011], esp
test al, 0xee
out dx, eax
out dx, eax
xlatb
xchg ebp, eax
lodsb al, byte [esi]
out dx, al
out dx, eax
out dx, eax
add ah, byte [ecx]
adc byte [eax], dl
wait
push ebp
sbb byte [ecx - 0x10116b6b], bl
out dx, eax
wait
popfd
xchg esp, eax
out dx, al
out dx, eax
out dx, eax
pop ds
cmpsd dword [esi], dword es:[edi]
add dword [ecx + 0x104a5dea], edx
adc byte [edi + eax - 0x29], ah
xchg ebp, eax
nop
out dx, al
out dx, eax
out dx, eax
adc eax, 0x9b101010
xchg ebp, eax
nop
out dx, al
out dx, eax
out dx, eax
stc
sub byte [esi], dl
adc byte [eax], dl
sti
pop eax
xlatb
xchg ebp, eax
lodsb al, byte [esi]
out dx, al
out dx, eax
out dx, eax
adc dl, byte [eax]
adc byte [eax], dl
wait
xchg ebp, eax
lodsb al, byte [esi]
out dx, al
out dx, eax
out dx, eax
adc eax, 0x1010162e
cdq
xchg ebp, eax
lodsb al, byte [esi]
out dx, al
out dx, eax
out dx, eax
xchg ecx, eax
lodsd eax, dword [esi]
lodsb al, byte [esi]
out dx, al
out dx, eax
out dx, eax
adc eax, 0x641011f1
pop ds
wait
popfd
lodsb al, byte [esi]
out dx, al
out dx, eax
out dx, eax
xchg ebx, eax
rcr dword [ebx], 1
cdq
popfd
lodsb al, byte [esi]
out dx, al
out dx, eax
out dx, eax
wait
test dword [esi + ebp*8 - 0x2d6e1011], ebp
xlatb
cmp dl, byte [eax]
adc byte [ecx - 0x1011537b], bl
out dx, eax
salc
xchg ebp, eax
cwde
out dx, al
out dx, eax
out dx, eax
adc byte [ebx], ah
rcr byte [ecx - 0x1011666b], 1
out dx, eax
cdq
xchg ebp, eax
popfd
out dx, al
out dx, eax
out dx, eax
cdq
xchg ebp, eax
sub esi, 0x9599efef
test esi, ebp
out dx, eax
out dx, eax
cdq
xchg ebp, eax
mov esi, ebp
out dx, eax
out dx, eax
cdq
xchg ebp, eax
invalid
ret 0x8599

Function at 0x4027d8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x418004]
jne 0x4027e2
repz ret
jmp fcn.004029c7
Function at 0x40494b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004038ef
and dword [ebp - 0x14], 0
cmp dword [0x41974c], 0
mov dword [ebp - 0x18], eax
jne 0x4049fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404aa6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404aa6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41974c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x419750], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x419754], eax
call edi
push eax
call esi
mov dword [0x41975c], eax
test eax, eax
je 0x4049fe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x419758], eax
mov eax, dword [0x419758]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404a57
cmp dword [0x41975c], ecx
je 0x404a57
push eax
call esi
push dword [0x41975c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404a57
test ebx, ebx
je 0x404a57
call edi
test eax, eax
je 0x404a4e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x404a4e
test byte [ebp - 8], 1
jne 0x404a57
or dword [ebp + 0x10], 0x200000
jmp 0x404a8a
mov eax, dword [0x419750]
cmp eax, dword [ebp - 0x18]
je 0x404a8a
push eax
call esi
test eax, eax
je 0x404a8a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x404a8a
mov eax, dword [0x419754]
cmp eax, dword [ebp - 0x18]
je 0x404a8a
push eax
call esi
test eax, eax
je 0x404a8a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41974c]
call esi
test eax, eax
je 0x404aa6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404aa8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004027d8
leave
ret
Function at 0x401ee0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
xor eax, eax
test ecx, ecx
je 0x401fd1
test edx, edx
je 0x401fd1
mov ebp, dword [esp + 0x28]
test ebp, ebp
mov dword [esp], ecx
je 0x401f34
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x401f3b
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
mov ecx, edi
and ecx, 1
xor edi, 1
lea edi, [edi + ecx*2]
mov ecx, esi
cmp edi, ebp
jb 0x401f10
jmp 0x401f3d
mov esi, 0x1505
jmp 0x401f3d
mov esi, ecx
mov dword [esp + 4], edx
mov edx, dword [esp]
mov ebx, dword [edx + 0x20]
mov ebp, ebx
sub ebp, 1
jb 0x401fd1
and ebp, esi
mov eax, ebx
xor eax, 0xfffffffe
mov ecx, ebx
and ecx, 0xfffffffe
lea eax, [eax + ecx*2]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [edx + 4]
mov dword [esp + 0xc], eax
jmp 0x401f74
inc ebp
dec ebx
je 0x401fcf
mov eax, ebp
and eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edi, dword [ecx + eax*4]
cmp edi, 0xffffffff
je 0x401fcf
mov eax, dword [edx + 8]
cmp dword [eax + edi*4], esi
jne 0x401f70
mov eax, dword [edx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
push eax
call fcn.00408ad0
mov edx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x401f70
push dword [esp + 0x28]
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.00408af0
mov edx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x401f70
mov eax, dword [edx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x401fd1
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402d50
Capabilities:
Compute adler32 checksum
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x402f06
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
movzx edi, si
shr esi, 0x10
test eax, eax
je 0x402eff
mov ecx, 0x5e6ea9af
mov ebx, eax
mul ecx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ecx, ebx
sub ebx, eax
jmp 0x402ddc
add ebp, dword [esp + 0xc]
mov eax, edi
mov ecx, 0x80078071
mul ecx
mov ebx, edx
shr ebx, 0xf
mov eax, esi
mul ecx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub esi, eax
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 4]
mov ebx, 0x15b0
je 0x402eff
xor eax, eax
cmp ebx, 8
mov dword [esp + 0x10], ecx
mov dword [esp + 4], ebx
jb 0x402e66
mov eax, ebx
and eax, 0x1ff8
mov dword [esp], eax
mov edx, 7
nop
nop
nop
nop
nop
nop
movzx eax, byte [ebp]
add eax, edi
mov ecx, eax
and ecx, esi
xor esi, eax
movzx edi, byte [ebp + 1]
add edi, eax
add esi, edi
movzx ebx, byte [ebp + 2]
add ebx, edi
add esi, ebx
lea eax, [esi + ecx*2]
movzx ecx, byte [ebp + 3]
mov esi, ebx
and esi, ecx
xor ebx, ecx
lea ecx, [ebx + esi*2]
mov ebx, dword [esp + 4]
mov esi, ecx
and esi, eax
xor eax, ecx
movzx edi, byte [ebp + 4]
add edi, ecx
movzx ecx, byte [ebp + 5]
add ecx, edi
add edi, eax
lea esi, [edi + esi*2]
movzx eax, byte [ebp + 6]
add eax, ecx
add esi, ecx
movzx edi, byte [ebp + 7]
add edi, eax
add esi, eax
add esi, edi
add ebp, 8
add edx, 8
cmp edx, ebx
jb 0x402e00
mov eax, dword [esp]
mov ecx, ebx
sub ecx, eax
jbe 0x402da4
mov dword [esp], eax
not eax
add eax, ebx
mov edx, ebx
and edx, 3
mov dword [esp + 0xc], ecx
je 0x402eb1
mov dword [esp + 8], eax
neg edx
xor eax, eax
mov ebx, ebp
nop
nop
nop
nop
movzx ecx, byte [ebx]
add edi, ecx
add esi, edi
inc ebx
dec eax
cmp edx, eax
jne 0x402e90
mov ecx, dword [esp]
sub ecx, eax
mov eax, dword [esp + 8]
cmp eax, 3
jb 0x402da0
jmp 0x402ebf
mov ebx, ebp
mov ecx, dword [esp]
cmp eax, 3
jb 0x402da0
mov eax, dword [esp + 4]
sub eax, ecx
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [ebx + edx]
add ecx, edi
add esi, ecx
movzx edi, byte [ebx + edx + 1]
add edi, ecx
add esi, edi
movzx ecx, byte [ebx + edx + 2]
add ecx, edi
add esi, ecx
movzx edi, byte [ebx + edx + 3]
add edi, ecx
add esi, edi
add edx, 4
cmp eax, edx
jne 0x402ed0
jmp 0x402da0
shl esi, 0x10
or esi, edi
jmp 0x402f0b
mov esi, 1
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402f20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push edi
push esi
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
not eax
cmp edx, 4
jb 0x402f9d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, eax
shr ebx, 8
movzx esi, byte [ecx]
mov edi, eax
and edi, esi
add eax, esi
add edi, edi
sub eax, edi
movzx eax, al
xor ebx, dword [eax*4 + 0x435928]
mov eax, ebx
xor bl, byte [ecx + 1]
shr eax, 8
movzx esi, bl
xor eax, dword [esi*4 + 0x435928]
mov ebx, eax
xor al, byte [ecx + 2]
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x435928]
mov eax, ebx
xor bl, byte [ecx + 3]
shr eax, 8
movzx esi, bl
xor eax, dword [esi*4 + 0x435928]
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x402f40
test edx, edx
je 0x402ffe
test dl, 1
jne 0x402faf
mov esi, edx
cmp edx, 1
jne 0x402fca
jmp 0x402ffe
movzx ebx, byte [ecx]
xor bl, al
movzx edi, bl
lea esi, [edx - 1]
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x435928]
cmp edx, 1
je 0x402ffe
xor edx, edx
nop
nop
nop
nop
movzx ebx, byte [ecx + edx]
xor bl, al
movzx edi, bl
shr eax, 8
xor eax, dword [edi*4 + 0x435928]
movzx ebx, byte [ecx + edx + 1]
xor bl, al
movzx edi, bl
shr eax, 8
xor eax, dword [edi*4 + 0x435928]
add edx, 2
cmp esi, edx
jne 0x402fd0
not eax
pop esi
pop edi
pop ebx
ret