joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426ab0
Capabilities:
Check for vm using instruction vpcext

Disassembly:
or eax, 0x643c090a
jae 0x426b1c
jb 0x426b24
jo 0x426b31
popal
insb byte es:[edi], dx
cmp eax, 0x73657922
and bh, byte [esi]
or eax, 0x3c09090a
outsb dx, byte [esi]

Function at 0x4eaad0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x98000]
push edi
or ebp, 0xffffffff
jmp 0x4eaaf2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4eaaf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eaae8
mov eax, 1
add ebx, ebx
jne 0x4eab0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4eab1c
jne 0x4eab3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eab3b
dec eax
add ebx, ebx
jne 0x4eab28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4eab00
add ebx, ebx
jne 0x4eab37
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4eab8d
xor ecx, ecx
sub eax, 3
jb 0x4eab53
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4eabc2
sar eax, 1
mov ebp, eax
jmp 0x4eab5e
add ebx, ebx
jne 0x4eab5e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eab2c
inc ecx
add ebx, ebx
jne 0x4eab6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eab2c
add ebx, ebx
jne 0x4eab79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4eab6e
jne 0x4eab8a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4eab6e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4eabac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4eab9e
jmp 0x4eaaee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4eabac
add edi, ecx
jmp 0x4eaaee
pop esi
mov edi, esi
mov ecx, 0x7163
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4eabca
cmp byte [edi], 0xe
jne 0x4eabca
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 0x4eabcf
lea edi, [esi + 0xe7000]
mov eax, dword [edi]
or eax, eax
je 0x4eac47
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xeefd8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xef104]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4eabfc
mov ecx, edi
jns 0x4eac2b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xef108]
or eax, eax
je 0x4eac41
mov dword [ebx], eax
add ebx, 4
jmp 0x4eac19
call dword [esi + 0xef110]
mov ebp, dword [esi + 0xef10c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x4eac7b
sub esp, 0xffffff80
jmp 0x47f2c7
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x40533c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x12c
push 0x409840
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x408d70
push 0x408d78
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x405393
push 0x408d80
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x405393
push 0x408d90
push 0x408d98
call dword [sym.imp.SHLWAPI.dll_StrSpnA]
push 0x408da0
push 0x408da8
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov dword [ebp - 4], 0x173e05
mov edx, dword [ebp + 0xc]
mov ecx, 0xac102
add edx, ecx
mov eax, 0x53872
xor edx, eax
mov dword [ebp + 0xc], edx
mov dword [0x408d6c], 0x404735
mov edx, dword [ebp + 8]
add edx, ecx
xor edx, eax
mov dword [ebp + 8], edx
push dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
xor edx, eax
sub edx, ecx
push edx
mov edx, dword [ebp + 8]
xor edx, eax
mov eax, dword [0x408d6c]
sub edx, ecx
push edx
call eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], 0x173e05
mov eax, dword [ebp - 4]
test eax, eax
je 0x4053f1
xor eax, eax
jmp 0x4053f4
mov eax, dword [ebp - 4]
leave
ret 0xc
Function at 0x401e90
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x401ef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x405050]
test esi, esi
jle 0x401fdd
mov edi, dword [0x405054]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401f24
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401fd6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x401f10
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40201a
lea ebx, [esi + esi*2]
mov esi, dword [0x405054]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401ffa
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401fcf
sub eax, 0x40
and eax, 0xffffffbf
je 0x401fcf
mov eax, dword [esp + 0x20]
add ebx, dword [0x405054]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x401fe4
add dword [0x405050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x401f2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
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 dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x5250b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xce000]
push edi
jmp 0x5250ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5250d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5250c0
mov eax, 1
add ebx, ebx
jne 0x5250e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5250f4
jne 0x525113
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x525113
dec eax
add ebx, ebx
jne 0x525100
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5250d8
add ebx, ebx
jne 0x52510f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x525165
xor ecx, ecx
sub eax, 3
jb 0x52512b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52519a
sar eax, 1
mov ebp, eax
jmp 0x525136
add ebx, ebx
jne 0x525136
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x525104
inc ecx
add ebx, ebx
jne 0x525144
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x525104
add ebx, ebx
jne 0x525151
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x525146
jne 0x525162
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x525146
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x525184
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x525176
jmp 0x5250c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x525184
add edi, ecx
jmp 0x5250c6
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5251a2
cmp byte [edi], 0x11
jne 0x5251a2
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 0x5251a7
lea edi, [esi + 0x11e000]
mov eax, dword [edi]
or eax, eax
je 0x52521f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17199c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x171b18]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5251d4
mov ecx, edi
jns 0x525203
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x171b1c]
or eax, eax
je 0x525219
mov dword [ebx], eax
add ebx, 4
jmp 0x5251f1
call dword [esi + 0x171b2c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x525250
cmp al, 0xef
ja 0x525243
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x525225
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x525232
mov ebp, dword [esi + 0x171b20]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x525284
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x41115e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pushal
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x4030a5
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403030
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x40302c
sub eax, 0x2000
add eax, dword [ebp + 0x10]
call dword [eax]
push eax
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403015
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403030
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x40302c
sub eax, 0x2000
add eax, dword [ebp + 0x10]
call dword [eax]
pop eax
call eax
or eax, eax
jne 0x41121f
push eax
jmp 0x41122d
cmp eax, 0x7f
jne 0x41122b
push 0x100
jmp 0x41122d
push 1
mov esi, dword [ebp + 8]
mov ebx, 0xa
mov ecx, dword [ebp + 0xc]
shr ecx, 2
xor edx, edx
mov eax, dword [ebp + 0xc]
shr eax, 2
sub eax, ecx
push eax
div ebx
add edx, 2
sub dword [esi], edx
xor edx, edx
pop eax
div ebx
add edx, dword [esp]
add edx, 0x45f982a0
xor dword [esi], edx
add esi, 4
loop 0x41123b
pop eax
popal
leave
ret 0x10

Function at 0x411268
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
and eax, 0xffff0000
mov dword [ebp - 4], eax
mov dword [ebp - 4], eax
cmp word [eax], 0x5a4d
jne 0x411290
add eax, dword [eax + 0x3c]
cmp word [eax], 0x4550
je 0x41129c
sub eax, 0x10000
cmp eax, 0x10000
jne 0x41127c
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx], eax
add eax, dword [eax + 0x3c]
lea edx, [eax + 0x18]
lea eax, [edx + 0x60]
mov edx, dword [eax]
add edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
add eax, dword [ebp - 4]
xor ebx, ebx
mov esi, dword [eax + ebx*4]
add esi, dword [ebp - 4]
mov edi, dword [ebp + 0x10]
add edi, dword [edi + 0x3c]
add edi, 0x14
add edi, 4
mov edi, dword [edi + 0x18]
add edi, 0x403019
sub edi, 0x2000
add edi, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403028
sub eax, 0x2000
add eax, dword [ebp + 0xc]
mov ecx, dword [eax]
pop eax
repe cmpsb byte [esi], byte es:[edi]
or ecx, ecx
je 0x41130a
inc ebx
cmp ebx, dword [edx + 0x18]
jne 0x4112ba
mov esi, dword [edx + 0x24]
add esi, dword [ebp - 4]
xor eax, eax
mov ax, word [esi + ebx*2]
add eax, dword [edx + 0x10]
mov ebx, eax
dec ebx
mov esi, dword [edx + 0x1c]
add esi, dword [ebp - 4]
mov eax, dword [esi + ebx*4]
add eax, dword [ebp - 4]
pop ebx
leave
ret 0xc
Function at 0x404df5
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 2
mov dword [ebp - 4], 0x104
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x404e46
mov eax, dword [ebp - 4]
test eax, eax
je 0x404e46
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, esi
cmp word [esi], cx
je 0x404e4e
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x404e35
cmp ecx, 0x5c
jne 0x404e3b
push 0x7c
pop ecx
mov word [eax], cx
add eax, 2
cmp word [eax], 0
jne 0x404e28
jmp 0x404e4e
push 6
pop eax
call fcn.004066cb
pop esi
leave
ret
Function at 0x40661b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
test byte [eax], 2
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edx
je 0x406643
push dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [ecx + 8]
call fcn.0040515f
jmp 0x40664e
mov ebx, dword [eax + 8]
mov edx, dword [ecx + 8]
call fcn.0040d939
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x40668e
call fcn.004168c3
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push 0x40645f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x406686
lea eax, [ebp - 4]
push eax
call fcn.0040bfbe
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call fcn.0040871d
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret

Function at 0x406695
Capabilities:
Encode data using xor

Disassembly:
movzx eax, ax
lea eax, [eax*8 + 0x403910]
xor edx, edx
xor ecx, ecx
cmp dx, word [eax + 2]
jae 0x4066c2
push esi
mov edx, dword [eax + 4]
movzx esi, cx
mov dl, byte [edx + esi]
xor dl, byte [eax]
xor dl, cl
inc ecx
mov byte [esi + edi], dl
cmp cx, word [eax + 2]
jb 0x4066aa
pop esi
movzx eax, word [eax + 2]
mov byte [eax + edi], 0
ret

Function at 0x4066cb
Capabilities:
Encode data using xor

Disassembly:
movzx eax, ax
lea eax, [eax*8 + 0x403910]
xor ecx, ecx
xor edx, edx
cmp cx, word [eax + 2]
jae 0x40670a
push ebx
push edi
mov edi, dword [eax + 4]
movzx ebx, byte [eax]
movzx ecx, dx
movsx di, byte [edi + ecx]
xor di, bx
xor di, dx
mov ebx, 0xff
and di, bx
inc edx
mov word [esi + ecx*2], di
cmp dx, word [eax + 2]
jb 0x4066e1
pop edi
pop ebx
movzx eax, word [eax + 2]
xor ecx, ecx
mov word [esi + eax*2], cx
ret
Function at 0x4075d5
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
cmp dword [ebp + 0xc], 0xffffffff
je 0x407685
test byte [ebp + 0x14], 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x80
je 0x407615
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x40761d
or eax, 0xffffffff
jmp 0x4076e9
call dword [sym.imp.WS2_32.dll_getsockname]
jmp 0x407609
cmp word [ebp - 0xa8], 2
jne 0x407651
push 4
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp + 0xf], 1
call fcn.00408759
push 2
lea eax, [ebp - 0xa6]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00408759
jmp 0x4076a9
cmp word [ebp - 0xa8], 0x17
jne 0x40760d
push 0x10
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp + 0xf], 4
call fcn.00408759
push 2
lea eax, [ebp - 0xa6]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408759
jmp 0x40769c
push 0x1c
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.004087d0
test byte [ebp + 0x14], 1
je 0x4076a5
mov byte [ebp + 0xf], 4
mov dword [ebp - 4], 0x12
jmp 0x4076b0
mov byte [ebp + 0xf], 1
mov dword [ebp - 4], 6
mov al, byte [ebp + 0x10]
mov byte [ebp + 0xd], al
push 4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp + 0xc], 5
mov byte [ebp + 0xe], 0
call fcn.00408759
mov eax, dword [ebp - 4]
add eax, 4
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.0040b87b
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
leave
ret 0x10
Function at 0x407fbe
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0xc], 0xffffffff
je 0x408005
test byte [ebp + 0x14], 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x10
je 0x407ff1
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x407ff9
or eax, 0xffffffff
jmp 0x408030
call dword [sym.imp.WS2_32.dll_getsockname]
jmp 0x407fe8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov ax, word [ebp - 0x1a]
jmp 0x40800b
and dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0xa], ax
mov al, byte [ebp + 0x10]
mov byte [ebp - 0xb], al
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 0xc], 0
call fcn.0040b87b
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
leave
ret 0x10
Function at 0x4099aa
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0xf0000040
push 1
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x409a36
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp eax, 1
jne 0x409a2c
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 0x10
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp eax, 1
jne 0x409a23
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp eax, 1
jne 0x409a23
cmp dword [ebp - 0xc], 0x10
jne 0x409a23
mov byte [ebp - 1], al
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 1]
pop ebx
leave
ret 0xc

Function at 0x409a3e
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x42444c]
cmp eax, 0x270
jl 0x409976
push esi
push edi
xor edx, edx
mov esi, 0x7fffffff
mov ecx, edx
mov eax, dword [ecx*4 + 0x423a84]
xor eax, dword [ecx*4 + 0x423a80]
and eax, esi
xor eax, dword [ecx*4 + 0x423a80]
mov edi, eax
shr eax, 1
and edi, 1
xor eax, dword [edi*4 + section..data]
xor eax, dword [ecx*4 + 0x4240b4]
inc edx
mov dword [ecx*4 + 0x423a80], eax
cmp edx, 0xe3
jl 0x4098cf
cmp edx, 0x26f
jge 0x409948
lea ecx, [edx*4 + 0x423a80]
mov eax, dword [ecx]
xor eax, dword [ecx + 4]
and eax, esi
xor eax, dword [ecx]
mov edi, eax
and edi, 1
mov edi, dword [edi*4 + section..data]
xor edi, dword [ecx - 0x38c]
shr eax, 1
xor edi, eax
mov dword [ecx], edi
add ecx, 4
cmp ecx, 0x42443c
jl 0x40991c
mov ecx, dword [0x42443c]
mov eax, dword [0x423a80]
xor eax, ecx
and eax, esi
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + section..data]
pop edi
xor eax, dword [0x4240b0]
pop esi
mov dword [0x42443c], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x423a80]
inc eax
mov dword [0x42444c], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x423a78]
je 0x409a85
xor ecx, ecx
mov dword [0x423a78], eax
mov dword [0x423a80], eax
inc ecx
mov eax, 0x423a80
push esi
mov edx, dword [eax]
mov esi, edx
shr esi, 0x1e
xor esi, edx
imul esi, esi, 0x6c078965
add esi, ecx
mov dword [eax + 4], esi
add eax, 4
inc ecx
cmp eax, 0x42443c
jl 0x409a5f
mov dword [0x42444c], ecx
pop esi
jmp 0x4098b6
Function at 0x409ab4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x4235e2], 0
jne 0x409aed
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x409ad1
shr eax, 1
xor eax, 0xedb88320
jmp 0x409ad3
shr eax, 1
dec edx
jne 0x409ac4
mov dword [ecx*4 + 0x423678], eax
inc ecx
cmp ecx, 0x100
jb 0x409abf
mov byte [0x4235e2], 1
xor ecx, ecx
or eax, 0xffffffff
cmp dword [esp + 8], ecx
jbe 0x409b19
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x423678]
inc ecx
cmp ecx, dword [esp + 8]
jb 0x409af8
not eax
ret 8

Function at 0x409b81
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov cl, byte [eax + 0x100]
push edi
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x101]
xor edi, edi
mov byte [ebp - 2], cl
cmp dword [ebp + 0xc], edi
jbe 0x409bdb
push ebx
push esi
inc byte [ebp - 1]
movzx esi, byte [ebp - 1]
mov dl, byte [esi + eax]
add byte [ebp - 2], dl
movzx ecx, byte [ebp - 2]
mov bl, byte [ecx + eax]
mov byte [esi + eax], bl
mov byte [ecx + eax], dl
movzx esi, byte [esi + eax]
mov ecx, dword [ebp + 8]
movzx edx, dl
add esi, edx
and esi, 0xff
mov dl, byte [esi + eax]
xor byte [ecx + edi], dl
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x409ba1
pop esi
pop ebx
mov cl, byte [ebp - 1]
mov byte [eax + 0x100], cl
mov cl, byte [ebp - 2]
mov byte [eax + 0x101], cl
pop edi
leave
ret 8

Function at 0x409d7a
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x409dcb
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 0x1c], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x409dbe
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x409db3
inc edi
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x409daa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x409f4c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
xor ecx, ecx
xor esi, esi
mov word [ebp - 4], cx
cmp eax, esi
jne 0x409f73
push 0x44
pop edx
push edx
push esi
lea eax, [ebp - 0x58]
push eax
call fcn.004087d0
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x58]
lea ecx, [ebp - 4]
cmp dword [ebp + 8], esi
je 0x409f7e
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
push eax
push dword [ebp + 0xc]
push esi
push 0x4000000
push esi
push esi
push esi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x409fc5
cmp dword [ebp + 0x10], esi
je 0x409fb0
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
call fcn.00408759
jmp 0x409fc0
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0xc]
jmp 0x409fc7
xor eax, eax
pop esi
leave
ret 0xc