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

Disassembly:
push word [esp + 3]
lea ebx, [ebp*4]
pop dword [esp]
pop ebx
jmp 0x8142eb
cmc
sub esp, 0x1a
lea esp, [esp + 0x12]
xchg bx, ax
setns ah
bsf bx, si
jmp 0x814396
lea ecx, [edx*4]
mov ebp, esi
xchg ah, bl
mov ch, byte [esp + 1]
mov ebx, 0x1cedbfce
lea eax, [edi*4]
jmp 0x8142d3
pop word [esp + 0x19]
mov cl, ch
lea edx, [esi + 0xcd]
xchg byte [esp + 0x16], al
mov dword [esp + 0x13], ecx
cpuid
jmp 0x81436b
not ebp
xchg byte [esp], al
pop dword [esp + 0xa]
rdtsc
add ebp, ebp
mov cx, word [esp + 0x22]
jmp 0x81432d
lea ebp, [eax - 9]
mov word [esp + 0x1f], bx
call 0x814379
fiadd dword [edi - 0x74fddba4]
fldenv [esi - 0x79]
push esp
and al, 1
pop ebx
jmp 0x8143d0
mov ah, byte [esp + 9]
sub esp, 0x1c
lea ebp, [edi + ebp]
xchg dh, al
bsr dx, cx
push word [esp + 0x13]
jmp 0x814357
xchg byte [esp + 0x1e], dl
setno ch
cpuid
push esp
bsf bp, ax
xor dl, ch
jmp 0x81457e
xchg byte [esp + 0x12], bl
xchg bp, di
inc ecx
bswap esi
xchg word [esp + 0x1a], di
pop word [esp + 0x18]
jmp 0x8143ad
push word [esp + 3]
bsr bx, bp
pop ecx
mov dh, byte [esp + 7]
push dword [esp + 3]
jmp 0x81448e
mov di, 0xf3a5
bsf si, si
mov ebp, 0xa376dc1a
mov dl, dh
pop dword [esp + 2]
pop word [esp + 0x18]
jmp 0x81440e
lea esi, [eax - 0x59]
not ecx
mov si, bx
mov edi, ecx
lea ecx, [ebp + 0x40ba2e1f]
pop esi
jmp 0x814427
neg cx
push word [esp + 2]
mov bl, 0xc8
xchg byte [esp], cl
jmp 0x8144d0
xchg ah, bl
mov dword [esp + 0xf], eax
mov bp, dx
popal
mov esi, 0xfce69934
xchg ebx, eax
jmp 0x814461
lea edx, [edx + edi]
cpuid
mov cl, 0x4a
push dword [esp + 2]
lea ecx, [ecx + 0x7b]
not dh
jmp 0x814477
lea edx, [esp + ecx]
mov dword [esp + 3], esi
cpuid
lea eax, [esp + ecx]
btr edi, edx
jmp 0x81455e
xchg byte [esp + 2], dl
mov word [esp + 1], sp
shr ebx, 5
neg ah
push dword [esp]
jmp 0x8144a0
lea esi, [esi*4]
lea ecx, [edx*4]
clc
mov byte [esp + 1], dh
push word [esp + 3]
add esp, 0
jmp 0x8144b7
mov bl, bh
push word [esp + 0x16]
add al, dh
mov eax, 0xa8f998e2
add edx, ebp
lea edx, [edi + edi]
jmp 0x81444e
lea edi, [esi + 0x22bee5d5]
push word [esp + 1]
bswap esi
pop di
xchg dh, al
lea ebx, [esi*4]
jmp 0x814543
rdtsc
inc ecx
neg ah
xchg esi, eax
pop word [esp]
cpuid
jmp 0x814515
inc al
call fcn.00814599
push edi
retf
lea esp, [esp + 7]
bsr di, cx
rdtsc
mov bl, bh
mov ebx, 0x5fb99e24
mov ecx, eax
jmp 0x814535
lea ebp, [ecx - 0x5795a8fd]
mov bp, 0x44e9
not ecx
setae bh
cpuid
mov edi, 0xe68a0cae
jmp 0x8144fd
Function at 0x814599
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg byte [esp + 3], dl
mov word [esp], bx
xchg dword [esp], edi
xchg cx, ax
xchg ch, dl
jmp 0x814602
neg dx
shr bh, 3
mov di, word [esp + 2]
add di, 0xf24e
rdtsc
jmp 0x8145dc
xchg byte [esp + 3], dl
call fcn.00814884
xchg dword [esp + 2], ecx
mov dword [esp + 1], eax
sete dh
pop word [esp + 1]
add esp, 5
add esp, 1
jmp 0x814850
mov bx, 0x3069
xchg byte [esp], al
bswap esi
rdtsc
mov bl, bh
mov byte [esp], ch
jmp 0x8145ab
btr ebp, edx
cpuid
pushal
lea ecx, [edx + edx]
pop dword [esp + 1]
xchg edx, edi
jmp 0x814652
lea edx, [ecx - 0xab]
xchg byte [esp], al
mov dl, 0x94
push word [esp + 1]
lea esp, [esp + 3]
mov ebp, dword [esp]
jmp 0x814669
not si
setns ch
xchg ch, dl
neg bx
bswap ebx
mov di, word [esp]
jmp 0x81472e

Function at 0x81467a
Capabilities:
Execute anti-debugging instructions

Disassembly:
bsf di, ax
jmp 0x814684
sub esp, 0xa
mov di, word [esp]
push word [esp + 0xb]
mov ebx, dword [esp + 3]
rdtsc
jmp 0x8146d1
mov bl, bh
rdtsc
mov di, dx
neg dx
lea ebx, [ebx + edi]
sete bh
jmp 0x81470a
bsr dx, bp
pushal
pop di
pop bp
shl si, cl
xchg word [esp + 0x17], bx
jmp 0x8146ab
lea esp, [esp + 0xc]
mov dh, byte [esp + 2]
xchg dword [esp + 6], edx
rdtsc
lea esp, [esp]
push word [esp + 0xa]
jmp 0x81477b
add esp, 0xf
pop dword [esp + 0xa]
inc bx
mov byte [esp + 1], dh
xchg byte [esp + 0xa], bl
push esp
jmp 0x8146e4
mov cx, word [esp + 3]
push word [esp + 3]
bswap edx
lea ebp, [ecx + edx]
jmp 0x8147e3
xchg word [esp + 0x11], bx
btr ecx, edx
lea ebp, [ecx + edx]
lea edi, [esp + eax]
lea edx, [eax + edx]
push dword [esp + 0x15]
jmp 0x81474a
not ch
xchg dword [esp + 0xa], ebx
bswap eax
mov byte [esp + 1], ah
xchg byte [esp + 0xa], cl
push dword [esp + 0x10]
jmp 0x814760
add esp, 4
add esp, 5
mov dword [esp], esi
pushal
push dword [esp + 0x22]
pop dword [esp + 6]
jmp 0x8147c6
mov dx, sp
mov dword [esp], esi
mov dword [esp + 6], esi
mov ah, byte [esp + 7]
bswap ebp
xchg word [esp + 9], di
jmp 0x814791
xchg ch, dl
add esp, 1
cpuid
mov dword [esp + 2], esi
pop word [esp + 0x19]
mov esi, ecx
jmp 0x814828
mov si, sp
neg si
mov bh, byte [esp + 0x16]
push esp
add esp, 0x12
xchg byte [esp + 6], bl
jmp 0x8147af
mov si, 0x9ab1
pushal
mov byte [esp + 0x29], dh
neg bh
mov ax, word [esp + 0x2b]
cpuid
jmp 0x814866
xchg dword [esp + 0x1a], eax
neg ah
pop eax
bsr ax, cx
push word [esp + 9]
jmp 0x8147f7
xchg ecx, edi
pop word [esp + 0xe]
mov ecx, dword [esp + 0x1e]
mov ebp, 0xcb5673e6
mov bh, byte [esp + 0xd]
xchg ch, dl
jmp 0x81480f
bswap esi
btc esi, ebx
add esp, 0x34
pop ebp
xchg dword [esp], esi
call fcn.0081489a
mov dword [0x2ed3b426], eax
invalid
Function at 0x814b37
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [esp + 8]
lea edx, [edx*4]
mov ax, di
clc
jmp 0x8152de
neg ax
xchg dword [esp + 4], ebx
lea eax, [ecx - 0xc3]
jmp 0x814af0
mov al, ah
xchg byte [esp + 0xa], bl
mov bh, byte [esp + 0x11]
pop di
xchg dh, al
not ax
jmp 0x814c35
pop word [esp]
push dword [esp + 0xc]
mov eax, dword [esp + 9]
xchg ebp, eax
mov esi, ecx
mov dl, 0x44
jmp 0x814b82
bswap esi
pushal
pop word [esp + 0x18]
sub esp, 2
pop bx
rdtsc
jmp 0x814bab
pop dword [esp + 9]
lea esp, [esp + 9]
mov dword [esp + 5], ecx
pop word [esp + 9]
jmp 0x814c1c
not ch
add esp, 1
not bp
pushal
mov dword [esp + 0xd], eax
mov cx, 0xe1e5
jmp 0x814bd8
push dword [esp + 6]
mov eax, ebp
lea esp, [esp + 0xb]
mov ebx, dword [esp + 8]
setl bh
jmp 0x814c6b
mov esi, ecx
lea edi, [eax*4]
pop di
xchg ah, bl
mov ch, byte [esp + 0xd]
jmp 0x814c03
pop dword [esp + 5]
inc bp
not bh
xchg edi, eax
lea esp, [esp + 0x18]
add esp, 1
jmp 0x814bf0
pop word [esp + 6]
push word [esp + 5]
mov ebp, dword [esp + 0xa]
btc ecx, edi
xchg word [esp + 9], ax
lea esi, [edx*4]
jmp 0x814c81
mov esi, dword [esp + 1]
not ah
mov word [esp + 4], bx
cmc
push dword [esp + 6]
mov dword [esp + 8], ebp
jmp 0x814c47
sub esp, 6
xchg word [esp + 8], di
xchg bh, cl
push word [esp + 6]
setge ah
mov word [esp + 1], di
jmp 0x814d25
cpuid
bswap edx
push word [esp + 1]
pop edx
add ebp, ebp
inc cl
jmp 0x814bc7
xchg di, bp
mov dword [esp], ecx
xchg byte [esp], bl
rcr dh, 7
xchg dword [esp], ecx
neg ch
jmp 0x814cfb
sub bl, ah
mov bx, 0x3db5
lea esi, [esi + edi]
btc ebp, ebx
xor dl, ch
add esp, 1
jmp 0x814d0d
sete bh
inc ecx
pop esi
lea esp, [esp + 7]
and cl, bh
btc ebx, ebx
jmp 0x814cbf
inc al
rcr ah, 1
mov byte [esp + 3], bh
mov dh, byte [esp + 6]
btr edi, edx
pop edi
jmp 0x814cd2
neg ch
neg ch
lea eax, [ebp*4]
mov bl, 0x90
mov cl, ch
rdtsc
jmp 0x8150f7
mov ebp, 0x6bf324be
bsf di, si
xchg byte [esp + 0xe], bl
rdtsc
add esp, 3
lea eax, [edx*4]
jmp 0x814ceb
mov ebp, dword [esp + 2]
pop dx
lea esp, [esp]
neg ch
clc
mov si, word [esp]
jmp 0x814cac
lea ecx, [edx*4]
call fcn.00814d8e
add esp, 7
mov ecx, dword [esp]
mov byte [esp], ah
mov cl, 0xca
bsr di, bp
lea ebp, [esi - 0x63bfcfb3]
jmp 0x814dd9
rdtsc
mov dword [esp], esi
rdtsc
mov dh, byte [esp + 3]
push dword [esp]
xchg bh, cl
jmp 0x814e32
not ah
setne ch
push word [esp + 1]
mov al, ah
xchg word [esp + 1], ax
mov bp, 0x4b3f
jmp 0x814eda
xchg ah, bl
pop ebp
pushal
push esp
add esp, 0x26
mov byte [esp + 1], bh
jmp 0x814d49
Function at 0x816385
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 3]
mov ebp, 0xa8df808e
add esp, 0
neg ch
jmp 0x816399
mov byte [esp], dh
btr ebp, esp
mov byte [esp], dh
mov byte [esp], ch
setl dh
not bh
jmp 0x8163ba

Function at 0x8169da
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub esp, 0x14
pop dword [esp + 0xa]
bswap esi
rdtsc
mov dl, 0x24
xchg bh, cl
jmp 0x8169e7
sub esp, 0x1c
lea esp, [esp + 0x45]
not ah
xor eax, esi
rdtsc
neg bp
jmp 0x81699f
xchg esi, eax
mov dword [esp + 4], esi
xchg cx, di
sub esp, 0x12
jmp 0x8169bf
add esp, 0xf
not ch
clc
lea esp, [esp]
lea esi, [ebx*4]
jmp 0x816ae5
xchg byte [esp], cl
call fcn.00816a08
add ebx, dword [eax + 0x3198690e]
outsd dx, dword [esi]
cmc
or al, 0xff
dec edx
xchg edi, eax
dec cl
push 0xdbbb0f8b
btc ebx, ebx
xchg byte [esp], dl
lea edi, [esp + ebx]
and cl, bh
mov bp, word [esp]
mov bl, 0x18
jmp 0x816a22
inc dx
btr eax, edx
stc
mov edi, 0x81d6b70e
neg si
bswap ebp
jmp 0x816a3c
mov ax, word [esp]
mov bh, byte [esp]
btr ebp, edx
cld
mov bh, byte [esp]
clc
jmp 0x816aca

Function at 0x816d39
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
call fcn.00816008
jmp 0x816d6b
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x816dd4
push dword [esp]
mov dword [esp + 0x38], edi
lea esp, [esp + 0x38]
jmp 0x816d3b
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x816003
Function at 0x408e60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x472dbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a8ca0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x408f98
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408ec6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00465c03
xor eax, eax
jmp 0x40900f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00465d8c
push esi
lea ecx, [esp + 0xc]
call fcn.0046601b
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x408fed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00408df0
test eax, eax
jne 0x408fed
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocStringLen
mov ecx, edi
call fcn.00408df0
test eax, eax
jne 0x408fed
lea eax, [esp + 0x14]
push 0x4a1d44
push eax
call fcn.00456f50
mov esi, eax
add esp, 8
test esi, esi
jne 0x408fcc
lea ecx, [esp + 0x14]
push 0x4a1d40
push ecx
call fcn.00456ed0
mov esi, eax
add esp, 8
test esi, esi
jne 0x408fcc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x408fcf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00465d3c
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x408ede
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00465c03
xor eax, eax
jmp 0x40900f
mov byte [esi], 0
push 0x4a1d3c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00465c03
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x46f8fa
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46f928
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46f946
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046f860
jmp 0x46f946
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46f946
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046f860
test edi, edi
mov eax, edi
jne 0x46f930
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4016a0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4016df
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret
mov edx, dword [esp + 0x10]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 8]
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
je 0x40171a
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret

Function at 0x401730
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40176f
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x401794
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret

Function at 0x402ee0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x80
lea eax, [esp]
push esi
push 0x80
mov esi, ecx
push eax
call sub.WSOCK32.dll_gethostname
lea ecx, [esp + 4]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x402f0e
pop esi
add esp, 0x80
ret
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
push eax
call sub.WSOCK32.dll_inet_ntoa
push eax
lea ecx, [esi + 0x270]
call fcn.004220d0
mov eax, 1
pop esi
add esp, 0x80
ret
Function at 0x404073
Capabilities:
Get hostname
Get local ipv4 addresses
Get socket information

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 7
lea ebp, [esi + 0xfac]
xor eax, eax
mov edi, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
rep stosd dword es:[edi], eax
push 0x18
push 8
stosw word es:[edi], ax
mov dword [esi + 0xfcc], 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [esi + 0xfcc], eax
jne 0x4040c0
mov ecx, esi
call fcn.00404490
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
lea edi, [esi + 0xfd4]
push 0x10
push 8
mov dword [edi], 0x10
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [esi + 0xfd0], eax
jne 0x4040f2
mov ecx, esi
call fcn.00404490
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x40410d
mov ecx, esi
call fcn.00404490
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
lea ecx, [esi + 0xfe8]
xor eax, eax
lea ebx, [esi + 0xff0]
push 3
mov dword [ecx], eax
mov edi, ebx
push 1
push 0x20
mov dword [ecx + 4], eax
mov ecx, 0xf
rep stosd dword es:[edi], eax
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x102c], eax
jne 0x40414f
mov ecx, esi
call fcn.00404490
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edi, 0x1e
mov word [ebp], 0x20
push edi
push ebp
push eax
mov dword [esi + 0xfc6], 0xffffffff
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x404181
mov ecx, esi
call fcn.00404490
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x102c]
lea edx, [esp + 0x10]
push edx
push ebp
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x4041ac
mov ecx, esi
call fcn.00404490
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esi + 0xfcc]
mov dword [ecx + 4], edi
mov edx, dword [esi + 0xfcc]
mov dword [edx], ebp
mov eax, dword [esi + 0xfcc]
mov dword [eax + 0xc], edi
mov ecx, dword [esi + 0xfcc]
mov edi, ebx
mov dword [ecx + 8], ebp
mov edx, dword [esi + 0xfcc]
mov ecx, 0xf
mov dword [edx + 0x10], 1
mov eax, dword [esi + 0xfcc]
mov dword [eax + 0x14], 3
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0xfd0]
mov edx, dword [esi + 0xfcc]
push eax
push eax
push ebx
mov dword [ebx], 0x3c
mov dword [esi + 0xff8], 0x42ed20
mov dword [esi + 0xff4], ecx
mov dword [esi + 0x1000], 0x43a310
mov dword [esi + 0x1004], 0x10
mov dword [esi + 0x101c], 1
mov dword [esi + 0x1020], edx
call dword [sym.imp.WS2_32.dll_WSASetServiceA]
cmp eax, 0xffffffff
jne 0x404257
mov ecx, esi
call fcn.00404490
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x102c]
push SysReAllocString
push eax
call dword [sym.imp.WSOCK32.dll_listen]
cmp eax, 0xffffffff
jne 0x40427d
mov ecx, esi
call fcn.00404490
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov dword [esi], 2
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x40439a
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0xfa0
lea eax, [esp]
push esi
mov esi, ecx
push 0
push 0xfa0
mov ecx, dword [esi + 0x1030]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jle 0x4043d3
lea edx, [esi + 0xfa8]
lea ecx, [esi + 8]
push edx
push ecx
lea edx, [esp + 0xc]
push eax
push edx
call fcn.00404de0
add esp, 0x10
test eax, eax
je 0x4043f2
push 0
push 1
call fcn.00403070
mov eax, dword [esi + 0x1030]
add esp, 8
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esi], 2
xor eax, eax
pop esi
add esp, 0xfa0
ret

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

Disassembly:
mov eax, dword [0x440cb4]
cmp dword [eax + 0x1d0], 2
jne 0x404db9
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov eax, dword [eax + 0x1c0]
push 0
push ecx
push edx
push eax
call sub.WSOCK32.dll_send
ret 8
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push edx
push eax
add ecx, 0xfac
call fcn.004045a0
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4147bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00410d55
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4147de
test byte [esp + 8], 2
je 0x4147de
call fcn.00410dc8
mov dword [eax], 0xd
call fcn.00410dd1
mov dword [eax], 5
jmp 0x4147b7
xor eax, eax
ret
Function at 0x41ce20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040ed50
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41ceeb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41ceeb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41ce9e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41cea9
or bh, 8
and edi, 0x8000000
je 0x41cec4
mov eax, dword [0x44453c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41ceeb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d2c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41d2eb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41d30f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41d32a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x41fca3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41fcdb
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042237a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00422352
jmp 0x41fce7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4