joyce8/EMBER2024-capa huggingface dataset:
Function at 0x589b50
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x589b83
push esi
call fcn.00597d30
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x589b7c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x589c09
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x589bf2
mov eax, dword [esi + 8]
test eax, eax
je 0x589ba7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x589bee
cmp eax, 2
je 0x589bf2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x589b9a
cmp eax, 3
je 0x589bcd
cmp eax, 1
jne 0x589b9a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x589b9a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x589b9a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00589c30
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x589c18
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00589c30
add esp, 4
pop esi
ret

Function at 0x58a4a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x58a4c1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x58a4c1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x58a4c1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x5a5a50
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x66b914]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x5a5a63
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x5a5aa4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x66b9bc]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x5a5ad6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x5a5ada
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x5a5acb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x5a5af8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x5a5afc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x5a5aed
xor ecx, ecx
mov eax, 0x66b924
xor ebx, ebx
mov bl, byte [ecx + 0x66b9cc]
cmp byte [esp + ebx + 0x14], 0
je 0x5a5b27
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x66b9e4]
cmp byte [esp + ebx + 0x14], 0
je 0x5a5b3e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x5a5b0e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x5a5a97
lea edx, [esp + 0x84]
push edx
call fcn.005a5b80
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x5a71e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x5a7246
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x5a7246
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x5a7227
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x5a75d0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x5a7608
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x5a8290
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x5a82d9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x5a8750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f2420
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.005a8300
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.005a8380
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.005a8380
lea ecx, [esi + 0xc]
call fcn.005e38f9
lea ecx, [esi + 0x10]
call fcn.005e38f9
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.005a9910
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.005a9910
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.005a9910
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.005e396e
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.005e396e
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5aff20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5f2838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.005b0310
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x6a8234
call fcn.005c2448
mov ecx, dword [0x64bf98]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.005aa930
mov esi, 0x64bff8
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x5affc7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5affbe
cmp al, 0xff
je 0x5affbe
dec al
mov byte [ecx], al
jmp 0x5affc7
push ecx
call fcn.005e36d8
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.005df7a0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x5b000d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5b0004
cmp al, 0xff
je 0x5b0004
dec al
mov byte [ecx], al
jmp 0x5b000d
push ecx
call fcn.005e36d8
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.005c24cf
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x5b4940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f2a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.005b4520
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.005b4590
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.005b4870
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.005b4540
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10

Function at 0x5b4958
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f2a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.005b4520
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.005b4590
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.005b4870
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.005b4540
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x5b4c60
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5f2ab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.005b4520
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.005b4520
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x38], 1
call fcn.005b4590
cmp dword [esp + 0x40], ebx
jne 0x5b4ce8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x34], bl
call fcn.005b4540
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.005b4540
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea eax, [esp + 0xc]
push eax
call fcn.005b4ba0
add esp, 4
lea ecx, [esp + 0xc]
mov esi, 1
call fcn.005b49c0
cmp eax, esi
jb 0x5b4d6b
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 1
push 1
push esi
push 0x66d8f8
lea ecx, [esp + 0x1c]
call fcn.005b4940
cmp eax, 1
jne 0x5b4d5d
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.005b46e0
push ebx
lea ecx, [esp + 0x20]
call fcn.0057a8e0
push eax
call fcn.005c27a8
add esp, 8
test eax, eax
jge 0x5b4d5d
push ebx
lea ecx, [esp + 0x20]
call fcn.005b4a30
push eax
call edi
test eax, eax
je 0x5b4da0
lea ecx, [esp + 0xc]
inc esi
call fcn.005b49c0
cmp esi, eax
jbe 0x5b4d0d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.005b4540
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.005b4540
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.005b4540
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.005b4540
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x5b7240
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x5b724b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x5b734e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x64dab4]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x64dab4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x64dab4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x64dab4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x64dab4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x64dab4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x64dab4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x64dab4]
xor eax, edx
inc ecx
dec edi
jne 0x5b7266
pop edi
test esi, esi
je 0x5b7370
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x64dab4]
xor eax, edx
inc ecx
dec esi
jne 0x5b7352
pop esi
pop ebx
not eax
ret

Function at 0x5b7cf0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x5b7d31
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5b7d26
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x5b7d44
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x5b8c80
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x5b8d35
cmp dword [ebp + 4], 0xffffffff
jne 0x5b8d35
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x66db80
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x5b8cfd
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x5b8cfd
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.005b7a80
add esp, 0x10
test eax, eax
jne 0x5b8d20
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.005b7fc0
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x5b9190
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x5b9258
mov al, byte [ecx]
test al, al
je 0x5b9258
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x5b91bb
cmp al, 0x5c
jne 0x5b91bd
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x5b91b3
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x5b91f4
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.005c29e0
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.005b9190
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x5b9a90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f2b3f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x66e844]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x18]
mov edi, 1
push ecx
mov dword [esp + 0x34], edi
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
je 0x5b9ae8
mov esi, dword [esp + 0x38]
push 0x6ae2b4
mov ecx, esi
call fcn.005e39dc
mov dword [esp + 0x10], edi
jmp 0x5b9b4e
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
test eax, eax
je 0x5b9b0e
mov esi, dword [esp + 0x38]
push 0x6ae2b4
mov ecx, esi
call fcn.005e39dc
jmp 0x5b9b4a
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x10]
call fcn.005e3aab
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.RPCRT4.dll_RpcStringFreeA]
push 0x6ae2b4
push 0x66db90
lea ecx, [esp + 0x14]
call fcn.005e109c
mov esi, dword [esp + 0x38]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.005e36e3
mov dword [esp + 0x10], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], bl
call fcn.005e396e
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x5c27a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5c27c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005c181a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5c27eb
test byte [esp + 8], 2
je 0x5c27eb
call fcn.005c188d
mov dword [eax], 0xd
call fcn.005c1896
mov dword [eax], 5
jmp 0x5c27c4
xor eax, eax
ret
Function at 0x5d9e00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5f40c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.005ceb1f
mov eax, dword [0x651150]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.005cea51
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.005da8f0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x5d9ea7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5d9e9e
cmp al, 0xff
je 0x5d9e9e
dec al
mov byte [ecx], al
jmp 0x5d9ea7
push ecx
call fcn.005e36d8
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x5d9ed8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5d9ecf
cmp al, 0xff
je 0x5d9ecf
dec al
mov byte [ecx], al
jmp 0x5d9ed8
push ecx
call fcn.005e36d8
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x5e5d4e
Capabilities:
Get graphical window text

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

Function at 0x5e7448
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 0x5e748a
call fcn.005ed1b4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5e748a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5e7481
xor eax, eax
jmp 0x5e7492
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005e7498
pop edi
pop esi
pop ebx
ret 4

Function at 0x5ed6e4
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 0x5ed712
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5ed730
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005ed64a
jmp 0x5ed730
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5ed730
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005ed64a
test edi, edi
mov eax, edi
jne 0x5ed71a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x8a8840
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008a8990
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8a8866
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8a8852
add dl, dl
jne 0x8a8871
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8a88c4
xor eax, eax
add dl, dl
jne 0x8a887e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8a8965
add dl, dl
jne 0x8a888d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8a8898
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8a88a3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8a88ae
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8a88ba
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8a885d
mov eax, 1
add dl, dl
jne 0x8a88d2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8a88dd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8a88c9
sub eax, ebx
mov ebx, 1
jne 0x8a8910
mov ecx, 1
add dl, dl
jne 0x8a88f6
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8a8901
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8a88ed
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8a885d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8a8927
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8a8932
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8a891e
cmp eax, 0x7d00
jae 0x8a8955
cmp eax, 0x500
jb 0x8a8950
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8a885d
cmp eax, 0x7f
ja 0x8a8958
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8a885d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8a8986
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8a885d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x427f00
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.00427f8f
jae 0x427f0e
xor ecx, ecx
call fcn.00427f8f
jae 0x427f3d
xor eax, eax
call fcn.00427f8f
jae 0x427f4d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.00427f8f
adc al, al
jae 0x427f2f
jne 0x427f79
stosb byte es:[edi], al
jmp 0x427f11
call fcn.00427f9b
sub ecx, ebx
jne 0x427f56
call fcn.00427f99
jmp 0x427f75
lodsb al, byte [esi]
shr eax, 1
je 0x427f83
adc ecx, ecx
jmp 0x427f72
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00427f99
cmp eax, 0x7d00
jae 0x427f72
cmp ah, 5
jae 0x427f73
cmp eax, 0x7f
ja 0x427f74
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 0x427f11
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8