joyce8/EMBER2024-capa huggingface dataset:
Function at 0x531d10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5e53a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.005d4170
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.00531c50
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.005d409e
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x531dd7
cmp dword [esp + 0x40], 1
jne 0x531dd5
cmp ecx, eax
jge 0x531dd7
mov eax, ecx
cmp eax, 0x12c
jge 0x531de3
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.00531e30
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.005d41e2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x536120
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x5e5896
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0xa1a2fc]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.005cf6ad
mov edx, dword [0xa1a2fc]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x53617a
mov dword [esp + 0x1c], ebx
jmp 0x536181
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.005d197d
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.005cd2b1
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x5361d2
mov dword [esp + 0x14], ebx
jmp 0x5361d9
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x5361f4
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x5361ee
cmp eax, 2
jne 0x5361f4
mov dword [esp + 0x18], edi
jmp 0x5361f8
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x536206
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.005cece3
mov edi, eax
cmp edi, ebx
jne 0x536216
xor eax, eax
jmp 0x536219
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x536241
mov ecx, esi
call fcn.005d197d
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x53625d
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x53627c
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x53627c
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.005cd178
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.005cd178
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x538060
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 0x5380c6
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 0x5380c6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x5380a7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x538850
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x538888
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 0x539440
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00539590
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x539460
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x539441
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00539590
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x539460
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x539490
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x5394e7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x5394fd
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.00539520
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x539520
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x5395b0
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 0x5395f9
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 0x539a70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e5de0
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.00539620
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.005396a0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.005396a0
lea ecx, [esi + 0xc]
call fcn.005cd103
lea ecx, [esi + 0x10]
call fcn.005cd103
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0053bea0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0053bea0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0053bea0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.005cd178
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.005cd178
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x53a718
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e6008
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x53a728
call fcn.0053ac40
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x53a80b
cmp byte [edi], 0
je 0x53a80b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x53a74d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00539440
test eax, eax
jne 0x53a76d
push 0xa1383c
lea ecx, [esi + 0x38]
call fcn.005cd301
jmp 0x53a80b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00539490
test eax, eax
jne 0x53a79c
mov ecx, esi
call fcn.00539590
push edi
add esi, 0x38
push 0xa13818
push esi
call fcn.005c99e9
add esp, 0xc
jmp 0x53a80b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0053b4c0
test eax, eax
je 0x53a804
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0053a8e0
test eax, eax
jne 0x53a820
push edi
lea eax, [esi + 0x38]
push 0xa137f4
push eax
call fcn.005c99e9
add esp, 0xc
mov ecx, esi
call fcn.0053ac40
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x53a8c8
mov ecx, dword [0xa1a2fc]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.005c99e9
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00539540
test eax, eax
jne 0x53a88a
push 0xa137d8
lea ecx, [esi + 0x38]
call fcn.005cd301
jmp 0x53a89a
push 0xfa
mov ecx, esi
call fcn.0053b4c0
test eax, eax
jne 0x53a8b7
mov ecx, esi
call fcn.0053ac40
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.005cd178
jmp 0x53a80b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.005cd178
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x53f570
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5e62e8
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.0053f970
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], 0xa7e314
call fcn.005aa6c8
mov ecx, dword [0x90c644]
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.0053ccd0
mov esi, 0x90c69c
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x53f617
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x53f60e
cmp al, 0xff
je 0x53f60e
dec al
mov byte [ecx], al
jmp 0x53f617
push ecx
call fcn.005ccee2
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.005c78f0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x53f65d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x53f654
cmp al, 0xff
je 0x53f654
dec al
mov byte [ecx], al
jmp 0x53f65d
push ecx
call fcn.005ccee2
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.005aa74f
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x5457c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x5457f3
push esi
call fcn.0054a760
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x5457ec
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x545879
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x545862
mov eax, dword [esi + 8]
test eax, eax
je 0x545817
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x54585e
cmp eax, 2
je 0x545862
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x54580a
cmp eax, 3
je 0x54583d
cmp eax, 1
jne 0x54580a
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 0x54580a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x54580a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.005458b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x545899
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.005458b0
add esp, 4
pop esi
ret
Function at 0x576520
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x57652b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x57662e
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 + 0x90d580]
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 + 0x90d580]
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 + 0x90d580]
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 + 0x90d580]
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 + 0x90d580]
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 + 0x90d580]
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 + 0x90d580]
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 + 0x90d580]
xor eax, edx
inc ecx
dec edi
jne 0x576546
pop edi
test esi, esi
je 0x576650
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x90d580]
xor eax, edx
inc ecx
dec esi
jne 0x576632
pop esi
pop ebx
not eax
ret
Function at 0x5c1f20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5e7ce0
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.005b6e99
mov eax, dword [0x9ee0b8]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.005b6dcb
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.005c2a50
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x5c1fc7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5c1fbe
cmp al, 0xff
je 0x5c1fbe
dec al
mov byte [ecx], al
jmp 0x5c1fc7
push ecx
call fcn.005ccee2
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 0x5c1ff8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5c1fef
cmp al, 0xff
je 0x5c1fef
dec al
mov byte [ecx], al
jmp 0x5c1ff8
push ecx
call fcn.005ccee2
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 0x5cf6ad
Capabilities:
Get graphical window text

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

Function at 0x5d102e
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 0x5d1070
call fcn.005d7bfe
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5d1070
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5d1067
xor eax, eax
jmp 0x5d1078
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005d107e
pop edi
pop esi
pop ebx
ret 4

Function at 0x5d812e
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 0x5d815c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5d817a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005d8094
jmp 0x5d817a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5d817a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005d8094
test edi, edi
mov eax, edi
jne 0x5d8164
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5daf0e
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x5daf36
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x5daf47
push 2
call edi
test ax, ax
jge 0x5daf47
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.005cece3
cmp dword [esi + 0x30], ebx
jne 0x5db021
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.005cece3
cmp eax, dword [esp + 0x34]
jne 0x5db021
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x5dafbd
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x5db002
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x5db021
cmp eax, 0x205
je 0x5db021
cmp eax, 0x201
je 0x5db021
cmp eax, 0x204
je 0x5db021
cmp eax, ebx
jne 0x5dafe8
cmp dword [esp + 0x1c], 0x1b
je 0x5db021
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0xa80490]
jbe 0x5db017
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x5daf7a
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x100200e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x1007050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x2a8]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x1001538
push 0x80000001
mov dword [ebp - 0x2a8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call fcn.01001977
push dword [0x1007f3c]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x1002094
lea eax, [ebp - 0x2bc]
push eax
push dword [0x1007f3c]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 8
lea eax, [ebp - 0x2bc]
push eax
push 3
push esi
push 0x1001508
push dword [ebp - 0x2a8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push esi
push esi
push 0x146
mov ebx, 0xc9
push ebx
push dword [0x1007f3c]
call edi
movzx eax, ax
movzx eax, ax
xor esi, esi
inc esi
mov dword [ebp - 0x2ac], eax
cmp esi, dword [ebp - 0x2ac]
ja 0x10020e1
lea eax, [ebp - 0xa4]
push eax
lea eax, [esi - 1]
push eax
push 0x148
push ebx
push dword [0x1007f3c]
call edi
jmp 0x10020ea
xor eax, eax
mov word [ebp - 0xa4], ax
push esi
push 0x10014e8
lea eax, [ebp - 0x2a4]
push 0x200
push eax
call fcn.01001fae
add esp, 0x10
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0xa4]
push eax
push 1
push 0
lea eax, [ebp - 0x2a4]
push eax
push dword [ebp - 0x2a8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc esi
cmp esi, 0x14
jbe 0x10020be
push dword [ebp - 0x2a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 2
push str.DIALER.HLP
push dword [0x1007f3c]
call dword [sym.imp.USER32.dll_WinHelpW]
push dword [0x1007f3c]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [ebp - 4]
and dword [0x1007f3c], 0
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100599f
leave
ret
Function at 0x1004625
Capabilities:
Set registry value

Disassembly:
mov eax, dword [0x1007d2c]
test eax, eax
je 0x100464d
push eax
call sub.TAPI32.dll_lineClose
test eax, eax
je 0x1004646
push 0x10
push eax
push dword [0x1007f3c]
call fcn.01001b5a
and dword [0x1007d2c], 0
cmp dword [0x1007120], 0
je 0x10046a1
call fcn.01001977
call fcn.010041a9
test eax, eax
je 0x1004677
push 0x30
push eax
push dword [0x1007f3c]
call fcn.01001b5a
jmp fcn.0100200e
push 1
push 1
push 0
push dword [0x1007110]
call sub.TAPI32.dll_lineRegisterRequestRecipient
test eax, eax
je 0x100469a
push 0x30
push eax
push dword [0x1007f3c]
call fcn.01001b5a
and dword [0x1007120], 0
ret