joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428814
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
xor edi, edi
push edi
push edi
push 1
push edi
call ebx
mov dword [esp + 8], eax
mov dword [esi + 4], eax
cmp eax, edi
jne 0x42886c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.00440fc0
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
mov ecx, str.thread.entry_event
call fcn.00428458
pop ecx
push edi
push edi
push 1
push edi
call ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], eax
mov dword [esi + 8], eax
cmp dword [ebx + 8], edi
jne 0x4288b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.00440fc0
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
mov ecx, str.thread.exit_event
call fcn.00428458
pop ecx
lea eax, [esp + 0x14]
push eax
push edi
push esi
push 0x42894a
push edi
push edi
mov dword [esp + 0x2c], edi
call fcn.004459da
add esp, 0x18
mov dword [ebx + 4], eax
cmp eax, edi
jne 0x428926
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
cmp dword [esp + 8], edi
je 0x4288f7
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebx + 8]
cmp ebx, edi
je 0x428905
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.00440fc0
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
mov ecx, str.thread
call fcn.00428458
pop ecx
cmp dword [esp + 8], edi
je 0x428942
push 0xffffffffffffffff
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x429106
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
cmp dword [ebp + 8], 0xffffffff
push ebx
push esi
push edi
mov esi, eax
je 0x4291cb
cmp byte [ebp + 0x10], 0
je 0x42914f
mov edi, dword [ebp + 0xc]
test byte [edi], 8
je 0x42914f
xor eax, eax
mov word [ebp - 8], ax
mov word [ebp - 6], ax
call fcn.00440fc0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov eax, edi
call fcn.0042957e
pop ecx
pop ecx
mov edi, dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
call edi
push dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
call ebx
push eax
call fcn.0042fd7e
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x4291cb
call fcn.00440fc0
cmp dword [esi + 4], eax
jne 0x429184
cmp dword [esi], 0x2733
je 0x429196
call fcn.00440fc0
cmp dword [esi + 4], eax
jne 0x4291c5
cmp dword [esi], 0x4d5
jne 0x4291c5
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x8004667e
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 0xc]
and byte [eax], 0xfc
push 0
call edi
push dword [ebp + 8]
call ebx
push eax
call fcn.0042fd7e
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4291d7
xor edi, edi
call fcn.00440fc0
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4291df
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, eax
cmp ebx, 0xffffffff
jne 0x4291f5
mov edi, 0x2719
jmp 0x429216
xor edi, edi
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.WS2_32.dll_connect]
push eax
call fcn.0042fd7e
pop ecx
test eax, eax
jne 0x429220
call fcn.00440fc0
mov dword [esi + 4], eax
mov dword [esi], edi
mov edi, 0x2734
call fcn.00440fc0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
mov ecx, esi
mov dword [ebp - 0xc], edi
call fcn.004283ee
test al, al
je 0x429258
dec edi
call fcn.00440fc0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
mov ecx, esi
mov dword [ebp - 0xc], edi
call fcn.004283ee
test al, al
jne 0x429293
mov eax, esi
mov ecx, ebx
call fcn.00429746
test eax, eax
jl 0x429293
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push ebx
mov eax, esi
lea ecx, [ebp - 8]
mov dword [ebp - 8], 4
call fcn.004295e1
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x429293
call fcn.00440fc0
mov ecx, dword [ebp - 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
pop edi
pop esi
leave
ret
Function at 0x429652
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
mov edi, ecx
mov esi, eax
cmp edi, 0xffffffff
jne 0x42967b
mov edi, 0x2719
call fcn.00440fc0
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
jmp 0x4296c7
xor ebx, ebx
push ebx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
inc edi
push edi
call dword [sym.imp.WS2_32.dll_select]
push eax
call fcn.0042fd7e
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4296bb
jle 0x4296c5
call fcn.00440fc0
mov dword [esi + 4], eax
mov dword [esi], ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4296cc
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
mov edi, ecx
mov esi, eax
cmp edi, 0xffffffff
jne 0x4296f5
mov edi, 0x2719
call fcn.00440fc0
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
jmp 0x429741
xor ebx, ebx
push ebx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push ebx
inc edi
push edi
call dword [sym.imp.WS2_32.dll_select]
push eax
call fcn.0042fd7e
mov edi, eax
pop ecx
cmp edi, ebx
je 0x429735
jle 0x42973f
call fcn.00440fc0
mov dword [esi + 4], eax
mov dword [esi], ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x429746
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
push edi
mov edi, ecx
mov esi, eax
cmp edi, 0xffffffff
jne 0x42976e
mov edi, 0x2719
call fcn.00440fc0
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
jmp 0x4297c8
xor eax, eax
inc eax
push 0
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x108], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
inc edi
push edi
call dword [sym.imp.WS2_32.dll_select]
push eax
call fcn.0042fd7e
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jl 0x4297c5
xor edi, edi
call fcn.00440fc0
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x42e865
Capabilities:
Resolve dns

Disassembly:
push 0x64
mov eax, 0x45fd8c
call fcn.00446a83
mov edi, ecx
lea eax, [ebp - 0x70]
xor ebx, ebx
push eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call fcn.0042f2d4
mov esi, eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
call fcn.0042f2b9
mov byte [ebp - 4], 2
cmp dword [esi + 0x18], 0x10
jb 0x42e8ab
mov ecx, dword [esi + 4]
jmp 0x42e8ae
lea ecx, [esi + 4]
cmp dword [eax + 0x18], 0x10
jb 0x42e8b9
mov esi, dword [eax + 4]
jmp 0x42e8bc
lea esi, [eax + 4]
mov dword [ebp - 0x1c], ecx
cmp esi, ebx
je 0x42e8c7
cmp byte [esi], bl
jne 0x42e8c9
xor esi, esi
cmp ecx, ebx
je 0x42e8d1
cmp byte [ecx], bl
jne 0x42e8d4
mov dword [ebp - 0x1c], ebx
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov ecx, eax
lea esi, [ebp - 0x20]
call fcn.004297cc
mov ecx, dword [eax]
mov dword [edi], ecx
mov eax, dword [eax + 4]
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x54]
mov dword [edi + 4], eax
call fcn.00409216
push ebx
push esi
lea ecx, [ebp - 0x70]
call fcn.00409216
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 3
mov eax, dword [edi]
neg eax
sbb eax, eax
test eax, fcn.0040c60e
je 0x42e946
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], esi
jmp 0x42e990
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp + 0xc]
call fcn.0042f2d4
mov edi, eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 5
mov dword [ebp - 0x14], 2
call fcn.0042f2b9
push 6
pop edx
mov dword [ebp - 4], edx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], edx
push ecx
mov edx, edi
mov ecx, eax
call fcn.0042f2ef
pop ecx
pop ecx
mov dword [ebp - 0x14], 0xe
mov edx, eax
mov eax, dword [ebp + 8]
call fcn.0042d749
or dword [ebp - 0x14], 0x10
test byte [ebp - 0x14], 8
je 0x42e9b0
and dword [ebp - 0x14], 0xfffffff7
lea eax, [ebp - 0x34]
call fcn.004018de
test byte [ebp - 0x14], 4
je 0x42e9c4
and dword [ebp - 0x14], 0xfffffffb
push ebx
push esi
lea ecx, [ebp - 0x70]
call fcn.00409216
test byte [ebp - 0x14], 2
je 0x42e9d8
and dword [ebp - 0x14], 0xfffffffd
push ebx
push esi
lea ecx, [ebp - 0x54]
call fcn.00409216
mov dword [ebp - 4], 3
test byte [ebp - 0x14], 1
je 0x42e9f1
and dword [ebp - 0x14], 0xfffffffe
lea eax, [ebp - 0x28]
call fcn.004018de
cmp dword [ebp - 0x1c], ebx
je 0x42e9ff
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp + 8]
call fcn.00446b5b
ret 8
Function at 0x43a482
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x14
mov eax, 0x461bce
call fcn.00446ab6
mov esi, dword [ebp + 0x14]
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x43a4a2
mov eax, dword [edi]
jmp 0x43a4a4
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43a50c
cmp dword [esi + 0x18], 8
jb 0x43a4b9
mov eax, dword [edi]
jmp 0x43a4bb
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x43a50c
lea eax, [ebp - 0x14]
push eax
call fcn.0042575a
pop ecx
mov byte [ebp - 4], 1
cmp dword [esi + 0x18], 8
mov ebx, dword [eax]
jb 0x43a4e5
mov edi, dword [edi]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0xc]
push ebx
push edi
push str.Failed_to_delete_fileName__S_:__S
mov esi, eax
call fcn.00408d9c
add esp, 0xc
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040e25e
mov ebx, dword [ebp + 0x10]
cmp dword [ebx + 0x18], 8
lea esi, [ebx + 4]
jb 0x43a51c
mov eax, dword [esi]
jmp 0x43a51e
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43a586
cmp dword [ebx + 0x18], 8
jb 0x43a533
mov eax, dword [esi]
jmp 0x43a535
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x43a586
lea eax, [ebp - 0x18]
push eax
call fcn.0042575a
pop ecx
mov byte [ebp - 4], 2
cmp dword [ebx + 0x18], 8
mov edi, dword [eax]
jb 0x43a55f
mov esi, dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0xc]
push edi
push esi
push str.Failed_to_delete_path__S_:__S
mov esi, eax
call fcn.00408d9c
add esp, 0xc
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0040e25e
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ecx + 4], al
push 0
sete al
push 0
push str.SoftwareRowineRegETags
add eax, 0x80000001
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0042589a
mov eax, dword [ebp + 0xc]
add esp, 0x14
cmp dword [eax + 0x18], 8
jb 0x43a5ba
mov eax, dword [eax + 4]
jmp 0x43a5bd
add eax, 4
push 1
push 0x46a914
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040c6a4
lea esi, [ebp - 0x20]
call fcn.0040c7c7
call fcn.00446b5b
ret 0x10
Function at 0x43b437
Capabilities:
Allocate thread local storage

Disassembly:
push 0x5c
mov eax, 0x45c88e
call fcn.00446aec
xor ebx, ebx
mov dword [ebp - 0x68], 0xc15730e2
mov dword [ebp - 0x64], 0x7f0725e3
mov byte [ebp - 0x60], bl
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x58], bl
mov eax, dword [0x4905a8]
cmp eax, dword [ebp - 0x68]
je 0x43b585
mov edi, 0x4905a8
mov ecx, dword [ebp - 0x64]
mov edx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
cmp eax, ebx
je 0x43b4e8
cmp byte [ebp - 0x60], bl
jne 0x43b4ce
xor ecx, ecx
mov eax, 0x4905ac
inc ecx
lock xadd dword [eax], ecx
mov eax, dword [0x4905a8]
mov byte [ebp - 0x60], 1
cmp eax, dword [ebp - 0x68]
je 0x43b585
cmp dword [ebp - 0x5c], ebx
jne 0x43b4ce
cmp byte [ebp - 0x58], bl
jne 0x43b4b5
lea ebx, [ebp - 0x58]
call fcn.0043b3de
xor ebx, ebx
lea eax, [ebp - 0x58]
push eax
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
lea esi, [ebp - 0x5c]
call fcn.00411f45
jmp 0x43b4d9
push 0xffffffffffffffff
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x4905a8]
cmp eax, dword [ebp - 0x68]
jne 0x43b46f
jmp 0x43b585
cmp dword [ebp - 0x5c], ebx
jne 0x43b51a
cmp byte [ebp - 0x58], bl
jne 0x43b4fc
lea ebx, [ebp - 0x58]
call fcn.0043b3de
xor ebx, ebx
lea eax, [ebp - 0x58]
push eax
push ebx
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push eax
lea esi, [ebp - 0x5c]
call fcn.00411f45
cmp dword [ebp - 0x5c], ebx
je 0x43b523
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
call fcn.0043b7c0
cmp byte [ebp - 0x60], bl
jne 0x43b53d
xor ecx, ecx
mov eax, 0x4905ac
inc ecx
lock xadd dword [eax], ecx
mov byte [ebp - 0x60], 1
mov eax, dword [ebp - 0x68]
xchg dword [edi], eax
cmp dword [ebp - 0x5c], ebx
jne 0x43b57c
mov eax, dword [0x4905ac]
cmp eax, 1
jle 0x43b577
cmp byte [ebp - 0x58], bl
jne 0x43b560
lea ebx, [ebp - 0x58]
call fcn.0043b3de
xor ebx, ebx
lea eax, [ebp - 0x58]
push eax
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
lea esi, [ebp - 0x5c]
call fcn.00411f45
cmp dword [ebp - 0x5c], ebx
je 0x43b585
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [ebp - 0x5c]
call fcn.00411f62
call fcn.00446b6f
ret
Function at 0x43c099
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x20
mov eax, 0x46056b
call fcn.00446ab6
mov esi, dword [ebp + 8]
call fcn.00407ec0
xor edi, edi
push str.Failed_CryptAcquireContext
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.00407ed3
push 0xf0000000
push 1
push edi
push edi
lea ebx, [esi + 0x1c]
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, edi
jne 0x43c0e2
lea eax, [ebp - 0x2c]
call fcn.0042572c
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00409216
push str.Failed_CryptCreateHash
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00407ed3
lea eax, [esi + 0x20]
push eax
push edi
push edi
push 0x8003
mov byte [ebp - 4], 3
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp eax, edi
jne 0x43c121
lea eax, [ebp - 0x2c]
call fcn.0042572c
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00409216
mov eax, esi
call fcn.00446b5b
ret 4

Function at 0x43c16d
Capabilities:
Hash data via wincrypt

Disassembly:
push 0x428
mov eax, 0x461b73
call fcn.00446aec
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x418], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
mov ecx, dword [eax + 0x28]
neg ecx
sbb ecx, ecx
xor edi, edi
and ecx, 0xfffffffc
push edi
add ecx, 4
push eax
call fcn.0040176d
push edi
call fcn.00427482
push 0x400
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.00427625
mov ebx, dword [esi + 4]
push str.Failed_CryptHashData
lea ecx, [ebp - 0x434]
call fcn.00407ed3
push edi
push ebx
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0x418]
mov dword [ebp - 4], edi
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp eax, edi
jne 0x43c1f9
lea eax, [ebp - 0x434]
call fcn.0042572c
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x434]
call fcn.00409216
cmp dword [esi + 4], edi
jg 0x43c1aa
call fcn.00446b6f
ret 4

Function at 0x43c3c0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4861f4]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00446650
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43c413
cmp dword [ebp - 0x70], 2
jne 0x43c413
cmp dword [ebp - 0x7c], 6
jb 0x43c413
mov al, 1
jmp 0x43c415
xor al, al
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00442b5d
add ebp, 0x98
leave
ret
Function at 0x43cce5
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45f140
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4861f4]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x4861f4]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push edi
xor ebx, ebx
push ebx
push 0x100001
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x278], ebx
cmp eax, ebx
je 0x43cee4
lea eax, [esp + 0x5c]
push eax
push 0x43cc8c
mov dword [esp + 0x64], edi
mov byte [esp + 0x68], bl
call dword [sym.imp.USER32.dll_EnumWindows]
mov byte [esp + 0x17], bl
cmp byte [esp + 0x60], bl
je 0x43ceb1
mov edi, dword [esi + 8]
imul edi, edi, 0xa
mov byte [esi + 0x58], 1
mov dword [esp + 0x18], edi
cmp dword [esp + 0x18], 0
jle 0x43cdc5
push 0x64
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x43cd9f
mov byte [esp + 0x17], 1
dec dword [esp + 0x18]
mov eax, dword [esi + 0x10]
inc ebx
test eax, eax
je 0x43cdea
push edi
lea ecx, [esi + 0x18]
push ebx
and eax, 0xfffffffe
push ecx
call dword [eax + 4]
add esp, 0xc
test al, al
je 0x43ce01
cmp byte [esp + 0x17], 0
je 0x43cd80
cmp byte [esp + 0x17], 0
jne 0x43ceda
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x43ce19
lea esi, [esp + 0x34]
call fcn.0042838b
mov byte [esp + 0x278], 2
jmp 0x43cdfb
lea esi, [esp + 0x34]
call fcn.0042838b
mov byte [esp + 0x278], 1
push eax
call fcn.0043049d
push 7
lea esi, [esp + 0x28]
call fcn.00423735
push 0x47a708
mov eax, esi
push eax
call fcn.00446b8d
add esi, 0x40
and eax, 0xfffffffe
push esi
call dword [eax + 4]
pop ecx
push 8
mov esi, eax
call fcn.00442e93
pop ecx
mov dword [esp + 0x18], eax
mov byte [esp + 0x278], 3
test eax, eax
je 0x43ce4e
lea ecx, [esp + 0x62]
push ecx
push esi
push eax
call fcn.0043dcf5
mov esi, eax
jmp 0x43ce50
xor esi, esi
mov dword [esp + 0x20], esi
mov byte [esp + 0x278], 4
test esi, esi
je 0x43ce96
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 4]
test al, al
jne 0x43cf0a
push 0x3e8
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x43ce8f
mov byte [esp + 0x17], 1
cmp byte [esp + 0x17], 0
je 0x43ce60
mov byte [esp + 0x278], 0
test esi, esi
je 0x43ceaa
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
cmp byte [esp + 0x17], 0
jne 0x43ceda
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x43cece
cmp dword [esp + 0x18], 0x103
jne 0x43ceda
push 0
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00442b5d
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0x18], 1
je 0x43ce96
push 1
lea esi, [esp + 0x28]
call fcn.0042375d
push 0x47a6bc
mov eax, esi
jmp 0x43ce13
Function at 0x43cf28
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45fa8e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x185c
call fcn.00455b30
mov eax, dword [0x4861f4]
xor eax, esp
mov dword [esp + 0x1858], eax
push ebx
push esi
push edi
mov eax, dword [0x4861f4]
xor eax, esp
push eax
lea eax, [esp + 0x1870]
mov dword fs:[0], eax
lea eax, [esp + 0x38]
push eax
push 0x1000
lea eax, [esp + 0x4c]
mov edi, ecx
push eax
mov dword [esp + 0x38], edi
call sub.PSAPI.DLL_EnumProcesses
mov esi, dword [esp + 0x38]
push 4
shr esi, 2
call fcn.00442e93
pop ecx
xor ecx, ecx
cmp eax, ecx
je 0x43cfa4
lea edx, [esp + 0x14]
mov dword [eax], edx
jmp 0x43cfa6
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1878], 1
cmp esi, ecx
jbe 0x43d0df
lea ebx, [esp + 0x44]
mov dword [esp + 0x34], esi
mov edi, 0x400
push dword [ebx]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x30], eax
push edi
lea ecx, [esp + 0x1068]
push ecx
push eax
mov byte [esp + 0x1884], 2
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x43d0b5
xor eax, eax
mov word [esp + 0x1862], ax
lea eax, [esp + 0x1064]
push eax
lea eax, [esp + 0x104c]
call fcn.00407f7d
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x1878], 3
cmp dword [eax + 0x74], 8
mov ecx, dword [eax + 0x70]
jb 0x43d03c
mov eax, dword [eax + 0x60]
jmp 0x43d03f
add eax, 0x60
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x1050]
call fcn.00409402
cmp eax, 0xffffffff
je 0x43d0a5
mov edx, dword [esp + 0x20]
test edx, edx
jne 0x43d060
xor eax, eax
jmp 0x43d069
mov eax, dword [esp + 0x28]
sub eax, edx
sar eax, 2
mov ecx, dword [esp + 0x24]
mov esi, ecx
sub esi, edx
sar esi, 2
cmp esi, eax
jae 0x43d085
mov eax, dword [ebx]
mov dword [ecx], eax
add ecx, 4
mov dword [esp + 0x24], ecx
jmp 0x43d0a5
mov esi, ecx
cmp edx, ecx
jbe 0x43d090
call fcn.00443060
mov eax, dword [esp + 0x14]
push esi
push eax
push ebx
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x24]
call fcn.00433eaa
push 0
push 1
lea esi, [esp + 0x1050]
call fcn.004094ae
mov byte [esp + 0x1878], 1
cmp dword [esp + 0x30], 0
je 0x43d0ce
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 4
dec dword [esp + 0x34]
jne 0x43cfd6
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov byte [edi + 0x58], 0
cmp dword [esp + 0x20], ebx
jbe 0x43d0f2
call fcn.00443060
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0x24]
jbe 0x43d10f
call fcn.00443060
jmp 0x43d10f
push dword [esi]
mov ecx, edi
call fcn.0043cce5
add esi, 4
cmp esi, ebx
jne 0x43d103
cmp dword [esp + 0x20], 0
mov bl, byte [edi + 0x58]
je 0x43d127
push dword [esp + 0x20]
call fcn.00442b52
pop ecx
push dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.00442b52
pop ecx
mov al, bl
mov ecx, dword [esp + 0x1870]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1858]
xor ecx, esp
call fcn.00442b5d
mov esp, ebp
pop ebp
ret
Function at 0x43dae1
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov ebx, ecx
test edi, edi
je 0x43db42
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x43db42
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43db12
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
mov eax, ecx
jmp 0x43db44
push edi
call dword [sym.imp.SHLWAPI.dll_StrDupW]
push 0x5c
mov esi, eax
push 0
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x43db5d
xor ecx, ecx
mov word [eax], cx
push esi
mov ecx, ebx
call fcn.0043dae1
push esi
test eax, eax
jne 0x43db4a
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebx
ret 4
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x43db42
xor eax, eax
inc eax
jmp 0x43db44