joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4673e4
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
call fcn.0040527c
xor eax, eax
push ebp
push 0x467504
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404ddc
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
call fcn.00404f24
push eax
mov eax, dword [ebp - 8]
call fcn.00404f14
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
jle 0x4674e1
mov eax, ebx
call fcn.00404da0
mov eax, dword [ebp - 8]
call fcn.00404f24
mov edi, eax
test edi, edi
jle 0x4674d5
mov esi, 1
push dword [ebx]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov dx, word [edx + esi*2 - 2]
call fcn.00404eb8
push dword [ebp - 0x1c]
push 0x467518
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404ff4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404f24
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404f14
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
jg 0x4674d5
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 8]
mov dx, word [edx + esi*2 - 2]
call fcn.00404eb8
mov edx, dword [ebp - 0x20]
mov eax, ebx
call fcn.00404f30
inc esi
dec edi
jne 0x467469
mov eax, ebx
mov edx, 0x467518
call fcn.00404f30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46750b
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404db8
lea eax, [ebp - 8]
call fcn.00404da0
ret

Function at 0x467884
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.0040527c
xor eax, eax
push ebp
push 0x467940
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, ebx
call fcn.00427e98
push eax
call sub.user32.dll_GetKeyboardLayoutList
call fcn.004665b0
test al, al
je 0x4678ef
push edi
push esi
mov eax, dword [ebp - 4]
call fcn.00404f24
push eax
mov eax, dword [ebp - 4]
call fcn.00404f14
push eax
mov eax, ebx
call fcn.00427e98
push eax
call fcn.00407328
mov ebx, eax
jmp 0x467922
mov eax, dword [ebp - 4]
call fcn.00404f14
lea edx, [ebp - 8]
call fcn.00405804
push edi
push esi
mov eax, dword [ebp - 8]
call fcn.00404980
push eax
mov eax, dword [ebp - 8]
call fcn.00404b80
push eax
mov eax, ebx
call fcn.00427e98
push eax
call fcn.00407320
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467947
lea eax, [ebp - 8]
call fcn.004046b0
lea eax, [ebp - 4]
call fcn.00404da0
ret
Function at 0x467ba8
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
lea eax, [ebp - 4]
call fcn.0040527c
xor eax, eax
push ebp
push 0x467cd8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x20]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00417e4c
call fcn.004665b0
test al, al
je 0x467c1b
jmp 0x467c1b
test ebx, ebx
jne 0x467c47
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404f24
push eax
mov eax, dword [ebp - 4]
call fcn.00404f14
push eax
mov eax, esi
call fcn.00427e98
push eax
call sub.user32.dll_EnumWindows
mov ebx, dword [ebp - 0xc]
jmp 0x467cba
mov eax, dword [ebp - 4]
call fcn.00404f24
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00404d0c
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f24
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404b80
push eax
mov eax, dword [ebp - 4]
call fcn.00404f24
push eax
mov eax, dword [ebp - 4]
call fcn.00404f14
push eax
push 0x200
push 0
call sub.user32.dll_SetScrollRange
or ebx, 0x400
push ebx
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404980
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404b80
push eax
mov eax, esi
call fcn.00427e98
push eax
call fcn.00407320
mov ebx, dword [ebp - 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467cdf
lea eax, [ebp - 0x10]
call fcn.004046b0
lea eax, [ebp - 4]
call fcn.00404da0
ret

Function at 0x467ce8
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
lea eax, [ebp - 4]
call fcn.0040527c
xor eax, eax
push ebp
push 0x467d46
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404f24
push eax
mov eax, dword [ebp - 4]
call fcn.00404f14
push eax
mov eax, ebx
call fcn.00427e98
push eax
call sub.user32.dll_EnumWindows
mov ebx, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467d4d
lea eax, [ebp - 4]
call fcn.00404da0
ret
Function at 0x469964
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, esi
cdq
xor eax, edx
sub eax, edx
mov esi, eax
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edi, eax
test esi, esi
je 0x469aa3
test edi, edi
je 0x469aa3
cmp esi, dword [ebx + 8]
jne 0x46999e
cmp edi, dword [ebx + 0xc]
je 0x469aa3
cmp dword [ebx + 0x44], 0
je 0x4699ab
mov eax, ebx
call fcn.00468ef8
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x4699b8
push eax
call sub.user32.dll_DefFrameProcA
xor eax, eax
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x4699ca
push eax
call sub.user32.dll_DefWindowProcA
xor eax, eax
mov dword [ebx + 0x40], eax
xor eax, eax
mov dword [ebx + 4], eax
lea eax, [ebx + 0x14]
mov dword [eax + 4], esi
mov edx, edi
neg edx
mov dword [eax + 8], edx
push 0
push 0
lea eax, [ebx + 4]
push eax
push 0
lea eax, [ebx + 0x14]
push eax
push 0
call sub.user32.dll_CheckMenuItem
mov dword [ebx + 0x40], eax
cmp dword [ebx + 4], 0
jne 0x469a15
mov ecx, 0x469ab0
mov dl, 1
mov eax, dword [0x407de0]
call fcn.0040c5b8
call fcn.004040b0
push 0
call sub.user32.dll_CallWindowProcA
mov ebp, eax
mov dword [ebx + 0x44], ebp
test ebp, ebp
jne 0x469a4e
mov eax, dword [ebx + 0x40]
push eax
call sub.user32.dll_DefWindowProcA
xor eax, eax
mov dword [ebx + 0x40], eax
xor eax, eax
mov dword [ebx + 4], eax
mov ecx, 0x469ad8
mov dl, 1
mov eax, dword [0x407de0]
call fcn.0040c5b8
call fcn.004040b0
mov eax, dword [ebx + 0x40]
push eax
mov eax, dword [ebx + 0x44]
push eax
call sub.user32.dll_GetKeyNameTextA
test eax, eax
jne 0x469a96
mov eax, dword [ebx + 0x44]
push eax
call sub.user32.dll_DefFrameProcA
mov eax, dword [ebx + 0x40]
push eax
call sub.user32.dll_DefWindowProcA
xor eax, eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebx + 0x40], eax
xor eax, eax
mov dword [ebx + 4], eax
mov ecx, 0x469afc
mov dl, 1
mov eax, dword [0x407de0]
call fcn.0040c5b8
call fcn.004040b0
mov eax, ebx
call fcn.00468ecc
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x496778
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49691f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x11b], 0x12
test byte [ebx + 0x1c], 0x10
jne 0x496901
mov eax, ebx
call fcn.0049aecc
test byte [eax + 0x2f4], 8
jne 0x496901
push 0
mov eax, ebx
call fcn.0049aef0
push eax
push 0x4514
mov eax, ebx
call fcn.0049aef0
push eax
call fcn.00407670
dec eax
je 0x496901
cmp word [ebx + 0x1ba], 0
je 0x49680a
mov byte [ebp - 1], 1
lea ecx, [ebp - 1]
mov edx, ebx
mov eax, dword [ebx + 0x1bc]
call dword [ebx + 0x1b8]
cmp byte [ebp - 1], 0
je 0x496901
mov eax, ebx
call fcn.0049aecc
test eax, eax
je 0x496901
mov al, byte [ebx + 0x50]
cmp al, 4
je 0x4968f6
mov byte [ebx + 0xa1], al
mov byte [ebx + 0x50], 4
cmp byte [ebx + 0x51], 0
jne 0x496862
mov al, byte [ebx + 0xa1]
cmp al, 2
je 0x496862
cmp al, 1
je 0x496862
cmp al, 3
je 0x496862
mov eax, ebx
call fcn.0049aecc
lea edx, [ebp - 0x14]
call fcn.004449b8
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x91]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp byte [ebx + 0x64], 0
je 0x4968aa
lea edx, [ebp - 0x18]
mov eax, dword [0x4e5a3c]
mov eax, dword [eax]
call fcn.00464600
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0xbc]
mov ecx, 0x3f
call fcn.004095a4
mov eax, dword [0x4e5a3c]
mov eax, dword [eax]
call fcn.00464414
push 0
mov eax, dword [0x4e5a3c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call fcn.00407750
jmp 0x4968e6
mov eax, ebx
call fcn.0049aecc
test eax, eax
je 0x4968d7
mov eax, ebx
call fcn.0049aecc
lea edx, [ebp - 0x1c]
call fcn.00445018
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0xbc]
mov ecx, 0x3f
call fcn.004095a4
push 0
mov eax, ebx
call fcn.0049aef0
push eax
call fcn.00407750
lea eax, [ebx + 0xa4]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
jmp 0x4968fd
mov eax, ebx
call fcn.00496230
mov byte [ebx + 0x51], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496926
lea eax, [ebp - 0x1c]
call fcn.004046b0
lea eax, [ebp - 0x18]
call fcn.004046b0
ret
Function at 0x4e0f90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b70
xor eax, eax
push ebp
push 0x4e112f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, 0x4e1144
call fcn.00404704
mov byte [ebp - 0x15], 0
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4e10c5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404b80
push eax
call sub.user32.dll_GetSystemMetrics
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x10]
push eax
push 2
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_SetClassLongA
cmp word [ebp - 0xa], 0x5a4d
jne 0x4e10ae
mov byte [ebp - 0x15], 1
push 0
push 0
push 0x18
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_SetMenu
push 0
lea eax, [ebp - 0x10]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_SetClassLongA
cmp word [ebp - 0xc], 0x40
jb 0x4e10ae
push 0
push 0
push 0x3c
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_SetMenu
push 0
lea eax, [ebp - 0x10]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_SetClassLongA
push 0
push 0
movzx eax, word [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_SetMenu
push 0
lea eax, [ebp - 0x10]
push eax
push 2
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_SetClassLongA
cmp word [ebp - 0xa], 0x454e
jne 0x4e10a2
mov byte [ebp - 0x15], 2
jmp 0x4e10ae
cmp word [ebp - 0xa], 0x4550
jne 0x4e10ae
mov byte [ebp - 0x15], 3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e10cc
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetSysColor
ret
Function at 0x1000a4e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10090300
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x100bc0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 4
call fcn.1001e278
push 0x84
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.1006b580
lea eax, [ebp - 0x94]
push eax
call fcn.10019510
add esp, 0x14
mov dword [ebp - 4], 0
call fcn.100196ae
dec eax
cmp eax, 3
ja case.default.0x1000a54c
jmp dword [eax*4 + 0x1000a6cc]
push str.skin_
lea ecx, [ebp - 0x94]
call fcn.1001f482
lea ecx, [ebp - 0x94]
call fcn.1001f42b
push eax
call fcn.1001e22f
add esp, 4
push 0
push ecx
mov eax, esp
mov dword [eax], str.res.xml
call fcn.1000a270
mov ecx, eax
call fcn.1001ef7c
jmp case.default.0x1000a54c
push str.skin_
lea ecx, [ebp - 0x94]
call fcn.1001f482
lea ecx, [ebp - 0x94]
call fcn.1001f42b
push eax
call fcn.1001e22f
add esp, 4
push 0x100ae50c
push ecx
mov eax, esp
mov dword [eax], str.IDR_RES
call fcn.1000a270
mov ecx, eax
call fcn.1001ef7c
jmp case.default.0x1000a54c
push str.skin_
lea ecx, [ebp - 0x94]
call fcn.1001f482
lea ecx, [ebp - 0x94]
call fcn.1001f42b
push eax
call fcn.1001e22f
push str.duilib_ultimate
push 1
push str.duidemo_pwd.zip
call fcn.1001e313
add esp, 0x10
jmp 0x1000a577
push str.skin_
lea ecx, [ebp - 0x94]
call fcn.1001f482
lea ecx, [ebp - 0x94]
call fcn.1001f42b
push eax
call fcn.1001e22f
add esp, 4
push str.ZIPRES
push str.IDR_ZIPRES
call fcn.10019699
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je case.default.0x1000a54c
push edi
call fcn.10019699
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1000a69e
push edi
call fcn.10019699
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x1000a69e
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.1001e285
add esp, 0xc
push 0
push ecx
mov eax, esp
mov dword [eax], str.res.xml
call fcn.1000a270
mov ecx, eax
call fcn.1001ef7c
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x94]
call fcn.1001f31a
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.10067e5d
mov esp, ebp
pop ebp
ret

Function at 0x1000ab60
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 0x1000abbb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000abbb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000aba8
cmp esi, edx
jae 0x1000abbb
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1000ab96
cmp esi, edx
jae 0x1000abbb
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 0x1000c1b0
Capabilities:
Create thread
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100905ed
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x100bc0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x68
call fcn.1006809e
mov edx, eax
xorps xmm0, xmm0
xor ecx, ecx
mov dword [ebp - 0x10], edx
xor eax, eax
lea edi, [edx + 0x34]
add esp, 4
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 7
mov word [edx + 4], cx
lea ecx, [edx + 0x1c]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
movups xmmword [edx + 0x4c], xmm0
mov dword [edx + 0x5c], eax
mov dword [edx + 0x60], 7
mov word [edx + 0x4c], ax
mov byte [edx + 0x64], al
lea eax, [esi + 0x788]
push eax
call fcn.1000dec0
mov ecx, esi
call fcn.1001f85f
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov ecx, esi
call fcn.1000c380
mov esi, dword [ebp - 0x10]
add esi, 4
push eax
mov ecx, esi
call fcn.1000dec0
mov ecx, dword [esi + 0x10]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 0x12
jb 0x1000c374
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1000c28e
mov eax, dword [esi]
push 0x12
push str.GInstallerPkg.tmp
push ecx
push eax
push ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x28]
call fcn.10009cf0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.10009a20
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x1000c2e8
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000c2de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000c379
push ecx
push edx
call fcn.10067e6b
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x1000c2f0
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.offline_temp_
lea ecx, [ebp - 0x28]
call fcn.10009ab0
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.1000bda0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x1000c34b
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000c341
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000c379
push ecx
push edx
call fcn.10067e6b
add esp, 8
push 0
push 0
push dword [ebp - 0x10]
push 0x1000c430
push 0
push 0
call fcn.10074c27
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.100022a0
call fcn.1006f170
int3
Function at 0x1000d1a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x1000d1d2
jl 0x1000d1c5
test ecx, ecx
jne 0x1000d1d2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1000d292
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.100059d0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000d23e
jg 0x1000d1fd
test esi, esi
je 0x1000d23e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x1000d215
mov eax, dword [esp + 0x10]
jl 0x1000d20f
cmp eax, esi
jae 0x1000d215
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.1006b000
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1000d25f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1000d27b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x1000d1e4
jl 0x1000d27b
test ecx, ecx
jne 0x1000d1e4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x1000d2d6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x1000d2d6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.1006b000
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x1000d347
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1000d2fc
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x1000d332
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.10075790
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1000d347
cmp edi, eax
ja 0x1000d310
test edi, edi
je 0x1000d347
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.10075790
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000eea0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x100bc0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x228], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1000f08d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1000ef39
mov eax, 0x64
mov dword [ebp - 0x210], eax
jmp 0x1000ef3f
mov eax, dword [ebp - 0x210]
push esi
xor esi, esi
test eax, eax
je 0x1000f08c
nop word [eax + eax]
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x220], 0
push 0
push eax
call fcn.1006b580
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x218], 0
push 0
push eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x214], 0x104
call fcn.1006b580
push esi
push str._04u
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.1000fc20
add esp, 0x28
lea eax, [ebp - 0x220]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000f069
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.NetCfgInstanceId
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000f061
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x1000f017
mov eax, dword [ebx]
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.10075ce3
add esp, 8
test eax, eax
jne 0x1000f061
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 4
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.Characteristics
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1000f078
push dword [ebp - 0x220]
call edi
inc esi
cmp esi, dword [ebp - 0x210]
jb 0x1000ef50
jmp 0x1000f08c
mov eax, dword [ebp - 0x21c]
push dword [ebp - 0x220]
mov dword [ebp - 0x228], eax
call edi
pop esi
push dword [ebp - 0x224]
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
xor ecx, ebp
pop edi
pop ebx
call fcn.10067e5d
mov esp, ebp
pop ebp
ret