joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1034370
Capabilities:
Compute adler32 checksum

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10344a9
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x10344a9
push edi
mov edi, dword [ebp + 8]
movzx ecx, di
shr edi, 0x10
test ebx, ebx
jbe 0x103449b
nop
mov eax, ebx
cmp ebx, 0x15b0
jb 0x10343af
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
mov dword [ebp + 0x10], ebx
jl 0x103445e
mov edx, eax
shr edx, 4
mov ebx, edx
neg ebx
shl ebx, 4
add eax, ebx
jmp 0x10343d0
movzx ebx, byte [esi]
add ecx, ebx
movzx ebx, byte [esi + 1]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 2]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 3]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 4]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 5]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 6]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 7]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 8]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 9]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xa]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xb]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xc]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xd]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xe]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xf]
add edi, ecx
add ecx, ebx
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x10343d0
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x103446f
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
sub eax, 1
jne 0x1034462
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x10343a0
mov eax, edi
pop edi
shl eax, 0x10
pop esi
or eax, ecx
pop ebx
pop ebp
ret 0xc
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0xc
Function at 0x1034520
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 0x1034540
jb 0x1034538
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x40
jae 0x1034543
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 0x1034700
mov eax, dword [ecx + 0x3c]
xor edx, edx
lea esi, [eax + 0xf8]
cmp edx, edi
ja 0x1034700
jb 0x1034572
cmp esi, ebx
ja 0x1034700
movzx edx, word [eax + ecx + 4]
mov esi, 0x8664
cmp dx, si
je 0x1034596
mov esi, 0x200
cmp dx, si
je 0x1034596
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
jmp 0x103459f
mov edx, dword [ebp + 0x18]
mov dword [edx], 1
xor edx, edx
lea esi, [eax + 0xf8]
cmp edx, edi
ja 0x103469e
jb 0x10345b9
cmp esi, ebx
ja 0x103469e
cmp dword [eax + ecx], 0x4550
jne 0x103469e
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 0x10345ea
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 0x1034692
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 0x1034692
jb 0x1034622
cmp edi, dword [ebp + 0xc]
ja 0x1034692
test byte [eax + 0x14], 0x20
je 0x1034630
cmp dword [eax], 0x100
jae 0x1034643
add eax, 0x28
test edx, edx
ja 0x1034610
pop esi
pop edi
mov eax, 1
pop ebx
pop ebp
ret 0x14
test dword [eax + 0x14], 0x80000000
jne 0x1034692
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [eax]
cmp ecx, 0x1000
jb 0x1034661
mov ecx, 0x1000
mov dword [esi + 8], ecx
cmp dword [eax], 0x1200
jb 0x1034687
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 0x10346c1
mov eax, ecx
mov ecx, eax
sub ecx, esi
cmp ecx, 0x200
jb 0x1034700
mov esi, 0x1000
cmp ecx, 0x1000
ja 0x10346dc
mov esi, ecx
cmp ecx, 0x1200
mov ecx, dword [edx + 4]
mov dword [edx + 8], esi
jbe 0x10346ec
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 0x103d220
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 0x103d243
xor byte [ebp + 8], 0xac
lea eax, [ebp - 0xc]
push eax
push 4
lea ecx, [ebp + 8]
push ecx
call fcn.0102a0a0
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 0x103d290
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.01029dd0
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 0x103d2c5
mov eax, dword [ebp + 8]
xor eax, 0x2d871bcc
mov esp, ebp
pop ebp
ret 4

Function at 0x103d2f0
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 0x103d32b
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 0x103d310
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x103de60
Capabilities:
Get mac address on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2804
call fcn.01178910
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 0x103dee5
lea eax, [ebp - 0x2804]
lea esp, [esp]
test esi, esi
jne 0x103dedf
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 0x103deb0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x103dff0
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 0x103e09b
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x819c], 5
jne 0x103e09b
cmp dword [ecx + 0x81a0], 2
jne 0x103e09b
cmp word [ecx + 0x822c], 1
jae 0x103e09b
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1043910
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 0x1043a45
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 + 0x2db8], 0
movzx ebx, ax
je 0x1043978
mov ecx, dword [esi + 0x2dbc]
mov edx, dword [esi + 0x2dc0]
mov eax, dword [esi + 0x2dc4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x2dc8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
jmp 0x10439d7
movzx edx, byte [edi]
push edx
call dword [sym.imp.msvcrt.dll_isalpha]
add esp, 4
push edi
test eax, eax
je 0x10439ce
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x10439c2
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 + 0x2dc0]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x18
mov dword [esi + 0x2db8], 1
jmp 0x10439d7
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1043a40
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 0x1043a40
push 0x10
lea edx, [ebp - 0x14]
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1043a2b
mov edi, dword [ebp + 0xc]
push 0
push edi
call fcn.010293c0
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, 1
cmp eax, 0xffffffff
jne 0x1043a2e
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 0x1045490
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 0x10454e9
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
push 0
push esi
push fcn.01045420
push 0
push 0
mov dword [esi], edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
jne 0x10454df
push esi
call fcn.01045420
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 0x10487b0
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x10487c0
xor eax, eax
jmp 0x10487dd
cmp word [ecx], 0
mov eax, ecx
je 0x10487d9
jmp 0x10487d0
add eax, 2
cmp word [eax], 0
jne 0x10487d0
sub eax, ecx
sar eax, 1
push esi
push eax
push ecx
call fcn.0102ab30
mov esi, eax
test esi, esi
je 0x1048813
push 0x5c
push esi
call fcn.0102aa00
test eax, eax
je 0x1048803
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 0x104de50
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 0x104df71
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 0x104df71
cmp dword [ebp - 4], 0x40
jne 0x104df71
push pe_nt_image_headers32
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 pe_nt_image_headers32
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 0x104df71
cmp dword [ebp - 4], 0xf8
jne 0x104df71
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.0104dd60
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 0x104e060
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 0x104e105
mov eax, 0x5a4d
cmp word [ebp - 0x40], ax
jne 0x104e105
push pe_nt_image_headers32
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 pe_nt_image_headers32
lea edx, [ebp - 0x138]
push edx
add eax, edi
push eax
push ebx
call ecx
test eax, eax
je 0x104e105
cmp dword [ebp - 0x138], 0x4550
jne 0x104e105
test dword [ebp - 0x122], 0x2000
jne 0x104e105
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 0x104f7b0
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.0104ef00
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 0x104f88b
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 0x104f6a0
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 0x104f879
cmp edi, 0xffffffff
je 0x104f879
mov esi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push 0xc8
push edi
call esi
cmp eax, 0x102
jne 0x104f869
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
je 0x104f869
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 0x1055b50
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 0x1055cf7
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.01178830
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.01178830
mov ebx, dword [ebp + 8]
lea esi, [eax + edi]
mov eax, dword [ebx]
cmp dword [eax + 0x8270], 0
mov dword [ebp - 0x2c], edx
jne 0x1055bd9
push eax
call fcn.01028a20
mov edx, dword [ebx]
mov dword [edx + 0x8270], eax
mov edi, dword [ebx]
xor edx, edx
mov eax, esi
div dword [edi + 0x8270]
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.01178830
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.01178830
sub esi, eax
mov eax, dword [edi + 0x1e978]
mov dword [ebp - 0x2c], edx
xor edx, edx
mov ecx, esi
mov esi, dword [ebp + 8]
cmp eax, edx
je 0x1055c47
cmp esi, eax
jb 0x1055c47
sub esi, eax
add dword [edi + 0x1e978], esi
mov eax, dword [ebx]
mov edi, dword [eax + 0x1e97c]
cmp edi, edx
je 0x1055c5f
cmp ecx, edi
jb 0x1055c5f
sub ecx, edi
add dword [eax + 0x1e97c], ecx
mov eax, dword [ebx]
cmp dword [eax + 0x1e974], edx
je 0x1055cf4
mov eax, dword [eax + 0x1e974]
add dword [eax + 8], ecx
adc dword [eax + 0xc], edx
mov eax, dword [ebx]
mov eax, dword [eax + 0x1e974]
add dword [eax + 0x10], esi
adc dword [eax + 0x14], edx
mov eax, 0x88888889
mul ecx
shr edx, 5
cmp esi, edx
jbe 0x1055cf4
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x1e974]
cmp dword [eax + 0xc], 0
ja 0x1055cf4
jb 0x1055cb4
cmp dword [eax + 8], 0x7080
jae 0x1055cf4
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 0x1055cd7
mov edx, 0xe10
jmp 0x1055ce5
call esi
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, dword [ebx]
mov eax, dword [eax + 0x1e974]
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 0x1056340
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 0x1056452
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 0x100f094
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x1056448
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 0x10563dc
test ecx, ecx
je 0x10563dc
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 0x1056400
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
sub edx, ecx
cmp ecx, eax
push 1
jge 0x105641a
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.010562b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1056a50
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 0x1056ac5
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 0x1056ac3
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1056aa3
mov ecx, dword [eax + 0x1c]
push 0x1ff
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test edi, edi
je 0x1056ab7
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 0x1057f70
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 0x1057f9f
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 0x1057f83
pop ebp
ret 8
Function at 0x105e570
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 0x105e690
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 0x105e677
lea eax, [esi - 1]
cmp eax, 4
ja case.default.0x105e5cb
lea ecx, [esi - 1]
jmp dword [ecx*4 + 0x105e69c]
push 0x40000
push 0xff
jmp 0x105e60a
xor esi, esi
call dword [sym.imp.msvcrt.dll_rand]
mov byte [esi + edi], al
inc esi
cmp esi, 0x40000
jb 0x105e5e0
mov esi, dword [ebp - 4]
jmp case.default.0x105e5cb
push 0x40000
push 0x52
jmp 0x105e60a
push 0x40000
push 0xad
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
test esi, esi
je 0x105e62a
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 0x105e664
mov eax, ebx
sub eax, esi
cmp eax, 0x40000
jbe 0x105e640
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 0x105e664
add esi, dword [ebp - 0xc]
mov dword [ebp - 8], 1
cmp esi, ebx
jb 0x105e630
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 0x105e5a2
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 0x105f170
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 0x100c194
push ecx
call fcn.0105eb60
test eax, eax
je 0x105f1e2
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 0x105f1a0
sub ecx, esi
push ecx
push eax
call fcn.0105ead0
mov esi, eax
test esi, esi
je 0x105f1cb
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 0x100c194
push 0
call fcn.0105eb60
test eax, eax
jne 0x105f197
pop edi
pop esi
pop ebx
pop ebp
ret 8