joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb1a2f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0xb1a301
mov eax, dword [ebp - 4]
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 4]
lea edx, [ebp - 0x200c]
mov eax, dword [ebp + 0xc]
mov ecx, ebx
call fcn.00a12ef4
test esi, esi
jl 0xb1a38b
lea edx, [ebp - 0x100c]
lea eax, [ebp - 0x200c]
mov ecx, ebx
call fcn.00a12ef4
lea edx, [ebp - 0x100c]
mov ecx, ebx
mov eax, dword [ebp - 8]
call dword [ebp + 0x14]
mov ecx, ebx
dec ecx
lea edx, [ebp - 0x200c]
lea eax, [ebp - 0x200b]
call fcn.00a12ef4
mov al, byte [ebp - 0x100c]
mov byte [ebp + ebx - 0x200d], al
mov eax, dword [ebp - 0xc]
mov dl, byte [ebp - 0x100c]
xor byte [eax], dl
dec esi
inc dword [ebp - 0xc]
test esi, esi
jge 0xb1a336
lea eax, [ebp - 0x100c]
mov edx, ebx
call fcn.00b17730
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0xb3a45c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0xa
add esp, 0xfffff004
push eax
dec eax
jne 0xb3a465
mov eax, dword [ebp - 4]
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xa03c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xb3a92c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 0
lea eax, [ebp - 0x18]
call fcn.00a14db0
xor ecx, ecx
mov dl, 1
mov eax, dword [0xb09074]
call fcn.00b0afec
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0xb3a8ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp - 0x20]
call fcn.00b0b0d8
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], 0xb3a458
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov dword [eax + 0x64], edx
mov dword [eax + 0x60], 0xb3a43c
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov dword [eax + 0x8c], edx
mov dword [eax + 0x88], 0xb3a440
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x90]
mov dl, byte [0xb3a940]
call fcn.00b0a4ac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00aecc40
test al, al
je 0xb3a53c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x20]
call fcn.00b0a944
jmp 0xb3a54a
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x20]
call fcn.00b0a9c4
mov eax, dword [ebp - 4]
movzx edx, word [eax + 0xc]
mov eax, dword [ebp - 0x20]
call fcn.00b0aa44
xor eax, eax
push ebp
push 0xb3a5b1
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
mov dl, 1
mov eax, dword [ebp - 0x20]
call fcn.00b0a904
jmp 0xb3a599
push 0x1f4
call sub.kernel32.dll_Sleep_1
mov eax, dword [0xb73238]
mov eax, dword [eax]
call fcn.00a779d0
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x30], 0
jne 0xb3a5a7
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0xfa0
jbe 0xb3a57a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xb3a5bb
jmp 0x180ef98
Function at 0xb4d738
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [esi], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0x40
call fcn.00b4cf74
test al, al
jne 0xb4d774
push 0xd
call sub.kernel32.dll_SetLastError
jmp 0xb4db38
mov dword [esi], 1
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x5a4d
je 0xb4d796
push 0xc1
call sub.kernel32.dll_SetLastError
jmp 0xb4db38
mov dword [esi], 2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
add eax, 0xf8
cdq
push edx
push eax
call fcn.00b4cf74
test al, al
jne 0xb4d7c5
push 0xd
call sub.kernel32.dll_SetLastError
jmp 0xb4db38
mov dword [esi], 3
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x4550
je 0xb4d7ff
push 0xc1
call sub.kernel32.dll_SetLastError
jmp 0xb4db38
mov dword [esi], 4
mov eax, dword [ebp - 0x10]
cmp word [eax + 4], 0x14c
je 0xb4d81f
push 0xc1
call sub.kernel32.dll_SetLastError
jmp 0xb4db38
mov dword [esi], 5
mov eax, dword [ebp - 0x10]
test byte [eax + 0x38], 1
je 0xb4d83d
push 0xc1
call sub.kernel32.dll_SetLastError
jmp 0xb4db38
mov dword [esi], 6
xor eax, eax
push ebp
push 0xb4db23
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x17c37a0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0xb50e58
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
mov esi, dword [0xb73054]
xor eax, eax
push ebp
push 0xb50fd5
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [0xb73238]
mov eax, dword [eax]
call fcn.00a7824c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00a1a6a4
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
lea edx, [esi + 0xdf8]
call fcn.00a15024
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 4]
pop edx
call fcn.00a150cc
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0xa792a0]
call fcn.00a79350
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0xb50fab
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [esi + 0x3d]
push eax
mov ecx, 0xb50fec
mov edx, 0xb51000
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x14]
xor eax, eax
mov al, byte [esi + 0x3c]
push eax
mov ecx, 0xb51014
mov edx, 0xb51000
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov al, byte [esi + 0x3f]
push eax
mov ecx, 0xb51028
mov edx, 0xb51000
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x14]
mov al, byte [esi + 0x3e]
push eax
mov ecx, 0xb51038
mov edx, 0xb51000
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x14]
mov al, byte [esi + 0x30]
push eax
mov ecx, 0xb5104c
mov edx, 0xb51000
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, dword [0xb734a8]
mov eax, dword [eax]
push eax
mov ecx, 0xb51060
mov edx, 0xb51000
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0x388]
push eax
mov ecx, 0xb51074
mov edx, 0xb51000
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 4]
mov eax, dword [ebx + 0x38c]
push eax
mov ecx, 0xb51084
mov edx, 0xb51000
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb50fb2
cmp dword [ebp - 8], 0
je 0xb50faa
mov eax, dword [ebp - 8]
call fcn.00a13f44
ret
Function at 0xb5d508
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0xb5d510
push ecx
push ebx
push esi
mov eax, 0xb5cec8
call fcn.00a17380
mov esi, dword [0xb73238]
xor eax, eax
push ebp
push 0xb5d6e2
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00a13098
cmp eax, 2
jne 0xb5d5a1
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00a13100
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.00a19d98
call fcn.00aef550
mov ebx, 0x64
lea edx, [ebp - 0x18]
mov eax, 2
call fcn.00a13100
mov eax, dword [ebp - 0x18]
call fcn.00a15280
push eax
call sub.kernel32.dll_DeleteFileA
lea edx, [ebp - 0x1c]
mov eax, 2
call fcn.00a13100
mov eax, dword [ebp - 0x1c]
call fcn.00a1a250
test al, al
je 0xb5d5a1
push 0xa
call sub.kernel32.dll_Sleep_1
dec ebx
jne 0xb5d563
mov al, byte [0xb5d6f0]
push eax
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00a13100
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov edx, 0xb5d6fc
call fcn.00a1f378
mov eax, dword [ebp - 0x20]
call fcn.00a15280
push eax
push 0
push 0
call fcn.00a176e8
mov ebx, eax
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
jne 0xb5d618
push 0x40
push 0xb5d700
lea edx, [ebp - 0x2c]
mov eax, dword [0xb7331c]
call fcn.00a170b0
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00ad11bc
mov eax, dword [ebp - 0x28]
call fcn.00a15280
push eax
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0xb5d6c7
mov dl, 1
mov eax, dword [0xa29c6c]
call fcn.00a13f14
mov edx, dword [0xb73230]
mov dword [edx], eax
mov eax, dword [0xb73230]
mov eax, dword [eax]
call fcn.00aec108
test al, al
jne 0xb5d64a
mov eax, dword [0xb73230]
mov eax, dword [eax]
call fcn.00a13f44
jmp 0xb5d6c7
mov eax, dword [esi]
call fcn.00a77af4
lea edx, [ebp - 0x34]
mov eax, dword [esi]
call fcn.00a7824c
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00a1a6a4
mov eax, dword [ebp - 0x30]
call fcn.00a1a9f8
mov ecx, dword [0xb73070]
mov eax, dword [esi]
mov edx, dword [0xb4f8f8]
call fcn.00a77b0c
mov ecx, dword [0xb733f4]
mov eax, dword [esi]
mov edx, dword [0xb5bdc4]
call fcn.00a77b0c
mov ecx, dword [0xb73108]
mov eax, dword [esi]
mov edx, dword [0xb5afc8]
call fcn.00a77b0c
mov ecx, dword [0xb732d4]
mov eax, dword [esi]
mov edx, dword [0xb5a028]
call fcn.00a77b0c
mov eax, dword [esi]
call fcn.00a77b8c
push ebx
call sub.kernel32.dll_ReleaseMutex
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb5d6e9
lea eax, [ebp - 0x34]
mov edx, 9
call fcn.00a14dd4
ret
Function at 0x10002b2e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add ecx, 0x20
pop ebp
jmp fcn.100016da

Function at 0x10006590
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [section..data]
cmp esi, 0xffffffff
jne 0x100065b3
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov esi, eax
mov dword [section..data], eax
cmp eax, 0xffffffff
je 0x100065f6
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
push eax
call fcn.1002cd50
add esp, 4
mov ebx, dword [sym.imp.kernel32.dll_TlsSetValue]
push 0
push esi
call ebx
push 0x14
call fcn.1002cd50
add esp, 4
mov edi, eax
push eax
push esi
call ebx
movaps xmm0, xmmword [0x10040c10]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
jmp 0x100065de

Function at 0x100065fa
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x10
xorps xmm0, xmm0
movups xmmword [esp], xmm0
call fcn.10005b20
sub esp, 0x10
mov esi, dword [section..data]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov dword [esp], eax
call fcn.1002cd50
mov dword [esp], esi
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_TlsSetValue]
add esp, 8
pop esi
pop ebp
ret

Function at 0x100066a2
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [section..data]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x100066b7
pop ebp
ret
pop ebp
jmp fcn.10006590

Function at 0x10008df0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor eax, eax
cmp edx, ecx
je 0x10008e1f
shl eax, 4
movsx esi, byte [edx]
add esi, eax
mov edi, esi
and edi, 0xf0000000
mov eax, edi
shr eax, 0x18
or eax, edi
xor eax, esi
inc edx
cmp ecx, edx
jne 0x10008e01
pop esi
pop edi
pop ebp
ret 8

Function at 0x10008f30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor eax, eax
cmp edx, ecx
je 0x10008f61
shl eax, 4
movzx esi, word [edx]
add esi, eax
mov edi, esi
and edi, 0xf0000000
mov eax, edi
shr eax, 0x18
or eax, edi
xor eax, esi
add edx, 2
cmp ecx, edx
jne 0x10008f41
pop esi
pop edi
pop ebp
ret 8
Function at 0x1002cd50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1002cd5f
pop dword [ebp - 0x18]
mov eax, 0xf0d5c1af
add eax, 0x1f2d0bb0
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x3d76bff8
sub dword [ebp - 0x28], 0xef247aad
mov dword [ebp - 0x24], 0xce770664
add dword [ebp - 0x24], 0x63bc45e1
mov dword [ebp - 0x20], 0x524f53f8
add dword [ebp - 0x20], 0xf9fcf036
mov dword [ebp - 0x1c], 0x5e0a60a9
add dword [ebp - 0x1c], 0xa1f59f57
lea eax, [ebp - 0x28]
push eax
mov eax, 0xf30a61cf
sub eax, 0xe30592ef
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x7580db6e
sub dword [ebp - 0x28], 0x10e7218
mov dword [ebp - 0x24], 0xa32003a
sub dword [ebp - 0x24], 0xc8c59ec5
mov dword [ebp - 0x20], 0x69c09c03
add dword [ebp - 0x20], 0xf9aed069
mov dword [ebp - 0x1c], 0xb335a58c
add dword [ebp - 0x1c], 0x4cca5a74
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x4031b
push 0
call eax
mov ecx, 0x9ea700ba
sub ecx, 0x9ea6b6a2
mov edi, eax
mov edx, 0x397454f7
sub edx, 0x296ea0f7
add edx, dword [ebp - 0x18]
mov esi, 0x7f892bc4
add esi, 0xf17ac98
add dword [ebp - 0xc], eax
mov ebx, dword [edx]
add dword [ebp - 0x10], edi
add ebx, esi
xor dword [ebp - 0x10], 0x923eb572
mov dword [edi], ebx
sub dword [ebp - 0xc], esi
add edi, 0x4f7a5303
add edi, 0xb085ad01
add edx, 4
loop 0x1002ce7c
add eax, 0x11b33
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, sym.libEGL.dll_Ordinal_0
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x5865f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x58c4cc]
cmp dword [eax + 0x28], 0
jne 0x586608
xor eax, eax
jmp 0x586737
mov ecx, dword [0x58c43c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [0x58c430], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [0x58c42c], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x10], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x58c430]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x58c42c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
shr ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [0x58c4b8]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x80000000
push 0x58a680
push 0x58a6d0
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x58c428], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00586530
push 5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x5865c0
mov edx, dword [0x58c4cc]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x3e8
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x58c434], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x586737
cmp dword [ebp - 0x38], 0x12
jne 0x58672b
mov dword [0x58c444], 0
call fcn.00586740
xor eax, eax
jmp 0x586737
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x5866fc
mov esp, ebp
pop ebp
ret 4

Function at 0x587b00
Capabilities:
Read .ini file
Read and send data from client to server
Send data
Send data on socket
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebp
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
pop ebp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x58869c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x58a168
sub eax, eax
test esi, esi
je 0x588774
sub eax, 1
test ecx, ecx
je 0x588772
test esi, 3
je 0x5886da
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x5886bf
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x588759
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x5886e4
mov ecx, edx
test ecx, ecx
je 0x588772
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x58875f
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x58877c
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.005887ff
jae 0x58878a
xor ecx, ecx
call fcn.005887ff
jae 0x5887b9
xor eax, eax
call fcn.005887ff
jae 0x5887c9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.005887ff
adc al, al
jae 0x5887ab
jne 0x5887f5
stosb byte es:[edi], al
jmp 0x58878d
call fcn.0058880b
sub ecx, ebx
jne 0x5887d2
call fcn.00588809
jmp 0x5887f1
lodsb al, byte [esi]
shr eax, 1
je 0x58881b
adc ecx, ecx
jmp 0x5887ee
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00588809
cmp eax, 0x7d00
jae 0x5887ee
cmp ah, 5
jae 0x5887ef
cmp eax, 0x7f
ja 0x5887f0
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x58878d
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x58914c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58c000]
jne 0x589156
repz ret
jmp fcn.005893fd
Function at 0x4027d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 0x124]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx - 0x124]
call fcn.0040f010
mov ecx, dword [ebp - 8]
mov edx, dword [ecx - 0x20]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 0x124]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx - 0x120]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx - 0x124]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx - 0x120]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 8]
mov eax, dword [edx - 0x1c]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx - 0x124]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax - 0x120]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x402898
mov ecx, dword [ebp - 8]
sub ecx, 0xa0
mov dword [ebp - 0xc], ecx
jmp 0x4028a4
mov edx, dword [ebp - 8]
sub edx, 0x120
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp - 8]
mov dword [edx - 8], 0
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4062d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4315b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
push 2
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x548]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 1
jge 0x406327
push 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x1cc]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x3fc]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x4063b0
movzx ecx, byte [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.004063c0
mov dword [ebp - 0x28], eax
xor edx, edx
cmp dword [ebp - 0x28], 0xffffffff
sete dl
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x1cc]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x28], 0xffffffff
je 0x40637a
push 0
mov edx, dword [ebp - 0x28]
push edx
push 0x186
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x1b8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x30]
call fcn.00406b70
push 0
push 0
push 0x188
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x1b8]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x2c], eax
xor ecx, ecx
cmp dword [ebp - 0x2c], 0xffffffff
setne cl
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x3fc]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041256e
mov esp, ebp
pop ebp
ret
Function at 0x406610
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x4315b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x13c], ecx
push 2
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ecx + 0x548]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 1
jge 0x40664f
jmp 0x4067ba
movzx eax, word [ebp - 0x128]
cmp eax, 0xff
jle 0x406662
jmp 0x4067ba
mov cl, byte [ebp - 0x128]
mov byte [ebp - 0x12d], cl
push 0
push 0
push 0x147
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 0x1c0]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xffffffff
jne 0x40669e
jmp 0x4067ba
push 0
mov ecx, dword [ebp - 0x134]
push ecx
push 0x150
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 0x1c0]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
imul ecx, ecx, 0xc
mov edx, dword [ecx + 0x42e48c]
mov dword [ebp - 0x138], edx
cmp dword [ebp - 0x138], 0x14
jge 0x4066f9
movzx eax, byte [ebp - 0x12d]
push eax
call fcn.00412ec2
add esp, 4
mov byte [ebp - 0x12d], al
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ecx + 0xf58]
mov eax, dword [ebp - 0x13c]
mov cl, byte [ebp - 0x12d]
mov byte [eax + edx*8 + 0x758], cl
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 0xf58]
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x138]
mov dword [ecx + eax*8 + 0x75c], edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 0xf58]
add ecx, 1
mov edx, dword [ebp - 0x13c]
mov dword [edx + 0xf58], ecx
mov eax, dword [ebp - 0x12c]
imul eax, eax, 0xc
mov ecx, dword [eax + 0x42e490]
push ecx
movzx edx, byte [ebp - 0x12d]
push edx
push str.___c_t_s
lea eax, [ebp - 0x108]
push eax
call fcn.00412cf6
add esp, 0x10
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0x180
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 0x1b8]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0x186
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ecx + 0x1b8]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041256e
mov esp, ebp
pop ebp
ret