joyce8/EMBER2024-capa huggingface dataset:
Function at 0x121557d0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x121557ec
xor eax, eax
pop edi
add esp, 8
ret 4
push ebx
push ebp
push esi
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, dword [edi]
mov ebx, dword [edi + 8]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 4]
mov edi, dword [edi + 0xc]
push 8
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xa
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ebp, ebp
jge 0x12155838
xor ebp, ebp
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jge 0x12155848
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x14]
cmp ebx, ecx
jle 0x12155852
mov ebx, ecx
cmp edi, eax
jle 0x12155858
mov edi, eax
mov edx, dword [esp + 0x1c]
sub ebx, ebp
sub edi, edx
push edi
push ebx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x1c]
push 0xcc0020
push edx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
push ebx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push edi
call esi
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 4
Function at 0x1215c320
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x12251854]
xor edx, edx
cmp eax, edx
jne 0x1215c346
xor eax, eax
mov byte [eax + 0x12251754], al
inc eax
cmp eax, 0x100
jl 0x1215c32e
mov dword [0x12251854], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x12251754
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x1215c3d7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x1215c3aa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x1215c378
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x1215c450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x1215c4a3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x1215c48a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x12162e40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x121919ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.12163760
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x121f2d8c
call fcn.12182503
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x12162ed3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.12182503
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x12162ecc
push 0
mov ecx, eax
call fcn.12159f50
mov dword [esi + 0xc], eax
jmp 0x12162ed5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x12162ed5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x12184b90
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x12184bc8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.12182c1d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.12182bf5
jmp 0x12184bd4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1218627e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x121862c0
call fcn.1218bd7d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x121862c0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x121862b7
xor eax, eax
jmp 0x121862c8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.121862ce
pop edi
pop esi
pop ebx
ret 4

Function at 0x1218c2ad
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x1218c2db
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1218c2f9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.1218c213
jmp 0x1218c2f9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1218c2f9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.1218c213
test edi, edi
mov eax, edi
jne 0x1218c2e3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x43b654
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
or ebx, edi
call fcn.0043b68e
sub edi, 0xb54221e2
mov ebx, 0xd8a9638
and edi, edi
xor dword [ecx], eax
or edi, ebx
inc ecx
mov edi, 0x46be7b18
dec edi
sub ebx, 0xa2ecc2c1
cmp ecx, edx
jne fcn.0043b654
sub ebx, 0x6660132a
ret
Function at 0x403e89
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
call fcn.0041a560
push dword [esp + 0x10]
call fcn.004082a0
mov dword [esp], 0
push edx
call fcn.0041a3f0
pop edx
push eax
push edx
call fcn.0041a3f0
pop edx
push eax
push 0x10e
call fcn.00418c80
lea eax, [esp + 8]
push eax
call fcn.0041a490
lea eax, [esp]
push eax
push dword [esp + 0x10]
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
mov eax, dword [esp + 4]
push eax
push dword [esp + 4]
call sub.SHELL32.dll_SHGetPathFromIDListW
push edx
call fcn.0041a3f0
pop edx
push eax
push edx
call fcn.0041a3f0
pop edx
push eax
push dword [esp + 0xc]
call fcn.004189f0
pop eax
push eax
call fcn.00408270
pop edx
add eax, edx
jmp 0x403f15
push dword [esp + 4]
call fcn.0041a620
add esp, 8
ret 4

Function at 0x404ef5
Capabilities:
Get storage device properties

Disassembly:
push ebp
push ebx
mov edx, 0x112
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x404efc
call fcn.0041a560
push dword [esp + 0x458]
call fcn.004082a0
mov edx, dword [esp + 0x454]
lea ecx, [esp]
call fcn.00408000
push edx
call fcn.0041a3f0
pop edx
push eax
push edx
call fcn.0041a3f0
pop edx
push eax
push 1
push 1
push dword [esp + 0x10]
call fcn.00418840
lea eax, [esp + 4]
push eax
call fcn.0041a490
push edx
call fcn.0041a3f0
pop edx
push eax
mov edx, 0x47f136
push edx
call fcn.0041a430
mov edx, dword [esp + 4]
push edx
call fcn.0041a430
mov edx, 0x47d242
push edx
call fcn.0041a430
lea eax, [esp + 8]
push eax
call fcn.0041a490
push 0
push 0
push 3
push 0
push 3
push 0
push dword [esp + 0x1c]
call sub.KERNEL32.dll_CreateFileW
mov dword [esp + 0x43c], eax
mov ebx, dword [esp + 0x43c]
cmp ebx, 0xffffffff
je 0x405090
push 0
lea eax, [esp + 0x448]
push eax
push 0x423
lea eax, [esp + 0x24]
push eax
push 0xc
lea eax, [esp + 0x20]
push eax
push 0x2d1400
push dword [esp + 0x458]
call sub.KERNEL32.dll_DeviceIoControl
mov dword [esp + 0x440], eax
cmp dword [esp + 0x440], 0
je 0x405068
lea ebp, [esp + 0x18]
mov ebx, dword [ebp + 0x18]
and ebx, ebx
jle 0x405068
push edx
call fcn.0041a3f0
pop edx
push eax
push edx
call fcn.0041a3f0
pop edx
push eax
push edx
call fcn.0041a3f0
pop edx
push eax
push edx
call fcn.0041a3f0
pop edx
push eax
push 0x18
push 0xffffffff
lea eax, [esp + 0x30]
mov ebx, eax
lea ebp, [esp + 0x30]
add ebx, dword [ebp + 0x18]
push ebx
call fcn.00419520
call fcn.00408282
add dword [esp], edx
call fcn.004189f0
lea eax, [esp + 0xc]
push eax
call fcn.0041a490
push 0
push 0xc
lea eax, [esp + 0x14]
push eax
call fcn.00419640
push 0
push 0x423
lea eax, [esp + 0x20]
push eax
call fcn.00419640
push dword [esp + 0x43c]
call sub.KERNEL32.dll_CloseHandle
push dword [esp + 8]
call fcn.004186b0
mov ebx, eax
cmp ebx, 3
jge 0x4050c7
push edx
call fcn.0041a3f0
pop edx
push eax
push dword [esp + 4]
call fcn.004025b0
lea eax, [esp + 0xc]
push eax
call fcn.0041a490
mov edx, dword [esp + 8]
push edx
call fcn.0041a3f0
pop edx
push eax
push edx
call fcn.0041a430
pop eax
push eax
call fcn.00408270
pop edx
add eax, edx
jmp 0x4050ef
push dword [esp + 4]
call fcn.0041a620
push dword [esp]
call fcn.0041a620
push dword [esp + 8]
call fcn.0041a620
add esp, 0x448
pop ebx
pop ebp
ret 4
Function at 0x409c4e
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x409ca3
push dword [esp + 0x10]
push 0x409bcd
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x1703ddc]
test esi, esi
je 0x409cfc
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x409c9b
cmp byte [esi + 0x10], 0
je 0x409c9b
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x409c77
jmp 0x409cfc
mov esi, dword [0x1703ddc]
test esi, esi
je 0x409cfc
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x409cf5
cmp byte [esi + 0x11], 0
je 0x409cd1
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x409ce8
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x1703ddc
call fcn.0041a2fa
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x409cb0
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40a4a6
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, eax
cmp dword [esp + 0x24], 0x18
je 0x40a555
cmp dword [esp + 0x24], 2
je 0x40a555
push 0x2000
push edi
push dword [0x1703b4c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x40a528
cmp dword [esp + 0x18], 2
jne 0x40a540
test ebx, ebx
jne 0x40a511
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x1703b4c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x40a540
cmp ax, 0xd
je 0x40a528
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x40a4e8
push dword [esp + 0x28]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.00464a50
jmp 0x40a5db
push eax
push 0
push dword [0x1703b4c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x40a5a7
cmp dword [esp + 0x18], 1
jne 0x40a5bf
test ebx, ebx
jne 0x40a596
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x1703b4c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x40a5bf
cmp al, 0xd
je 0x40a5a7
mov byte [esi + edi], al
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x40a56e
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x28]
mov byte [esi + edi], 0
push esi
jne 0x40a5d6
call fcn.00464aa0
jmp 0x40a5db
call fcn.00464c50
push esi
push 0
push dword [0x1703b4c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x40b310
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x1703de8], 0
jne 0x40b31e
call fcn.0040b290
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x1703dec]
call esi
test eax, eax
jne 0x40b341
call fcn.0040b290
push dword [0x1703dec]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x40b350
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x40b3b0
mov ebx, 0x10
test edi, edi
jns 0x40b3b9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x40b382
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40b3d0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x1703de8], 0
jne 0x40b3de
call fcn.0040b290
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x1703dec]
call esi
mov edx, eax
test edx, edx
jne 0x40b405
call fcn.0040b290
push dword [0x1703dec]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x40b438
mov ebx, 0x10
test esi, esi
jns 0x40b441
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x40b450
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40bb7c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40bc2a
cmp dword [ebp + 0xc], edi
je 0x40bc2a
push esi
push 0x60
push 8
push dword [0x1703b4c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0x14]
mov dword [esi + 0xc], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0x40], eax
add esp, 0xc
mov eax, dword [0x1701264]
mov dword [esi + 0x28], eax
mov eax, dword [0x1703f1c]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
test al, 1
je 0x40bc19
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x40bdac
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40bc11
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x40bc29
push esi
call fcn.0040c255
jmp 0x40bc28
push esi
call fcn.0040bc43
push esi
mov edi, eax
call fcn.0040c255
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0x10

Function at 0x40bc43
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov ebp, dword [edi + 0xc]
push dword [edi + 8]
mov dword [esp + 0x18], ebp
call fcn.00464b20
push dword [edi + 0x40]
mov dword [esp + 0x20], eax
call fcn.00464b20
mov dword [esp + 0x10], eax
call fcn.0042f470
mov esi, eax
test esi, esi
je 0x40bd82
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40bd6d
test byte [edi + 0x24], 2
mov dword [edi + 0x10], ebp
jne 0x40bcb5
push 1
push 0x34
push esi
call fcn.004323c0
add esp, 0xc
mov eax, dword [0x1703f10]
test eax, eax
je 0x40bccd
push eax
push 0x2714
push esi
call fcn.004323c0
add esp, 0xc
mov eax, dword [0x1703f14]
test eax, eax
je 0x40bcfe
cmp dword [0x1703f18], ebx
je 0x40bcfe
push eax
push 0x27bf
push esi
call fcn.004323c0
push dword [0x1703f18]
push 0x27c0
push esi
call fcn.004323c0
add esp, 0x18
push dword [esp + 0x1c]
push 0x2712
push esi
call fcn.004323c0
push dword [esp + 0x1c]
push 0x2722
push esi
call fcn.004323c0
push 0x40bdbb
push 0x4e2b
push esi
call fcn.004323c0
push edi
push 0x2711
push esi
call fcn.004323c0
push 1
push 0x63
push esi
call fcn.004323c0
push esi
call fcn.0042f510
add esp, 0x40
test eax, eax
jne 0x40bd58
cmp dword [edi + 4], 0xfffffffb
je 0x40bd58
xor ebx, ebx
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x40bd6d
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.0042f450
pop ecx
cmp ebx, 1
jne 0x40bd82
mov dword [edi + 4], 0xfffffffe
jmp 0x40bd91
xor ecx, ecx
cmp dword [edi + 4], 0xfffffffb
setne cl
add ecx, 0xfffffffc
mov dword [edi + 4], ecx
push dword [esp + 0x1c]
call fcn.00464b10
push dword [esp + 0x10]
call fcn.00464b10
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret
Function at 0x40bf9f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40c049
push ebx
push esi
push 0x60
push 8
push dword [0x1703b4c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
xor ebx, ebx
inc ebx
or dword [esi + 4], 0xffffffff
mov dword [esi], ebx
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0x10]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x40], eax
mov dword [esi + 0x24], ecx
mov eax, dword [0x1701264]
mov dword [esi + 0x28], eax
mov eax, dword [0x1703f1c]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x58], ebx
test bl, cl
je 0x40c037
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x40c1c0
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40c024
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40c027
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40c02f
mov edi, esi
jmp 0x40c047
push esi
call fcn.0040c255
jmp 0x40c046
push esi
call fcn.0040c05e
push esi
mov edi, eax
call fcn.0040c255
pop ecx
pop ecx
pop esi
pop ebx
mov eax, edi
pop edi
pop ebp
ret 0xc

Function at 0x40c397
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x40c2e6
push 0x10
push 0x2c
call fcn.00419c9e
push 0
push 0
push 8
mov dword [0x1703f28], eax
call fcn.00419ac5
cmp word [0x1703f20], 0
mov dword [0x1704ca8], eax
jne 0x40c47c
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x40c3ef
mov word [0x1703f20], di
jmp 0x40c3f7
xor eax, eax
mov word [0x1703f20], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1703f3c], eax
test eax, eax
je 0x40c47b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x1703f3c]
mov dword [0x1703f2c], eax
call esi
push str.getnameinfo
push dword [0x1703f3c]
mov dword [0x1703f30], eax
call esi
push str.WSAStringToAddressA
push dword [0x1703f3c]
mov dword [0x1703f34], eax
call esi
cmp dword [0x1703f2c], 0
mov dword [0x1703f38], eax
pop esi
je 0x40c47b
cmp dword [0x1703f30], 0
je 0x40c47b
cmp dword [0x1703f34], 0
je 0x40c47b
test eax, eax
je 0x40c47b
mov dword [0x1703f24], edi
pop edi
add esp, 0x190
ret
Function at 0x40da46
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x1704cd0]
call fcn.00419bcb
mov ebx, eax
test ebx, ebx
je 0x40daaa
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x40da6f
push dword [esp + 0xc]
push ebx
call eax
jmp 0x40daaa
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.0041a7e0
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.0041a8f0
pop edi
pop esi
pop ebx
ret 8

Function at 0x40e711
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40e887
mov eax, dword [esp + 0x24]
dec eax
je 0x40e86a
dec eax
jne 0x40e887
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0040e6ca
pop ecx
test eax, eax
je 0x40e7c8
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x40e78b
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x40e866
dec ebx
je 0x40e862
dec ebx
je 0x40e841
dec ebx
je 0x40e7fb
sub ebx, 4
jne 0x40e887
test edi, edi
jne 0x40e887
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x40e887
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x40e78b
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x40e786
sub edi, 0
je 0x40e833
dec edi
je 0x40e825
dec edi
je 0x40e817
dec edi
jne 0x40e887
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x40e887
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x40e887
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x40e887
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x40e887
sub edi, 0
je 0x40e85e
dec edi
je 0x40e85a
dec edi
jne 0x40e887
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x40e887
push 0x3c
jmp 0x40e886
push 0x32
jmp 0x40e886
push 0x14
jmp 0x40e886
push 5
jmp 0x40e886
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40e884
cmp eax, 0xa
je 0x40e880
cmp eax, 0x5a
jne 0x40e887
push 0x28
jmp 0x40e886
push 0x1e
jmp 0x40e886
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret