joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003ade0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004fae2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1007100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x244
call fcn.100492e0
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
mov ecx, 0x10074b60
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
mov dword [edi + 0x134], 0xffffffff
mov dword [edi + 0x138], 0
lea edx, [ecx + 1]
mov dword [edi + 0x13c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003ae56
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.1004968c
mov edx, 0x10074b60
mov dword [edi + 0x138], eax
add esp, 4
sub eax, edx
nop dword [eax + eax]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax + edx - 1], cl
test cl, cl
jne 0x1003ae80
mov dword [ebp - 4], 0xffffffff
cmp dword [edi], 0
jne 0x1003af91
cmp dword [edi + 4], 0xffffffff
jne 0x1003af91
lea esi, [edi + 0x140]
push esi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1003aec0
sub esi, ecx
mov al, byte [esi + edi + 0x13f]
cmp al, 0x5c
je 0x1003aee2
cmp al, 0x2f
je 0x1003aee2
mov word [esi + edi + 0x140], 0x2f
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x1003af6b
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
cmp esi, 0xffffffff
push 0x20
setne bl
call fcn.100492e0
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [eax], 1
mov byte [eax + 0x10], 1
mov byte [eax + 1], bl
mov dword [eax + 4], ecx
mov byte [eax + 8], 0
mov dword [eax + 0xc], 0
cmp esi, 0xffffffff
je 0x1003af5a
push 1
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov eax, ecx
mov ecx, eax
call fcn.10039460
mov dword [edi], eax
test eax, eax
je 0x1003af6b
xor eax, eax
jmp 0x1003af96
push ecx
mov ecx, edi
mov dword [0x10074c78], 0x200
call fcn.1003afe0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x1000000
mov dword [0x10074c78], eax
test eax, eax
je 0x1003afbb
push ecx
mov ecx, edi
call fcn.1003afe0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 8
call fcn.100492e0
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], edi
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 0x1003b190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004fb08
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x1007100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea edx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae edx, dword [ebp + 8]
xor ecx, ecx
mov al, byte [edx]
test al, al
je 0x1003b1eb
nop dword [eax]
movsx eax, al
lea edx, [edx + 1]
add eax, ecx
imul ecx, eax, 0x401
mov eax, ecx
shr eax, 6
xor ecx, eax
mov al, byte [edx]
test al, al
jne 0x1003b1d0
lea ecx, [ecx + ecx*8]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
imul esi, ecx, 0x8001
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x1003b238
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003b22e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003b22e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10049656
add esp, 8
mov dword [ebp + 0x18], 0
mov eax, esi
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003c880
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
je 0x1003c957
mov ecx, dword [esi + 0x3c]
mov eax, ecx
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x1003c8b8
cmp dword [esi + 0x40], ebx
jae 0x1003c8b8
push ecx
call fcn.10049687
add esp, 4
mov dword [esi + 0x3c], 0
xor eax, eax
test eax, eax
jne 0x1003c8ce
lea eax, [ebx + ebx]
push eax
call fcn.1004968c
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
xor edx, edx
add esp, 0xc
mov dword [ebp + 8], edx
test ebx, ebx
je 0x1003c954
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, ecx
or edi, 2
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x10056d58]
xor eax, ecx
mov ecx, edi
mov dword [esi + 0x30], eax
xor ecx, 1
movzx eax, al
add eax, dword [esi + 0x34]
imul eax, eax, 0x8088405
imul ecx, edi
inc eax
mov dword [esi + 0x34], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
movzx eax, al
xor cl, bl
shr edx, 8
xor edx, dword [eax*4 + 0x10056d58]
mov dword [esi + 0x38], edx
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
mov byte [edx + eax], cl
inc edx
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0xc]
jb 0x1003c8e2
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1003c995
mov edx, dword [esi + 0x24]
mov ebx, dword [ebp + 0xc]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x1003c97c
pop edi
mov dword [esi + 0x14], 0x30000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
push ebx
add ecx, edx
push edi
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, ebx
add dword [esi + 0x24], ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x1003c9b7
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10040be0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x10040c11
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10040c00
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x10048640
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100512f8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1007100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.10003b00
push 0x100731b8
mov esi, eax
call dword [sym.imp.VCRUNTIME140.dll___std_type_info_hash]
add esp, 4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.10003ce0
test eax, eax
je 0x100486a2
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.10003e90
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x1005cf7c
call fcn.10003750
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x1005cf74
call fcn.10003750
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
mov dword [ebp - 0x34], esp
mov ecx, esp
push eax
call fcn.100058c0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
mov byte [ebp - 4], 0
call fcn.100401a0
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.1000e190
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.10003690
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10048737
test al, 0x10
je 0x10048737
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.10003690
mov al, 1
jmp 0x10048748
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.10003690
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100490d4
mov esp, ebp
pop ebp
ret
Function at 0x4149c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
or ebp, 0xffffffff
jmp 0x4149e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4149e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4149d8
mov eax, 1
add ebx, ebx
jne 0x4149fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4149f0
jne 0x414a0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4149f0
xor ecx, ecx
sub eax, 3
jb 0x414a20
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414a92
mov ebp, eax
add ebx, ebx
jne 0x414a2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414a38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414a5c
inc ecx
add ebx, ebx
jne 0x414a48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414a3d
jne 0x414a59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414a3d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414a7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414a6d
jmp 0x4149de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414a7c
add edi, ecx
jmp 0x4149de
pop esi
mov edi, esi
mov ecx, 0x418
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414a9a
cmp byte [edi], 6
jne 0x414a9a
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 eax, ebx
loop 0x414a9f
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414b0e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14bc4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x14c28]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414acc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x14c2c]
or eax, eax
je 0x414b08
mov dword [ebx], eax
add ebx, 4
jmp 0x414ae9
call dword [esi + 0x14c30]
popal
jmp 0x409bbc
Function at 0x10009160
Capabilities:
Allocate or change rwx memory
Check http status code
Create process on windows
Encode data using base64
Encrypt data using speck
Execute anti-debugging instructions
Execute shellcode via indirect call
Hide graphical window
Parse credit card information
Parse pe header
Resume thread

Disassembly:
jmp 0x10012df3
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1ac], 0x62ff259c
bswap eax
btr eax, 0x9c
push ebp
adc ah, 0xbc
and ebp, 0xaf96299b
mov ebp, esp
shr ax, cl
push ebx
cmp edi, esp
ror eax, 0xa1
rol ax, cl
push edi
push esi
xor al, al
bt eax, edi
sub esp, 0x1ac
mov eax, dword [0x1007a200]
xor eax, ebp
jmp 0x1000ffc2

Function at 0x1001b440
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001b47f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001b47f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001b47f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001b47f
cmp dword [ecx + 0x74], 0xe
jbe 0x1001b47f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001e13d
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 0x1001e1da
push ebx
push esi
call fcn.1001e106
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.1001e09a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001e187
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e1d9
push edi
push eax
call fcn.1001c17d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001e1a7
call fcn.1001cbe2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e1d8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001e09a
add esp, 0x20
test eax, eax
jne 0x1001e1c6
push edi
call fcn.1001cbe2
jmp 0x1001e1ce
push ebx
call fcn.1001cbe2
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 0x1001e447
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d10
push 0x10025d08
push str.FlsAlloc
push 0x1f
call fcn.1001e363
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e47b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002414c]
call esi
jmp 0x1001e481
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001e4c5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d20
push 0x10025d18
push str.FlsGetValue
push 0x21
call fcn.1001e363
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e4fc
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002414c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001e504
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d28
push 0x10025d20
push str.FlsSetValue
push 0x22
call fcn.1001e363
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e53e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002414c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10023ae0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10023b0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10023b0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401686
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404474], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4041cf], ebp
mov dword [0x404404], eax
mov dword [0x4041c7], eax
mov dword [0x4043f0], 0x30
mov dword [0x4043f4], 2
jmp 0x4016c6
mov dword [0x4043f8], 0x403051
mov dword [0x4043fc], 0
mov dword [0x404400], 0
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40440c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404408], eax
mov dword [0x40441c], eax
mov dword [0x404418], 0x40439a
mov dword [0x404410], 0xf
push 0x4043f0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4041c7]
push 0
push 0
push 0x1e0
push 0x1fe
push 0xfffff862
push 0xfffff8f8
push 0xcf0000
push 0x4043e7
push str.lunt
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404468], eax
push 5
push dword [0x404468]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404468]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404420]
jmp 0x40179a
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x40178c
mov eax, dword [0x404428]
jmp 0x4017b5
call 0x402a06
ret
Function at 0x10001340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100053c0
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [esi + 0x20]
test eax, eax
mov dword [ebp - 0x24], eax
je 0x100013b3
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
test eax, eax
je 0x10001397
mov dword [ebp - 0x10], 5
push dword [ebp - 0x24]
call eax
add esp, 4
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
mov eax, dword [ecx + 4]
test eax, eax
je 0x100013b3
push dword [ecx + 8]
push eax
push dword [ebp - 0x24]
call fcn.10013870
add esp, 0xc
mov eax, dword [esi + 0x10]
mov ecx, eax
neg ecx
jo 0x100013cc
jae 0x100013cc
push 1
push eax
push dword [esi + 0x14]
call fcn.10013870
add esp, 0xc
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
nop
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x30], eax
je 0x10001406
inc eax
lea edx, [ecx + 0x260]
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
call fcn.1000dcc0
mov ecx, dword [ebp - 0x28]
jmp 0x100013e0
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1000142b
imul eax, eax, 0x260
push 4
push eax
push dword [ebp - 0x2c]
call fcn.10013870
add esp, 0xc
mov dword [ebp - 0x10], 1
lea eax, [esi + 0x44]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], eax
push eax
call fcn.1000e390
add esp, 4
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10001461
shl eax, 4
lea eax, [eax + eax*2]
push 8
push eax
push dword [edi + 0x48]
call fcn.10013870
add esp, 0xc
mov esi, dword [edi + 0x54]
mov edi, dword [edi + 0x58]
test edi, edi
je 0x1000148c
lea ebx, [esi + 0x5c]
jmp 0x10001476
add ebx, 0x78
dec edi
je 0x1000148c
mov eax, dword [ebx - 4]
test eax, eax
je 0x10001470
push 1
push eax
push dword [ebx]
call fcn.10013870
add esp, 0xc
jmp 0x10001470
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x50]
test eax, eax
je 0x100014a5
imul eax, eax, 0x78
push 8
push eax
push esi
call fcn.10013870
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10006f00
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100079f0
lea eax, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ebp - 0x10], 5
mov eax, dword [ecx]
mov dword [ebp - 0x20], eax
add eax, 0x30
mov dword [ebp - 0x24], eax
push eax
call fcn.1000d4c0
add esp, 4
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10006f65
shl eax, 3
push 4
push eax
push dword [esi + 0x34]
call fcn.10013870
add esp, 0xc
mov eax, dword [esi + 0x64]
test eax, eax
je 0x10006f83
lock dec dword [eax]
jne 0x10006f83
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 4
lea ecx, [eax + 0x64]
call fcn.100077d0
mov eax, dword [ebp - 0x20]
mov esi, dword [eax + 0x68]
test esi, esi
je 0x10006fca
mov edi, dword [ebp - 0x20]
push dword [edi + 0x70]
call dword [sym.imp.kernel32.dll_CloseHandle]
lock dec dword [esi]
mov esi, edi
jne 0x10006fac
lea eax, [esi + 0x68]
push eax
call fcn.10007330
add esp, 4
mov eax, dword [esi + 0x6c]
lock dec dword [eax]
jne 0x10006fca
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 3
add eax, 0x6c
push eax
call fcn.100071d0
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 2
add eax, 0x40
push eax
call fcn.10005730
add esp, 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x20]
lock dec dword [eax]
jne 0x10007000
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x10], 1
call fcn.10007770
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x1000702d
lock dec dword [eax]
jne 0x1000702d
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x84]
mov dword [ebp - 0x10], 0
call fcn.10007770
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x88]
test eax, eax
je 0x10007057
lock dec dword [eax]
jne 0x10007057
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x8c]
mov dword [ebp - 0x10], 0xffffffff
call fcn.10007770
cmp esi, 0xffffffff
je 0x10007072
lock dec dword [esi + 4]
jne 0x10007072
push 8
push 0xa8
push esi
call fcn.10013870
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10009690
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [edx], 2
movdqa xmmword [ecx], xmm0
ret
Function at 0x1001bf50
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
mov cl, 4
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, ebx
or eax, edi
je 0x1001bfca
xor eax, eax
cmp esi, ebx
sbb eax, edi
mov eax, ebx
cmovb eax, esi
cmp eax, esi
ja 0x1001c0a3
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x10]
push eax
push dword [esp + 0x48]
push dword [ebp]
push edx
call dword [ecx + 0xc]
add esp, 0x10
movzx eax, byte [esp + 0x10]
cmp al, 4
jne 0x1001bfd9
mov edx, dword [esp + 0x14]
mov eax, edi
mov cl, 4
cmp ebx, edx
sbb eax, 0
jb 0x1001c0af
sub ebx, edx
sbb edi, 0
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], edi
mov eax, dword [esp + 0x3c]
test esi, esi
jne 0x1001bffa
jmp 0x1001c08e
xor edx, edx
mov eax, dword [esp + 0x3c]
test esi, esi
jne 0x1001bffa
jmp 0x1001c08e
movzx ecx, byte [esp + 0x13]
movzx edi, word [esp + 0x11]
mov edx, dword [esp + 0x14]
shl ecx, 0x10
or edi, ecx
mov ecx, eax
mov eax, dword [esp + 0x3c]
test esi, esi
je 0x1001c08e
mov dword [esp + 4], edi
mov byte [esp + 3], cl
mov ecx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov ebp, dword [esp + 0x44]
mov dword [esp + 8], edx
nop word cs:[eax + eax]
nop dword [eax]
mov edx, ecx
mov dword [esp + 0xc], esi
movzx esi, cl
shr ecx, 8
or edx, 3
mov eax, edx
and eax, 0xfffffffe
imul eax, edx
mov edx, ebx
shr ebx, 8
xor ah, byte [ebp]
xor dl, ah
mov byte [ebp], ah
inc ebp
movzx edx, dl
xor ebx, dword [edx*4 + 0x101cdb94]
movzx edx, bl
add edx, edi
imul edi, edx, 0x8088405
inc edi
mov edx, edi
shr edx, 0x18
xor esi, edx
xor ecx, dword [esi*4 + 0x101cdb94]
mov esi, dword [esp + 0xc]
dec esi
jne 0x1001c020
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 8]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], edi
movzx ecx, byte [esp + 3]
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x3c]
shl edi, 8
movzx ecx, cl
mov dword [eax + 4], edx
or ecx, edi
mov dword [eax], ecx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x101cda00
push esi
push eax
call fcn.101cbcc0
mov dword [esp + 0x10], str.number_of_read_bytes_exceeds_limit
mov dword [esp + 0x14], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], 0
push 0x101cda3c
lea eax, [esp + 0x14]
push eax
call fcn.101cb880
int3