joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002800
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x100283b
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1002822
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x1002833
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x100283d
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1002818
xor eax, eax
pop edi
pop esi
ret

Function at 0x10030a7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.010027d0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.01002785
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.010027d0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.01002785
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.010027c0
invalid
Function at 0x1004b1a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
je 0x1004ba7
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 8]
call fcn.01002f7a
test eax, eax
je 0x1004c10
lea eax, [ebp - 0x128]
push eax
mov esi, 0x100ac44
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [0x100b494], 0x20
je 0x1004b9a
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x24]
sub eax, ebx
je 0x1004b8f
dec eax
je 0x1004b88
dec eax
je 0x1004b81
dec eax
jne 0x1004b9a
push 0x1001400
jmp 0x1004b94
push 0x10013f8
jmp 0x1004b94
push 0x10013f0
jmp 0x1004b94
push 0x10013e8
push esi
call fcn.01005b32
push 0x1001251
push esi
call fcn.01005b32
jmp 0x1004bb6
push dword [ebp + 8]
mov esi, 0x100ac44
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.01003e60
test eax, eax
jne 0x1004bd6
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1004bef
mov dword [0x100b880], 1
push ebx
push dword [ebp + 0x10]
push esi
call fcn.01003f0d
test eax, eax
je 0x1004bfb
xor eax, eax
mov dword [0x100aa5c], ebx
inc eax
jmp 0x1004c12
call fcn.01003547
mov dword [0x100aa5c], eax
jmp 0x1004c10
cmp dword [0x100b880], ebx
je 0x1004c10
push esi
mov dword [0x100b880], ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1005bdd
xor eax, eax
jmp 0x1005be5
shr eax, 4
not eax
and eax, 1
ret 4

Function at 0x1005e13
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ecx], al
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
je 0x1005e49
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x1005e4d
xor eax, eax
jmp 0x1005e63
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
push 0x400
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
leave
ret 4

Function at 0x1007083
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x10070be
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x100709b
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x10070da
dec esi
je 0x10070d3
dec esi
jne 0x10070df
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x4ec020
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x99000]
lea eax, [edi + 0xdd618]
push dword [eax]
mov dword [eax], 0x5efbc13e
push eax
push edi
or ebp, 0xffffffff
jmp 0x4ec052
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ec059
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ec048
mov eax, 1
add ebx, ebx
jne 0x4ec06b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ec07c
jne 0x4ec09b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ec09b
dec eax
add ebx, ebx
jne 0x4ec088
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ec060
add ebx, ebx
jne 0x4ec097
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ec0ed
xor ecx, ecx
sub eax, 3
jb 0x4ec0b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ec122
sar eax, 1
mov ebp, eax
jmp 0x4ec0be
add ebx, ebx
jne 0x4ec0be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ec08c
inc ecx
add ebx, ebx
jne 0x4ec0cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ec08c
add ebx, ebx
jne 0x4ec0d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ec0ce
jne 0x4ec0ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ec0ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ec10c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ec0fe
jmp 0x4ec04e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ec10c
add edi, ecx
jmp 0x4ec04e
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x2adc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ec12e
cmp byte [edi], 0x36
jne 0x4ec12e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x4ec133
lea edi, [esi + 0xe7000]
mov eax, dword [edi]
or eax, eax
je 0x4ec1ab
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xec1dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xec2d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ec160
mov ecx, edi
jns 0x4ec18f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xec2d8]
or eax, eax
je 0x4ec1a5
mov dword [ebx], eax
add ebx, 4
jmp 0x4ec17d
call dword [esi + 0xec2d4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4ec1dc
cmp al, 0xef
ja 0x4ec1cf
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4ec1b1
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4ec1be
mov ebp, dword [esi + 0xec2dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4ec210
sub esp, 0xffffff80
jmp 0x462791
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x446008], 0x8088405
inc edx
mov dword [ebx + 0x446008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cb84
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cbb5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cb9d
add dl, dl
jne 0x41cbc0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc11
xor eax, eax
add dl, dl
jne 0x41cbcd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ccae
add dl, dl
jne 0x41cbdc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbe7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbf2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbfd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cc07
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cbac
mov eax, 1
add dl, dl
jne 0x41cc1f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc2a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc16
sub eax, ebx
mov ebx, 1
jne 0x41cc5d
mov ecx, 1
add dl, dl
jne 0x41cc43
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc4e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc3a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbac
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cc74
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc7f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc6b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbac
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cccf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cbac
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41dffc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4314bb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e0ad
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e096
test esi, esi
jbe 0x41e0ad
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088a4
test eax, eax
jne 0x41e088
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e0ad
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e065
jmp 0x41e0ad
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e0ad
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4314c2
ret
Function at 0x41e8f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x431e9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41e92b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41e944
lea eax, [ebp - 0x10]
mov edx, dword [0x44823c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41e957
lea eax, [ebp - 0x10]
mov edx, dword [0x44823c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41e963
adc edx, 0
mov edx, dword [edx*4 + 0x4470d0]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406af4
mov esi, eax
cmp esi, 0xffffffff
je 0x41ea71
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41ea64
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ea64
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d94
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41ea64
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ea64
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ea64
cmp dx, 0x150
ja 0x41ea64
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41ea64
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ea64
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406aac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41ea89
inc ebx
cmp ebx, 0x19
jne 0x41e91d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431ea6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x10001020
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100b5004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
push edi
mov edi, ecx
cmp esi, ebx
je 0x10001080
lea ecx, [ebp - 0xc]
push ecx
call eax
mov eax, dword [0x100de4f0]
sub ebx, esi
mov edx, dword [ebp - 0xc]
shl eax, 5
shr edx, 6
sub edx, eax
imul eax, dword [0x100de4f0], 0x3fff
add eax, 0x4b0f4aa
add eax, edx
and eax, 0xfffffff
mov dword [0x100de4f0], eax
cdq
idiv ebx
mov eax, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
add esi, edx
mov dword [ebp - 8], 0
test esi, esi
jle 0x100010ec
nop dword [eax + eax]
lea ecx, [ebp - 0x14]
push ecx
call eax
imul ebx, dword [0x100de4f0], 0x3fff
mov eax, dword [0x100de4f0]
mov edx, dword [ebp - 0x14]
shl eax, 5
shr edx, 6
sub edx, eax
add ebx, 0x4b0f4aa
add ebx, edx
mov eax, 0x4ec4ec4f
and ebx, 0xfffffff
mul ebx
mov dword [0x100de4f0], ebx
shr edx, 3
movsx eax, dl
imul ecx, eax, 0x1a
mov eax, dword [ebp - 8]
sub bl, cl
add bl, 0x61
mov byte [edi + eax], bl
inc eax
mov dword [ebp - 8], eax
cmp eax, esi
mov eax, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jl 0x10001090
mov ecx, dword [ebp - 4]
mov eax, edi
mov byte [edi + esi], 0
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
Function at 0x100013a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009920c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x100b5004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
mov dword [edi], vtable.CXSLinkMgr.0
mov dword [edi + 0x44], 0
mov byte [ebp - 4], 1
lea esi, [edi + 0x64]
mov dword [ebp - 0x14], esi
push 0x2c
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1007bcba
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 2
lea esi, [edi + 0x84]
mov dword [ebp - 0x14], esi
push 0x2c
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1007bcba
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 3
push 0xc
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
call fcn.1007bcba
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x90], eax
mov byte [ebp - 4], 4
push 0xc
mov dword [edi + 0xbc], 0
mov dword [edi + 0xc0], 0
call fcn.1007bcba
add esp, 0x10
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0xbc], eax
mov eax, dword [ebp + 8]
lea esi, [edi + 0x20]
mov byte [ebp - 4], 5
mov dword [edi + 4], eax
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x100014bf
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
push 0x20
mov dword [edi + 0xb8], 0
mov dword [edi + 0x8c], 0
call fcn.1007bcba
mov edi, eax
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov byte [ebp - 4], 6
movups xmmword [edi], xmm0
push 0x3c
movups xmmword [edi + 0x10], xmm0
mov dword [edi], esi
call fcn.1007bcba
xorps xmm0, xmm0
mov dword [ebp + 8], eax
add esp, 8
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
mov dword [eax], 0xffffffff
mov byte [eax + 4], 0
mov dword [eax + 0x2c], 0
movups xmmword [eax + 0xc], xmm0
movups xmmword [eax + 0x1c], xmm0
mov dword [edi + 0x1c], eax
mov dword [eax], esi
lea eax, [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push eax
call esi
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x48], edi
mov edi, eax
lea eax, [edi + 8]
push eax
call esi
lea eax, [edi + 0x4c]
push eax
call esi
lea eax, [edi + 0x6c]
push eax
call esi
lea eax, [edi + 0x98]
push eax
call esi
lea eax, [edi + 0xc4]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0
push 0x200
push 0x200
push 0
call esi
push 0
push 0xdc00
push 0
push 0
mov dword [edi + 0xb0], eax
call esi
push 0
push 0x200
push 0x200
push 0
mov dword [edi + 0xb4], eax
call esi
push 0
push 0x1400
push 0
push 0
mov dword [edi + 0xdc], eax
call esi
mov dword [edi + 0xe0], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10002360
Capabilities:
Get hostname
Get session user name
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x100b5004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100df508], 0
push edi
mov edi, ecx
jne 0x10002553
push ebx
push esi
mov byte [0x100df508], 1
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
mov dword [edi + 4], eax
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x454]
mov dword [ebp - 0x458], 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x458]
mov dword [ebp - 0x458], 0x104
push eax
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push 0x40
lea eax, [ebp - 0x44]
mov dword [ebp - 0x464], 0
push 0
push eax
mov dword [ebp - 0x460], 0
call fcn.1007d2d0
add esp, 0xc
mov dword [ebp - 0x45c], 0x40
lea eax, [ebp - 0x464]
push eax
push 1
push 0
push str.SYSTEMSetupMoSetupVolatile
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000244f
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x460]
push eax
push 0
push str.DownlevelProductName
push dword [ebp - 0x464]
call ebx
test eax, eax
je 0x10002493
lea eax, [ebp - 0x464]
push eax
push 1
push 0
push str.softwaremicrosoftwindows_ntcurrentversion
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100024a0
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x460]
push eax
push 0
push str.productname
push dword [ebp - 0x464]
call ebx
test eax, eax
jne 0x100024a0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24c]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x24c]
push eax
call ebx
test eax, eax
jne 0x100024c1
push str.Unknown_OS
lea eax, [ebp - 0x24c]
push eax
call esi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x28]
test eax, eax
je 0x100024ec
cmp eax, 9
lea eax, [ebp - 0x148]
je 0x100024e5
push str.unknown_arch
jmp 0x100024f7
push 0x100a9d00
jmp 0x100024f7
push 0x100a9d04
lea eax, [ebp - 0x148]
push eax
call esi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x454]
push eax
lea esi, [edi + 0x10]
push str.ComputerName:__s__UserName:__s__Os:__s__s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push esi
call ebx
push 0x1010
inc eax
push edi
push 0x100de4f8
mov dword [edi + 8], eax
call fcn.1007e990
add esp, 0xc
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
push 0x1010
push 0x100de4f8
push edi
call fcn.1007e990
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret