joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f5f4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45957c]
cmp dword [eax + 0x30], 0
je 0x44f69e
cmp dword [ebx + 0x94], 0
jne 0x44f698
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f584
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f698
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44f65e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f698
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414200
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f66d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4503b8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4503ed
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004048f8
jmp 0x4503fa
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040485c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45175c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4517ca
mov eax, esi
call fcn.0043c0a4
test al, al
je 0x4517ca
mov eax, dword [ebx + 0x84]
call fcn.0043bda8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4517ca
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4517be
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043bda8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004342b8
jmp 0x4517ca
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00451598
pop esi
pop ebx
ret
Function at 0x12cd700
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x1329314]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x12cd751
push 3
push 2
push eax
push eax
push 6
call fcn.012e3180
add esp, 0x14
test al, al
je 0x12cd745
mov dword [0x1329314], 2
add esp, 0xc
ret
mov dword [0x1329314], 1
jmp 0x12cd756
cmp eax, 2
je 0x12cd79c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x12cd781
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x12cd79c
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x12ce3f0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x13280c0]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
xor eax, eax
push edi
mov edi, dword [esp + 0x28]
push 4
cmp byte [esi + 0x71b], al
setne al
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x12ce450
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.012cc3c0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.012ea7f3
add esp, 0x18
ret
push dword [esi + 0x6b8]
mov dword [esp + 0x14], 1
call fcn.012ce670
push dword [esi + 0x6bc]
imul eax, eax, 0x3e8
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
call fcn.012ce670
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x12ce4c7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.012cc3c0
add esp, 0x10
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.012ea7f3
add esp, 0x18
ret

Function at 0x12ce4e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x13280c0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
lea eax, [esp + 4]
push 4
push eax
push 1
push 6
push dword [esp + 0x124]
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x12ce545
push 0x100
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.012e2380
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.012cc3c0
add esp, 0x18
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.012ea7f3
add esp, 0x108
ret
Function at 0x12ce6b0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [0x13130ac]
mov ebx, eax
test ebx, ebx
jne 0x12ce6ca
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [0x13130a8]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x131480c
push esi
call fcn.012f5060
add esp, 8
test eax, eax
je 0x12ce712
test ebp, ebp
je 0x12ce703
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x12ce738
push str.AddDllDirectory
push ebx
call dword [0x13130a8]
test eax, eax
je 0x12ce738
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [0x13130b4]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x12ce7ef
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x12ce755
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x12ce7e5
push dword [esp + 0x10]
push ebx
call dword [0x13130b4]
test eax, eax
je 0x12ce7e5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x12ce787
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x12ce7a0
sub ecx, edx
add ecx, ebx
sub ecx, esi
lea ecx, [ecx]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x12ce7b0
test ebp, ebp
je 0x12ce7dc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x1328004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x1328004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x12db2b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x13280c0]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov edi, dword [esp + 0x4c]
push 6
push 1
push 2
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x12db4a2
xorps xmm0, xmm0
mov eax, 2
movdqu xmmword [esp + 0x18], xmm0
push 0x7f000001
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x1c], eax
xor eax, eax
push 4
mov word [esp + 0x1e], ax
lea eax, [esp + 0x18]
push eax
push 4
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x12db490
push 0x10
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x12db490
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x12db490
cmp dword [esp + 8], 0x10
jl 0x12db490
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x12db490
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x12db490
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x12db490
push 1
push esi
call fcn.012e2f90
add esp, 8
test eax, eax
js 0x12db490
push 0
push 0x2710
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push 1
push eax
mov dword [esp + 0x20], 0x300
call fcn.012d8560
add esp, 0x10
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x12db490
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x1c]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x12db490
cmp dword [esp + 8], 0x10
jl 0x12db490
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x12db490
cmp dword [esp + 8], 0x10
jl 0x12db490
mov ax, word [esp + 0x18]
cmp ax, word [esp + 0x28]
jne 0x12db490
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jne 0x12db490
mov ax, word [esp + 0x1a]
cmp ax, word [esp + 0x2a]
jne 0x12db490
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.012ea7f3
add esp, 0x34
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.012ea7f3
add esp, 0x34
ret
Function at 0x12fe558
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1329de0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x12fe598
cmp byte [ebx], 0xa
jne 0x12fe598
or byte [edi + eax + 0x28], 4
jmp 0x12fe59d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x12fe69c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x12fe67f
inc eax
cmp dl, 0xd
je 0x12fe5c9
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x12fe5ef
cmp eax, ecx
jae 0x12fe5fd
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x12fe5b1
jmp 0x12fe69c
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12fe67a
cmp dword [ebp - 0x10], 0
je 0x12fe67a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1329de0]
test byte [eax + edi + 0x28], 0x48
je 0x12fe654
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x12fe63f
mov byte [esi], dl
jmp 0x12fe650
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1329de0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x12fe69c
cmp byte [ebp - 1], 0xa
jne 0x12fe663
cmp esi, ebx
jne 0x12fe663
mov byte [esi], 0xa
jmp 0x12fe69b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.01304d5c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x12fe69c
mov byte [esi], 0xd
jmp 0x12fe69b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1329de0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x12fe699
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x12fe69c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x12fe6a5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1329de0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x12fe6eb
cmp word [ebx], dx
jne 0x12fe6eb
or byte [eax + edi + 0x28], 4
jmp 0x12fe6f0
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x12fe853
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x12fe833
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x12fe731
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x12fe767
cmp eax, edx
jae 0x12fe775
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x12fe70c
jmp 0x12fe853
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12fe82e
cmp dword [ebp - 0x18], 0
je 0x12fe82e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1329de0]
test byte [eax + edi + 0x28], 0x48
je 0x12fe804
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x12fe7c8
mov word [esi], cx
jmp 0x12fe7ff
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1329de0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1329de0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1329de0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x12fe853
pop eax
cmp word [ebp - 4], ax
jne 0x12fe814
cmp esi, ebx
jne 0x12fe814
mov word [esi], ax
jmp 0x12fe850
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.01304d5c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x12fe853
push 0xd
pop eax
jmp 0x12fe80f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1329de0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x12fe84d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x12fe853
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x102dd058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.102dd1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x102dd07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102dd06a
add dl, dl
jne 0x102dd089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102dd0dc
xor eax, eax
add dl, dl
jne 0x102dd096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102dd17d
add dl, dl
jne 0x102dd0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102dd0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102dd0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102dd0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x102dd0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x102dd075
mov eax, 1
add dl, dl
jne 0x102dd0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102dd0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102dd0e1
sub eax, ebx
mov ebx, 1
jne 0x102dd128
mov ecx, 1
add dl, dl
jne 0x102dd10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x102dd119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102dd105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102dd075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x102dd13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x102dd14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102dd136
cmp eax, 0x7d00
jae 0x102dd16d
cmp eax, 0x500
jb 0x102dd168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102dd075
cmp eax, 0x7f
ja 0x102dd170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102dd075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x102dd19e
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 0x102dd075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401230
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x51daf6
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x268]
mov ecx, 0xe
mov esi, str.identifierBegin:abcdefghijklmnopqrstuvwxyz:identifierEnd
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
push 0x104
lea eax, [esp + 0x50]
push eax
push 0
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x4c]
push 0x5c
push ecx
call fcn.0042eba4
lea edx, [esp + 0x54]
mov esi, eax
push 0x2e
push edx
add esi, 2
call fcn.0042eba4
add esp, 0x10
test esi, esi
mov edi, eax
je 0x4012df
test edi, edi
je 0x4012df
push 0x208
lea ebx, [ebp + 0x104]
push 0
push ebx
call fcn.00435740
sub edi, esi
sar edi, 1
push edi
push esi
push ebx
call fcn.0042ebd4
add esp, 0x18
lea eax, [esp + 0x4c]
push 0x5c
push eax
call fcn.0042eba4
mov word [eax + 2], 0
lea eax, [esp + 0x54]
add esp, 8
lea edx, [eax + 2]
jmp 0x401300
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401300
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x50]
lea edi, [ebp + 0x30c]
push ecx
mov esi, edi
call fcn.004021f0
push edi
mov ebx, str.SCSvcInfo.ini
lea esi, [esp + 0x34]
call fcn.00401c90
add esp, 4
push 0xffffffffffffffff
add ebp, 0x328
push 0
mov ecx, ebp
mov dword [esp + 0x268], 0
call fcn.004020b0
mov esi, 8
mov dword [esp + 0x260], 0xffffffff
cmp dword [esp + 0x48], esi
jb 0x401373
mov edx, dword [esp + 0x34]
push edx
call fcn.0042eca7
add esp, 4
cmp dword [ebp + 0x18], esi
jb 0x40137d
mov eax, dword [ebp + 4]
jmp 0x401380
lea eax, [ebp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4013c7
push edi
mov ebx, str.SCOverlayInfo.ini
lea esi, [esp + 0x18]
call fcn.00401c90
add esp, 4
push 0xffffffffffffffff
push 0
mov ecx, ebp
mov dword [esp + 0x268], 1
call fcn.004020b0
cmp dword [esp + 0x2c], 8
jb 0x4013c7
mov eax, dword [esp + 0x18]
push eax
call fcn.0042eca7
add esp, 4
cmp dword [edi + 0x18], 8
jb 0x4013d2
mov edi, dword [edi + 4]
jmp 0x4013d5
add edi, 4
push edi
push str.m_strConfigPath_path___s
call fcn.004198d0
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0042eb95
add esp, 0x250
ret 4
Function at 0x4014d0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x210
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x324], 8
mov esi, edx
mov dword [esp + 0x10], ebx
jb 0x401503
mov eax, dword [edi + 0x310]
jmp 0x401509
lea eax, [edi + 0x310]
push str.SCSvcInfo.ini
push eax
lea eax, [esp + 0x1c]
push str._s_s
push eax
call fcn.0042ec11
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call ebp
test eax, eax
je 0x40155e
lea eax, [esp + 0x14]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov word [esi + 4], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401547
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x18]
push edx
jmp 0x4015dc
cmp dword [edi + 0x324], 8
jb 0x40156f
mov edi, dword [edi + 0x310]
jmp 0x401575
add edi, 0x310
push str.SCOverlayInfo.ini
push edi
lea eax, [esp + 0x1c]
push str._s_s
push eax
call fcn.0042ec11
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call ebp
test eax, eax
lea eax, [esp + 0x14]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov word [esi + 4], bx
lea edx, [eax + 2]
je 0x4015c7
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4015b0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x18]
push edx
jmp 0x4015dc
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4015c7
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004021f0
mov ecx, dword [esp + 0x21c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042eb95
add esp, 0x210
ret

Function at 0x401c90
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x51da38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.004020b0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401ce4
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00401d70
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.004020b0
cmp dword [esp + 0x24], 8
jb 0x401d2a
mov eax, dword [esp + 0x10]
push eax
call fcn.0042eca7
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x402560
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 8]
push eax
push 0x20119
push 0
push str.SoftWare
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
call esi
test eax, eax
jne 0x4025ef
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push 0x20119
push eax
push str.SCIconOverlay
push edx
call esi
test eax, eax
jne 0x4025ef
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 4]
lea eax, [esp + 0xc]
push eax
push ecx
push 0
push 0
push 0x55fd38
push edx
mov dword [esp + 0x24], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov eax, dword [esp + 4]
je 0x4025f8
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
xor al, al
pop esi
add esp, 0xc
ret 4
test eax, eax
je 0x4025ff
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x40260a
push eax
call esi
mov al, 1
pop esi
add esp, 0xc
ret 4

Function at 0x402620
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x20119
push 0
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402674
mov edx, dword [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push eax
push 0xf013f
push eax
push eax
push eax
push str.SCIconOverlay
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40267b
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
add esp, 8
ret
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402680
sub eax, edx
mov edx, dword [esp + 8]
sar eax, 1
lea ecx, [eax + eax]
push ecx
push esi
push 1
push 0
push 0x55fd38
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 4]
push ecx
call esi
mov al, 1
pop esi
add esp, 8
ret