joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102ff60
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 8
jge 0x102ff76
or eax, 0xffffffff
pop esi
pop ebp
ret 0x10
mov eax, esi
cdq
and edx, 3
add eax, edx
push ebx
sar eax, 2
xor ebx, ebx
xor ecx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jle 0x102ff9a
mov dl, byte [edi]
cmp dl, byte [ecx + edi]
jne 0x102ffc6
inc ecx
cmp ecx, eax
jl 0x102ff90
xor eax, eax
test esi, esi
jle 0x102ffad
mov cl, byte [edi]
cmp cl, byte [eax + edi]
je 0x102ffa8
inc ebx
inc eax
cmp eax, esi
jl 0x102ffa2
mov eax, esi
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cmp ebx, eax
jge 0x102ffc6
pop edi
pop ebx
or eax, 0xffffffff
pop esi
pop ebp
ret 0x10
test esi, esi
jle 0x1030001
mov dword [ebp + 0x10], esi
mov esi, dword [ebp + 0x14]
mov edx, dword [esi + 4]
movzx ebx, byte [edi]
mov eax, dword [esi]
mov ecx, edx
shr ecx, 0x18
shld edx, eax, 8
movzx ecx, cl
xor ecx, ebx
shl eax, 8
mov ebx, eax
mov eax, dword [ebp + 8]
xor ebx, dword [eax + ecx*8]
xor edx, dword [eax + ecx*8 + 4]
inc edi
sub dword [ebp + 0x10], 1
mov dword [esi], ebx
mov dword [esi + 4], edx
jne 0x102ffd0
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x1030010
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
xor eax, eax
xor edx, edx
test ecx, ecx
jle 0x1030055
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp + 0x10], ecx
lea esp, [esp]
movzx ebx, byte [esi]
mov ecx, edx
shr ecx, 0x18
shld edx, eax, 8
movzx ecx, cl
xor ecx, ebx
xor edx, dword [edi + ecx*8 + 4]
shl eax, 8
xor eax, dword [edi + ecx*8]
inc esi
sub dword [ebp + 0x10], 1
jne 0x1030030
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1030450
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov eax, 0xffff
test edx, edx
jbe 0x1030492
push esi
mov esi, dword [ebp + 8]
push edi
jmp 0x1030470
movzx edi, byte [ecx + esi]
xor edi, eax
shr ax, 8
and edi, 0xff
xor ax, word [edi*2 + 0x1186258]
inc ecx
movzx eax, ax
cmp ecx, edx
jb 0x1030470
pop edi
pop esi
pop ebp
ret 8

Function at 0x1032ff0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
movzx eax, word [ecx + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
lea eax, [eax + ecx + 0x18]
mov edi, eax
sub edi, edx
cmp edi, esi
jae 0x1033048
movzx ecx, word [ecx + 6]
lea edi, [ecx + ecx*4]
add edi, edi
add edi, edi
add edi, edi
sub edi, edx
add edi, eax
cmp edi, esi
jae 0x1033048
xor esi, esi
test ecx, ecx
jbe 0x1033048
mov edi, dword [ebp + 8]
nop
mov edx, dword [eax + 0xc]
cmp edi, edx
jb 0x1033040
mov ebx, dword [eax + 8]
add ebx, edx
cmp edi, ebx
jb 0x103304a
inc esi
add eax, 0x28
cmp esi, ecx
jb 0x1033030
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x1035970
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 0x1035aa9
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x1035aa9
push edi
mov edi, dword [ebp + 8]
movzx ecx, di
shr edi, 0x10
test ebx, ebx
jbe 0x1035a9b
nop
mov eax, ebx
cmp ebx, 0x15b0
jb 0x10359af
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
mov dword [ebp + 0x10], ebx
jl 0x1035a5e
mov edx, eax
shr edx, 4
mov ebx, edx
neg ebx
shl ebx, 4
add eax, ebx
jmp 0x10359d0
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 0x10359d0
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x1035a6f
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
sub eax, 1
jne 0x1035a62
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 0x10359a0
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 0x1035b20
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 0x1035b40
jb 0x1035b38
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x40
jae 0x1035b43
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 0x1035d00
mov eax, dword [ecx + 0x3c]
xor edx, edx
lea esi, [eax + 0xf8]
cmp edx, edi
ja 0x1035d00
jb 0x1035b72
cmp esi, ebx
ja 0x1035d00
movzx edx, word [eax + ecx + 4]
mov esi, 0x8664
cmp dx, si
je 0x1035b96
mov esi, 0x200
cmp dx, si
je 0x1035b96
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
jmp 0x1035b9f
mov edx, dword [ebp + 0x18]
mov dword [edx], 1
xor edx, edx
lea esi, [eax + 0xf8]
cmp edx, edi
ja 0x1035c9e
jb 0x1035bb9
cmp esi, ebx
ja 0x1035c9e
cmp dword [eax + ecx], 0x4550
jne 0x1035c9e
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 0x1035bea
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 0x1035c92
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 0x1035c92
jb 0x1035c22
cmp edi, dword [ebp + 0xc]
ja 0x1035c92
test byte [eax + 0x14], 0x20
je 0x1035c30
cmp dword [eax], 0x100
jae 0x1035c43
add eax, 0x28
test edx, edx
ja 0x1035c10
pop esi
pop edi
mov eax, 1
pop ebx
pop ebp
ret 0x14
test dword [eax + 0x14], 0x80000000
jne 0x1035c92
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [eax]
cmp ecx, 0x1000
jb 0x1035c61
mov ecx, 0x1000
mov dword [esi + 8], ecx
cmp dword [eax], 0x1200
jb 0x1035c87
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 0x1035cc1
mov eax, ecx
mov ecx, eax
sub ecx, esi
cmp ecx, 0x200
jb 0x1035d00
mov esi, 0x1000
cmp ecx, 0x1000
ja 0x1035cdc
mov esi, ecx
cmp ecx, 0x1200
mov ecx, dword [edx + 4]
mov dword [edx + 8], esi
jbe 0x1035cec
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 0x103e820
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 0x103e843
xor byte [ebp + 8], 0xac
lea eax, [ebp - 0xc]
push eax
push 4
lea ecx, [ebp + 8]
push ecx
call fcn.0102b680
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 0x103e890
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.0102b3b0
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 0x103e8c5
mov eax, dword [ebp + 8]
xor eax, 0x2d871bcc
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2804
call fcn.0117ec90
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 0x103f4e5
lea eax, [ebp - 0x2804]
lea esp, [esp]
test esi, esi
jne 0x103f4df
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 0x103f4b0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x103f5f0
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 0x103f69b
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x819c], 5
jne 0x103f69b
cmp dword [ecx + 0x81a0], 2
jne 0x103f69b
cmp word [ecx + 0x822c], 1
jae 0x103f69b
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1045130
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 0x1045265
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 0x1045198
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 0x10451f7
movzx edx, byte [edi]
push edx
call dword [sym.imp.msvcrt.dll_isalpha]
add esp, 4
push edi
test eax, eax
je 0x10451ee
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x10451e2
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 0x10451f7
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1045260
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 0x1045260
push 0x10
lea edx, [ebp - 0x14]
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x104524b
mov edi, dword [ebp + 0xc]
push 0
push edi
call fcn.0102a9a0
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, 1
cmp eax, 0xffffffff
jne 0x104524e
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 0x1046cb0
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 0x1046d09
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
push 0
push esi
push fcn.01046c40
push 0
push 0
mov dword [esi], edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
jne 0x1046cff
push esi
call fcn.01046c40
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 0x1049f90
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x1049fa0
xor eax, eax
jmp 0x1049fbd
cmp word [ecx], 0
mov eax, ecx
je 0x1049fb9
jmp 0x1049fb0
add eax, 2
cmp word [eax], 0
jne 0x1049fb0
sub eax, ecx
sar eax, 1
push esi
push eax
push ecx
call fcn.0102c110
mov esi, eax
test esi, esi
je 0x1049ff3
push 0x5c
push esi
call fcn.0102bfe0
test eax, eax
je 0x1049fe3
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 0x104f330
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 0x104f451
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 0x104f451
cmp dword [ebp - 4], 0x40
jne 0x104f451
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 0x104f451
cmp dword [ebp - 4], 0xf8
jne 0x104f451
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.0104f240
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 0x104f540
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 0x104f5e5
mov eax, 0x5a4d
cmp word [ebp - 0x40], ax
jne 0x104f5e5
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 0x104f5e5
cmp dword [ebp - 0x138], 0x4550
jne 0x104f5e5
test dword [ebp - 0x122], 0x2000
jne 0x104f5e5
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 0x1050c90
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.010503e0
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 0x1050d6b
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 0x1050b80
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 0x1050d59
cmp edi, 0xffffffff
je 0x1050d59
mov esi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push 0xc8
push edi
call esi
cmp eax, 0x102
jne 0x1050d49
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
je 0x1050d49
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 0x1057080
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 0x1057227
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.0117ebb0
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.0117ebb0
mov ebx, dword [ebp + 8]
lea esi, [eax + edi]
mov eax, dword [ebx]
cmp dword [eax + 0x8270], 0
mov dword [ebp - 0x2c], edx
jne 0x1057109
push eax
call fcn.0102a000
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.0117ebb0
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.0117ebb0
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 0x1057177
cmp esi, eax
jb 0x1057177
sub esi, eax
add dword [edi + 0x1e978], esi
mov eax, dword [ebx]
mov edi, dword [eax + 0x1e97c]
cmp edi, edx
je 0x105718f
cmp ecx, edi
jb 0x105718f
sub ecx, edi
add dword [eax + 0x1e97c], ecx
mov eax, dword [ebx]
cmp dword [eax + 0x1e974], edx
je 0x1057224
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 0x1057224
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x1e974]
cmp dword [eax + 0xc], 0
ja 0x1057224
jb 0x10571e4
cmp dword [eax + 8], 0x7080
jae 0x1057224
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 0x1057207
mov edx, 0xe10
jmp 0x1057215
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 0x1057870
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 0x1057982
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 0x100ef7c
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x1057978
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 0x105790c
test ecx, ecx
je 0x105790c
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 0x1057930
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
sub edx, ecx
cmp ecx, eax
push 1
jge 0x105794a
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.010577e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1057f80
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 0x1057ff5
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 0x1057ff3
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1057fd3
mov ecx, dword [eax + 0x1c]
push 0x1ff
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test edi, edi
je 0x1057fe7
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