joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001dd40
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b8f7a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100f6458]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov dword [ebp - 4], eax
lea ecx, [ebx + 0x18]
call fcn.10023820
mov byte [ebp - 4], 1
lea edi, [ebx + 0x58]
push edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 2
lea esi, [edi + 0x20]
mov dword [ebp - 0x18], esi
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
push 8
mov dword [ebp - 0x1c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.10065f32
mov dword [esi], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov byte [ebp - 4], 5
mov dword [edi + 0x34], 0
mov byte [ebp - 4], 6
lea eax, [ebx + 0x94]
mov dword [ebx + 0x90], 0
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 7
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], 7
mov word [eax + 0x18], cx
mov byte [ebp - 4], 8
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], 7
mov word [eax + 0x30], cx
mov byte [ebp - 4], 9
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], 0xf
mov byte [eax + 0x48], cl
mov byte [ebp - 4], 0xa
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], 7
mov word [eax + 0x60], cx
mov byte [ebp - 4], 0xb
mov byte [eax + 0x78], cl
mov dword [eax + 0x8c], ecx
mov dword [eax + 0x90], 7
mov word [eax + 0x7c], cx
mov byte [ebp - 4], 0xc
mov dword [eax + 0xa4], ecx
mov dword [eax + 0xa8], 7
mov word [eax + 0x94], cx
mov byte [ebp - 4], 0xd
mov dword [eax + 0xbc], ecx
mov dword [eax + 0xc0], 7
mov word [eax + 0xac], cx
mov byte [ebp - 4], 0xe
mov dword [eax + 0xd4], ecx
mov dword [eax + 0xd8], 7
mov word [eax + 0xc4], cx
mov byte [ebp - 4], 0xf
mov dword [eax + 0xec], ecx
mov dword [eax + 0xf0], 7
mov word [eax + 0xdc], cx
mov byte [ebp - 4], 0x10
mov dword [eax + 0x104], ecx
mov dword [eax + 0x108], 7
mov word [eax + 0xf4], cx
mov byte [ebp - 4], 0x12
lea eax, [ebx + 0x1a8]
mov word [ebx + 0x1a0], cx
mov dword [ebp - 0x1c], eax
mov dword [eax + 0x24], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
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 0x1001f0b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b9300
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100f6458]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp byte [esi + 0x1a0], 0
jne 0x1001f18d
push 1
lea eax, [ebp - 0x10]
push 0x100c8538
push eax
call fcn.100531f0
add esp, 0xc
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001f110
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.1000c5b0
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001f147
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1001f151
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001f18d
lea eax, [esi + 0x94]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.100213c0
add esp, 8
test al, al
je 0x1001f18d
lea ecx, [esi + 0x18]
push edi
call fcn.10025060
test al, al
je 0x1001f18d
mov dword [esi + 0x90], edi
mov byte [esi + 0x1a0], 1
mov bl, byte [esi + 0x1a0]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10045250
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x100205b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b959b
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x100f6458]
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 al, byte [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov byte [ebp - 0x82c], al
lea eax, [ebp - 0x828]
push dword [ebp - 0x82c]
push ecx
push edx
push esi
push eax
call fcn.1001ef40
add esp, 0x14
mov dword [ebp - 4], 0
cmp dword [ebp - 0x818], 0
je 0x1002067c
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.10089510
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x828]
add esp, 0xc
cmp dword [ebp - 0x814], 8
cmovae eax, dword [ebp - 0x828]
push eax
lea eax, [ebp - 0x810]
push eax
call esi
cmp dword [edi + 0x14], 8
jb 0x1002065d
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x810]
push eax
call esi
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete bl
jmp 0x1002067e
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.10005200
mov al, bl
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.100662e1
mov esp, ebp
pop ebp
ret
Function at 0x10022a30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b9ce4
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x100f6458]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ecx + 4]
sub esp, 0x68
mov esi, dword [ecx + 0xc]
mov ecx, esp
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], esp
mov eax, dword [edx]
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
movups xmm0, xmmword [edx + 4]
movups xmmword [ecx + 4], xmm0
movq xmm0, qword [edx + 0x14]
movq qword [ecx + 0x14], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 7
mov word [edx + 4], ax
mov dword [ebp - 4], eax
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x30], eax
movups xmm0, xmmword [edx + 0x1c]
movups xmmword [ecx + 0x1c], xmm0
movq xmm0, qword [edx + 0x2c]
movq qword [ecx + 0x2c], xmm0
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], 7
mov word [edx + 0x1c], ax
mov byte [ebp - 4], 1
mov dword [ecx + 0x44], eax
mov dword [ecx + 0x48], eax
movups xmm0, xmmword [edx + 0x34]
movups xmmword [ecx + 0x34], xmm0
movq xmm0, qword [edx + 0x44]
movq qword [ecx + 0x44], xmm0
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], 7
mov word [edx + 0x34], ax
mov byte [ebp - 4], 2
mov eax, dword [edx + 0x4c]
mov dword [ecx + 0x4c], eax
xor eax, eax
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x64], 0
movups xmm0, xmmword [edx + 0x50]
movups xmmword [ecx + 0x50], xmm0
movq xmm0, qword [edx + 0x60]
movq qword [ecx + 0x60], xmm0
mov dword [edx + 0x60], 0
mov dword [edx + 0x64], 7
mov word [edx + 0x50], ax
mov dword [ebp - 4], 4
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call 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 0x1002a3c0
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bbca1
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x100f6458]
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 edi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10089510
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call ebx
mov esi, dword [ebp + 8]
test esi, esi
je 0x1002a441
lea eax, [ebp - 0x218]
push eax
call ebx
sub esi, 1
jne 0x1002a433
push str.netul.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.100071f0
mov ecx, eax
test ecx, ecx
je 0x1002a5a3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10006e80
test al, al
jne 0x1002a4b8
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002a496
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.10009800
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x21c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002a4d4
mov bl, 1
jmp 0x1002a4e2
push esi
call fcn.1003e4a0
add esp, 4
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002a501
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x1002a583
cmp dword [edi], 0
jne 0x1002a56a
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x1002a583
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x1002a56a
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x1002a583
cmp dword [edi + 4], 0
je 0x1002a583
cmp dword [edi + 0xc], 0
je 0x1002a583
mov eax, 1
jmp 0x1002a585
xor eax, eax
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.100662e1
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10006e60
int3
Function at 0x1002f490
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bcad9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100f6458]
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 - 4], 0
xor ebx, ebx
mov eax, dword [ebp + 0xc]
xor edi, edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x14], 0
jb 0x1002f4e5
mov eax, dword [eax]
push 0x100cb994
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10094a1c
add esp, 0xc
test eax, eax
jne 0x1002f55a
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1002f571
push 2
push 0
push eax
call fcn.100959ee
push dword [ebp - 0x14]
call fcn.10096112
push dword [ebp - 0x14]
mov ebx, eax
call fcn.10096527
xor ecx, ecx
mov eax, ebx
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.100911a2
mov edi, eax
add esp, 0x18
test edi, edi
je 0x1002f55a
lea eax, [ebx + 1]
push eax
push 0
push edi
call fcn.10089510
push dword [ebp - 0x14]
push ebx
push 1
push edi
call fcn.100955d6
add esp, 0x1c
mov byte [edi + ebx], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1002f571
push eax
call fcn.10094d25
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 1
test edi, edi
je 0x1002f5a6
push ebx
push edi
mov ecx, esi
call fcn.1000c4b0
push edi
call fcn.1008c766
add esp, 4
mov eax, esi
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.100662e1
mov esp, ebp
pop ebp
ret
Function at 0x1002f5d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bcb31
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100f6458]
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, dword [ebp + 8]
mov dword [ebp - 0x2c], 0
test esi, esi
jne 0x1002f610
xor al, al
jmp 0x1002f758
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push 1
push str.miscinstpopup
push eax
call fcn.10053030
add esp, 0xc
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
lea edi, [ecx + 2]
mov word [ebp - 0x48], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002f657
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.1000c5b0
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002f696
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
push 0x100cb9a4
lea ecx, [ebp - 0x48]
call fcn.100182f0
mov edx, str.inst_pop_cfg.ini
lea edi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x1002f6b0
sub edx, edi
mov ecx, eax
sar edx, 1
push edx
push str.inst_pop_cfg.ini
call fcn.100182f0
push eax
lea ecx, [ebp - 0x28]
call fcn.10003de0
mov byte [ebp - 4], 3
mov eax, 1
mov dword [ebp - 0x2c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
call fcn.10005200
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002f72b
lea eax, [ebp - 0x28]
push eax
call fcn.10031b70
add esp, 4
test al, al
jne 0x1002f72b
push 0
push 0x100cb9a8
mov ecx, esi
call fcn.1000c5b0
xor bl, bl
jmp 0x1002f747
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x1002f745
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.1000c5b0
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005200
mov al, bl
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.100662e1
mov esp, ebp
pop ebp
ret
Function at 0x100319f0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bd118
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100f6458]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov byte [ebp - 0x29], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x30], eax
jb 0x10031a3d
mov edi, dword [edi]
cmp eax, 8
jae 0x10031a52
movups xmm0, xmmword [edi]
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x10031a8d
mov esi, eax
lea ecx, [ebp - 0x28]
mov eax, 0x7ffffffe
or esi, 7
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.1000bf90
mov ecx, eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], ecx
lea eax, [eax*2 + 2]
push eax
push edi
push ecx
call fcn.10088a10
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x10031ac5
mov byte [ebp - 0x29], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005200
jmp 0x10031b48
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10031ab1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
sete byte [ebp - 0x29]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10031b34
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10031b2a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031b66
push edx
push ecx
call fcn.10065f62
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100662e1
mov esp, ebp
pop ebp
ret
call fcn.1008c70a
int3
Function at 0x10037cd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x10037da4
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x10037d93
jg 0x10037d08
test edx, edx
je 0x10037d93
call fcn.1000b200
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x10037d58
jg 0x10037d1e
test esi, esi
je 0x10037d58
cmp ebx, eax
jg 0x10037d2d
jl 0x10037d28
cmp edi, esi
jae 0x10037d2d
mov esi, edi
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [ebp + 8]
call fcn.10088a10
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [ebp + 8]
jmp 0x10037d7a
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x10037d8d
mov eax, dword [ebp + 8]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [ebp - 4]
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jg 0x10037d08
jl 0x10037d8d
test edi, edi
jne 0x10037d08
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x10037dc3
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x10037dc5
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [ebp + 0x10], eax
test edi, edi
jl 0x10037e6d
jg 0x10037ddf
test esi, esi
je 0x10037e6d
test eax, eax
jl 0x10037e1e
jg 0x10037de9
test ebx, ebx
je 0x10037e1e
cmp edi, eax
jg 0x10037df8
jl 0x10037df3
cmp esi, ebx
jae 0x10037df8
mov ebx, esi
mov dword [ebp + 0x10], edi
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.10088a10
mov ecx, dword [ebp - 4]
add esp, 0xc
add dword [ebp + 8], ebx
sub esi, ebx
sbb edi, dword [ebp + 0x10]
mov eax, dword [ecx + 0x2c]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x10037e24
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test edi, edi
jl 0x10037e6d
jg 0x10037e2e
test esi, esi
je 0x10037e6d
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x10037e6d
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x10037e59
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [ebp + 8]
call fcn.100955d6
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10040f00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100be261
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100f6458]
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 edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov dword [edi], 0
call fcn.100071f0
mov ecx, eax
test ecx, ecx
je 0x10041094
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 1
push eax
push 0xf003f
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10041055
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push eax
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10041047
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10041055
add eax, 0x10
push 0x100fc2d8
push eax
mov dword [ebp - 0x20], eax
call fcn.1006633d
mov esi, eax
add esp, 8
test esi, esi
je 0x10041055
push dword [ebp - 0x20]
push 0
push esi
call fcn.10089510
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1004100a
push esi
call fcn.10066300
add esp, 4
jmp 0x10041055
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10041010
sub ecx, edx
sar ecx, 1
je 0x1004103e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10041026
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.10009800
push esi
call fcn.10066300
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10041055
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10041074
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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.100662e1
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.10006e60
int3
Function at 0x100410a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100f6458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, edi
mov dword [ebp - 0xc], eax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100410c4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
sub esi, edx
push ecx
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x10041126
lea eax, [esi*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 8]
inc ebx
test eax, eax
je 0x10041126
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10041141
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100662e1
mov esp, ebp
pop ebp
ret 0x10