joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4198ac
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x41a4f0
call fcn.00419a98
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4198e9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4198e9
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x419901
cmp eax, 0x20b
je 0x4198ee
mov dword [ebp - 0x1c], ebx
jmp 0x419915
cmp dword [ecx + 0x84], 0xe
jbe 0x4198e9
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x41990f
cmp dword [ecx + 0x74], 0xe
jbe 0x4198e9
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x4309b4], 0xffffffff
or dword [0x4309b8], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x420c8c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x420c88]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4309b0], eax
call fcn.0040a2f7
cmp dword [section..data], ebx
jne 0x419970
push fcn.0040a2f7
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00419a84
push 0x41a4c0
push 0x41a4bc
call sub.msvcrt.dll__initterm
mov eax, dword [0x420c84]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x420c80]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x41a4b8
push 0x41a46c
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x419a06
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x4199da
cmp al, 0x22
jne 0x4199cc
cmp byte [esi], 0x22
jne 0x4199e3
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x4199ed
cmp al, 0x20
jbe 0x4199df
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x419a11
movzx eax, word [ebp - 0x48]
jmp 0x419a14
cmp byte [esi], 0x20
jbe 0x4199e3
inc esi
mov dword [ebp - 0x34], esi
jmp 0x419a06
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x419a31
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x419a66
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00419ad1
ret
Function at 0x40bd81
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push esi
mov esi, eax
push esi
call fcn.0040a385
cmp eax, 0x3f6
jae 0x40bf95
push ebx
push edi
push 0x3c
pop edi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x44]
push eax
call fcn.0040a28a
mov cl, byte [esi]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0x5c0
cmp cl, 0x22
jne 0x40bdc9
lea eax, [esi + 1]
mov dword [ebp - 0x34], eax
jmp 0x40bdcc
mov dword [ebp - 0x34], esi
xor eax, eax
cmp cl, bl
je 0x40be11
mov ecx, esi
cmp byte [ecx], 0x22
jne 0x40bded
jmp 0x40bde1
cmp byte [eax + esi], 0x22
je 0x40bde9
inc eax
cmp byte [eax + esi], bl
jne 0x40bddb
jmp 0x40bded
mov byte [eax + esi], 0x20
cmp byte [eax + esi], 0x20
je 0x40be04
cmp byte [eax + esi + 1], 0x2f
je 0x40be04
inc eax
lea ecx, [eax + esi]
cmp byte [ecx], bl
jne 0x40bdd4
jmp 0x40be11
add eax, esi
cmp byte [eax], 0x20
jne 0x40be0d
mov byte [eax], bl
inc eax
mov dword [ebp - 0x30], eax
cmp byte [ebp + 8], bl
jne 0x40be25
cmp byte [0x41a392], bl
je 0x40be25
mov dword [ebp - 0x30], 0x41a392
push dword [ebp - 0x34]
mov dword [ebp - 0x28], 1
call fcn.00407691
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40be51
push str..inf
push eax
call fcn.0040a59b
test eax, eax
jne 0x40be51
mov dword [ebp - 0x38], str.Install
push ebx
push dword [ebp - 0x34]
call fcn.0040576d
mov byte [ebp - 1], al
cmp al, bl
je 0x40be79
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x34]
call fcn.00405823
lea eax, [ebp - 0x844]
mov dword [ebp - 0x34], eax
cmp byte [ebp + 8], bl
je 0x40beb8
cmp byte [ebp - 1], bl
jne 0x40beb8
push dword [ebp - 0x34]
lea eax, [ebp - 0x444]
push eax
call fcn.0040a478
push str..exe
lea eax, [ebp - 0x444]
push eax
call fcn.0040a5e3
push ebx
lea eax, [ebp - 0x444]
push eax
call fcn.0040576d
test al, al
je 0x40bf93
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea eax, [ebp - 0x44]
push eax
call edi
test eax, eax
setne al
cmp al, bl
jne 0x40beea
and dword [ebp - 0x40], 0xfffffbff
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x34], esi
call edi
test eax, eax
setne al
cmp al, bl
je 0x40bf93
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
cmp byte [0x419f88], bl
jne 0x40bf00
cmp byte [ebp + 8], bl
je 0x40bf37
mov eax, dword [0x419f80]
cmp eax, ebx
je 0x40bf21
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40bf21
push ebx
push dword [0x419f80]
call esi
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0xc]
call fcn.0040b6eb
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x40bf56
push str..exe
push dword [ebp - 8]
call fcn.0040a59b
test eax, eax
je 0x40bf84
cmp byte [0x419f88], bl
je 0x40bf6a
cmp byte [ebp + 8], bl
jne 0x40bf6a
push 0x1b58
jmp 0x40bf7e
xor eax, eax
cmp byte [ebp + 8], bl
sete al
dec eax
and eax, 0xfffffce0
add eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp - 1], bl
je 0x40bf93
push 1
push dword [0x419f80]
call esi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x40d85f
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4
Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x109e5662
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1bd07f5
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x751762d2
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x74c46f8e
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1c678f3
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0xb1f19f5
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401020
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x4275f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x43914c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x43f30c]
mov edx, dword [eax + 0xc]
mov ecx, 0x43f30c
xor esi, esi
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
push str.c__s__s__s
lea edi, [esp + 0x1c]
mov dword [esp + 0x2c], esi
call fcn.004016f0
mov edx, dword [esp + 0x1c]
push esi
lea ecx, [esp + 0x24]
call fcn.004147a0
add esp, 0x14
mov byte [esp + 0x1c], 1
call fcn.00401380
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4010be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0xc]
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov dword [0x43ff4c], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x4010e8
cmp dword [0x43ff4c], 0
jne 0x4010ed
mov esi, 1
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401111
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x401130
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4275c0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x43914c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x43f30c]
mov edx, dword [eax + 0xc]
mov ecx, 0x43f30c
xor ebx, ebx
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
push 0x42ae10
lea edi, [esp + 0x24]
mov dword [esp + 0x34], ebx
call fcn.004016f0
mov edx, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x2c]
call fcn.004147a0
add esp, 0x14
mov byte [esp + 0x24], 1
call fcn.00401380
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4011ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push 0x42ae24
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401270
mov eax, dword [eax]
add esp, 8
push eax
push ebx
push 0x20000
call dword [sym.imp.KERNEL32.DLL_OpenMutexW]
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401215
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x401225
push esi
mov ebx, 1
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40124d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret

Function at 0x4017b0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4017ec
lea ecx, [esp + 8]
push ecx
push 0x42af04
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4017f2
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
add esp, 0x24
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0x10
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
push 0
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40183f
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
add esp, 0x24
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
add esp, 0x24
ret
Function at 0x401990
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4271a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebp
push esi
push edi
mov eax, dword [0x43914c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
xor edi, edi
push edi
push edi
push 4
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401ab9
cmp esi, edi
je 0x401ab9
push 2
lea edx, [esp + 0x20]
push edx
xor ecx, ecx
push ecx
xor eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
mov eax, dword [0x43f30c]
mov edx, dword [eax + 0xc]
mov ecx, 0x43f30c
mov dword [esp + 0x18], edi
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
push str._d_t__d_
lea edi, [esp + 0x20]
call fcn.004047d0
mov edi, dword [esp + 0x20]
mov ebp, dword [edi - 0xc]
add esp, 0xc
cmp dword [edi - 4], 1
jle 0x401a51
mov eax, ebp
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00403a70
mov edi, dword [esp + 0x14]
push 0
lea edx, [esp + 0x1c]
push edx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
push esi
call ebp
mov eax, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401a68
push 0
sub eax, ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebx
push esi
call ebp
push 0
lea edx, [esp + 0x1c]
push edx
push 2
push 0x42af78
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [edi - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ab9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x28
ret
Function at 0x401c70
Capabilities:
Access peb ldr_data
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x427548
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43914c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x43f30c]
mov edx, dword [eax + 0xc]
mov ecx, 0x43f30c
xor ebp, ebp
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], ebp
cmp esi, ebp
jne 0x401cbd
xor eax, eax
jmp 0x401cd1
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x401cc2
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x1c]
call fcn.00401470
mov eax, dword [0x43f30c]
mov edx, dword [eax + 0xc]
mov ecx, 0x43f30c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
push eax
lea ebx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.004037e0
add esp, 4
mov bl, 2
mov byte [esp + 0x30], bl
mov eax, dword [eax]
push 0
mov edx, eax
lea ecx, [esp + 0x24]
call fcn.004147a0
add esp, 4
lea edi, [esp + 0x14]
mov byte [esp + 0x30], 3
call fcn.00401380
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, 1
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
push 0x42afb4
lea ecx, [esp + 0x1c]
push ecx
call fcn.004041b0
mov edx, 0x42afb8
lea ecx, [esp + 0x24]
call fcn.00414980
mov byte [esp + 0x30], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.004041b0
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401dd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x68
push ebx
push esi
mov dword [esp + 0x34], 0
call sub.DNSAPI.dll_DnsQuery_W
test eax, eax
jne 0x401e10
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x401e10
cmp dword [eax + 0x18], 0x2c21160b
jne 0x401e09
mov ebp, ebx
push ebx
push eax
call sub.DNSAPI.dll_DnsFree
lea eax, [esi - 0x10]
mov byte [esp + 0x30], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401e31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x402100
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427100
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x43914c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea eax, [esi + 0x40]
push eax
mov dword [esp + 0x18], 1
call fcn.00403970
cmp dword [esi + 0x34], 0x10
jb 0x40214b
mov eax, dword [esi + 0x20]
push eax
call fcn.00416b59
add esp, 4
xor eax, eax
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], eax
mov byte [esi + 0x20], al
add esi, 4
mov dword [esp + 8], esi
mov ecx, esi
mov dword [esp + 0x14], 2
call fcn.00403af0
mov ecx, dword [esi]
push ecx
call fcn.00416b59
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x402ed0
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4275f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x43914c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x43f30c]
mov edx, dword [eax + 0xc]
mov ecx, 0x43f30c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], 0
mov eax, dword [0x43f30c]
mov edx, dword [eax + 0xc]
mov ecx, 0x43f30c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x100
mov byte [esp + 0x20], 1
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
sub ecx, 0x104
or eax, ecx
jge 0x402f76
mov ecx, 0x104
lea eax, [esp + 0xc]
call fcn.004015f0
mov esi, dword [esp + 0xc]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00417915
add esp, 8
test eax, eax
jl 0x402fd8
cmp eax, dword [esi - 8]
jg 0x402fd8
xor edx, edx
push esi
mov dword [esi - 0xc], eax
push str._c_timeout__t_1__del__Q__F___s_
lea edi, [esp + 0x18]
mov word [esi + eax*2], dx
call fcn.004016f0
mov eax, dword [esp + 0x18]
add esp, 8
push 0
push 0
push eax
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
push 0x80070057
call fcn.00401790
int3

Function at 0x403250
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x4031e0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0xc]
push eax
call fcn.00402260
add esp, 4
call fcn.00402ed0
int3

Function at 0x405080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x405097
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x4050c8
push ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4050c4
cmp esi, eax
jae 0x4050c8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4050b4
cmp esi, eax
jb 0x4050ce
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret