joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cd53
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
push esi
mov esi, ecx
jne 0x41cd6d
inc eax
mov dword [esi + 0x120], eax
jmp 0x41cdf8
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x14]
mov dword [esi + 0x90], eax
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov dword [esi + 0x94], eax
call fcn.0041d871
lea eax, [esi + 0x88]
cmp dword [eax + 4], 0
jl 0x41cdbd
jg 0x41cd9e
cmp dword [eax], 0
jbe 0x41cdbd
mov edi, dword [eax + 4]
push ebx
mov ebx, dword [eax]
mov eax, esi
call fcn.0041d8af
cmp edx, edi
jl 0x41cdbc
jg 0x41cdb5
cmp eax, ebx
jbe 0x41cdbc
push edi
push ebx
call fcn.0041d871
pop ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.0041d7f4
lea eax, [ebp + 0x14]
push eax
xor edi, edi
push edi
push esi
push 0x41ccc6
push 0x800000
push edi
mov dword [ebp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x78], eax
pop edi
je 0x41cdf6
cmp eax, 0xffffffff
je 0x41cdf6
xor eax, eax
inc eax
jmp 0x41cdf8
xor eax, eax
pop esi
pop ebp
ret 0x18

Function at 0x41d18e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, eax
xor eax, eax
push edi
cmp dword [ebp + 8], eax
je 0x41d202
cmp dword [ebp + 0xc], eax
jl 0x41d202
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41d202
mov eax, dword [ebp + 0xc]
cdq
mov dword [ebp - 0x10], eax
mov eax, esi
mov dword [ebp - 0xc], edx
call fcn.0041d821
mov edi, eax
add edi, dword [ebp - 0x10]
mov ebx, edx
adc ebx, dword [ebp - 0xc]
push ebx
push edi
call fcn.0041d7f4
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x41d1fc
push dword [esi + 0x70]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
push edi
push dword [esi + 8]
call eax
add esp, 0x18
mov eax, edi
mov edx, ebx
jmp 0x41d207
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x41fdb4
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x420641
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jge 0x420657
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x420663
or edi, 1
push 1
call esi
test ax, ax
jge 0x42066f
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x42067b
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x420687
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret
Function at 0x422200
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x422225
cmp ebx, dword [esi + 0x54]
je 0x422225
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x54]
cmp ebx, eax
je 0x4222e7
push edi
test eax, eax
je 0x422278
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x54]
mov ecx, esi
call fcn.00421d35
mov dword [esi + 0x54], edi
test ebx, ebx
je 0x4222e6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x4222e6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x4222e6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x4222e6
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x54], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x54]
mov ecx, esi
call fcn.00421d35
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4224e4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xd0]
mov ecx, edi
xor ebx, ebx
call fcn.004471f1
test eax, eax
jle 0x422533
push ebx
mov ecx, edi
mov byte [ebp - 1], 0
call fcn.004251cb
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x422594
mov ecx, edi
inc ebx
call fcn.004471f1
cmp ebx, eax
jl 0x422502
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x4225ed
sub eax, 4
je 0x422598
dec eax
dec eax
jne 0x4225e4
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.00450d9a
pop ecx
mov ecx, dword [esi + 0x50]
push reloc.WS2_32.dll_ioctlsocket
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x4217bc
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x4225e4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + pe_nt_image_headers32]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x4225e6
cmp dword [esi + 0x54], 0
je 0x4225e4
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.00420641
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x4225e4
cmp dword [esi + 0x54], 0
je 0x42263c
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x42263c
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x42263c
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.0044f7f2
pop ecx
pop ecx
test eax, eax
je 0x42263c
mov ecx, dword [esi + 0x54]
call fcn.00432ff6
test al, al
jne 0x4225e4
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge al
movzx eax, al
push eax
mov ecx, esi
call fcn.00422398
jmp 0x422594
Function at 0x42936d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x489c20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x4293de
cmp dword [esi + 0x10], ebx
je 0x4293de
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.00451d90
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x4293de
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1b8
call fcn.00425378
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00421d35
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044eff8
leave
ret 0x10

Function at 0x42ac34
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x42ac3f
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x42acfa
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4749b8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4749b8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4749b8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4749b8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4749b8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4749b8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4749b8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4749b8]
inc edx
sub edi, 8
dec esi
jne 0x42ac5f
pop ebx
test edi, edi
je 0x42ad13
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4749b8]
inc edx
dec edi
jne 0x42acfe
pop edi
not eax
pop esi
ret

Function at 0x42b1aa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x42b1de
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42b1d9
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x42b206
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x42b1ef
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004511e0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret
Function at 0x42bfa3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x489c20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x42c04d
movzx ecx, word [esi]
test cx, cx
je 0x42c04d
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x42bfe1
cmp cx, 0x5c
jne 0x42bfe3
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x42bfd5
cmp eax, esi
je 0x42c021
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00450c3a
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0042bfa3
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00451cdd
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00451caf
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044eff8
leave
ret

Function at 0x42d57e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x42d5f9
cmp dword [esi + 4], 0xffffffff
jne 0x42d5f9
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x47cf18
push edi
call fcn.00451caf
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x42d5cb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x42d5cb
mov eax, 0x2000000
jmp 0x42d5fe
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042afc0
add esp, 0x10
test eax, eax
jne 0x42d5e9
mov eax, dword [ebp + 0x10]
jmp 0x42d5fe
push eax
call fcn.0042d17a
mov dword [esi], eax
mov eax, dword [0x48be48]
pop ecx
jmp 0x42d5fe
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x4331ad
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4d4], ebx
je 0x433215
cmp dword [ebp + 8], 0x100
jne 0x433204
cmp word [ebp + 0xc], 0xd
jne 0x433204
cmp byte [esi + 0x4da], bl
je 0x4331eb
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x433204
cmp byte [esi + 0x4db], bl
jne 0x433204
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x433200
push ebx
push ebx
push ebx
push str.return
push esi
call fcn.00421d35
xor eax, eax
jmp 0x433218
mov eax, dword [esi + 0x4d4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x43521f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
sub esp, 0x2b4
lea ebp, [esp - 4]
mov eax, dword [0x489c20]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
push 0xc
mov eax, 0x46d5ff
call fcn.00450afd
mov edi, dword [ebp + 0x2c0]
mov ebx, ecx
call fcn.00434808
call fcn.00420809
push eax
lea ecx, [ebp + 0x230]
call fcn.0042560b
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0042080f
mov ecx, eax
call fcn.00425324
test al, al
je 0x435381
push edi
lea ecx, [ebp + 0x230]
call fcn.004253b4
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea ecx, [ebp + 0x230]
call fcn.00425216
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
push esi
cmp eax, 0xffffffff
jne 0x4352f5
push str.Error_opening_file
mov ecx, ebx
call fcn.004349de
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x230]
call fcn.004251fc
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2b4]
xor ecx, ebp
call fcn.0044eff8
add ebp, 0x2b8
leave
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
jne 0x43530a
push esi
push str.File_is_empty
jmp 0x4352b6
cmp edi, 0x400000
jbe 0x43531a
push esi
push 0x4757e4
jmp 0x4352b6
push edi
mov dword [ebp - 0x14], esi
call fcn.0044e4ef
pop ecx
push esi
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x435360
push dword [ebp - 0x10]
call fcn.0044f119
pop ecx
mov ecx, ebx
call fcn.00434808
push esi
push str.Could_not_read_file
jmp 0x4352b6
push dword [ebp + 0x2c4]
mov ecx, ebx
push edi
push dword [ebp - 0x10]
call fcn.004350ce
push dword [ebp - 0x10]
mov bl, al
call fcn.0044f119
pop ecx
jmp 0x4352bf
call fcn.0042080f
push eax
lea ecx, [ebp + 0x230]
call fcn.0042539a
call fcn.00420815
test al, al
je 0x4353a2
call fcn.0042081b
jmp 0x4353b9
push 2
push esi
lea ecx, [ebp + 0x230]
call fcn.00425216
push eax
call fcn.0042d95d
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x4353cb
push esi
push str.Error_opening_zip_file
jmp 0x4352b6
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push edi
push dword [ebp - 0x10]
call fcn.0042c05b
add esp, 0x14
test eax, eax
je 0x4353f0
push esi
push str.Could_not_find_ziped_file
jmp 0x4352b6
mov eax, dword [ebp + 0x22c]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x435302
cmp eax, 0x400000
ja 0x435312
push eax
call fcn.0044e4ef
push 3
push dword [ebp - 0x14]
mov edi, eax
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.0042d9ba
add esp, 0x18
cmp eax, esi
je 0x435457
cmp eax, 0x600
je 0x435457
push edi
call fcn.0044f119
pop ecx
call fcn.00420815
test al, al
jne 0x43544c
push dword [ebp - 0x10]
call fcn.0042d9f4
pop ecx
push esi
push str.Could_not_unzip_file
jmp 0x4352b6
call fcn.00420815
test al, al
jne 0x435469
push dword [ebp - 0x10]
call fcn.0042d9f4
pop ecx
push dword [ebp + 0x2c4]
mov ecx, ebx
push dword [ebp - 0x14]
push edi
call fcn.004350ce
push edi
jmp 0x435374
Function at 0x43c6e6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x43c70b
cmp eax, edi
jge 0x43c703
mov eax, esi
call fcn.0043c09a
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x43c72d
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x43c712
cmp ecx, 4
jge 0x43c74c
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x43c73a
xor eax, eax
jmp 0x43c742
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x43c730
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x43c77e
mov eax, str.zlib_corrupt
call fcn.00439cb7
jmp 0x43c7b9
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x43c78e
mov eax, str.read_past_buffer
jmp 0x43c777
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x43c7a3
mov ecx, edi
call fcn.0043c0c5
test eax, eax
je 0x43c7b9
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004511e0
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x44eff8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x489c20]
jne 0x44f002
repz ret
jmp fcn.00459be7

Function at 0x4679f3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0045b84f
and dword [ebp - 4], 0
cmp dword [0x48cd50], 0
mov ebx, eax
jne 0x467aa4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x467b55
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x467b55
push eax
call fcn.0045b7dd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x48cd50], eax
call esi
push eax
call fcn.0045b7dd
mov dword [esp], 0x47c77c
push edi
mov dword [0x48cd54], eax
call esi
push eax
call fcn.0045b7dd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48cd58], eax
call esi
push eax
call fcn.0045b7dd
pop ecx
mov dword [0x48cd60], eax
test eax, eax
je 0x467aa4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045b7dd
pop ecx
mov dword [0x48cd5c], eax
mov eax, dword [0x48cd5c]
cmp eax, ebx
je 0x467afc
cmp dword [0x48cd60], ebx
je 0x467afc
push eax
call fcn.0045b858
push dword [0x48cd60]
mov esi, eax
call fcn.0045b858
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x467afc
test edi, edi
je 0x467afc
call esi
test eax, eax
je 0x467af3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x467af3
test byte [ebp - 0xc], 1
jne 0x467afc
or dword [ebp + 0x10], 0x200000
jmp 0x467b35
mov eax, dword [0x48cd54]
cmp eax, ebx
je 0x467b35
push eax
call fcn.0045b858
pop ecx
test eax, eax
je 0x467b35
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x467b35
mov eax, dword [0x48cd58]
cmp eax, ebx
je 0x467b35
push eax
call fcn.0045b858
pop ecx
test eax, eax
je 0x467b35
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48cd50]
call fcn.0045b858
pop ecx
test eax, eax
je 0x467b55
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x467b57
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5136d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb6000]
mov dword [edi + 0xcf740], 0x862888e3
push edi
jmp 0x5136fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x513701
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5136f0
mov eax, 1
add ebx, ebx
jne 0x513713
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x513724
jne 0x513743
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x513743
dec eax
add ebx, ebx
jne 0x513730
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x513708
add ebx, ebx
jne 0x51373f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x513795
xor ecx, ecx
sub eax, 3
jb 0x51375b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5137ca
sar eax, 1
mov ebp, eax
jmp 0x513766
add ebx, ebx
jne 0x513766
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x513734
inc ecx
add ebx, ebx
jne 0x513774
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x513734
add ebx, ebx
jne 0x513781
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x513776
jne 0x513792
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x513776
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5137b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5137a6
jmp 0x5136f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5137b4
add edi, ecx
jmp 0x5136f6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5137d2
cmp byte [edi], 0x11
jne 0x5137d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5137d7
lea edi, [esi + 0x10c000]
mov eax, dword [edi]
or eax, eax
je 0x51384f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x141060]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1411dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x513804
mov ecx, edi
jns 0x513833
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1411e0]
or eax, eax
je 0x513849
mov dword [ebx], eax
add ebx, 4
jmp 0x513821
call dword [esi + 0x1411f0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x513880
cmp al, 0xef
ja 0x513873
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x513855
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x513862
mov ebp, dword [esi + 0x1411e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5138b4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret

Function at 0x40e27e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40e286
mov dword [ecx*4 + 0x42b300], eax
inc ecx
cmp ecx, 0x100
jb 0x40e281
pop esi
ret