joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021270
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1009e5a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100b7bd0]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
push eax
lea eax, [esp + 0xc]
push eax
mov esi, ecx
call fcn.10012640
add esp, 8
mov dword [esp + 0x30], 0
cmp dword [esp + 0x20], 0x10
mov ecx, dword [esp + 0xc]
jae 0x100212ca
lea ecx, [esp + 0xc]
mov eax, dword [esi + 0x24]
call fcn.100362f0
cmp dword [esp + 0x20], 0x10
mov esi, eax
jb 0x100212e8
mov ecx, dword [esp + 0xc]
push ecx
call fcn.10079508
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1007a1bc
add esp, 0x2c
ret 4

Function at 0x100213a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1009e5a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100b7bd0]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.10012640
add esp, 8
test esi, esi
mov dword [esp + 0x30], 0
je 0x10021421
cmp dword [esp + 0x20], 0x10
mov ecx, dword [esp + 0xc]
jae 0x10021400
lea ecx, [esp + 0xc]
mov eax, esi
call fcn.100362f0
cmp dword [esp + 0x20], 0x10
mov esi, eax
jb 0x1002141d
mov ecx, dword [esp + 0xc]
push ecx
call fcn.10079508
add esp, 4
mov eax, esi
jmp 0x10021437
cmp dword [esp + 0x20], 0x10
jb 0x10021435
mov edx, dword [esp + 0xc]
push edx
call fcn.10079508
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1007a1bc
add esp, 0x2c
ret 8

Function at 0x100222c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1009e473
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100b7bd0]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
push eax
lea eax, [esp + 0x14]
push eax
mov edi, ecx
call fcn.10012640
push 0x50
mov dword [esp + 0x44], 0
call fcn.10079665
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
mov byte [esp + 0x38], 1
je 0x10022339
cmp dword [esp + 0x28], 0x10
mov ecx, dword [esp + 0x14]
jae 0x1002232f
lea ecx, [esp + 0x14]
push eax
call fcn.10036370
mov esi, eax
jmp 0x1002233b
xor esi, esi
test esi, esi
mov byte [esp + 0x38], 0
jne 0x1002235c
cmp dword [esp + 0x28], 0x10
jb 0x10022358
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10079508
add esp, 4
xor eax, eax
jmp 0x1002237c
mov ecx, dword [edi + 0x24]
mov eax, esi
call fcn.10036120
cmp dword [esp + 0x28], 0x10
jb 0x1002237a
mov edx, dword [esp + 0x14]
push edx
call fcn.10079508
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1007a1bc
add esp, 0x30
ret 4
Function at 0x10022d40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009b8e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0xc]
push eax
call fcn.10020b90
mov dword [esp + 0x30], 0
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
lea eax, [esp + 0xc]
push eax
call edx
test al, al
jne 0x10022de2
mov eax, dword [esp + 0x20]
cmp eax, 0x100bcefc
je 0x10022da5
push eax
call fcn.10079647
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, 0x100bcefc
je 0x10022db9
push eax
call fcn.10079647
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, 0x100bcefc
je 0x10022dcd
push eax
call fcn.10079647
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov esi, dword [ebp + 8]
add ecx, 1
push ecx
mov ecx, esi
call fcn.10002cf0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [esi + 4]
cmp ecx, edx
jbe 0x10022e05
mov ecx, edx
mov dword [esi + 0xc], ecx
mov edx, dword [eax]
push edx
add eax, 8
push eax
mov ecx, esi
call fcn.10002da0
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 8]
mov edx, dword [ecx]
mov byte [eax + edx], 0
mov eax, dword [esp + 0x20]
cmp eax, 0x100bcefc
je 0x10022e37
push eax
call fcn.10079647
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, 0x100bcefc
je 0x10022e4b
push eax
call fcn.10079647
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, 0x100bcefc
je 0x10022e5f
push eax
call fcn.10079647
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x100233f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 0x400
mov edi, ecx
mov dword [esp + 0x14], 1
xor bl, bl
call fcn.1007a411
push 0x400
mov esi, eax
push 0
push esi
call fcn.1007aac0
mov edx, dword [esp + 0x28]
add esp, 0x10
lea eax, [esp + 0xc]
push eax
mov eax, dword [edi]
push esi
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x24], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10023465
mov ecx, dword [esp + 0x1c]
mov dword [edi + 4], eax
call fcn.10001fd0
push esi
call fcn.1007a4d4
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
add esp, 8
ret 8
mov eax, esi
mov bl, 1
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10023470
mov ecx, dword [esp + 0x1c]
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.10004560
push esi
call fcn.1007a4d4
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
add esp, 8
ret 8
Function at 0x100234a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
mov dword [eax], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [esi]
push 0
push eax
push ecx
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100234ec
mov dword [esi + 4], eax
pop esi
mov al, bl
pop ebx
add esp, 8
ret 8
pop esi
mov al, 1
pop ebx
add esp, 8
ret 8
Function at 0x10024e10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009dea6
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x100b7bd0]
xor eax, esp
mov dword [esp + 0x838], eax
push ebx
push esi
push edi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0x850]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x44]
push ecx
push 0x3fe
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x10024ede
lea ecx, [esp + 0x44]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ebx
cmp edi, 0x3fe
mov dword [esp + 0x858], ebx
jbe 0x10024ee5
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100788a2
mov esi, eax
push ebx
mov dword [esp + 0x28], esi
call fcn.10079647
add esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, ebx
je 0x10024ed5
cmp eax, edi
ja 0x10024ed5
mov word [esi + eax*2], bx
mov word [esi + eax*2 + 2], bx
mov edi, eax
mov dword [esp + 0x18], esi
mov ecx, esi
jmp 0x10024eef
push esi
call fcn.10079647
add esp, 4
xor al, al
jmp 0x10024fbd
mov word [esp + edi*2 + 0x44], bx
mov word [esp + edi*2 + 0x46], bx
xor eax, eax
xor edx, edx
cmp edi, ebx
mov dword [esp + 0x14], eax
jbe 0x10024fae
mov dword [esp + 0x1c], 2
jmp 0x10024f10
mov esi, dword [esp + 0x1c]
cmp word [ecx + esi - 2], bx
jne 0x10024f9a
cmp edx, eax
je 0x10024f9a
lea ecx, [ecx + edx*2]
mov eax, ecx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
lea esi, [eax + 2]
jmp 0x10024f40
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x10024f40
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.10004560
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x85c], 1
call fcn.10006750
mov byte [esp + 0x858], bl
cmp dword [esp + 0x40], 8
jb 0x10024f8b
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.10079508
add esp, 4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add edx, 1
add dword [esp + 0x1c], 2
add eax, 1
cmp eax, edi
mov dword [esp + 0x14], eax
jb 0x10024f10
mov edx, dword [esp + 0x20]
push edx
call fcn.10079647
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x850]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x838]
xor ecx, esp
call fcn.1007a1bc
mov esp, ebp
pop ebp
ret
Function at 0x100257a0
Capabilities:
Get disk information

Disassembly:
cmp dword [ebx + 0x14], 0
jne 0x100257a9
xor al, al
ret
cmp dword [ebx + 0x18], 8
push esi
lea esi, [ebx + 4]
jb 0x100257b7
mov eax, dword [esi]
jmp 0x100257b9
mov eax, esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x1002580d
cmp eax, 2
jne 0x10025808
mov eax, dword [ebx + 0x18]
cmp eax, 8
jb 0x100257d7
mov ecx, dword [esi]
jmp 0x100257d9
mov ecx, esi
cmp word [ecx], 0x41
je 0x10025808
cmp eax, 8
jb 0x100257e6
mov esi, dword [esi]
cmp word [esi], 0x42
je 0x10025808
xor edi, edi
mov eax, ebx
call fcn.10004290
cmp word [eax], 0x61
je 0x10025808
mov eax, ebx
call fcn.10004290
cmp word [eax], 0x62
jne 0x1002580d
pop edi
xor al, al
pop esi
ret
pop edi
mov al, 1
pop esi
ret
Function at 0x10028c10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1009ef48
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
xor esi, esi
push 0xffffffffffffffff
push esi
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], esi
push ebx
mov ecx, edi
mov word [edi + 4], si
call fcn.10002490
mov dword [esp + 0x14], esi
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0x1c], eax
lea eax, [ebx + 0x20]
lea esi, [edi + 0x20]
call fcn.10027390
mov cl, byte [ebx + 0x30]
mov byte [edi + 0x30], cl
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x100298f0
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x100298ff
xor al, al
pop ecx
ret 4
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10029924
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10029924
xor al, al
pop esi
pop ecx
ret 4
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
call fcn.1007ac90
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [esp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
pop ecx
ret 4
Function at 0x100299e0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x1009c278
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, dword [esp + 0x54]
xor ebx, ebx
mov dword [esi], ebx
mov dword [esp + 0x4c], ebx
push 8
push str.https:__
lea ecx, [esp + 0x30]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [esi + 0xc], bl
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
call fcn.10004560
mov byte [esp + 0x4c], 1
mov eax, edi
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebx
mov word [esp + 0x10], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10029a56
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.10004560
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0x54], 2
call fcn.10003c30
add esp, 8
cmp dword [esp + 0x24], 8
mov byte [esp + 0x54], al
jb 0x10029a9f
mov edx, dword [esp + 0x10]
push edx
call fcn.10079508
add esp, 4
cmp dword [esp + 0x40], 8
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebx
mov word [esp + 0x10], bx
jb 0x10029ac4
mov eax, dword [esp + 0x2c]
push eax
call fcn.10079508
add esp, 4
cmp byte [esp + 0x54], bl
je 0x10029ace
mov byte [esi + 0xc], 1
cmp byte [esi + 0xc], bl
je 0x10029adb
or dword [esp + 0x5c], 0x800000
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push ebx
push ecx
push 0xffffffffffffffff
push ebx
push edi
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp byte [esi + 0xc], bl
mov dword [esi], eax
je 0x10029b30
cmp eax, ebx
je 0x10029b30
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x60]
push edx
push 0x1f
push eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x64], ebx
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
mov ecx, dword [esi]
or dword [esp + 0x5c], 0x100
push 4
lea eax, [esp + 0x60]
push eax
push 0x1f
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x44
ret 0xc
Function at 0x1002a030
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [eax]
sub esp, 8
test eax, eax
push ebx
push edi
jne 0x1002a04c
or eax, 0xffffffff
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 8]
push ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1002a041
mov edx, dword [esp + 8]
add dword [esi + 0xc], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
cmp edi, dword [esi + 4]
je 0x1002a0df
mov ecx, edi
sub ecx, dword [esi + 0x18]
cmp ecx, 0x3e8
jbe 0x1002a0b1
mov ebx, dword [esi + 0xc]
mov eax, ebx
sub eax, dword [esi + 0x1c]
xor edx, edx
div ecx
test eax, eax
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
jge 0x1002a0a8
fadd qword [0x100aab18]
fstp qword [esi + 0x10]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
mov eax, dword [esi + 0xc]
fild dword [esi + 0xc]
test eax, eax
jge 0x1002a0c1
fadd qword [0x100aab18]
mov ecx, edi
sub ecx, dword [esi]
test ecx, ecx
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
jge 0x1002a0d7
fadd qword [0x100aab18]
fdivp st(1)
mov dword [esi + 4], edi
fstp qword [esi + 0x20]
mov eax, dword [esp + 8]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1002a350
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x1009c238
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100b7bd0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5c]
mov ebx, ecx
mov dword [esp + 0x14], ebx
add ebx, 0x8c
mov ecx, ebx
call fcn.10001fd0
xor edi, edi
xor esi, esi
lea ecx, [ecx]
movzx eax, byte [esi + ebp]
push eax
lea ecx, [esp + 0x38]
push str._02x
push ecx
call fcn.1007d54c
lea eax, [esp + 0x40]
add esp, 0xc
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1002a3d0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x20]
call fcn.10004560
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
mov dword [esp + 0x60], edi
call fcn.10002380
mov dword [esp + 0x54], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x1002a41d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10079508
add esp, 4
add esi, 1
cmp esi, 6
jl 0x1002a3a0
mov edx, dword [ebp]
mov eax, dword [esp + 0x14]
mov dword [eax + 0xa8], edx
mov cx, word [ebp + 4]
mov word [eax + 0xac], cx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1007a1bc
add esp, 0x44
ret 4
Function at 0x1002ae80
Capabilities:
Check os version

Disassembly:
sub esp, 0x124
mov eax, dword [0x100b7bd0]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
push 0x114
lea eax, [esp + 0x18]
push 0
push eax
mov ebx, ecx
mov dword [esp + 0x1c], 0
call fcn.1007aac0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, ebx
xor esi, esi
call fcn.1002afc0
test eax, eax
jbe 0x1002af0b
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x1002aee9
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x1002aeee
call fcn.10079637
mov edx, dword [ebx + 4]
mov eax, dword [edx + esi*4]
push eax
call fcn.10079508
add esp, 4
mov eax, ebx
add esi, 1
call fcn.1002afc0
cmp esi, eax
jb 0x1002aed6
mov edi, dword [ebx + 8]
cmp dword [ebx + 4], edi
jbe 0x1002af18
call fcn.10079637
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x1002af25
call fcn.10079637
cmp esi, edi
je 0x1002af4e
mov eax, dword [ebx + 8]
sub eax, edi
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea ebp, [ecx + esi]
jle 0x1002af4b
push ecx
push edi
push ecx
push esi
call fcn.100792fc
add esp, 0x10
mov dword [ebx + 8], ebp
cmp dword [esp + 0x24], 2
jne 0x1002af69
push ebx
call fcn.1002a7d0
push ebx
call fcn.1002ac10
push ebx
call fcn.1002a680
jmp 0x1002af83
xor esi, esi
cmp dword [esp + 0x10], 0
jne 0x1002af83
call fcn.1002a990
add esi, 1
cmp esi, 0xa
mov dword [esp + 0x10], eax
jl 0x1002af6b
mov eax, dword [ebx + 4]
test eax, eax
jne 0x1002af8e
xor ebx, ebx
jmp 0x1002af96
mov ebx, dword [ebx + 8]
sub ebx, eax
sar ebx, 2
mov ecx, dword [esp + 0x130]
pop edi
pop esi
xor eax, eax
test ebx, ebx
pop ebp
setne al
pop ebx
xor ecx, esp
call fcn.1007a1bc
add esp, 0x124
ret
Function at 0x10036b30
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x10036b87
cmp byte [ebp + 0x2c], 0
jne 0x10036b7e
mov byte [ebp + 0x2c], 1
mov dword [ebp + 0x30], 2
mov ebx, dword [str.Failed_to_open_file]
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10036b60
sub eax, edx
lea edi, [ebp + 0x34]
mov esi, eax
call fcn.10039e00
or eax, 0xffffffff
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x3c], eax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x10036ba1
mov edi, edi
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, edi
jne 0x10036b90
push 2
or eax, 0xffffffff
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x1c], edi
push edi
push ebx
mov dword [ebp + 8], eax
mov dword [ebp + 4], eax
call fcn.1007ce8b
push ebx
call fcn.1007dcec
push 0
push 0
push ebx
mov edi, eax
call fcn.1007ce8b
add esp, 0x1c
test edi, edi
jg 0x10036bfe
cmp byte [ebp + 0x2c], 0
jne 0x10036b7e
mov byte [ebp + 0x2c], 1
mov dword [ebp + 0x30], 0xc
mov ebx, dword [str.Error_document_empty.]
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10036bf0
jmp 0x10036b69
lea eax, [edi + 1]
push eax
call fcn.10079665
push ebx
push 1
mov esi, eax
push edi
push esi
mov byte [esi], 0
call fcn.1007e10a
add esp, 0x14
cmp eax, 1
je 0x10036c55
push esi
call fcn.10079508
add esp, 4
cmp byte [ebp + 0x2c], 0
jne 0x10036b7e
mov byte [ebp + 0x2c], 1
mov dword [ebp + 0x30], 2
mov ebx, dword [str.Failed_to_open_file]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10036c47
jmp 0x10036b69
mov byte [esi + edi], 0
cmp byte [esi], 0
mov eax, esi
mov ecx, esi
je 0x10036c86
mov dl, byte [eax]
cmp dl, 0xd
jne 0x10036c79
mov byte [ecx], 0xa
add eax, 1
add ecx, 1
cmp byte [eax], 0xa
jne 0x10036c81
jmp 0x10036c7e
mov byte [ecx], dl
add ecx, 1
add eax, 1
cmp byte [eax], 0
jne 0x10036c62
push 0
mov byte [ecx], 0
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push 0
push esi
mov ecx, ebp
call eax
push esi
call fcn.10079508
add esp, 4
pop edi
xor eax, eax
cmp byte [ebp + 0x2c], al
pop esi
pop ebp
sete al
pop ebx
ret 4
Function at 0x1003cb20
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x1003cb40
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x1003cb56
push 0x80004005
call fcn.1000d310
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x1003cb80
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x1003cb98
push 0x80004005
call fcn.1000d310
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1003cba5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x1003d230
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x100b7bd0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x1003d29e
test ecx, ecx
je 0x1003d290
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x1003d2ac
test ecx, ecx
je 0x1003d351
push ecx
jmp 0x1003d34b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x1003d31e
jmp 0x1003d2e0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.1003d230
mov edi, eax
test edi, edi
jne 0x1003d36d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x1003d2e0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1003d335
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1003d351
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1007a1bc
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1003d37c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x1003d353