joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6df4fb
Capabilities:
Execute anti-debugging instructions

Disassembly:
invalid
xchg bl, bh
mov bx, di
mov ecx, edi
lea ecx, [ecx*4]
pushfd
jmp 0x6df503
push 0xffffffffffffff99
bound esi, qword [ecx - 0x10]
add ax, si
inc ebp
imul ebp, ebp, 0x37f7047d
jl 0x6df483
invalid
xchg ebx, ecx
mov bx, 0x376d
jmp 0x6df4d7
retf
lea esp, [esp + 4]
xor al, 0xed
call 0x6df510
dec edi
salc
dec ebx
jge 0x6df691
jl 0x6df5e5
inc esp
rcl dword [ecx + 0x30], 0xc3
add eax, 0xb2d747c5
inc ecx
cld
jp 0x6df4eb
retf
setg cl
jmp 0x6df69b
mov ecx, dword [esp + 1]
pushfd
not ebx
jmp 0x6df568
mov ecx, dword [esp + 1]
pushfd
not ebx
setg cl
lea esp, [esp + 8]
not al
mov bl, dl
bt cx, sp
jmp fcn.006df539

Function at 0x6df510
Capabilities:
Execute anti-debugging instructions

Disassembly:
invalid
xchg bl, bh
mov bx, di
mov ecx, edi
lea ecx, [ecx*4]
pushfd
jmp 0x6df503
push 0xffffffffffffff99
bound esi, qword [ecx - 0x10]
add ax, si
inc ebp
imul ebp, ebp, 0x37f7047d
jl 0x6df483
invalid
xchg ebx, ecx
mov bx, 0x376d
jmp 0x6df4d7
retf
lea esp, [esp + 4]
xor al, 0xed
call 0x6df510
dec edi
salc
dec ebx
jge 0x6df691
jl 0x6df5e5
inc esp
rcl dword [ecx + 0x30], 0xc3
add eax, 0xb2d747c5
inc ecx
cld
jp 0x6df4eb
retf
setg cl
jmp 0x6df69b
mov ecx, dword [esp + 1]
pushfd
not ebx
jmp 0x6df568
mov ecx, dword [esp + 1]
pushfd
not ebx
setg cl
lea esp, [esp + 8]
not al
mov bl, dl
bt cx, sp
jmp fcn.006df539

Function at 0x6fe306
Capabilities:
Encrypt data using aes

Disassembly:
sub esp, 0x18
jmp 0x6fe368
mov dword [ecx + 0x14], ebx
mov bx, 0x626b
mov bh, ah
jmp 0x6fe33d
mov ax, word [esp]
push edi
jmp 0x6fe35e
mov dword [ecx + 0x18], eax
xor edx, eax
clc
mov ebx, dword [esp]
jmp 0x6fe323
mov ax, bp
jmp 0x6fe37e
mov edi, ecx
add edi, 0x1c
mov dword [edi], edx
pop edi
jmp 0x6fe348
mov eax, edi
jmp 0x6fe38c
mov ebx, 0x6d8568
lea esp, [esp + 4]
jmp 0x6cbb2c
mov edx, dword [eax + 0xc]
lea ecx, [ecx + esi]
not cx
mov ecx, edx
jmp 0x6fe3de
mov di, 0x86a8
mov di, dx
jmp 0x6fe3ef
mov edi, dword [esp]
mov edi, 0xdde0b5d2
bswap edi
shr ecx, 8
shr edi, cl
jmp 0x6fe3c5
mov edi, edx
pushfd
and ecx, esi
jmp 0x6fe6ab
mov ecx, dword [ecx*4 + 0x6d6d64]
sub esp, 0xf
call fcn.006fe3f9

Function at 0x6fe473
Capabilities:
Encrypt data using aes

Disassembly:
and ecx, 0xff0000
and edi, 0xff000000
pushal
xor ecx, edi
jmp 0x6fe42a
push word [esp + 3]
lea esp, [esp + 2]
jmp 0x6fe4c3
stc
and edx, ebp
xor ecx, edx
bswap edi
jmp 0x6fe4ad
not di
mov di, bx
jmp 0x6fe4ec
shr edi, 0x18
lea esp, [esp + 0x2c]
movzx edi, byte [edi*4 + 0x6d6d64]
xor ecx, edi
jmp 0x6fe47e
xor ecx, dword [eax]
mov dh, 0x83
mov dx, 0x2695
jmp 0x6fe50f
xor ecx, dword [ebx]
lea edi, [eax + 0x10]
push cx
lea esp, [esp + 2]
jmp 0x6fe4d6
mov edx, dword [eax + 4]
cmc
jmp 0x6fe51d
add ebx, 4
mov dl, byte [esp]
mov dword [edi], ecx
rcr dx, 2
jmp 0x6fe4f9
xor edx, ecx
mov dword [eax + 0x14], edx
mov ecx, dword [eax + 8]
call fcn.006fe673
in eax, dx
insd dword es:[edi], dx
std
test byte [edi - 0x3a], dh
std
jle 0x6fe51f
mov eax, dword [esi - 0x3ea930ca]
add byte [ebx + 0x21], 0xf7
mov edi, dword [edi*4 + 0x6d6d64]
lea esp, [esp + 0x2c]
jmp 0x6fe440
Function at 0x6feadd
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
xor edi, dword [edx*4 + 0x6d7d64]
btc dx, cx
bsf edx, edi
jmp 0x6fe9c7
and edx, ecx
mov edx, dword [edx*4 + 0x6d6d64]
and edx, ecx
jmp 0x6fe99e
push eax
mov eax, esi
add eax, 4
jmp 0x6fe9d3
mov edx, dword [eax]
pop eax
clc
pushfd
mov dword [esp], ebx
xor edi, dword [ebx*4 + 0x6d7564]
clc
mov bx, 0xb8d2
movzx ebx, byte [esi + 5]
jmp 0x6fe9ba
and ebx, ecx
lea esp, [esp + 8]
jmp 0x6fe9ef

Function at 0x6fec62
Capabilities:
Encrypt data using aes

Disassembly:
push esi
mov ebx, dword [ebx*4 + 0x6d6d64]
push sp
add esp, 0
lea esp, [esp + 1]
jmp 0x6fec4a
and ebx, ecx
sub esp, 0x17
sub esp, 1
sub esp, 0x13
lea esp, [esp + 3]
jmp 0x6fec34
and ebx, ecx
lea esp, [esp + 0x28]
xor edi, dword [ebx*4 + 0x6d7964]
movzx ebx, byte [esi + 0xa]
jmp 0x6febf7
lea esp, [esp + 0x2c]
xor edi, dword [ebx*4 + 0x6d7564]
btc bx, dx
jmp 0x6fec7a
lea esp, [esp + 1]
jmp 0x6fec0a
jmp 0x6fec21
lea esp, [esp + 0x18]
movzx ebx, byte [esi + 0xd]
jmp 0x6feca5
sub esp, 0x19
setns bl
lea esp, [esp + 1]
jmp 0x6fec64

Function at 0x6fedb4
Capabilities:
Encrypt data using aes

Disassembly:
jmp 0x6feddf
mov word [esp], dx
sub esp, 0xa
lea esp, [esp + 2]
jmp 0x6feebe
mov dword [esi + 0xc], edi
call fcn.006fee10
jne 0x6cc1e9
je 0x6cc201
movsb byte es:[edi], byte [esi]
and al, 0xba
invalid
lea esp, [esp + 0xc]
xor edi, dword [edx*4 + 0x6d7d64]
dec dword [ebp - 4]
jmp 0x6fee26
xor edi, dword [ebx*4 + 0x6d7564]
push esi
and edx, ecx
clc
sub esp, 8
jmp 0x6fee4c
mov edx, dword [edx*4 + 0x6d6d64]
and ebx, ecx
lea esp, [esp + 0x18]
jmp 0x6fee8e

Function at 0x6fee10
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
pop word [esp]
lea esp, [esp]
lea esp, [esp + 2]
jmp 0x6fee2e

Function at 0x7149e8
Capabilities:
Encode data using xor

Disassembly:
lodsb al, byte [esi]
mov edi, 0x458b3186
cld
mov eax, dword [ebp - 4]
call fcn.007148e4
xor byte [ebx], dh
sub al, byte [ebp + 0x40]
add byte [eax - 0x7d], 0xb0
call 0x903ce
jbe 0x711323
cmp dword [esi - 0x40], 0xffffffe7
inc ebx
jmp 0x7148fa
lea edi, [edi - 4]
mov dword [edi], ebx
pop edi
jmp 0x711327
dec ebx
push edi
mov edi, ebp
jmp 0x7148c8
mov dword [ebp - 8], ebx
jmp 0x711327
lea esp, [esp + 0x24]
je 0x7112ef
test eax, eax
jle 0x711343
jg 0x7148de
pushal
jmp 0x71494a
Function at 0x1aa7eb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x14e9000]
push edi
or ebp, 0xffffffff
jmp 0x1aa7ed2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1aa7ed9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1aa7ec8
mov eax, 1
add ebx, ebx
jne 0x1aa7eeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1aa7efc
jne 0x1aa7f1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1aa7f1b
dec eax
add ebx, ebx
jne 0x1aa7f08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1aa7ee0
add ebx, ebx
jne 0x1aa7f17
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1aa7f6d
xor ecx, ecx
sub eax, 3
jb 0x1aa7f33
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1aa7fa2
sar eax, 1
mov ebp, eax
jmp 0x1aa7f3e
add ebx, ebx
jne 0x1aa7f3e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1aa7f0c
inc ecx
add ebx, ebx
jne 0x1aa7f4c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1aa7f0c
add ebx, ebx
jne 0x1aa7f59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1aa7f4e
jne 0x1aa7f6a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1aa7f4e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1aa7f8c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1aa7f7e
jmp 0x1aa7ece
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1aa7f8c
add edi, ecx
jmp 0x1aa7ece
pop esi
mov edi, esi
mov ecx, 0x20752
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1aa7faa
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x1aa7faf
lea edi, [esi + 0x16a3000]
mov eax, dword [edi]
or eax, eax
je 0x1aa8017
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2664e64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2664fa8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1aa7fd5
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2664fb0]
or eax, eax
je 0x1aa8011
mov dword [ebx], eax
add ebx, 4
jmp 0x1aa7ff2
call dword [esi + 0x2664fac]
mov ebp, dword [esi + 0x2664fb4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x1aa804b
sub esp, 0xffffff80
jmp 0x9b1c38
Function at 0x10001710
Capabilities:
Create service
Get common file path
Persist via windows service

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x110]
push ebp
mov ebp, dword [esp + 0x110]
push 0xf01ff
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
jne 0x10001826
mov eax, dword [esp + 0x118]
test eax, eax
jne 0x10001751
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ecx, 0xffffffff
mov edi, str.drivers_
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str..sys
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x24]
mov ecx, edx
push eax
push 1
push 3
push 1
push 0xf01ff
and ecx, 3
push ebx
push ebx
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x124]
pop edi
mov dword [ecx], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x10001a50
Capabilities:
Start service

Disassembly:
push ecx
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x10001a6e
pop edi
pop esi
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 1
push ecx
push edi
mov dword [esp + 0x1c], 0
call fcn.10001710
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 0x10
mov esi, eax
push edi
call ebx
test esi, esi
jne 0x10001aa1
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
mov edi, eax
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10001ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
push 0x104
call fcn.10003a07
mov esi, eax
add esp, 4
test esi, esi
je 0x10001b1f
push edi
mov ecx, 0x41
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov dword [eax], 0x104
lea eax, [esp + 0xc]
push esi
push eax
push 0
push ecx
push edx
mov dword [esp + 0x20], 7
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
je 0x10001b1f
push esi
call fcn.10003460
add esp, 4
xor eax, eax
pop esi
pop ecx
ret
mov eax, esi
pop esi
pop ecx
ret
Function at 0x10001b30
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x424c
call fcn.10003b50
mov al, byte [0x10010250]
push edi
mov byte [esp + 0x4c], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x4d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x30]
lea edx, [esp + 0x38]
stosb byte es:[edi], al
push ecx
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x50]
push edx
lea ecx, [esp + 0x58]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov edx, dword [esp + 0x4274]
lea eax, [esp + 0x48]
push 0
lea ecx, [esp + 0x70]
push eax
push ecx
push edx
mov dword [esp + 0x3c], 0xff
mov dword [esp + 0x58], 0x104
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [esp + 8]
test ecx, ecx
ja 0x10001bc7
xor ecx, ecx
pop edi
test eax, eax
sete cl
mov eax, ecx
add esp, 0x424c
ret
xor eax, eax
push ebp
mov ebp, dword [esp + 0x425c]
push esi
mov dword [esp + 0x18], eax
lea edx, [esp + 0x38]
lea ecx, [esp + 0x14]
push edx
push 0
push 0
push 0
lea edx, [esp + 0x168]
push ecx
push edx
push eax
mov eax, dword [esp + 0x4278]
mov dword [esp + 0x30], 0xff
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x10001d0b
mov ecx, 0xf
mov esi, str.SystemCurrentControlSetServicesTcpipParametersInterfaces_
lea edi, [esp + 0x258]
push 0x3fbf
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ecx, [esp + 0x15c]
lea edx, [esp + 0x25c]
push ecx
push edx
mov dword [esp + 0x18], eax
movsb byte es:[edi], byte [esi]
call fcn.10003a20
add esp, 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 0x258]
push eax
push 3
push 0
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001d0b
mov eax, dword [esp + 0xc]
xor edx, edx
mov dword [esp + 0x20], edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], edx
push ecx
mov dword [esp + 0x2c], edx
push str.IpAddress
push eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x28], eax
call fcn.10001ac0
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
je 0x10001d0b
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x2c]
push edx
push str.SubnetMask
push eax
call fcn.10001ac0
add esp, 0xc
mov dword [esp + 0x28], eax
test eax, eax
jne 0x10001ccb
mov ecx, dword [esp + 0x20]
push ecx
call fcn.10003460
add esp, 4
jmp 0x10001d0b
mov esi, dword [ebp + 4]
push 0x1c
mov edi, dword [esi + 4]
call fcn.10003a07
add esp, 4
mov ecx, esi
test esi, esi
jne 0x10001ce3
mov ecx, eax
test edi, edi
mov dword [eax], ecx
jne 0x10001ceb
mov edi, eax
mov dword [eax + 4], edi
mov dword [esi + 4], eax
mov edx, dword [eax + 4]
lea edi, [eax + 8]
test edi, edi
mov dword [edx], eax
je 0x10001d08
mov ecx, 5
lea esi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
inc dword [ebp + 8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x10001bd6
pop esi
pop ebp
mov eax, 1
pop edi
add esp, 0x424c
ret
Function at 0x10001d30
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
push ecx
push 7
push 0
push str.IPAddress
push edx
call edi
test eax, eax
jne 0x10001d79
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi]
push eax
push ecx
push 7
push 0
push str.SubnetMask
push edx
call edi
test eax, eax
jne 0x10001d79
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
pop edi
pop esi
ret

Function at 0x10001f10
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x1000d47c]
sub esp, 8
xor eax, eax
cmp ecx, 0xffffffff
push esi
je 0x10001fa5
call fcn.10002070
mov edx, dword [0x1000d47c]
lea eax, [esp + 4]
push 0
push eax
push 0
push 0
lea ecx, [esp + 0x20]
push 4
push ecx
push 0x82550080
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, eax
test esi, esi
je 0x10001fa3
mov eax, dword [esp + 0x10]
mov dword [0x10010248], eax
mov eax, dword [0x1001024c]
test eax, eax
jne 0x10001fa3
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 0
push 0
push 0x10001d80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10001faa
push eax
mov dword [0x1001024c], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 8
ret
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x10002290
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x1a4
push ebx
push ebp
mov ebp, dword [esp + 0x1b0]
push esi
test ebp, ebp
je 0x1000238f
mov ebx, dword [esp + 0x1b8]
test ebx, ebx
je 0x1000238f
push edi
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0x26]
mov word [esp + 0x24], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x24]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
pop edi
je 0x1000238f
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000238f
xor ecx, ecx
push 0x63c2
mov dword [esp + 0x12], ecx
mov word [esp + 0x10], 2
mov dword [esp + 0x16], ecx
mov dword [esp + 0x1a], ecx
mov word [esp + 0x1e], cx
call dword [sym.imp.WS2_32.dll_htons]
push str.127.0.0.1
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
lea edx, [esp + 0xc]
push 0x10
push edx
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10002388
lea eax, [esp + 0x1c]
push 4
push eax
push 0xfffffffffffffffb
push 0xffff
push esi
mov dword [esp + 0x30], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x10002388
mov cx, word [esp + 0xe]
mov word [ebx], cx
mov dword [ebp], esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret
Function at 0x100023b0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov eax, 0x8324
call fcn.10003b50
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x8338]
push accept
push edi
mov dword [esp + 0x18], 0x4319
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x100024e6
mov ebp, dword [sym.imp.WS2_32.dll_send]
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
cmp esi, 0xffffffff
je 0x100024e6
lea eax, [esp + 0x14]
push 4
push eax
push 0x1006
push 0xffff
push esi
xor edi, edi
mov dword [esp + 0x28], 0x3e8
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x100024b7
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push edi
lea ecx, [esp + 0x1c]
push 0x4000
push ecx
push esi
call ebx
test eax, eax
jle 0x100024b7
add edi, eax
mov edx, 0x4000
sub edx, edi
push 0
lea eax, [esp + edi + 0x1c]
push edx
push eax
push esi
call ebx
test eax, eax
jg 0x10002441
test edi, edi
je 0x100024b7
lea ecx, [esp + 0x10]
lea edx, [esp + 0x4018]
push ecx
push edx
lea eax, [esp + 0x20]
push edi
push eax
xor ebx, ebx
mov dword [esp + 0x20], 0x4319
call fcn.100021b0
mov ecx, dword [esp + 0x20]
add esp, 0x10
lea edx, [esp + 0x4018]
push ebx
push ecx
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x100024b7
add ebx, eax
mov eax, dword [esp + 0x10]
cmp ebx, eax
je 0x100024b7
sub eax, ebx
push 0
push eax
lea eax, [esp + ebx + 0x4020]
push eax
push esi
call ebp
cmp eax, 0xffffffff
jne 0x10002498
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 0x1000
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, 0x10c6
lea edi, [esp + 0x4018]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, dword [esp + 0x8338]
jmp 0x100023e8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8324
ret
Function at 0x10008356
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1000f6c8
cmp edx, dword [eax]
je 0x10008378
add eax, 8
inc ecx
cmp eax, 0x1000f758
jl 0x10008369
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1000f6c8]
jne 0x100084a6
mov eax, dword [0x100102b4]
cmp eax, 1
je 0x10008480
test eax, eax
jne 0x100083a9
cmp dword [0x100102b8], 1
je 0x10008480
cmp edx, 0xfc
je 0x100084a6
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100083e0
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.100084b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10004a50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10008423
lea eax, [ebp - 0x1a4]
push eax
call fcn.10004a50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000b680
push edi
call fcn.100095b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.100084b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.100084c0
lea eax, [ebp - 0xa0]
push 0x1000b660
push eax
call fcn.100084c0
push dword [esi + 0x1000f6cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.100084c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1000951c
add esp, 0x2c
pop edi
jmp 0x100084a6
lea eax, [ebp + 8]
lea esi, [esi + 0x1000f6cc]
push 0
push eax
push dword [esi]
call fcn.10004a50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x42e766
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c4b0]
jne 0x42e770
repz ret
jmp fcn.0042f010

Function at 0x42ee50
Capabilities:
Delete file

Disassembly:
and ecx, edi
add ecx, 0xae079465
inc esi
mov ah, dl
mov ah, 0x33
jmp 0x42ee61
xor ecx, 0x53d05126
lea eax, [0x50d1a65f]
sal ebx, 1
bts ecx, eax
rcl esi, 0x6d
push 0x30
push 0x2e947867
mov ebx, 0
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edx
pop ecx
push 0xffffffffffffff8e
push 0
pop eax
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
call fcn.0042f263
xor ecx, esi
movzx edi, bp
call fcn.0042eec0
mov esp, 0x4214936f
retf 0xf94b

Function at 0x42fe54
Capabilities:
Get disk information

Disassembly:
push edi
mov ecx, esi
xor edi, edi
call fcn.0042a430
cmp dword [esi + 4], edi
jne 0x42fe67
xor eax, eax
pop edi
ret
mov ecx, esi
call fcn.0042a430
cmp dword [esi + 4], 1
jne 0x42fe91
push edi
mov ecx, esi
call fcn.0042b2f1
movzx eax, ax
push eax
call fcn.0042fe3a
add esp, 4
test al, al
je 0x42fe91
xor eax, eax
inc eax
pop edi
ret
mov ecx, esi
call fcn.0042a430
cmp dword [esi + 4], 3
jne 0x42fef6
push edi
mov ecx, esi
call fcn.0042b2f1
movzx eax, ax
push eax
call dword [sym.imp.MSVCR100.dll_iswalpha]
pop ecx
test eax, eax
je 0x42fef6
push 1
mov ecx, esi
call fcn.0042b2f1
cmp ax, 0x3a
jne 0x42fef6
push 2
mov ecx, esi
call fcn.0042b2f1
movzx eax, ax
push eax
call fcn.0042fe3a
add esp, 4
test al, al
je 0x42fef6
mov ecx, esi
call fcn.0042a430
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb eax, eax
neg eax
pop edi
ret
mov ecx, esi
call fcn.0042a430
cmp dword [esi + 4], 2
jbe 0x43002c
push 0
mov ecx, esi
call fcn.0042b2f1
movzx eax, ax
push eax
call fcn.0042fe3a
add esp, 4
test al, al
je 0x43002c
push 1
mov ecx, esi
call fcn.0042b2f1
movzx eax, ax
push eax
call fcn.0042fe3a
add esp, 4
test al, al
je 0x43002c
push 2
pop edi
push edi
mov ecx, esi
call fcn.0042b2f1
movzx eax, ax
push eax
call fcn.0042fe3a
add esp, 4
test al, al
jne 0x42fe63
mov ecx, esi
inc edi
call fcn.0042a430
cmp edi, dword [esi + 4]
jae 0x42ff85
push edi
mov ecx, esi
call fcn.0042b2f1
movzx eax, ax
push eax
call fcn.0042fe3a
add esp, 4
test al, al
je 0x42ff60
mov ecx, esi
call fcn.0042a430
cmp dword [esi + 4], edi
je 0x42fe63
mov ecx, esi
inc edi
call fcn.0042a430
cmp dword [esi + 4], edi
je 0x42fe63
push edi
mov ecx, esi
call fcn.0042b2f1
movzx eax, ax
push eax
call fcn.0042fe3a
add esp, 4
test al, al
jne 0x42fe63
mov ecx, esi
inc edi
call fcn.0042a430
cmp edi, dword [esi + 4]
jae 0x42ffe7
push edi
mov ecx, esi
call fcn.0042b2f1
movzx eax, ax
push eax
call fcn.0042fe3a
add esp, 4
test al, al
je 0x42ffc2
mov ecx, esi
call fcn.0042a430
lea eax, [edi + 1]
cmp dword [esi + 4], eax
ja 0x42fe63
mov ecx, esi
call fcn.0042a430
cmp dword [esi + 4], edi
jne 0x430015
movzx eax, word [0x43c4d0]
push eax
mov ecx, esi
call fcn.0042a7b2
mov ecx, esi
call fcn.0042a430
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb edi, edi
neg edi
mov eax, edi
pop edi
ret