joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ac10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
push edi
push eax
call fcn.00413ab0
mov ebx, eax
lea eax, [ebx + 8]
add esp, 4
mov dword [ebp - 0xc], ebx
cmp eax, 0x400
ja 0x40ac53
call fcn.0046dbb0
mov eax, esp
test eax, eax
je 0x40ac69
mov dword [eax], 0xcccc
jmp 0x40ac66
push eax
call fcn.0046a5db
add esp, 4
test eax, eax
je 0x40ac69
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x40ad69
mov ecx, dword [esi]
push ecx
push ebx
push 0
push edi
call fcn.0046a390
add esp, 0xc
push eax
push esi
call fcn.00413e50
add esp, 0xc
test eax, eax
jbe 0x40ad62
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x40ace3
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40acdd
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40aca7
sub eax, edx
cmp dword [ebx], eax
jbe 0x40acdd
mov edx, esi
mov eax, edi
sub edx, edi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40acc0
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40acd0
sub eax, edx
mov dword [ebx], eax
jmp 0x40ace3
mov dword [ebx], 0
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
push edx
push 2
push 2
push 0x40000000
push str.Global.pad
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00411550
mov esi, eax
mov eax, dword [ebp - 8]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x40ad2d
mov ecx, dword [ebp - 0xc]
push 0
lea edx, [ebp - 0xc]
push edx
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40ad2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi - 8], 0xdddd
lea eax, [edi - 8]
jne 0x40ad4c
push eax
call fcn.004697b3
add esp, 4
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
mov esi, 0xffffffee
jmp 0x40ad37
mov eax, 8
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
Function at 0x40c640
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4a86f0]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x224]
push ebx
mov ebx, dword [esp + 0x21c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
xor ebp, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x238]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
cmp edi, ebp
je 0x40c78c
cmp eax, ebp
je 0x40c78c
mov ecx, dword [esp + 0x230]
push ecx
push ebp
push edi
call fcn.0046a390
lea edx, [esp + 0x2c]
add esp, 0xc
mov eax, ebx
sub edx, ebx
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40c6b0
lea eax, [esp + 0x20]
add eax, 0xfffffffe
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40c6d0
mov ecx, dword [0x4a0800]
mov dword [eax], ecx
mov ecx, dword [0x4a0804]
mov dword [eax + 4], ecx
lea eax, [esp + 0x14]
push eax
push 1
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40c759
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x230]
push ecx
push edi
push eax
push eax
push str.Data
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40c759
cmp dword [esp + 0x230], ebp
jbe 0x40c759
mov ecx, dword [esp + 0x23c]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
push ebx
lea ebp, [esi + 1]
call fcn.0040c220
add esp, 0x10
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x40c767
mov dword [ecx], esi
test eax, eax
je 0x40c771
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 0x220]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.004698aa
add esp, 0x214
ret
mov esi, 0xfffffffa
jmp 0x40c75d
Function at 0x40cab0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x4a86f0]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x220]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 4]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push str.InprocServer32
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40cbc9
cmp dword [esp], eax
je 0x40cbc9
push esi
push 0x208
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.0046a390
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x105
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jbe 0x40cbae
cmp eax, 0x7a
je 0x40cbae
lea eax, [esp + 0xc]
push 0x5c
push eax
call fcn.0046cd13
add esp, 8
test eax, eax
je 0x40cbb6
mov ecx, str.APAX.dll
lea edx, [eax + 2]
sub edx, ecx
jmp 0x40cb80
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x40cb80
mov edx, dword [esp + 4]
push 0x20a
lea ecx, [esp + 0x10]
push ecx
push 1
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x40cbbb
test eax, eax
je 0x40cbb6
mov esi, eax
jmp 0x40cbbb
mov esi, 2
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004698aa
add esp, 0x218
ret

Function at 0x40cdb0
Capabilities:
Read file on windows

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
xor ebp, ebp
xor edi, edi
test esi, esi
jne 0x40cdc4
mov esi, 0x1000
push ebx
mov ebx, dword [esp + 0x18]
lea esp, [esp]
test edi, edi
jne 0x40cddf
push esi
call fcn.0046a5db
add esp, 4
jmp 0x40cdee
mov ecx, dword [ebx]
lea eax, [esi + edi]
push eax
push ecx
call fcn.0046f175
add esp, 8
mov dword [ebx], eax
test eax, eax
je 0x40ce2a
push 0
lea edx, [esp + 0x24]
push edx
push esi
push esi
add eax, edi
push 0
push eax
call fcn.0046a390
add esp, 0xc
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ce22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [esp + 0x20]
add edi, eax
jmp 0x40ce33
xor eax, eax
mov dword [esp + 0x20], eax
lea ebp, [eax + 8]
cmp eax, esi
je 0x40cdd0
mov eax, dword [esp + 0x1c]
pop ebx
test eax, eax
je 0x40ce42
mov dword [eax], edi
pop edi
pop esi
mov eax, ebp
pop ebp
ret

Function at 0x40ce50
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
push edi
push 0
push 0
push esi
push 0
call ebx
cmp eax, 1
jne 0x40ce80
push edi
push 0
push 0
or esi, 0x8000
push esi
push 0
call ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40ce90
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x414
mov eax, dword [0x4a86f0]
xor eax, esp
mov dword [esp + 0x410], eax
push ebp
mov ebp, dword [esp + 0x41c]
xor ecx, ecx
test ebp, ebp
je 0x40d02a
movzx eax, word [ebp]
test ax, ax
je 0x40d02a
cmp ax, 0x5c
jne 0x40cedf
lea eax, [ebp + 2]
mov edx, ebp
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40ced0
push 0x5c
push ebp
call fcn.0046cd13
add esp, 8
lea edx, [esp + 4]
test eax, eax
je 0x40cf11
add eax, 2
sub edx, eax
jmp 0x40cf00
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40cf00
jmp 0x40cf24
mov eax, ebp
sub edx, ebp
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40cf15
push esi
push ebp
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x40cfb6
mov eax, dword [esp + 0x424]
lea edx, [esp + 0x210]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40cf44
lea eax, [esp + 0x210]
push 0x5c
push eax
call fcn.0046cd13
add esp, 8
test eax, eax
je 0x40cfb6
xor ecx, ecx
mov word [eax + 2], cx
mov eax, ebp
mov edx, ebp
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cf73
push ebx
push edi
lea edi, [esp + 0x218]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [edi + 2]
nop
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40cf90
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
pop edi
pop ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebp
call esi
test eax, eax
jne 0x40cfef
lea eax, [esp + 8]
mov edx, ebp
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40cfd0
push 0
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFindOnPathW]
push ebp
call esi
test eax, eax
je 0x40d00b
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004698aa
add esp, 0x414
ret
xor edx, edx
pop esi
mov word [ebp], dx
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004698aa
add esp, 0x414
ret
mov eax, ecx
mov ecx, dword [esp + 0x414]
pop ebp
xor ecx, esp
call fcn.004698aa
add esp, 0x414
ret
Function at 0x40d050
Capabilities:
Check if file exists

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x40d11b
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d11b
push esi
push eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jbe 0x40d125
cmp eax, 0x7a
je 0x40d125
push ebx
push 0x2e
push edi
xor ebx, ebx
call fcn.0046cd13
add esp, 8
test eax, eax
je 0x40d0c1
mov ecx, str..ini
mov esi, eax
sub esi, ecx
nop
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x40d0b0
jmp 0x40d0fa
mov eax, edi
add eax, 0xfffffffe
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40d0d0
mov ecx, dword [str..ini]
mov dword [eax], ecx
mov ecx, dword [0x4a08e8]
mov dword [eax + 4], ecx
mov cx, word [0x4a08ec]
mov word [eax + 8], cx
mov eax, edx
test eax, eax
je 0x40d112
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d122
pop ebx
pop esi
mov eax, 2
pop edi
ret
pop ebx
pop esi
mov eax, 0x7a
pop edi
ret
mov eax, 0x57
pop edi
ret
mov eax, ebx
pop ebx
pop esi
pop edi
ret

Function at 0x40e600
Capabilities:
Get file version info

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
lea eax, [esp + 0xc]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x40e61c
pop edi
pop ebx
ret 4
push esi
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x40e65e
mov ecx, dword [esp + 0x10]
push esi
push edi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40e666
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
xor eax, eax
pop ebx
ret 4
mov eax, esi
pop esi
pop edi
pop ebx
ret 4
Function at 0x40ea00
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4a86f0]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0x114
call fcn.0046a390
add esp, 0xc
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
sbb eax, eax
xor ecx, esp
inc eax
call fcn.004698aa
add esp, 0x118
ret
Function at 0x40f220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
push ebx
push esi
push edi
je 0x40f342
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40f342
mov eax, dword [eax]
test eax, eax
je 0x40f342
shr eax, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
add eax, 8
cmp eax, 0x400
ja 0x40f27e
call fcn.0046dbb0
mov edi, esp
test edi, edi
je 0x40f329
mov dword [edi], 0xcccc
add edi, 8
jmp 0x40f296
push eax
call fcn.0046a5db
add esp, 4
test eax, eax
je 0x40f294
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x40f329
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
jne 0x40f2fe
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x40f2d1
xor eax, eax
jmp 0x40f2e5
lea eax, [esi + esi]
call fcn.0046dbb0
mov eax, esp
push 0
push esi
push edi
push eax
call fcn.00434c40
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push ecx
call fcn.0046bf5a
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov dword [eax], edx
cmp dword [edi - 8], 0xdddd
lea eax, [edi - 8]
jne 0x40f313
push eax
call fcn.004697b3
add esp, 4
mov eax, ebx
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
mov eax, 8
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
mov eax, 0x57
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
Function at 0x40f360
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x40f461
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f381
sub eax, edx
sar eax, 1
lea ebx, [eax + 1]
lea eax, [ebx + ebx + 8]
cmp eax, 0x400
ja 0x40f3b8
call fcn.0046dbb0
mov esi, esp
test esi, esi
je 0x40f448
mov dword [esi], 0xcccc
add esi, 8
jmp 0x40f3d0
push eax
call fcn.0046a5db
add esp, 4
test eax, eax
je 0x40f3ce
mov dword [eax], 0xdddd
add eax, 8
mov esi, eax
test esi, esi
je 0x40f448
push edi
push ebx
push esi
call fcn.0046bf5a
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x40f3f2
xor eax, eax
jmp 0x40f408
lea edi, [eax + eax]
mov eax, edi
call fcn.0046dbb0
mov eax, esp
push 0
push edi
push esi
push eax
call fcn.0044f9b0
mov ecx, dword [ebp + 8]
push ebx
push eax
mov eax, dword [ebp + 0xc]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
mov edi, eax
jne 0x40f432
push esi
call fcn.004697b3
add esp, 4
mov eax, edi
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
mov eax, 8
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
mov eax, 0x57
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
Function at 0x411480
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x210
mov eax, dword [0x4a86f0]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x218]
push ebx
push ebp
mov ebp, dword [esp + 0x224]
push esi
mov esi, dword [esp + 0x220]
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x1e]
push edx
mov dword [esp + 0x1c], eax
xor edi, edi
xor ebx, ebx
mov word [esp + 0x20], cx
call fcn.0046a390
push 1
push 0x208
lea eax, [esp + 0x28]
push eax
push esi
call fcn.004113d0
add esp, 0x1c
test eax, eax
je 0x41151d
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov eax, edx
push str._s_s
push eax
call fcn.004697eb
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411513
lea edi, [ebx + 1]
jmp 0x411522
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x411522
mov ebx, 0xa1
mov eax, edi
test ebp, ebp
je 0x41152b
mov dword [ebp], ebx
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004698aa
add esp, 0x210
ret

Function at 0x411630
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
xor esi, esi
mov dword [esp + 4], esi
test eax, eax
je 0x411699
mov ecx, dword [esp + 0x1c]
push edi
push ecx
push 2
push 2
push 0x40000000
push str.Mac.pad
push eax
lea edx, [esp + 0x28]
push edx
call fcn.00411550
mov edi, dword [esp + 0x2c]
add esp, 0x1c
mov esi, eax
cmp edi, 0xffffffff
je 0x411691
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0xc]
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x411691
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4116af
mov ecx, esi
neg ecx
sbb ecx, ecx
not ecx
and ecx, dword [esp + 4]
mov dword [eax], ecx
mov eax, esi
pop esi
pop ecx
ret
Function at 0x411a10
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x4a86f0]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x21c]
push esi
xor esi, esi
test eax, eax
je 0x411a34
mov dword [eax], esi
call fcn.004153a0
test eax, eax
je 0x411b0a
push ebx
mov eax, 0
cpuid
mov dword [esp + 8], eax
movzx eax, word [esp + 8]
cmp eax, 3
jb 0x411aa9
mov eax, 1
cpuid
mov dword [esp + 0x10], eax
mov eax, 3
cpuid
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x14]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [esp + 0x20]
movzx edx, ax
push edx
shr eax, 0x10
push eax
mov eax, dword [esp + 0x20]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
lea edx, [esp + 0x34]
push str._04lX__04lX__04lX__04lX__04lX__04lX
push edx
call fcn.004697eb
add esp, 0x20
jmp 0x411af5
mov eax, 1
cpuid
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0xc]
and eax, 0xf
push eax
mov eax, dword [esp + 0xc]
mov ecx, eax
and ecx, 0xf
push ecx
mov edx, eax
mov ecx, eax
shr edx, 4
and edx, 0xf
push edx
shr ecx, 8
and ecx, 0xf
push ecx
shr eax, 0xc
and eax, 3
push eax
lea edx, [esp + 0x30]
push str._04lX__04lX__04lX__04lX__04lX
push edx
call fcn.004697eb
add esp, 0x1c
lea eax, [esp + 0x1c]
push eax
call fcn.00411800
add esp, 4
mov esi, eax
pop ebx
cmp esi, 0x10
jae 0x411b78
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411b78
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.Identifier
push edx
mov dword [esp + 0x2c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411b6d
cmp dword [esp + 0x10], 1
jne 0x411b6d
lea eax, [esp + 0x18]
push eax
call fcn.00411800
add esp, 4
mov esi, eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004698aa
add esp, 0x218
ret
Function at 0x411b90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4a86f0]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
push edi
mov edi, dword [esp + 0x11c]
mov dword [esp + 0x10], 0
test edi, edi
je 0x411bbf
mov dword [edi], 0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 8]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push closesocket
call ebp
test eax, eax
je 0x411bfd
test edi, edi
je 0x411be4
mov dword [edi], eax
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004698aa
add esp, 0x110
ret
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push str.ProductId
push eax
mov dword [esp + 0x2c], 0x100
call ebx
mov esi, eax
test esi, esi
je 0x411ca4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
jne 0x411c93
lea edx, [esp + 0x10]
push edx
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push closesocket
call ebp
test eax, eax
je 0x411c60
test edi, edi
je 0x411c5c
mov dword [edi], eax
xor eax, eax
jmp 0x411cda
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push str.ProductId
push edx
mov dword [esp + 0x2c], 0x100
call ebx
mov esi, eax
test esi, esi
je 0x411c9d
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x411c99
mov dword [edi], esi
xor eax, eax
jmp 0x411cda
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x411ca9
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411cb6
sub eax, edx
sar eax, 1
je 0x411cd6
lea eax, [esp + 0x1c]
push eax
call fcn.00411800
add esp, 4
jmp 0x411cda
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x11c]
pop esi
pop ebx
pop edi
pop ebp
xor ecx, esp
call fcn.004698aa
add esp, 0x110
ret