joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1036c50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
ja 0x1036c70
jb 0x1036c68
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x40
jae 0x1036c73
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0x14
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
push esi
cmp word [ecx], ax
jne 0x1036e30
mov eax, dword [ecx + 0x3c]
xor edx, edx
lea esi, [eax + 0xf8]
cmp edx, edi
ja 0x1036e30
jb 0x1036ca2
cmp esi, ebx
ja 0x1036e30
movzx edx, word [eax + ecx + 4]
mov esi, 0x8664
cmp dx, si
je 0x1036cc6
mov esi, 0x200
cmp dx, si
je 0x1036cc6
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
jmp 0x1036ccf
mov edx, dword [ebp + 0x18]
mov dword [edx], 1
xor edx, edx
lea esi, [eax + 0xf8]
cmp edx, edi
ja 0x1036dce
jb 0x1036ce9
cmp esi, ebx
ja 0x1036dce
cmp dword [eax + ecx], 0x4550
jne 0x1036dce
movzx edx, word [eax + ecx + 0x14]
mov esi, dword [ebp + 0x14]
lea ebx, [eax + edx + 0x18]
mov edx, dword [esi]
mov dword [esi + 4], 0
mov edi, edx
cmp edx, 0x1000
jb 0x1036d1a
mov edi, 0x1000
mov dword [esi + 8], edi
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], edx
movzx edx, word [eax + ecx + 6]
test edx, edx
jbe 0x1036dc2
lea eax, [ebx + ecx + 0x10]
mov ebx, 0x18
sub ebx, ecx
nop
xor ecx, ecx
dec edx
lea edi, [ebx + eax]
cmp ecx, dword [ebp + 0x10]
ja 0x1036dc2
jb 0x1036d52
cmp edi, dword [ebp + 0xc]
ja 0x1036dc2
test byte [eax + 0x14], 0x20
je 0x1036d60
cmp dword [eax], 0x100
jae 0x1036d73
add eax, 0x28
test edx, edx
ja 0x1036d40
pop esi
pop edi
mov eax, 1
pop ebx
pop ebp
ret 0x14
test dword [eax + 0x14], 0x80000000
jne 0x1036dc2
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [eax]
cmp ecx, 0x1000
jb 0x1036d91
mov ecx, 0x1000
mov dword [esi + 8], ecx
cmp dword [eax], 0x1200
jb 0x1036db7
mov edx, dword [eax + 4]
add edx, ecx
mov dword [esi + 0x14], edx
mov eax, dword [eax]
sub eax, ecx
mov dword [esi + 0x18], eax
pop esi
pop edi
mov eax, 1
pop ebx
pop ebp
ret 0x14
mov ecx, dword [eax + 4]
mov dword [esi + 0x14], ecx
mov edx, dword [eax]
mov dword [esi + 0x18], edx
pop esi
pop edi
mov eax, 1
pop ebx
pop ebp
ret 0x14
movzx esi, word [ecx + 8]
mov edx, dword [ebp + 0x14]
shl esi, 4
mov dword [edx + 4], esi
movzx eax, word [ecx + 4]
movzx ecx, word [ecx + 2]
dec eax
shl eax, 9
add eax, ecx
mov ecx, dword [edx]
cmp eax, ecx
jbe 0x1036df1
mov eax, ecx
mov ecx, eax
sub ecx, esi
cmp ecx, 0x200
jb 0x1036e30
mov esi, 0x1000
cmp ecx, 0x1000
ja 0x1036e0c
mov esi, ecx
cmp ecx, 0x1200
mov ecx, dword [edx + 4]
mov dword [edx + 8], esi
jbe 0x1036e1c
add ecx, esi
pop esi
sub eax, ecx
pop edi
mov dword [edx + 0x18], eax
mov dword [edx + 0x14], ecx
mov eax, 1
pop ebx
pop ebp
ret 0x14
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0x14
Function at 0x103f740
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x11
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [ebp + 0xc]
test eax, eax
je 0x103f79a
mov edx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [eax + 8], edx
lea edx, [ebp + 0xc]
push edx
push 0
push eax
push 0x103f6f0
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x14]
push 0
push 0
mov dword [eax], esi
mov dword [eax + 0xc], ecx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x103f795
push eax
mov eax, dword [esi + 0x1c0]
call eax
pop esi
pop ebp
ret 0x10
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.0103f650
test eax, eax
je 0x103f796
mov eax, dword [ebp + 0x14]
push eax
call dword [ebp + 0x10]
pop ebp
ret 0x10

Function at 0x103fb20
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
xor dword [ebp + 8], 0x2d871bcc
xor eax, eax
lea ecx, [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov byte [ebp - 4], al
dec ecx
mov eax, 1
mov dl, al
sub dl, 0x5c
xor dl, byte [eax + ecx]
inc eax
xor byte [ebp + eax + 7], dl
cmp eax, 4
jb 0x103fb43
xor byte [ebp + 8], 0xac
lea eax, [ebp - 0xc]
push eax
push 4
lea ecx, [ebp + 8]
push ecx
call fcn.0102c830
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x103fb90
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
xor eax, eax
mov dword [ebp - 8], eax
mov byte [ebp - 4], al
mov eax, dword [ebp + 8]
push 4
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.0102c560
mov edx, dword [ebp - 8]
mov al, dl
xor al, 0xac
mov dword [ebp + 8], edx
lea ecx, [ebp + 8]
mov byte [ebp + 8], al
dec ecx
mov eax, 3
mov dl, al
sub dl, 0x5c
xor dl, byte [eax + ecx]
xor byte [ebp + eax + 8], dl
sub eax, 1
jne 0x103fbc5
mov eax, dword [ebp + 8]
xor eax, 0x2d871bcc
mov esp, ebp
pop ebp
ret 4

Function at 0x103fbf0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
xor ecx, ecx
mov dword [ebp - 4], eax
test esi, esi
jbe 0x103fc2b
push edi
mov edi, dword [ebp + 8]
lea esp, [esp]
mov dl, byte [ecx + edi]
mov eax, ecx
and eax, 3
xor dl, cl
add byte [ebp + eax - 4], dl
lea eax, [ebp + eax - 4]
inc ecx
cmp ecx, esi
jb 0x103fc10
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1040760
Capabilities:
Get mac address on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2804
call fcn.01194980
push esi
push 0x2800
lea eax, [ebp - 0x2804]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x2804]
push edx
xor esi, esi
mov dword [ebp - 4], 0x2800
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x10407e5
lea eax, [ebp - 0x2804]
lea esp, [esp]
test esi, esi
jne 0x10407df
movzx esi, byte [eax + 0x196]
movzx ecx, byte [eax + 0x197]
movzx edx, byte [eax + 0x198]
shl esi, 8
add esi, ecx
movzx ecx, byte [eax + 0x199]
shl esi, 8
add esi, edx
shl esi, 8
add esi, ecx
mov eax, dword [eax]
test eax, eax
jne 0x10407b0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10408f0
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
push esi
push 0x11c
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.msvcrt.dll_memset
mov esi, dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
add esp, 0xc
push 3
mov ecx, 2
xor edx, edx
push ecx
push edx
push edx
mov dword [ebp - 0x11c], 0x11c
mov dword [ebp - 0x118], 5
mov dword [ebp - 0x114], 1
mov word [ebp - 8], cx
mov word [ebp - 6], dx
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push edx
push eax
push 0x33
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_VerifyVersionInfoW]
pop esi
test eax, eax
je 0x104099b
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x8ae4], 5
jne 0x104099b
cmp dword [ecx + 0x8ae8], 2
jne 0x104099b
cmp word [ecx + 0x8b74], 1
jae 0x104099b
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1046360
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Send data
Send data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push edi
mov edi, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
test edi, edi
je 0x1046495
mov eax, dword [ebp + 0x14]
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [ebp + 8]
cmp dword [esi + 0x2dbc], 0
movzx ebx, ax
je 0x10463c8
mov ecx, dword [esi + 0x2dc0]
mov edx, dword [esi + 0x2dc4]
mov eax, dword [esi + 0x2dc8]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x2dcc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
jmp 0x1046427
movzx edx, byte [edi]
push edx
call dword [sym.imp.msvcrt.dll_isalpha]
add esp, 4
push edi
test eax, eax
je 0x104641e
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x1046412
movsx eax, word [edi + 0xa]
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
push eax
push edx
lea eax, [ebp - 0x10]
push eax
call sub.msvcrt.dll_memcpy
movsx ecx, word [edi + 0xa]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [esi + 0x2dc4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x18
mov dword [esi + 0x2dbc], 1
jmp 0x1046427
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1046490
mov ecx, 2
push 0
push ecx
push ecx
mov word [ebp - 0x14], cx
mov word [ebp - 0x12], bx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x1046490
push 0x10
lea edx, [ebp - 0x14]
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x104647b
mov edi, dword [ebp + 0xc]
push 0
push edi
call fcn.0102bae0
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, 1
cmp eax, 0xffffffff
jne 0x104647e
mov edi, dword [ebp - 4]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1047e10
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 9
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1047e69
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
push 0
push esi
push fcn.01047da0
push 0
push 0
mov dword [esi], edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
jne 0x1047e5f
push esi
call fcn.01047da0
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [edi + 0x1c0]
push eax
call edx
pop edi
pop esi
pop ebp
ret 8
Function at 0x104b0f0
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x104b100
xor eax, eax
jmp 0x104b11d
cmp word [ecx], 0
mov eax, ecx
je 0x104b119
jmp 0x104b110
add eax, 2
cmp word [eax], 0
jne 0x104b110
sub eax, ecx
sar eax, 1
push esi
push eax
push ecx
call fcn.0102d280
mov esi, eax
test esi, esi
je 0x104b153
push 0x5c
push esi
call fcn.0102d150
test eax, eax
je 0x104b143
xor ecx, ecx
push esi
mov word [eax], cx
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop esi
pop ebp
ret 8
Function at 0x1050740
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x48c]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 4
push 0x1000
add eax, 0x1b8
push eax
push 0
push edi
mov dword [ebp - 4], 0
call ecx
mov esi, eax
test esi, esi
je 0x1050861
push 0x40
lea edx, [ebp - 0x44]
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push 0x40
lea edx, [ebp - 0x44]
push edx
mov eax, 0x5a4d
push esi
mov word [ebp - 0x44], ax
mov eax, dword [ebx + 0x424]
push edi
mov dword [ebp - 8], 0x40
call eax
test eax, eax
je 0x1050861
cmp dword [ebp - 4], 0x40
jne 0x1050861
push 0xf8
lea edx, [ebp - 0x13c]
lea ecx, [esi + 0x40]
push 0
push edx
mov dword [ebp + 0xc], ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0xe0
mov word [ebp - 0x128], ax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 0x424]
mov ecx, 0x2000
push 0xf8
mov word [ebp - 0x126], cx
mov edx, 1
lea ecx, [ebp - 0x13c]
mov word [ebp - 0x136], dx
mov edx, dword [ebp + 0xc]
push ecx
push edx
push edi
mov dword [ebp - 0x13c], 0x4550
call eax
test eax, eax
je 0x1050861
cmp dword [ebp - 4], 0xf8
jne 0x1050861
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push esi
add ecx, 0xf8
push ecx
push edi
push ebx
call fcn.01050650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x1050950
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x40]
push 0
push eax
call sub.msvcrt.dll_memset
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edx, dword [esi + 0x478]
add esp, 0xc
push 0
push 0x40
lea ecx, [ebp - 0x40]
push ecx
push edi
push ebx
call edx
test eax, eax
je 0x10509f5
mov eax, 0x5a4d
cmp word [ebp - 0x40], ax
jne 0x10509f5
push 0xf8
lea ecx, [ebp - 0x138]
push 0
push ecx
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x478]
add esp, 0xc
push 0
push 0xf8
lea edx, [ebp - 0x138]
push edx
add eax, edi
push eax
push ebx
call ecx
test eax, eax
je 0x10509f5
cmp dword [ebp - 0x138], 0x4550
jne 0x10509f5
test dword [ebp - 0x122], 0x2000
jne 0x10509f5
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10520a0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push 0x105
lea eax, [ebp - 0x108]
push 0
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push 0x103
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.010517f0
push 0x11
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
test esi, esi
je 0x105217b
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push ebx
push edi
mov dword [esi], eax
lea eax, [ebp + 0xc]
push eax
push 0
push esi
push 0x1051f90
push 0
lea ecx, [ebp - 0x108]
lea ebx, [esi + 0xc]
push 0
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
test edi, edi
je 0x1052169
cmp edi, 0xffffffff
je 0x1052169
mov esi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push 0xc8
push edi
call esi
cmp eax, 0x102
jne 0x1052159
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
je 0x1052159
push 0xffffffffffffffff
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1058d70
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcessTimes]
test eax, eax
je 0x1058f17
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
push ebx
push esi
push edi
push 0
push 0x989680
push ecx
push eax
call fcn.011948a0
mov ecx, dword [ebp - 0xc]
push 0
push 0x989680
mov edi, eax
mov eax, dword [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x2c], edx
call fcn.011948a0
mov ebx, dword [ebp + 8]
lea esi, [eax + edi]
mov eax, dword [ebx]
cmp dword [eax + 0x8bb8], 0
mov dword [ebp - 0x2c], edx
jne 0x1058df9
push eax
call fcn.0102b0a0
mov edx, dword [ebx]
mov dword [edx + 0x8bb8], eax
mov edi, dword [ebx]
xor edx, edx
mov eax, esi
div dword [edi + 0x8bb8]
mov ecx, dword [ebp - 0x14]
push 0
push 0x989680
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x18]
add eax, 0x2ac18000
adc ecx, 0xfe624e21
push ecx
push eax
call fcn.011948a0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
mov eax, dword [ebp - 0x20]
push 0
add eax, 0x2ac18000
push 0x989680
adc ecx, 0xfe624e21
push ecx
push eax
mov dword [ebp - 0x2c], edx
call fcn.011948a0
sub esi, eax
mov eax, dword [edi + 0x1f23c]
mov dword [ebp - 0x2c], edx
xor edx, edx
mov ecx, esi
mov esi, dword [ebp + 8]
cmp eax, edx
je 0x1058e67
cmp esi, eax
jb 0x1058e67
sub esi, eax
add dword [edi + 0x1f23c], esi
mov eax, dword [ebx]
mov edi, dword [eax + 0x1f240]
cmp edi, edx
je 0x1058e7f
cmp ecx, edi
jb 0x1058e7f
sub ecx, edi
add dword [eax + 0x1f240], ecx
mov eax, dword [ebx]
cmp dword [eax + 0x1f238], edx
je 0x1058f14
mov eax, dword [eax + 0x1f238]
add dword [eax + 8], ecx
adc dword [eax + 0xc], edx
mov eax, dword [ebx]
mov eax, dword [eax + 0x1f238]
add dword [eax + 0x10], esi
adc dword [eax + 0x14], edx
mov eax, 0x88888889
mul ecx
shr edx, 5
cmp esi, edx
jbe 0x1058f14
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x1f238]
cmp dword [eax + 0xc], 0
ja 0x1058f14
jb 0x1058ed4
cmp dword [eax + 8], 0x7080
jae 0x1058f14
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov edx, eax
mov eax, 0x10624dd3
mul edx
shr edx, 6
cmp edx, 0xe10
jbe 0x1058ef7
mov edx, 0xe10
jmp 0x1058f05
call esi
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, dword [ebx]
mov eax, dword [eax + 0x1f238]
add dword [eax + 8], edx
adc dword [eax + 0xc], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1059510
Capabilities:
Find taskbar

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x24
push ebx
push esi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x1059622
push edi
push 8
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xa
push ebx
mov edi, eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ebx
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x14]
push ecx
push esi
call ebx
push 0
push 0x100f968
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x1059618
lea edx, [ebp - 0x24]
push edx
push eax
call ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov eax, edi
cdq
sub eax, edx
sub ebx, ecx
sar eax, 1
cmp ebx, eax
jg 0x10595ac
test ecx, ecx
je 0x10595ac
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub ecx, eax
sub eax, dword [ebp - 8]
push 1
push ecx
mov ecx, dword [ebp - 0x14]
sub edx, ecx
push edx
sub eax, ebx
jmp 0x10595d0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
sub edx, ecx
cmp ecx, eax
push 1
jge 0x10595ea
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, edx
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x14]
sub ebx, ecx
push ebx
sub eax, edx
add eax, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
push eax
add ecx, edi
push ecx
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
sub eax, ecx
sub ecx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
add ecx, dword [ebp - 4]
sub ebx, eax
sub eax, dword [ebp - 0xc]
push ebx
sub eax, edx
push ecx
add eax, edi
push eax
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.01059480
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1059c30
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
push eax
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x1059ca5
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push esi
push 0x403
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1059ca3
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1059c83
mov ecx, dword [eax + 0x1c]
push 0x1ff
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test edi, edi
je 0x1059c97
mov edx, dword [ebp + 0x14]
dec edx
push edx
push esi
push edi
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop esi
pop ebx
pop edi
pop ebp
ret 0x10
Function at 0x105b150
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
lea ecx, [eax + ecx*2 - 2]
cmp eax, ecx
jae 0x105b17f
mov dx, word [ecx]
xor word [eax], dx
movzx edx, word [eax]
xor word [ecx], dx
movzx edx, word [ecx]
xor word [eax], dx
add eax, 2
sub ecx, 2
cmp eax, ecx
jb 0x105b163
pop ebp
ret 8
Function at 0x1061990
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.msvcrt.dll_time]
push eax
call dword [sym.imp.msvcrt.dll_srand]
xor esi, esi
add esp, 8
cmp dword [ebp + 0x10], esi
mov dword [ebp - 4], esi
jle 0x1061ab0
push ebx
mov ebx, dword [ebp + 0xc]
push 0x40001
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edi, eax
test edi, edi
je 0x1061a97
lea eax, [esi - 1]
cmp eax, 4
ja case.default.0x10619eb
lea ecx, [esi - 1]
jmp dword [ecx*4 + 0x1061abc]
push 0x40000
push 0xff
jmp 0x1061a2a
xor esi, esi
call dword [sym.imp.msvcrt.dll_rand]
mov byte [esi + edi], al
inc esi
cmp esi, 0x40000
jb 0x1061a00
mov esi, dword [ebp - 4]
jmp case.default.0x10619eb
push 0x40000
push 0x52
jmp 0x1061a2a
push 0x40000
push 0xad
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
test esi, esi
je 0x1061a4a
mov eax, dword [ebp + 8]
push 1
push 0
mov edx, ebx
neg edx
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
xor esi, esi
test ebx, ebx
jbe 0x1061a84
mov eax, ebx
sub eax, esi
cmp eax, 0x40000
jbe 0x1061a60
mov eax, 0x40000
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x1061a84
add esi, dword [ebp - 0xc]
mov dword [ebp - 8], 1
cmp esi, ebx
jb 0x1061a50
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov esi, dword [ebp - 4]
inc esi
cmp esi, dword [ebp + 0x10]
mov dword [ebp - 4], esi
jl 0x10619c2
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10625d0
Capabilities:
Set http header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push 0x100ca1c
push ecx
call fcn.01061f80
test eax, eax
je 0x1062642
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1062600
sub ecx, esi
push ecx
push eax
call fcn.01061ef0
mov esi, eax
test esi, esi
je 0x106262b
push 0xa0000000
push 0xffffffffffffffff
push esi
push edi
call ebx
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
lea edx, [ebp + 0xc]
push edx
push 0x100ca1c
push 0
call fcn.01061f80
test eax, eax
jne 0x10625f7
pop edi
pop esi
pop ebx
pop ebp
ret 8