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

Disassembly:
mov eax, 0x14
call fcn.10032080
push esi
push edi
lea eax, [esp + 0xc]
xor edi, edi
push eax
lea eax, [esp + 0xc]
xor esi, esi
push eax
push edi
call fcn.10150ba0
add esp, 0xc
test eax, eax
je 0x10168c1b
nop dword [eax + eax]
mov ecx, dword [esp + 8]
lea eax, [esi + 1]
shl ecx, 0xa
inc edi
and ecx, dword [esp + 0x20]
cmove eax, esi
mov esi, eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
push edi
call fcn.10150ba0
add esp, 0xc
test eax, eax
jne 0x10168a30
test esi, esi
je 0x10168c1b
mov eax, dword [esp + 0x50]
cdq
idiv esi
mov edi, dword [esp + 0x5c]
cmp esi, 1
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
mov esi, 0
cmovne esi, dword [esp + 0x58]
push edi
push 0
push ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
call fcn.10056120
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], 0
push eax
lea eax, [esp + 0x20]
push eax
push 0
call fcn.10150ba0
add esp, 0x18
test eax, eax
je 0x10168be6
mov ebx, dword [esp + 0x60]
nop word [eax + eax]
mov eax, dword [esp + 0x10]
shl eax, 0xa
test dword [esp + 0x28], eax
je 0x10168bc2
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10168bf3
push edi
push ebx
push dword [esp + 0x58]
and esi, 1
push dword [esp + 0x58]
add esi, dword [esp + 0x2c]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push esi
mov esi, dword [esp + 0x88]
push esi
push ecx
call fcn.10168c40
add esp, 0x3c
test eax, eax
je 0x10168c11
add esi, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x54], esi
test edi, edi
jle 0x10168bbe
cmp edi, 0x20
jb 0x10168b9b
lea eax, [ebx - 1]
lea edx, [ebp - 1]
add eax, edi
add edx, edi
cmp ebp, eax
ja 0x10168b51
cmp edx, ebx
jae 0x10168b9b
mov eax, edi
and eax, 0x8000001f
jns 0x10168b5f
dec eax
or eax, 0xffffffe0
inc eax
mov edx, edi
mov esi, ebx
sub edx, eax
mov eax, ebp
sub esi, ebp
nop dword [eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [ebx + ecx + 0x10]
add ecx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x10168b70
cmp ecx, edi
jge 0x10168bbe
mov esi, ebx
lea eax, [ecx + ebp]
mov edx, edi
sub esi, ebp
sub edx, ecx
nop word [eax + eax]
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x10168bb0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
inc eax
push ecx
push eax
mov dword [esp + 0x2c], eax
call fcn.10150ba0
add esp, 0xc
test eax, eax
jne 0x10168ac0
pop ebp
mov eax, 1
pop ebx
pop edi
pop esi
add esp, 0x14
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.100c91e0
add esp, 0x14
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
push 0x109
push str.._ssl_t1_enc.c
push 0x44
push 0x11c
push 0x14
call fcn.100c91e0
add esp, 0x14
xor eax, eax
pop edi
pop esi
add esp, 0x14
ret
Function at 0x101788d0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.100bc240
add esp, 8
test esi, esi
jg 0x10178927
je 0x10178909
cmp esi, 0xffffffff
jne 0x10178927
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10178b60
add esp, 4
test eax, eax
je 0x10178927
push 0xa
push edi
call fcn.100bc930
add esp, 8
pop edi
mov eax, esi
pop esi
ret

Function at 0x10178cc0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x20]
cmp dword [eax], 6
je 0x10178cdb
push eax
push esi
call fcn.10179370
add esp, 8
test eax, eax
jle 0x10178d23
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push esi
mov edi, eax
call fcn.100bc240
add esp, 8
test edi, edi
jg 0x10178d20
push edi
call fcn.10178c20
add esp, 4
test eax, eax
je 0x10178d20
push 0xa
push esi
call fcn.100bc930
add esp, 8
mov eax, edi
pop edi
pop esi
ret
Function at 0x1017ac30
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebp, 1
push edi
push ebx
push esi
call fcn.1017b0f0
mov edi, eax
add esp, 8
test edi, edi
jns 0x1017ac6e
push 0x88
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.100c91e0
add esp, 0x14
jmp 0x1017ad2f
call fcn.1017b020
cmp eax, 1
jne 0x1017ad3f
test edi, edi
jle 0x1017ac87
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
push 0xa1
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.100d0a40
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x1017acc4
push 0xa7
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.100c91e0
add esp, 0x14
jmp 0x1017ad15
cmp word [ecx + 8], 2
je 0x1017ace5
push 0xae
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.100c91e0
add esp, 0x14
jmp 0x1017ad15
mov eax, dword [ecx + 0xc]
xor ebp, ebp
mov eax, dword [eax]
movzx eax, byte [eax]
mov byte [ebx], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 1]
mov byte [ebx + 1], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 2]
mov byte [ebx + 2], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 3]
mov byte [ebx + 3], al
push 0xb7
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.100d0a40
add esp, 0x10
test ebp, ebp
je 0x1017ad46
push esi
push str.host
push 2
call fcn.100c8750
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x1017b0a0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x1017b0e0
push 0x248
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.100c91e0
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x40e92c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ff58]
jne 0x40e936
repz ret
jmp fcn.0041725c

Function at 0x41b1e7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00410b2a
and dword [ebp - 4], 0
cmp dword [0x48302c], 0
mov ebx, eax
jne 0x41b298
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41b349
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x429b78
push edi
call esi
test eax, eax
je 0x41b349
push eax
call fcn.00410ab8
mov dword [esp], 0x429b68
push edi
mov dword [0x48302c], eax
call esi
push eax
call fcn.00410ab8
mov dword [esp], 0x429b54
push edi
mov dword [0x483030], eax
call esi
push eax
call fcn.00410ab8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x483034], eax
call esi
push eax
call fcn.00410ab8
pop ecx
mov dword [0x48303c], eax
test eax, eax
je 0x41b298
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410ab8
pop ecx
mov dword [0x483038], eax
mov eax, dword [0x483038]
cmp eax, ebx
je 0x41b2f0
cmp dword [0x48303c], ebx
je 0x41b2f0
push eax
call fcn.00410b33
push dword [0x48303c]
mov esi, eax
call fcn.00410b33
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41b2f0
test edi, edi
je 0x41b2f0
call esi
test eax, eax
je 0x41b2e7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41b2e7
test byte [ebp - 0xc], 1
jne 0x41b2f0
or dword [ebp + 0x10], 0x200000
jmp 0x41b329
mov eax, dword [0x483030]
cmp eax, ebx
je 0x41b329
push eax
call fcn.00410b33
pop ecx
test eax, eax
je 0x41b329
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41b329
mov eax, dword [0x483034]
cmp eax, ebx
je 0x41b329
push eax
call fcn.00410b33
pop ecx
test eax, eax
je 0x41b329
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48302c]
call fcn.00410b33
pop ecx
test eax, eax
je 0x41b349
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41b34b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401007
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x44d708]
push esi
mov esi, dword [ebx + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x44d70c]
push edi
mov edi, dword [ebx]
xor edx, edx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], edx
mov dword [ebp - 0x34], 0x9e3779b9
call fcn.00401000
mov eax, dword [0x44d710]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x24], eax
mov eax, dword [0x44d714]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, edi
shl eax, 4
cmp dword [0x45c954], 0xc
mov dword [ebp - 4], eax
jne 0x401085
push edx
lea eax, [ebp - 0x38]
push eax
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
xor edx, edx
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [0x45c954]
cmp eax, 0xfa9
jne 0x4010a1
mov dword [0x45c950], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010c2
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_AreAllAccessesGranted]
and dword [0x45c8a8], 0
xor edx, edx
mov eax, dword [ebp - 8]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [0x45c94c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0x1c], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
sub edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x34]
sub dword [ebp - 8], eax
dec dword [ebp - 0x20]
jne 0x401059
mov dword [ebx], edi
pop edi
mov dword [ebx + 4], esi
pop esi
leave
ret
Function at 0x408cfd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44d030]
jne 0x408d07
repz ret
jmp fcn.0040cf92

Function at 0x40a10d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004055a8
and dword [ebp - 4], 0
cmp dword [0x451944], 0
mov ebx, eax
jne 0x40a1be
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a26f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a26f
push eax
call fcn.00405536
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x451944], eax
call esi
push eax
call fcn.00405536
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x451948], eax
call esi
push eax
call fcn.00405536
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45194c], eax
call esi
push eax
call fcn.00405536
pop ecx
mov dword [0x451954], eax
test eax, eax
je 0x40a1be
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405536
pop ecx
mov dword [0x451950], eax
mov eax, dword [0x451950]
cmp eax, ebx
je 0x40a216
cmp dword [0x451954], ebx
je 0x40a216
push eax
call fcn.004055b1
push dword [0x451954]
mov esi, eax
call fcn.004055b1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a216
test edi, edi
je 0x40a216
call esi
test eax, eax
je 0x40a20d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a20d
test byte [ebp - 0xc], 1
jne 0x40a216
or dword [ebp + 0x10], 0x200000
jmp 0x40a24f
mov eax, dword [0x451948]
cmp eax, ebx
je 0x40a24f
push eax
call fcn.004055b1
pop ecx
test eax, eax
je 0x40a24f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a24f
mov eax, dword [0x45194c]
cmp eax, ebx
je 0x40a24f
push eax
call fcn.004055b1
pop ecx
test eax, eax
je 0x40a24f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x451944]
call fcn.004055b1
pop ecx
test eax, eax
je 0x40a26f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a271
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x92c
mov eax, dword [0x4110cc]
xor eax, dword [ebp + 4]
push ebx
push esi
mov dword [esp + 0x930], eax
mov eax, dword [ebp + 0x10]
push edi
push 0x104
push eax
mov eax, 0x40e234
call fcn.00401000
push eax
lea ecx, [esp + 0x42c]
push 0x40e22c
push ecx
call fcn.00404060
add esp, 0x14
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea edx, [esp + 0x438]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
test ebx, ebx
jne 0x4010b7
push 3
lea ecx, [esp + 0x52c]
call fcn.00403dc0
mov esi, eax
mov ecx, 0x103
lea edi, [esp + 0x14]
push 0x40f738
lea eax, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
push eax
jmp 0x401193
mov ecx, dword [ebp + 0xc]
movzx edx, word [ebp + 8]
push ecx
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
test esi, esi
je 0x40108d
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
test edi, edi
jne 0x401107
push 3
lea ecx, [esp + 0x52c]
call fcn.00403dc0
mov ecx, 0x103
mov esi, eax
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
push 0x40f738
lea ecx, [esp + 0x18]
push ecx
jmp 0x401193
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x40116e
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
test eax, eax
jne 0x401149
push 3
lea ecx, [esp + 0x52c]
call fcn.00403dc0
mov esi, eax
push 0x40f738
lea eax, [esp + 0x18]
mov ecx, 0x103
lea edi, [esp + 0x18]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004067e0
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40111f
cmp edi, dword [esp + 0x10]
jne 0x40111f
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
jne 0x401198
push 3
lea ecx, [esp + 0x52c]
call fcn.00403dc0
mov ecx, 0x103
mov esi, eax
lea edi, [esp + 0x14]
push 0x40f738
lea edx, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
push edx
call fcn.004067e0
mov ecx, dword [esp + 0x934]
xor ecx, dword [ebp + 4]
call fcn.004067d2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4011b0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40da60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x4110cc]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x104
mov dword [ebp - 0x14], eax
push str..dll
push str.netf
mov eax, 0x40e234
mov dword [ebp - 4], 0
call fcn.00401000
push eax
lea eax, [ebp - 0x21c]
push 0x40e268
push eax
call fcn.00403fa0
add esp, 0x18
push 0x104
push str..dll
push str.netf
mov eax, str.SYSTEMROOT
call fcn.00401000
push eax
lea ecx, [ebp - 0x118]
push str._s_system32_s_s
push ecx
call fcn.00403fa0
add esp, 0x18
push 0
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
lea eax, [ebp - 0x118]
jne 0x401268
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
je 0x401299
push 0x40e23c
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, dword [ebp + 8]
push ecx
call eax
xor edx, edx
add esp, 4
test eax, eax
setne dl
mov eax, edx
jmp 0x40129b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp + 4]
call fcn.004067d2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401490
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x338
mov eax, dword [0x4110cc]
xor eax, dword [ebp + 4]
push esi
push edi
mov dword [esp + 0x33c], eax
xor eax, eax
mov dword [esp + 0x68], 0
mov ecx, 0xb2
lea edi, [esp + 0x6c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], eax
mov ecx, 0x11
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea edx, [esp + 0x24]
push edx
push eax
push eax
push 4
push eax
push eax
push eax
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
push eax
push 0
mov dword [esp + 0x48], 0x44
mov word [esp + 0x78], 5
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x40152b
mov eax, 1
mov ecx, dword [esp + 0x33c]
xor ecx, dword [ebp + 4]
call fcn.004067d2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call fcn.00401450
mov edi, eax
add esp, 8
test edi, edi
jne 0x401565
mov eax, 2
mov ecx, dword [esp + 0x33c]
xor ecx, dword [ebp + 4]
call fcn.004067d2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
push pe_nt_image_headers32
push 0x3000
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
test eax, eax
jne 0x401597
mov eax, 3
mov ecx, dword [esp + 0x33c]
xor ecx, dword [ebp + 4]
call fcn.004067d2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x1c]
push edx
push edi
push esi
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
jne 0x4015c8
mov eax, 4
mov ecx, dword [esp + 0x33c]
xor ecx, dword [ebp + 4]
call fcn.004067d2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x68]
push ecx
push edx
mov dword [esp + 0x70], 0x10007
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
test eax, eax
jne 0x4015fe
mov eax, 5
mov ecx, dword [esp + 0x33c]
xor ecx, dword [ebp + 4]
call fcn.004067d2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x68]
push ecx
push edx
mov dword [esp + 0x128], eax
call dword [sym.imp.KERNEL32.DLL_SetThreadContext]
test eax, eax
jne 0x401636
mov eax, 6
mov ecx, dword [esp + 0x33c]
xor ecx, dword [ebp + 4]
call fcn.004067d2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
cmp eax, 0xffffffff
jne 0x401660
mov eax, 7
mov ecx, dword [esp + 0x33c]
xor ecx, dword [ebp + 4]
call fcn.004067d2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x401674
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ecx, dword [esp + 0x33c]
xor ecx, dword [ebp + 4]
xor eax, eax
call fcn.004067d2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401c00
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x928
mov eax, dword [0x4110cc]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
mov dword [esp + 0x930], eax
mov eax, dword [ebp + 0x14]
push eax
push ecx
push 0x40e2e4
push edi
call fcn.00404060
add esp, 0x14
push esi
push str.tmp1.tmp
mov eax, 0x40e234
call fcn.00401830
push eax
lea edx, [esp + 0x14]
push 0x40e22c
push edx
call fcn.00404060
add esp, 0x14
push 0
push edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
jne 0x401c9f
push 3
lea ecx, [esp + 0x524]
call fcn.00403dc0
mov esi, eax
mov ecx, 0x103
lea edi, [esp + 0x114]
rep movsd dword es:[edi], dword [esi]
push 0x40f738
lea ecx, [esp + 0x118]
push ecx
call fcn.004067e0
mov ecx, dword [esp + 0x92c]
xor ecx, dword [ebp + 4]
call fcn.004067d2
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401cc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40dab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa7c
mov eax, dword [0x4110cc]
xor eax, dword [ebp + 4]
push ebx
push esi
mov dword [ebp - 0x14], eax
push edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x68], esi
mov ecx, 0x10
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], eax
push 0x104
push str._system32_
mov eax, str.SYSTEMROOT
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
call fcn.00401830
push eax
lea ecx, [ebp - 0x16c]
push 0x40e2e4
push ecx
call fcn.00404060
mov edx, dword [ebp + 8]
add esp, 0x14
push edx
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x270]
push 0x104
push ecx
call fcn.00401c00
add esp, 0x10
jmp 0x401e08
push 0x104
lea ecx, [ebp - 0x270]
push str.__install
push ecx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x68], 0x44
call fcn.00404100
add esp, 0xc
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x16c]
push ecx
push esi
push esi
push esi
push esi
push esi
lea edx, [ebp - 0x270]
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp + 4]
call fcn.004067d2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4020c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x818
mov eax, dword [ebp + 8]
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x402106
push 4
lea ecx, [esp + 0x418]
call fcn.00403dc0
mov esi, eax
mov ecx, 0x103
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
push 0x40f738
lea ecx, [esp + 0xc]
push ecx
call fcn.004067e0
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
pop edi
pop esi
mov esp, ebp
pop ebp
ret