joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ed90
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x41edd2
mov al, byte [esp]
test al, 1
je 0x41edb1
mov eax, 1
pop ecx
ret
test al, 2
je 0x41edbc
mov eax, 2
pop ecx
ret
test al, 4
je 0x41edc7
mov eax, 4
pop ecx
ret
test al, 8
je 0x41edd2
mov eax, 8
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x41f237
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a68b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [esp + 0xc], esi
lea edi, [esi + 0x10]
push ebx
mov ecx, edi
call fcn.004269ea
mov dword [edi], 0x42fd50
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [esp + 0x20]
mov ecx, esi
push eax
mov dword [esp + 0x1c], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x34], ebx
call fcn.0041f4a0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x41f500
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0
push esi
push 0x41f530
push 0
push 0
mov byte [esi + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 0x34], eax
test eax, eax
setne cl
mov al, cl
pop esi
pop ecx
ret

Function at 0x41ff00
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.0041e030
test al, al
je 0x41ffa3
mov esi, dword [esp + 0x18]
test esi, esi
jg 0x41ff24
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x10
mov edi, dword [esp + 0x14]
test edi, edi
je 0x41ffa3
mov eax, dword [esp + 0x20]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x20], eax
xor ebx, ebx
mov al, byte [esp + 0x1c]
push 0
test al, al
push esi
push edi
je 0x41ff56
mov eax, dword [ebp + 0x10]
push eax
call sub.WSOCK32.dll_recv
jmp 0x41ff5f
mov ecx, dword [ebp + 0x10]
push ecx
call sub.WSOCK32.dll_send
test eax, eax
je 0x41ffa3
jge 0x41ff90
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
mov dword [ebp + 0xc], eax
je 0x41ff7b
cmp eax, 0x2714
jne 0x41ffa3
mov eax, dword [esp + 0x20]
mov edx, ebx
inc ebx
cmp edx, eax
jge 0x41ffa3
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41ff3f
sub esi, eax
xor ebx, ebx
add edi, eax
test esi, esi
jg 0x41ff3f
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x10
Function at 0x420020
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
push ebx
mov ebx, dword [ecx + 4]
push ebp
mov ebp, dword [eax + 8]
test ebp, ebp
push esi
jle 0x420150
test ebx, ebx
je 0x420150
mov esi, dword [esp + 0x118]
push edi
test esi, esi
je 0x4200a2
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
call fcn.0041e110
mov cl, byte [edi + esi - 1]
add esp, 4
cmp cl, 0x5c
je 0x42008b
cmp cl, 0x2f
je 0x42008b
push eax
push esi
lea ecx, [esp + 0x18]
push 0x438ccc
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x4200bf
push eax
push esi
lea edx, [esp + 0x18]
push 0x438898
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x4200bf
push ebx
call fcn.0041e110
add esp, 4
push eax
lea eax, [esp + 0x14]
push 0x439860
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov edx, dword [esp + 0x120]
test edx, edx
je 0x4200f6
mov ecx, 0x42
mov esi, ebx
mov edi, edx
xor eax, eax
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push 0x43ac9c
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov esi, eax
test esi, esi
pop edi
je 0x420150
add ebp, 0xfffffef8
push esi
push ebp
lea edx, [ebx + 0x108]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebx + 0x104]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.0041e160
add esp, 0x1c
mov al, 1
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 0xc
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x104
ret 0xc
Function at 0x420400
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
push edi
mov esi, ecx
push 0
call fcn.0041feb0
test al, al
jne 0x42041a
pop edi
pop esi
add esp, 0x10
ret 0x14
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 8], eax
push ecx
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call sub.WSOCK32.dll_htons
mov edi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push edi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x42046a
push edi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x420491
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
mov eax, dword [esi + 0x10]
lea edx, [esp + 8]
push 0x10
push edx
push eax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x4204a2
call sub.WSOCK32.dll_WSAGetLastError
mov dword [esi + 0xc], eax
pop edi
xor al, al
pop esi
add esp, 0x10
ret 0x14
mov dword [esi + 0xc], 0x2726
pop edi
xor al, al
pop esi
add esp, 0x10
ret 0x14
push 0
mov ecx, esi
call fcn.0041e0d0
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0041ffd0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x20], eax
mov al, byte [esp + 0x2c]
test al, al
mov dword [esi + 0x24], edx
mov byte [esi + 0x83], 1
mov byte [esi + 0x81], al
je 0x4204f5
lea edi, [esi + 0xb4]
push 0
push 1
push 1
mov ecx, edi
call fcn.0041f680
push esi
mov ecx, edi
call fcn.0041f750
pop edi
mov al, 1
pop esi
add esp, 0x10
ret 0x14
Function at 0x423380
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x42338b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x42348e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x431a28]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x431a28]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x431a28]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x431a28]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x431a28]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x431a28]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x431a28]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x431a28]
xor eax, edx
inc ecx
dec edi
jne 0x4233a6
pop edi
test esi, esi
je 0x4234b0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x431a28]
xor eax, edx
inc ecx
dec esi
jne 0x423492
pop esi
pop ebx
not eax
ret

Function at 0x423e50
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x423e91
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x423e86
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x423ea4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x424e20
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x424ed8
cmp dword [ebp + 4], 0xffffffff
jne 0x424ed8
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x43abec
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x424e9d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x424e9d
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.00423be0
add esp, 0x10
test eax, eax
jne 0x424ec0
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.00424120
add esp, 4
mov dword [ebp], eax
mov eax, dword [0x43ce94]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x425330
Capabilities:
Create directory

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
test ebx, ebx
je 0x4253f8
mov al, byte [ebx]
test al, al
je 0x4253f8
push esi
push edi
mov esi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x42535e
cmp al, 0x5c
jne 0x425360
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x425356
mov edi, dword [esp + 0x218]
cmp esi, ebx
je 0x425395
sub esi, ebx
lea eax, [esp + 0xc]
push esi
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.00425330
add esp, 0x14
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x401480
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [0x429740]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
mov ecx, 0xe
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
lea edi, [ebp - 0x468]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x854]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x468]
push edx
push 0x80000002
mov dword [ebp - 0x85c], eax
movsw word es:[edi], word [esi]
mov byte [ebp - 0x68], 0
mov dword [ebp - 0x860], 0x64
call ebx
test eax, eax
je 0x4014fa
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004119de
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x854]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x860]
push eax
lea ecx, [ebp - 0x68]
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x854]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4014e7
lea edi, [ebp - 0x468]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401536
mov cx, word [0x422390]
lea eax, [ebp - 0x68]
mov word [edi], cx
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401550
lea edi, [ebp - 0x468]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401560
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x858]
push edx
push 0x20019
mov ecx, eax
push 0
lea eax, [ebp - 0x468]
push eax
and ecx, 3
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call ebx
test eax, eax
jne 0x4014e7
lea ecx, [ebp - 0x864]
push ecx
mov ecx, dword [ebp - 0x858]
lea edx, [ebp - 0x850]
push edx
lea eax, [ebp - 0x868]
push eax
push 0
push str.ServiceName
push ecx
mov dword [ebp - 0x864], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x85c]
mov esi, eax
lea eax, [ebp - 0x850]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4015e1
mov edx, dword [ebp - 0x858]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.004119de
mov esp, ebp
pop ebp
ret
Function at 0x401610
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x401694
mov ecx, dword [ebp - 4]
push ecx
call fcn.00411a27
add esp, 4
lea edx, [ebp - 4]
mov ebx, eax
push edx
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
mov esi, eax
cmp esi, edi
jne 0x401680
cmp ebx, edi
je 0x40168d
mov edi, dword [ebp + 8]
mov esi, ebx
mov ecx, edi
lea eax, [esi + 8]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40169d
test dl, dl
je 0x40167c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40169d
add eax, 2
add ecx, 2
test dl, dl
jne 0x401660
xor eax, eax
jmp 0x4016a2
cmp ebx, edi
je 0x40168d
push ebx
call fcn.004119ed
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4016c1
mov esi, dword [esi]
test esi, esi
jne 0x401657
mov edi, dword [ebp - 8]
push ebx
call fcn.004119ed
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x194]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [esi + 0x198]
push ebx
mov edi, 1
mov dword [eax + 4], edx
call fcn.004119ed
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4037f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420ecb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x429740]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00410a5e
push 4
mov dword [ebp - 4], 0
call fcn.00411e1c
mov edi, eax
add esp, 4
test edi, edi
je 0x403870
call fcn.004105b5
mov dword [edi], eax
call fcn.00410374
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004102a9
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403866
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004102d1
jmp 0x403872
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4070e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421158
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x429740]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x407201
cmp byte [edi + 0x49], bl
je 0x407201
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4071f5
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x407155
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40716d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x407196
dec eax
je 0x40719a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4071f0
jmp 0x4071fc
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4071aa
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4071d3
cmp ebx, 0x10
jae 0x4071b9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00412a12
add esp, 0x10
cmp esi, eax
jne 0x4071ed
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4071f9
test esi, esi
jne 0x407161
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004061f0
jmp 0x40715b
lea ecx, [ebp - 0x2c]
call fcn.004035f0
xor al, al
jmp 0x407203
lea ecx, [ebp - 0x2c]
call fcn.004035f0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004119de
mov esp, ebp
pop ebp
ret
Function at 0x40e330
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42194b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x429740]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x10]
xor ebx, ebx
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov byte [eax + 0x1c], bl
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], ebx
mov byte [eax + 0x28], bl
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x30], ebx
mov byte [eax + 0x34], bl
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
push ecx
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esi + 4]
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
mov dword [ebp - 4], ebx
call fcn.0040dd20
add esp, 0x18
test al, al
mov eax, esi
jne 0x40e3c3
mov dword [esi + 8], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4119de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429740]
jne 0x4119e8
repz ret
jmp fcn.0041792c

Function at 0x41e64c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x429740]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004173d5
and dword [ebp - 0x14], 0
cmp dword [0x42b500], 0
mov dword [ebp - 0x18], eax
jne 0x41e6ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41e7a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41e7a7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42b500], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42b504], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42b508], eax
call edi
push eax
call esi
mov dword [0x42b510], eax
test eax, eax
je 0x41e6ff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42b50c], eax
mov eax, dword [0x42b50c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41e758
cmp dword [0x42b510], ecx
je 0x41e758
push eax
call esi
push dword [0x42b510]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41e758
test ebx, ebx
je 0x41e758
call edi
test eax, eax
je 0x41e74f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41e74f
test byte [ebp - 8], 1
jne 0x41e758
or dword [ebp + 0x10], 0x200000
jmp 0x41e78b
mov eax, dword [0x42b504]
cmp eax, dword [ebp - 0x18]
je 0x41e78b
push eax
call esi
test eax, eax
je 0x41e78b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41e78b
mov eax, dword [0x42b508]
cmp eax, dword [ebp - 0x18]
je 0x41e78b
push eax
call esi
test eax, eax
je 0x41e78b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42b500]
call esi
test eax, eax
je 0x41e7a7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41e7a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004119de
leave
ret
Function at 0x403580
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
push esi
push edi
mov edi, ecx
push 0
mov esi, 1
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
push 0x433948
push esi
push 0
push 0x433938
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40368e
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x21c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x228]
push 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
test eax, eax
jl 0x40368e
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0x433958
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x403663
mov ecx, dword [esp + 0x220]
lea eax, [esp + 0x10]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push esi
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
test eax, eax
jge 0x40363c
push 0x2ff0
mov ecx, edi
call fcn.00406500
xor esi, esi
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop edi
pop esi
add esp, 0x210
ret 0x10
push 0x2ff0
mov ecx, edi
call fcn.00406500
mov eax, dword [esp + 8]
xor esi, esi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop edi
pop esi
add esp, 0x210
ret 0x10
push 0x2ff0
mov ecx, edi
call fcn.00406500
xor esi, esi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop edi
pop esi
add esp, 0x210
ret 0x10