joyce8/EMBER2024-capa huggingface dataset:
Function at 0x585a4d
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61bf68
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edx, dword [esi + 0x40]
test edx, edx
setne bl
inc ebx
test eax, eax
je 0x585a63
or bh, 0x80
lea ecx, [esp + 0xc]
call fcn.0058add0
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], 0
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.0058b090
lea eax, [esp + 0xc]
push ebx
push eax
mov ecx, esi
call fcn.00585ad0
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x11e1978
call fcn.0058afd0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x5904a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61c378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00590080
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.005900f0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.005903d0
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.005900a0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10

Function at 0x5904b8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61c378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00590080
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.005900f0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.005903d0
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.005900a0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x592e00
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x592e0b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x592f0e
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 + 0x11e435c]
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 + 0x11e435c]
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 + 0x11e435c]
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 + 0x11e435c]
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 + 0x11e435c]
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 + 0x11e435c]
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 + 0x11e435c]
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 + 0x11e435c]
xor eax, edx
inc ecx
dec edi
jne 0x592e26
pop edi
test esi, esi
je 0x592f30
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x11e435c]
xor eax, edx
inc ecx
dec esi
jne 0x592f12
pop esi
pop ebx
not eax
ret

Function at 0x5cce00
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x5cce1e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x5cce13
pop esi
ret

Function at 0x5cd300
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x5cd321
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x5cd37b
inc edi
cmp edi, esi
jl 0x5cd315
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x5cd3b0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x5cd36a
cmp byte [eax], bl
je 0x5cd385
cmp byte [eax + 1], bl
je 0x5cd38e
cmp byte [eax + 2], bl
je 0x5cd398
cmp byte [eax + 3], bl
je 0x5cd3a4
add eax, 4
cmp eax, edi
jb 0x5cd341
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x5d9e20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61c620
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.005d99d0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.005d9a50
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.005d9a50
lea ecx, [esi + 0xc]
call fcn.006093b6
lea ecx, [esi + 0x10]
call fcn.006093b6
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.005dafe0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.005dafe0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.005dafe0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0060942b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0060942b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5de660
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x12dc520]
xor edx, edx
cmp eax, edx
jne 0x5de686
xor eax, eax
mov byte [eax + 0x12dc420], al
inc eax
cmp eax, 0x100
jl 0x5de66e
mov dword [0x12dc520], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x12dc420
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x5de717
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x5de6ea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x5de6b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x5de790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x5de7e3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x5de7ca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5e51a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61ca1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.005e5ac0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x11e5fe4
call fcn.0060916c
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x5e5233
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0060916c
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x5e522c
push 0
mov ecx, eax
call fcn.005dc2a0
mov dword [esi + 0xc], eax
jmp 0x5e5235
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x5e5235
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x3ada6024
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
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
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x4b5e0e76
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, reloc.msvcrt.dll_setvbuf
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0
Function at 0x40af40
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00416c90
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.00416c90
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
lea esi, [esi]

Function at 0x40afa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x44006c]
test esi, esi
jle 0x40b0c0
mov eax, dword [0x440070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x40afd4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40b057
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40afc0
mov dword [esp], ebx
call fcn.0040b9a0
mov edi, eax
test eax, eax
je 0x40b0e7
mov eax, dword [0x440070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040bae0
mov edx, dword [0x440070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40b0c7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40b050
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x40b060
add dword [0x44006c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x440070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40b050
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040af40
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x40afde
mov eax, dword [0x440070]
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.0040af40
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040af40
lea esi, cs:[esi]
nop
Function at 0x40b610
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x440088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x440080]
sub esp, 4
test ebx, ebx
je 0x40b665
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
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x40b65e
test eax, eax
jne 0x40b65e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b640
mov dword [esp], 0x440088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40b9a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x40b9c5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x40b9d0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x40b9c5
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 si, si
je 0x40ba18
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40ba0e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40ba1a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x40ba00
xor eax, eax
pop ebx
pop esi
ret
Function at 0x410ea0
Capabilities:
Allocate thread local storage
Create thread
Resume thread

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [0x42a010]
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
test ebx, ebx
je 0x410ecb
mov ecx, dword [0x42a024]
test ecx, ecx
je 0x410f50
mov dword [esp], 0xc
call sub.msvcrt.dll_malloc
mov dword [eax], edi
mov ebx, eax
mov dword [eax + 4], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x410e60
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 8], eax
sub esp, 0x18
test eax, eax
je 0x410f38
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebx + 8]
sub esp, 4
mov dword [ebp], eax
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call fcn.004172e8
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
lock add dword [0x42a028], 1
jne 0x410f98
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x410fd0
mov dword [esp + 4], fcn.004172e8
mov dword [esp], eax
mov dword [0x42a02c], eax
call fcn.00417560
test eax, eax
jne 0x4295c4
mov dword [0x42a024], 1
jmp 0x410ecb
mov edx, dword [0x42a024]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
test edx, edx
jne 0x410ecb
lea esi, [esi]
mov dword [esp], 0
call ebx
mov eax, dword [0x42a024]
sub esp, 4
test eax, eax
je 0x410fb0
jmp 0x410ecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x410f7a
Function at 0x417880
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push edi
xor eax, eax
mov ecx, 9
push ebx
sub esp, 0x84
lea edi, [esp + 0x1c]
lea ebx, [esp + 0x40]
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
sub esp, 4
cmp dword [esp + 0x30], 1
jbe 0x4178df
mov dword [esp + 0x40], 0x40
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
push eax
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
shrd eax, edx, 0x1e
cmp eax, 1
seta al
add esp, 0x84
pop ebx
pop edi
ret

Function at 0x417a60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, eax
push edi
lea edi, [eax + 7]
push esi
mov esi, 0x4ec4ec4f
push ebx
mov ebx, eax
sub esp, 0x4c
mov dword [esp + 0xb], 0x64636261
mov dword [esp + 0xf], 0x68676665
mov dword [esp + 0x13], 0x6c6b6a69
mov dword [esp + 0x17], 0x706f6e6d
mov dword [esp + 0x1b], 0x74737271
mov dword [esp + 0x1f], 0x78777675
mov dword [esp + 0x23], 0x42417a79
mov dword [esp + 0x27], 0x46454443
mov dword [esp + 0x2b], 0x4a494847
mov dword [esp + 0x2f], 0x4e4d4c4b
mov dword [esp + 0x33], 0x5251504f
mov dword [esp + 0x37], 0x56555453
mov dword [esp + 0x3b], 0x5a595857
mov byte [esp + 0x3f], 0
call sub.msvcrt.dll_rand
add ebp, 1
mov ecx, eax
imul esi
mov eax, ecx
sar eax, 0x1f
sar edx, 4
sub edx, eax
imul edx, edx, 0x34
sub ecx, edx
movzx eax, byte [esp + ecx + 0xb]
mov byte [ebp - 1], al
cmp ebp, edi
jne 0x417ae0
mov byte [ebx + 7], 0
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x417c50
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push edi
push esi
push ebx
sub esp, 0x3b0
lea eax, [esp + 0x20]
mov dword [esp], 0x202
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
sub esp, 8
test eax, eax
je 0x417c7f
add esp, 0x3b0
pop ebx
pop esi
pop edi
ret
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
mov ebx, eax
cmp eax, 0xffffffff
jne 0x417cae
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x417c75
mov word [esp + 0x10], 2
xor esi, esi
mov dword [esp], 0x50
call dword [sym.imp.WS2_32.dll_htons]
push edx
mov word [esp + 0x12], ax
mov dword [esp], str.93.184.216.34
call dword [sym.imp.WS2_32.dll_inet_addr]
push ecx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 8], 0x10
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_connect]
sub esp, 0xc
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x38
mov dword [esp + 4], str.GET___HTTP_1.1_r_nHost:_example.com_r_nConnection:_close_r_n_r_n
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_send]
mov esi, dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
lea edi, [esp + 0x1b0]
lea esi, [esi]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x200
mov dword [esp + 4], edi
mov dword [esp], ebx
call esi
sub esp, 0x10
test eax, eax
jg 0x417d28
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
jmp 0x417ca6

Function at 0x417f00
Capabilities:
Delete file

Disassembly:
push esi
push ebx
sub esp, 0x84
mov dword [esp + 4], 0x42b04c
mov dword [esp], str.example.txt
call sub.msvcrt.dll_fopen
test eax, eax
je 0x417f3a
mov dword [esp + 4], str.This_is_a_legitimate_file_operation._n
mov ebx, eax
mov dword [esp], eax
call fcn.00418050
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp + 4], 0x42b082
mov dword [esp], str.example.txt
call sub.msvcrt.dll_fopen
mov ebx, eax
test eax, eax
je 0x417f80
lea esi, [esp + 0x1c]
lea esi, cs:[esi]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x64
mov dword [esp], esi
call sub.msvcrt.dll_fgets
test eax, eax
jne 0x417f60
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], str.example.txt
call sub.msvcrt.dll_remove
add esp, 0x84
pop ebx
pop esi
ret

Function at 0x418010
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x41804d
push ebp
mov ebp, 0xf0f0f0f1
push edi
mov edi, ecx
xor ecx, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
lea esi, [esi]
mov eax, ecx
mul ebp
mov eax, edx
and edx, 0xfffffff0
shr eax, 4
add edx, eax
mov eax, ecx
sub eax, edx
movzx eax, byte [edi + eax]
xor byte [ebx + ecx], al
add ecx, 1
cmp ecx, esi
jne 0x418028
pop ebx
pop esi
pop edi
pop ebp
ret
ret
Function at 0x418090
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
sub esp, 0x48
lea eax, [esp + 0x20]
mov dword [esp + 0x39], 0x754e7845
mov dword [esp + 0x20], 0x6e72656b
mov dword [esp + 0x24], 0x32336c65
mov dword [esp + 0x28], 0x6c6c642e
mov byte [esp + 0x2c], 0
mov dword [esp + 0x2d], 0x74726956
mov dword [esp + 0x31], 0x416c6175
mov dword [esp + 0x35], 0x636f6c6c
mov dword [esp + 0x3c], 0x616d75
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
sub esp, 4
lea edx, [esp + 0x2d]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], 0x3000
mov dword [esp + 8], 0x3e8
mov dword [esp + 4], 0
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
sete al
add esp, 0x48
pop ebx
ret