joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56e6a0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x20], 0
je 0x56e83b
cmp byte [esi + 0x28], 0
je 0x56e83b
lea eax, [ebp - 8]
mov dword [ebx], 0
push eax
push dword [esi + 0xb0]
mov dword [ebp - 8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x56e732
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
mov ecx, esi
call fcn.0056f200
call fcn.0055ed00
mov esi, eax
mov edi, dword [esi]
call ebx
push eax
push str.Error__d_in_WinHttpQueryDataAvailable._n
push 0x5f8398
push esi
call dword [edi + 0x24]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x14]
cmova ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x56e759
lea eax, [ecx + 2]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp + 0x10], 0
je 0x56e7c0
push 0x6551a8
push ecx
call fcn.00576eb0
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x56e7bd
call fcn.0055ed00
push dword [ebp - 8]
push str.failed_to_allote_mmeory_of_size__d
mov ecx, dword [eax]
push 0x5f8398
push eax
call dword [ecx + 0x24]
sub esp, 8
mov ecx, esp
push 0x5f8398
call fcn.00408810
push 0
push 0x14
mov ecx, esi
call fcn.0056fb20
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 8]
push ecx
push 0
push dword [edi]
call fcn.005903b0
add esp, 0xc
push ebx
push dword [ebp - 8]
push dword [edi]
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x56e81e
call fcn.0055ed00
push str.Error__u_in_WinHttpReadData._n
push 0x5f8398
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0056f200
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
add eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret 0x10
call fcn.0055ed00
push str.downloader_is_not_initialized
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
sub esp, 0x10
xor eax, eax
mov ecx, esp
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x5f8398
mov word [ecx], ax
call fcn.00408a10
push 0
push 0x13
mov ecx, esi
call fcn.0056fb20
mov ecx, dword [ebp - 4]
mov eax, 3
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005765b2
mov esp, ebp
pop ebp
ret 0x10
Function at 0x56ed00
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov dword [ebp - 0xc], eax
mov edi, ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push ebx
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0x24
jne 0x56ed4e
cmp eax, 0x2f76
je 0x56ed5b
cmp eax, 0x7a
je 0x56ed70
push eax
mov ecx, edi
call fcn.0056f200
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
test eax, eax
jne 0x56eda4
call fcn.0055ed00
push str.retrieveHeaderFromHttpRequest:_Zero_buffer_required....
push 0x5f8398
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push 0x6551a8
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00576eb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x56ee0d
call fcn.0055ed00
push str.failed_to_allocate_memory
push 0x5f8398
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
sub esp, 0xc
mov ecx, esp
push str.Memory_Allocation_Failed
call fcn.00408810
push esi
push 0x14
mov ecx, edi
call fcn.0056fb20
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [ebp - 8]
push eax
push esi
push 0
push ebx
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x56ee53
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.0056f200
push esi
call fcn.00576861
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
push esi
call fcn.004089c0
push esi
call fcn.00576861
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.005765b2
mov esp, ebp
pop ebp
ret 8
Function at 0x56ef60
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push 0
push eax
push 0
push 0
push 0x16
push dword [edi]
mov dword [ebp - 8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x56eff4
mov eax, dword [ebp - 8]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00576a65
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push 0
push eax
push esi
push 0
push 0x16
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x56efe6
call fcn.0055ed00
push esi
push str.Header_contents:__n_s
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
add esp, 0xc
test esi, esi
je 0x56eff3
push esi
call fcn.00576861
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.005765b2
mov esp, ebp
pop ebp
ret
Function at 0x579e91
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x5b3aaf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005b3772

Function at 0x5b3aba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005b38f3

Function at 0x5b738e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005b704e
Function at 0x48e420
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x54134c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x541344]
sub esp, 4
test ebx, ebx
je 0x48e475
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x48e46e
test esi, esi
je 0x48e46e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x48e450
mov dword [esp], 0x54134c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x48e7a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x48e7c5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x48e7d0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x48e7c5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x48e818
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x48e80e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x48e81a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x48e800
xor eax, eax
pop ebx
pop esi
ret
Function at 0x617440
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0x60
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.005336b0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x67452301
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0x10325476
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0xc3d2e1f0
xor eax, eax
pop ebp
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 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push 0x5040d1
push 0x504088
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x402d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4063a0]
test esi, esi
jle 0x402e10
mov edi, dword [0x4063a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x402d34
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x402db5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x402d20
mov dword [esp], eax
mov ebx, eax
call fcn.004035f0
test eax, eax
mov edi, eax
je 0x402e37
mov eax, dword [0x4063a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004036f0
add eax, dword [edi + 0xc]
mov edx, dword [0x4063a4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x402e17
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402dae
sub eax, 4
and eax, 0xfffffffb
jne 0x402dc0
add dword [0x4063a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4063a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402dae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00403b10
lea esi, [esi]
xor esi, esi
jmp 0x402d3e
mov eax, dword [0x4063a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00403b10
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00403b10
mov esi, esi
lea edi, [edi]

Function at 0x403270
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4063b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4063b0]
sub esp, 4
test ebx, ebx
je 0x4032c5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4032be
test esi, esi
je 0x4032be
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4032a0
mov dword [esp], 0x4063b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403b10
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00403ae0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00403ae0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
jmp fcn.004014e0
Function at 0x401220
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
fldz
xor eax, eax
mov word [esp], ax
fst dword [esp + 4]
fstp dword [esp + 4]
push esi
fld dword [0x41e378]
xor esi, esi
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov ecx, 0xffff939f
mov word [0x423720], cx
xor edx, edx
mov dword [esp + 0x28], esi
fstp dword [0x424a34]
mov dword [esp + 0x48], 1
mov word [esp + 0x4e], dx
mov dword [esp + 0x50], esi
inc dword [esp + 4]
fld dword [0x424dc4]
mov ax, word [esp + 4]
movsx ecx, ax
mov dword [esp + 4], ecx
fild dword [esp + 4]
fadd qword [0x4226d8]
fsub qword [0x41e370]
fcompp
fnstsw ax
test ah, 5
jp 0x4012b2
fld qword [0x41e368]
fstp qword [0x424e98]
jmp 0x4012c6
movzx edx, word [0x422694]
imul edx, edx, 0x1eb1a325
mov word [0x422694], dx
fld qword [0x424ba0]
mov eax, 1
fsub qword [0x41e350]
mov word [esp + 0x4c], ax
fstp qword [0x424ba0]
fld qword [0x424ba0]
mov cx, word [0x424a00]
movsx edx, cx
mov dword [esp + 4], edx
fild dword [esp + 4]
fsubp st(1)
fsub qword [0x41e360]
call fcn.0040ac50
mov edx, dword [esp + 0x68]
mov word [0x4249d8], ax
inc word [0x424a00]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x20]
push ecx
push esi
push esi
push 8
push esi
push esi
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop esi
add esp, 0x5c
ret
Function at 0x401440
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
sub esp, 0x140
mov eax, dword [0x425160]
xor eax, esp
mov dword [esp + 0x13c], eax
fldz
push ebx
fst dword [esp + 0xc]
push ebp
fst dword [esp + 8]
push esi
fstp dword [esp + 0x10]
push 0x104
fldz
xor ebp, ebp
fstp qword [esp + 0x1c]
mov ax, word [0x4249d8]
mov ecx, dword [0x424a38]
cwde
add ecx, eax
mov word [0x4249d8], cx
call fcn.0040ab79
add esp, 4
push ebp
push 2
mov ebx, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
fld dword [esp + 0x10]
mov esi, eax
fsub qword [esp + 0x18]
mov dword [esp + 0x14], esi
fsub dword [0x424f50]
fld dword [esp + 0x10]
fsub qword [0x41e3c0]
fsub qword [esp + 0x18]
fcompp
fnstsw ax
fld dword [0x424f50]
fld1
fadd st(1), st(0)
fxch st(1)
fstp dword [0x424f50]
fld qword [esp + 0x18]
fsub st(1)
fstp qword [esp + 0x18]
test ah, 0x41
jne 0x401505
fld dword [0x4249d4]
fld dword [0x4248a8]
fsubp st(1)
fsubr dword [esp + 0xc]
fstp dword [esp + 0xc]
fld dword [0x4249d4]
fsub st(1)
fstp dword [0x4249d4]
test esi, esi
je 0x40161a
lea edx, [esp + 0x20]
fstp st(0)
push edx
push esi
mov dword [esp + 0x28], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4015ff
push edi
mov edi, ebx
lea eax, [esp + 0x48]
sub edi, eax
lea eax, [esp + 0x48]
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x401537
push ebx
call fcn.0041dd73
mov ecx, dword [esp + 0x158]
add esp, 4
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401573
test dl, dl
je 0x40156f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401573
add eax, 2
add ecx, 2
test dl, dl
jne 0x401553
xor eax, eax
jmp 0x401578
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4015e0
cmp dword [esp + 0x158], eax
je 0x4015fd
mov ecx, dword [esp + 0x2c]
push ecx
push eax
push 1
mov dword [0x4226a0], 0x2f5e623
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4015dc
push 0xffffffffffffffff
push esi
inc ebp
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
fld dword [esp + 0x14]
fld qword [esp + 0x1c]
push esi
fsub qword [0x41e3b8]
fsub qword [0x41e3b0]
fsubp st(1)
fstp dword [esp + 0x18]
fld qword [esp + 0x20]
fadd qword [0x41e350]
fstp qword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push esi
mov dword [esp + 0x2c], 0x128
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401533
jmp 0x4015fe
inc ebp
pop edi
fld qword [0x424228]
push esi
fsub qword [0x41e3a8]
fstp qword [0x424228]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
fld1
fadd dword [esp + 0xc]
push ebx
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd qword [0x41e3a0]
fsub qword [0x41e398]
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
call fcn.0040b065
mov ecx, dword [esp + 0x14c]
add esp, 4
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b0f3
add esp, 0x140
ret
Function at 0x4021d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
fldz
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
fst qword [esp + 0x18]
push 3
fstp qword [esp + 0x14]
push 0x42487c
call fcn.00401140
mov ebx, dword [esp + 0x2c]
mov esi, eax
push esi
push ebx
call fcn.0040b4df
mov edi, eax
mov eax, dword [0x424f00]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
add esp, 0x10
fld dword [0x424800]
fsubr qword [0x41e4a0]
fcompp
fnstsw ax
test ah, 0x41
jp 0x402236
fld qword [esp + 0x18]
fsub qword [0x41e498]
fstp qword [esp + 0x18]
test edi, edi
jne 0x402281
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
fld qword [esp + 0x10]
fld qword [esp + 0x10]
push esi
fsub qword [0x41e490]
push ebx
fsub qword [0x41e488]
fsubp st(1)
fstp qword [esp + 0x18]
call fcn.0040b4df
fld qword [esp + 0x18]
mov edi, eax
fsub qword [0x41e480]
add esp, 8
fmul qword [esp + 0x18]
fstp qword [esp + 0x18]
test edi, edi
je 0x402299
push edi
push 1
lea ecx, [esp + 0x30]
push 4
push ecx
call fcn.0040b399
push edi
call fcn.0040b1bb
add esp, 0x14
fldz
xor eax, eax
mov word [esi], ax
fst dword [esp + 0xc]
push esi
fstp dword [esp + 0x10]
mov byte [esi + 2], al
call fcn.0040b065
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x402fc0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x14
fldz
push ebx
xor eax, eax
fstp qword [esp + 0x10]
push 0x2e
mov word [esp + 8], ax
mov dword [esp + 8], eax
push 0x424828
call fcn.00401140
fld qword [esp + 0x18]
fadd qword [esp + 0x18]
add esp, 8
lea ecx, [esp + 8]
push ecx
mov ebx, eax
fstp qword [esp + 0x14]
push ebx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4030c2
push esi
push edi
push 0x34
push 0x424b60
call fcn.00401140
mov edx, dword [esp + 0x2c]
mov esi, eax
mov eax, edx
add esp, 8
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403027
sub eax, edi
push eax
push edx
mov edx, dword [esp + 0x18]
mov edi, 1
push edi
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add dword [esp + 0xc], edi
fld dword [0x42478c]
fsubr qword [0x41e540]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
fiadd dword [esp + 0x14]
mov edx, 0x78cb6a26
sub edx, ecx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4030a3
mov eax, dword [0x424940]
add dword [0x424940], edi
add eax, 0x62d5365d
cmp eax, 0x62c8c6c4
jne 0x4030a3
fld qword [esp + 0x18]
fstp st(0)
fld qword [0x424f38]
fstp st(0)
fldz
push 0x34
push 0
fst dword [esp + 0x1c]
push esi
fstp dword [esp + 0x20]
call fcn.0040aab0
push esi
call fcn.0040b065
add esp, 0x10
pop edi
pop esi
fldz
push 0x2e
push 0
fst dword [esp + 0x14]
push ebx
fstp dword [esp + 0x18]
call fcn.0040aab0
push ebx
call fcn.0040b065
mov ecx, dword [esp + 0x18]
add esp, 0x10
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
add esp, 0x14
ret
Function at 0x40a0f0
Capabilities:
Create thread
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
fldz
push ebx
push esi
xor eax, eax
mov word [esp + 8], ax
xor esi, esi
mov dword [esp + 0xc], esi
fst dword [esp + 0x10]
fstp dword [esp + 0x10]
xor ecx, ecx
fldz
mov word [esp + 0x10], cx
fstp qword [esp + 0x14]
push edi
mov dword [0x42698c], esi
cmp dword [0x4246f0], esi
je 0x40a186
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
fld dword [0x424a90]
push 0
fadd qword [0x41ea08]
push 0
push esi
push 0x4010c0
push 0
fstp dword [0x424a90]
push 0
mov dword [esi*4 + 0x4264c8], 0
call edi
inc dword [0x4236fc]
movzx edx, word [esp + 0xc]
mov eax, dword [0x4236fc]
inc esi
lea ecx, [edx + eax - 0x64ccc2e2]
mov word [esp + 0xc], cx
cmp esi, dword [0x4246f0]
jne 0x40a134
inc dword [esp + 0x14]
mov dx, word [esp + 0x14]
mov ecx, dword [0x424cc8]
movsx eax, dx
lea edx, [eax + ecx + 0x103f7847]
or ebx, 0xffffffff
cmp edx, 0x181f04d5
jne 0x40a1be
add dword [esp + 0x10], ebx
mov eax, dword [0x4236fc]
mov ecx, dword [esp + 0x10]
sub eax, ecx
mov dword [0x4236fc], eax
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
imul edx, edx, 0xc46ae1bc
mov dword [esp + 0x10], edx
cmp esi, 1
je 0x40a219
mov eax, dword [esp + 0x10]
mov ecx, 0xf092dab
sub ecx, eax
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
push 0xa
mov esi, 1
fadd qword [0x424818]
fmul qword [0x424c00]
fstp qword [0x424c00]
add dword [esp + 0x14], ebx
call edi
mov edx, 0xffffbe60
mov word [0x424e74], dx
jmp 0x40a1d4
mov eax, dword [0x424f04]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fsub dword [0x424880]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fmulp st(1)
call fcn.0040ac50
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esp + 0x10], eax
mov dword [0x4236c4], 0x207f167
mov esi, 0x4246f4
jmp 0x40a260
movzx edx, word [esi]
mov eax, dword [edx*4 + 0x4264c8]
push eax
call ebx
fld qword [esp + 0x18]
fsubr qword [0x41ea00]
fmul qword [0x424b48]
movzx ecx, word [esi]
inc edx
add byte [edi], cl
mov bh, 0xe
cmp dword [ecx*4 + 0x4264c8], 0
fstp qword [0x424b48]
je 0x40a2c7
push 0xa
call edi
movzx edx, word [esp + 0x14]
sub edx, 0x1b5efd0
shr bh, 1
mov ch, 1
mov word [esp + 0x14], dx
fld qword [esp + 0x18]
fsubr qword [0x41ea00]
fmul qword [0x424b48]
movzx eax, word [esi]
cmp dword [eax*4 + 0x4264c8], 0
fstp qword [0x424b48]
jne 0x40a290
add esi, 2
cmp esi, 0x4246fc
jne 0x40a260
call dword [0x42698c]
cdq
loopne 0x40a358
pushal
and ch, byte [eax + 0x51]
pop ecx
sbb byte cs:[esi - 0x684d8f64], 0x96
loope 0x40a27b
xchg ebx, eax
xchg ebx, eax
pushal
test al, 0x11
adc dword [esp + eax*4], ebx
push eax
rol byte [esi], 1
sal al, 0xb0
jecxz 0x40a29b
and byte [edi - 0x78], 0x88
cwde
xchg edx, eax
pop ss
pushfd
adc al, 0xd5
push esp
xchg esi, eax
sal byte [esi], cl
adc al, 0x93
xor eax, edi
test dword [ecx], edx
shl byte [edx - 0x52], 0xd0
mov eax, 0x84b00881
int3
mov edx, 0xffb6581b
dec edx
hlt

Function at 0x40b0f3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425160]
jne 0x40b0fd
repz ret
jmp fcn.0040f331