joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003420
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x1009e040]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
push 2
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xffffffff
jne 0x1000347d
call fcn.10003a20
push eax
call fcn.10003dc0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.10006d63
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x100035ec
nop dword [eax]
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x2c]
call fcn.10003720
cmp dword [esi + 0x14], 7
mov edx, esi
mov ebx, dword [esi + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xc], esi
jbe 0x100034cb
mov edx, dword [esi]
mov dword [esp + 0xc], edx
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x100034da
mov eax, dword [eax]
mov dword [esp + 0x10], eax
cmp ebx, ecx
ja 0x10003575
sub ecx, ebx
test ebx, ebx
jne 0x100034ef
xor esi, esi
jmp 0x10003578
movzx edx, word [edx]
inc ecx
mov esi, eax
mov dword [esp + 0x18], edx
lea ecx, [eax + ecx*2]
mov dword [esp + 0x20], ecx
mov eax, ecx
mov ecx, 0
sub eax, esi
sar eax, 1
je 0x10003522
cmp word [esi], dx
je 0x10003520
cmp eax, 1
je 0x10003522
add esi, 2
dec eax
cmp word [esi], dx
jne 0x10003512
mov ecx, esi
mov esi, ecx
test esi, esi
je 0x10003571
mov eax, dword [esp + 0xc]
mov edi, ebx
mov edx, eax
test ebx, ebx
je 0x10003554
mov ebx, esi
sub ebx, eax
nop dword [eax + eax]
movzx ecx, word [ebx + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x10003560
add edx, 2
sub edi, 1
jne 0x10003540
sub esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
sar esi, 1
jmp 0x10003578
mov edx, dword [esp + 0x18]
add esi, 2
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
jmp 0x10003500
mov edi, dword [esp + 0x14]
or esi, 0xffffffff
mov ecx, dword [esp + 0x3c]
cmp ecx, 7
jbe 0x100035b0
mov edx, dword [esp + 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100035a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000360a
push ecx
push edx
call fcn.100070c0
add esp, 8
cmp esi, 0xffffffff
jne 0x100035ce
lea eax, [esp + 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x100035ec
mov esi, dword [esp + 0x24]
jmp 0x100034a0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.10006d63
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x274]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10006d63
mov esp, ebp
pop ebp
ret
call fcn.1000baaa
int3
Function at 0x1000e770
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000e7af
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000e7af
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000e7af
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000e7af
cmp dword [ecx + 0x74], 0xe
jbe 0x1000e7af
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10011b73
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10021480
push 0x10021478
push str.FlsAlloc
push 0x1f
call fcn.10011a3b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011ba7
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001e1a0]
call esi
jmp 0x10011bad
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10011bf1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10021490
push 0x10021488
push str.FlsGetValue
push 0x21
call fcn.10011a3b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011c28
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001e1a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10011c30
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10021498
push 0x10021490
push str.FlsSetValue
push 0x22
call fcn.10011a3b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011c6a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001e1a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10014646
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10007c30
mov eax, dword [0x1009e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10012a55
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10014688
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100147e4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001ce10
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1009f9c0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10014a6b
mov ecx, dword [esi*4 + 0x1009f9c0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x100147dd
cmp eax, dword [ecx + edi + 0x24]
jne 0x100147dd
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100147dd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10014a6b
add esp, 0x14
test edx, edx
jl 0x100147dd
jg 0x10014753
test eax, eax
jb 0x100147dd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100147dd
jl 0x1001476d
cmp dword [ebp - 0x1008], eax
ja 0x100147dd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001478b
test ebx, ebx
je 0x100147c4
cmp ecx, edi
jae 0x100147c4
mov al, byte [ecx]
cmp al, 0xd
jne 0x100147a5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100147b1
cmp byte [ecx + 1], 0xa
jne 0x100147b1
inc ecx
jmp 0x100147b1
movzx eax, al
movsx eax, byte [eax + 0x1009e9a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001478b
cmp edx, ebx
jne 0x1001478b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100147e2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10006d63
leave
ret
Function at 0x100174b3
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 0x10017550
push ebx
push esi
call fcn.1001747c
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.1001619d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100174fd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001754f
push edi
push eax
call fcn.10011ec9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001751d
call fcn.1000fa42
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001754e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001619d
add esp, 0x20
test eax, eax
jne 0x1001753c
push edi
call fcn.1000fa42
jmp 0x10017544
push ebx
call fcn.1000fa42
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 0x10019760
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1000fde6
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 0x100197cf
cmp esi, dword [ebp - 4]
je 0x100197ca
cmp dword [ebp + 0xc], 0
je 0x100197ca
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100197a7
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100192b2
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100197d1
xor eax, eax
inc eax
jmp 0x100197d1
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10019836
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1009e040]
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.1000fde6
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.1000fde6
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 0x100198ad
cmp word [ecx], dx
je 0x100198ad
mov eax, dword [0x10021adc]
push edi
dec eax
push eax
push 0x100219c8
call fcn.100197d5
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10019920
cmp word [eax], dx
je 0x10019920
mov eax, dword [edi]
test eax, eax
je 0x100198d1
cmp word [eax], dx
je 0x100198d1
lea eax, [ebp - 0x10]
push eax
call fcn.100191b8
jmp 0x100198da
lea eax, [ebp - 0x10]
push eax
call fcn.10019253
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1001994a
mov eax, dword [0x100219c4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100216b8
call fcn.100197d5
add esp, 0xc
test al, al
je 0x1001994a
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10019915
cmp word [eax], di
je 0x10019915
lea eax, [ebp - 0x10]
push eax
call fcn.100191b8
pop ecx
jmp 0x1001994c
lea eax, [ebp - 0x10]
push eax
call fcn.10019253
jmp 0x10019912
mov eax, dword [edi]
test eax, eax
je 0x10019937
cmp word [eax], dx
je 0x10019937
lea eax, [ebp - 0x10]
push eax
call fcn.1001916d
pop ecx
jmp 0x1001994a
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 0x10019a15
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001965a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10019a15
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10019a15
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10019a15
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100199a2
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10011d70
test ebx, ebx
je 0x10019a10
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10011d70
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10019a15
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 0x10019a15
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1001b5e1
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10019a17
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006d63
leave
ret
Function at 0x1001a061
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1009f9c0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001a0a1
cmp byte [ebx], 0xa
jne 0x1001a0a1
or byte [edi + eax + 0x28], 4
jmp 0x1001a0a6
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1001a1a5
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001a188
inc eax
cmp dl, 0xd
je 0x1001a0d2
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001a0f8
cmp eax, ecx
jae 0x1001a106
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1001a0ba
jmp 0x1001a1a5
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001a183
cmp dword [ebp - 0x10], 0
je 0x1001a183
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1009f9c0]
test byte [eax + edi + 0x28], 0x48
je 0x1001a15d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001a148
mov byte [esi], dl
jmp 0x1001a159
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1009f9c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001a1a5
cmp byte [ebp - 1], 0xa
jne 0x1001a16c
cmp esi, ebx
jne 0x1001a16c
mov byte [esi], 0xa
jmp 0x1001a1a4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10014a89
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001a1a5
mov byte [esi], 0xd
jmp 0x1001a1a4
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1009f9c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001a1a2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001a1a5
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001a1ae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1009f9c0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001a1f4
cmp word [ebx], dx
jne 0x1001a1f4
or byte [eax + edi + 0x28], 4
jmp 0x1001a1f9
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1001a35c
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1001a33c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001a23a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001a270
cmp eax, edx
jae 0x1001a27e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1001a215
jmp 0x1001a35c
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001a337
cmp dword [ebp - 0x18], 0
je 0x1001a337
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1009f9c0]
test byte [eax + edi + 0x28], 0x48
je 0x1001a30d
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1001a2d1
mov word [esi], cx
jmp 0x1001a308
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1009f9c0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1009f9c0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1009f9c0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001a35c
pop eax
cmp word [ebp - 4], ax
jne 0x1001a31d
cmp esi, ebx
jne 0x1001a31d
mov word [esi], ax
jmp 0x1001a359
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10014a89
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001a35c
push 0xd
pop eax
jmp 0x1001a318
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1009f9c0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001a356
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001a35c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001cdd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001cdfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001cdfd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100825e
Capabilities:
List domain servers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor edi, edi
push edi
push dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
push 0x18
mov dword [eax], edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
push 0x65
push edi
mov dword [ebp - 4], edi
call sub.NETAPI32.dll_NetServerEnum
cmp eax, edi
je 0x10082a8
jle 0x10082a1
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x100839b
mov ecx, dword [ebp - 0xc]
push esi
xor esi, esi
cmp ecx, edi
mov dword [ebp - 0x10], esi
jbe 0x10082d4
mov eax, dword [ebp - 4]
add eax, 8
test byte [eax + 9], 0x10
je 0x10082c7
cmp dword [eax], 5
jb 0x10082c7
inc esi
add eax, 0x18
dec ecx
jne 0x10082bb
cmp esi, edi
mov dword [ebp - 0x10], esi
jne 0x10082de
mov ebx, 0x80070774
jmp 0x100839a
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea eax, [esi + esi*4]
shl eax, 2
push eax
push 0x40
call ebx
mov edi, eax
test edi, edi
mov dword [ebp + 8], edi
jne 0x10082ff
mov ebx, 0x8007000e
jmp 0x100837a
and dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
jbe 0x1008368
xor esi, esi
mov eax, dword [ebp - 4]
add eax, esi
test byte [eax + 0x11], 0x10
je 0x1008357
cmp dword [eax + 8], 5
jb 0x1008357
push dword [eax + 4]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0x40
call ebx
test eax, eax
mov dword [edi], eax
je 0x10083b1
mov ecx, dword [ebp - 4]
push dword [esi + ecx + 4]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [ebp - 4]
mov eax, dword [esi + eax + 0x10]
shr eax, 3
and al, 1
pop ecx
mov byte [edi + 0x10], al
pop ecx
add edi, 0x14
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add esi, 0x18
cmp eax, dword [ebp - 0xc]
jb 0x100830b
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp + 8], ebx
mov dword [eax], esi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100839a
test esi, esi
jbe 0x1008391
push edi
call fcn.01008076
add edi, 0x14
dec esi
jne 0x1008385
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
cmp dword [ebp - 4], 0
je 0x10083a9
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferFree
pop edi
mov eax, ebx
pop ebx
leave
ret 0xc
mov esi, dword [ebp - 0x10]
mov ebx, 0x8007000e
jmp 0x100837a

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 0x100250d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x100250e3
pop dword [ebp - 0x38]
mov eax, 0xe26890f
sub eax, 0xfe24382c
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xfea14b6c
sub dword [ebp - 0x48], 0xb04f0621
mov dword [ebp - 0x44], 0x3ef1bbbf
add dword [ebp - 0x44], 0xf3419086
mov dword [ebp - 0x40], 0xaee9afdc
sub dword [ebp - 0x40], 0x629d6bae
mov dword [ebp - 0x3c], 0x7d10ff5d
add dword [ebp - 0x3c], 0x82ef00a3
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xc3096654
sub dword [ebp - 0x48], 0x4e96fcfe
mov dword [ebp - 0x44], 0xd40a2b06
add dword [ebp - 0x44], 0x6d62366f
mov dword [ebp - 0x40], 0xba8d35e1
sub dword [ebp - 0x40], 0x571dc975
mov dword [ebp - 0x3c], 0x45cf08b1
sub dword [ebp - 0x3c], 0x45cf08b1
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x37ac6
push 0
call eax
mov ecx, 0xd183b7f4
sub ecx, 0xd1837d96
xor edx, edx
add edx, eax
mov esi, 0x33f26207
add esi, 0xdc1621f9
add esi, dword [ebp - 0x38]
mov ebx, 0x84bb0458
add dword [ebp - 8], 0xf66b26a3
mov edi, dword [esi]
xor dword [ebp - 4], ecx
add edi, ebx
xor dword [ebp - 0x1c], 0xb3db512b
mov dword [edx], edi
add dword [ebp - 0x30], esi
add edx, 4
add esi, 0x33119005
add esi, 0xccee6fff
loop 0x100251f7
add eax, 0xdc4b
xor ebx, ebx
add ebx, eax
add eax, 0xcf8eda6
sub eax, 0xcf8eda1
mov ecx, 0x10000000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret