joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101452f2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov ecx, dword [0x102c3e94]
add ecx, 0x4b29
mov dword [0x102c3e94], ecx
mov dword [ebp - 0x10], eax
call fcn.10145f03
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov esi, dword [eax + esi + 0x78]
mov dword [0x102c3e98], 0x47e5
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x102c3e94], 0x660
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x10145478
jmp 0x10145416
mov eax, dword [ebp - 0x28]
mov ecx, eax
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x31], bh
mov byte [ebp - 0x32], cl
je 0x10145432
jmp 0x101453e8
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov dword [0x102c3e94], 0xc39
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x24], edi
jmp 0x10145478
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
xor esi, esi
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + eax*4]
add edx, 0x24f8
mov dword [0x102c3e94], edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x28], esi
jmp 0x10145360
mov eax, dword [ebp - 0x30]
add eax, 1
mov cl, byte [ebp - 0x31]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x32]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x28], eax
jne 0x10145360
jmp 0x10145432
mov eax, 0x660
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x24]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
jmp 0x101453b7
mov al, byte [ebp - 0x32]
test al, 1
jne 0x1014538f
jmp 0x1014543f
mov eax, dword [ebp - 0x48]
add eax, 1
mov ecx, dword [ebp - 0x38]
add ecx, 2
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
xor eax, eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x18]
cmp ecx, edx
mov esi, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x24], eax
jb 0x101453b7
mov eax, dword [ebp - 0x24]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10145483
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x102c3ea0], 0
mov byte [0x102c3ea4], 0
mov dword [0x102c3e94], 0x2002
mov dword [0x102c3e98], 0xf6c
mov dword [0x102c3e9c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x102c3e94], 0x142c
mov eax, dword [0x102c3e9c]
add eax, 1
mov dword [0x102c3e9c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101454d2
jmp 0x101455b0
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x102c3ea8], 0
mov edx, dword [0x102c3ea0]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x102c3ea8], edi
mov dword [0x102c3e98], 0x232c
mov eax, edi
cdq
idiv ecx
mov dword [0x102c3ea0], edx
mov dword [0x102c3e94], 0x347
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x102c3ea4], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x102c3ea4]
mov edx, dword [0x102c3ea0]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x102c3e9c]
add edx, 1
mov dword [0x102c3e9c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x10145507
jmp 0x101455ce
xor eax, eax
mov dword [0x102c3e98], 0x1a2c
mov dword [0x102c3e9c], 0
mov dword [ebp - 0x20], eax
jmp 0x10145507
mov eax, dword [0x102c3e98]
add eax, 0xffffeb75
mov dword [0x102c3e98], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101455e5
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x38
mov dword [ebp - 0xc], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov esi, dword [0x102c3e98]
mov edi, esi
add edi, 0xffffde83
mov dword [0x102c3e94], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
je 0x10145692
jmp 0x10145667
mov dword [0x102c3e98], 0x1815
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
cmp word [eax + ecx*2 - 0x16], 0x61
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], edx
je 0x101456dd
jmp 0x1014574f
mov eax, dword [ebp - 0x24]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x35], cl
mov al, byte [ebp - 0x35]
test al, 1
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edx
jne 0x1014562b
jmp 0x10145692
mov eax, dword [ebp - 0x28]
mov dword [0x102c3e98], 0x9f
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edx
jne 0x1014574f
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x3c]
cmp word [eax + ecx*2], 0x6f
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], edx
je 0x10145643
jmp 0x1014574f
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
cmp word [eax + ecx*2 - 0x14], 0x64
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], edx
jne 0x1014574f
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
cmp word [eax + ecx*2 - 0x12], 0x64
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], edx
jne 0x1014574f
mov eax, dword [ebp - 0x1c]
add eax, 0xffffdce0
mov dword [0x102c3e94], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x30], eax
jne 0x1014574f
mov eax, 1
mov ecx, 0xadf
mov dword [0x102c3e94], 0xadf
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x40], eax
je 0x10145761
mov eax, dword [ebp - 0x30]
xor ecx, ecx
add eax, 0xfffff184
mov dword [0x102c3e98], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
add esp, 0x38
pop esi
pop edi
pop ebp
ret
Function at 0x10145b4f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x102c3e9c], 0
mov dword [0x102c3ea0], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov dword [0x102c3eac], 0
mov dword [0x102c3e98], 0x14e0
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov edx, eax
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
jne 0x10145bc4
mov dword [0x102c3e98], 0xe7d
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x102c3e94], 0xb69
mov edi, ecx
add edi, 1
add edx, 1
mov dword [ebp - 0x2c], eax
mov eax, edx
cdq
idiv esi
mov dword [0x102c3e9c], edx
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x102c3ea0], edx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x102c3ea4], cl
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x102c3e94], 0x226c
mov cl, byte [0x102c3ea4]
mov edx, dword [0x102c3ea0]
mov byte [ebx + edx], cl
mov edx, dword [0x102c3e9c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x102c3ea0]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x102c3eac], ecx
mov dword [0x102c3e94], 0x11c5
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
mov dl, byte [edx + esi]
xor dl, byte [ebx + ecx]
mov ecx, dword [ebp - 0x18]
mov byte [ecx + esi], dl
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x38], edi
je 0x10145bb2
mov eax, dword [0x102c3e9c]
mov ecx, dword [0x102c3ea0]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x10145bc4
Function at 0x10145de6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x10292095]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
call fcn.10145925
mov eax, dword [0x102c3e94]
add eax, 0xffffe70f
mov dword [0x102c3e94], eax
call fcn.1014576b
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.10146111
cmp eax, 0
mov dword [ebp - 0x3c], eax
je 0x10145efa
mov eax, dword [ebp - 0x3c]
mov ecx, dword [0x102c3e94]
add ecx, 0x1acf
mov dword [0x102c3e94], ecx
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.10145cae
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 0xc], ecx
mov dword [0x102c3e94], 0x112
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0x44], ecx
add ecx, 0x1db9
mov esi, dword [ebp - 0x40]
cmp esi, 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
je 0x10145ef0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add esp, 0x50
pop esi
pop edi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop edi
pop ebp
ret
Function at 0x10008580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100085db
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100085db
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x100085c8
cmp esi, edx
jae 0x100085db
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x100085b6
cmp esi, edx
jae 0x100085db
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x1000b320
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x1007d018], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x410], ebx
je 0x1000b443
push 0x104
push 0
push 0x1007e350
mov dword [0x1007d018], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x104
push 0
push 0x1007df40
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x104
push 0
push 0x1007e148
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x104
push 0x1007e350
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 0x104
push 0x1007e148
push 0x104
push 0x1007df40
push 0
push 0
push 0x1007e350
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
push 0x1007df40
push str._sLog
push 0x1007e558
call ebx
add esp, 0xc
push 0
push 0x1007e558
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x1007e148
push 0x1007df40
mov ecx, 0x82
mov esi, 0x1007e558
mov edi, 0x1007df40
push str._s_s.log
rep movsd dword es:[edi], dword [esi]
push 0x1007e558
call ebx
add esp, 0x10
push 0x1007e558
push 0
call fcn.1000ca50
mov ebx, dword [ebp - 0x410]
mov esi, dword [ebp - 0x414]
lea eax, [ebp + 0x14]
mov edx, 0x400
push eax
push ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x40c]
call fcn.1000b2f0
add esp, 0xc
lea eax, [ebp - 0x40c]
push eax
test ebx, ebx
je 0x1000b48b
push ebx
push esi
push str._S_0x_08X__:__S
push 0
call fcn.10001790
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10034b1d
mov esp, ebp
pop ebp
ret
push 0x10072a48
push 0
call fcn.10001790
mov ecx, dword [ebp - 8]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10034b1d
mov esp, ebp
pop ebp
ret
Function at 0x1000cda0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037955
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea edi, [ebx + 8]
push edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x1000cde8
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov dword [ebp - 4], 0
cmp dword [ebx + 4], 0xffffffff
je 0x1000ce8b
mov dword [ebp - 0x14], 0
call fcn.100011b0
mov ecx, eax
test ecx, ecx
je 0x1000cec3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
push str._r_n__Ending_Log:__s__r_n
call fcn.1000bfd0
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
mov eax, dword [esi - 0xc]
add eax, eax
cmp dword [esi - 4], 1
mov dword [ebp - 0x1c], eax
jle 0x1000ce55
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.10006bf0
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push esi
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000ce8b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebx + 0x41], 0
mov dword [ebx + 4], 0
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10034b1d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10008700
int3
Function at 0x1000ff80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037fad
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
mov ebx, dword [ebp + 0xc]
push eax
push 0x101
push 0
push dword [esi + 8]
mov dword [ebp - 0x1c], edi
push dword [esi + 4]
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100100a9
mov dword [ebp - 0x14], eax
call fcn.100011b0
mov ecx, eax
test ecx, ecx
je 0x100100df
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
push 0
push 0
push 0xffffffffffffffff
push str.LogLevel
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edi, [eax - 1]
test edi, edi
jle 0x10010060
mov ecx, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub ecx, edi
or ecx, edx
jge 0x10010039
push edi
lea ecx, [ebp - 0x14]
call fcn.10006ae0
mov esi, dword [ebp - 0x14]
push edi
push esi
push 0xffffffffffffffff
push str.LogLevel
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp edi, dword [esi - 8]
jg 0x100100e9
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
jmp 0x1001006b
lea ecx, [ebp - 0x14]
call fcn.10006b50
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x1c]
push ebx
push 0
push 0
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x100100b5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100100b5
push edi
push ebx
push ecx
mov ecx, esi
call fcn.10010100
mov edi, eax
neg edi
sbb edi, edi
and edi, 0x80004005
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10034b1d
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.10008700
push 0x80070057
call fcn.10008700
int3
Function at 0x10013940
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038421
mov eax, dword fs:[0]
push eax
mov eax, dword [0x1007d00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1007db70]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1007dc8c]
cmp eax, dword [ecx + 4]
jle 0x100139f5
push 0x1007dc8c
call fcn.100350cb
add esp, 4
cmp dword [0x1007dc8c], 0xffffffff
jne 0x100139f5
mov dword [ebp - 4], 0
push 0x1003aaf0
mov dword [0x1007dc74], 0
mov dword [0x1007dc78], 0
mov dword [0x1007dc7c], 0
mov dword [0x1007dc80], 0
mov byte [0x1007dc84], 0
mov dword [0x1007dc88], 0
call fcn.10034f6d
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x1007dc8c
call fcn.10035081
add esp, 4
call fcn.10012a50
push 0xffffffffffffffff
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x1007dc88], 0
jne 0x10013a84
push 1
push 1
push 1
push 0x104
mov ecx, 0x1007dc74
call fcn.10016960
mov eax, dword [0x1007dc88]
push 0
push 0x26
mov byte [eax], 0
push dword [0x1007dc88]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x10013a84
push str.PROGRAMFILES
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x10013a6a
push 0x103
push eax
push dword [0x1007dc88]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
jmp 0x10013a84
mov ecx, dword [0x1007dc88]
movq xmm0, qword [str.C:PROGRA1]
movq qword [ecx], xmm0
mov eax, dword [0x10073834]
mov dword [ecx + 8], eax
call fcn.10012a50
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x1007dc88]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10019220
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100389d7
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0xa0], ebx
mov edx, dword [ebx]
lea esi, [edx + 0x30]
mov ecx, 0x21
lea edi, [ebp - 0x98]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x10], eax
mov eax, dword [edx + 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edx + 0x10]
mov dword [ebx + 8], eax
mov dword [ebx + 0x24], 0
test byte [ebp - 0x38], 0x19
je 0x100192c9
xor esi, esi
cmp byte [ebp + esi*4 - 0x6c], 0
jne 0x100192a7
cmp byte [ebp + esi*4 - 0x6b], 0
jne 0x100192a7
cmp byte [ebp + esi*4 - 0x6a], 0
je 0x100192b9
lea eax, [ebp - 0xa4]
push eax
call fcn.10033810
mov eax, dword [eax]
mov dword [ebp + esi*4 - 0x6c], eax
cmp dword [ebp + esi*4 - 0x94], 0x64
je 0x100192c9
inc esi
cmp esi, 0xa
jl 0x10019292
mov dword [ebx + 0x14], 7
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebx + 8]
cmovbe ecx, dword [ebx + 8]
mov dword [ebx + 0x30], ecx
lea eax, [ecx + 1]
mov dword [ebx + 0x2c], eax
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10035ceb
mov dword [ebx + 0x28], eax
mov ecx, dword [ebx + 0x2c]
shl ecx, 2
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
push dword [ebx + 0x28]
push dword [ebx + 0x2c]
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x94]
push eax
push ecx
call fcn.100335a0
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebx + 8]
cmovbe ecx, dword [ebx + 8]
add ecx, ecx
mov dword [ebx + 0x38], ecx
mov dword [ebp - 4], 0
push 0x18
call fcn.100351a1
add esp, 4
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 1
mov byte [ebp - 0x99], 0
mov ecx, dword [ebx + 0x38]
lea edx, [ebp - 0x99]
push edx
push 1
push 1
push ecx
push ecx
mov ecx, eax
call fcn.100196d0
mov byte [ebp - 4], 0
mov dword [ebx + 0x34], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebx + 0x34], 0
je 0x100193a6
mov dword [ebx + 0x18], 1
xor eax, eax
jmp 0x100193ab
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10034b1d
mov esp, ebp
pop ebp
ret 8
Function at 0x1001ca30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038bc4
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
lea edi, [ecx + 0x30]
mov esi, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov ecx, 0x21
mov eax, dword [ebp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x18]
push 0x18
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x12], 0xff
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], ebx
mov byte [ebp - 0x11], 0
call fcn.100351a1
mov ecx, eax
add esp, 4
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x13]
push eax
push 1
push 1
push dword [ebp - 0x1c]
lea eax, [ebx + ebx]
mov byte [ebp - 0x13], 0
push eax
call fcn.100196d0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0xb4], ebx
cmp byte [ebx + 0x10], 0
jne 0x1001cb00
push dword [ebx + 0x14]
call fcn.10034f90
add esp, 4
push 0xd
push ecx
mov dword [esp], 0x3f800000
lea eax, [ebp - 0x11]
push eax
lea eax, [ebp - 0x12]
mov dword [ebx + 0xc], 0
push eax
push str._R_A_Z_E_R
push 0
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov byte [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
push 0
push dword [esi + 0xb4]
call fcn.10025170
mov eax, dword [ebp + 0x14]
add esp, 0x20
movss xmm1, dword [0x100756a0]
mov dword [esi + 0xbc], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10075730]
xor eax, eax
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [esi + 0xb8], xmm1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10034b1d
mov esp, ebp
pop ebp
ret 0x14