joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407570
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x52b238
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [edi + 0x14]
xor ebp, ebp
xor esi, esi
cmp eax, ebp
mov dword [esp + 0x10], eax
jbe 0x407689
lea ebx, [edi + 4]
cmp esi, dword [edi + 0x14]
jbe 0x4075c1
call fcn.004ec14b
cmp dword [edi + 0x18], 8
jb 0x4075cb
mov eax, dword [ebx]
jmp 0x4075cd
mov eax, ebx
cmp word [eax + esi*2], 0x2f
je 0x4075f5
cmp esi, dword [edi + 0x14]
jbe 0x4075de
call fcn.004ec14b
cmp dword [edi + 0x18], 8
jb 0x4075e8
mov eax, dword [ebx]
jmp 0x4075ea
mov eax, ebx
cmp word [eax + esi*2], 0x5c
jne 0x40767c
push esi
push ebp
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.00405a40
mov dword [esp + 0x3c], ebp
cmp dword [esp + 0x28], ebp
je 0x40764f
lea edx, [esp + 0x14]
push edx
call fcn.00406720
add esp, 4
test al, al
jne 0x40764f
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x40762d
lea eax, [esp + 0x18]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40764f
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x40766b
mov eax, dword [esp + 0x18]
push eax
jmp 0x407663
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x40766b
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004aaa59
add esp, 4
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
add esi, 1
cmp esi, dword [esp + 0x10]
jb 0x4075b7
push edi
call fcn.00406720
add esp, 4
test al, al
jne 0x4076b4
cmp dword [edi + 0x18], 8
jb 0x4076a1
mov eax, dword [edi + 4]
jmp 0x4076a4
lea eax, [edi + 4]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4076b4
xor al, al
jmp 0x4076bd
push edi
call fcn.004069c0
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004ead41
add esp, 0x30
ret
Function at 0x408600
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x52b208
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.00403310
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408660
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.004084e0
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], di
call fcn.00403310
cmp dword [esp + 0x28], 8
jb 0x4086ab
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004aaa59
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret

Function at 0x409fa0
Capabilities:
Get common file path
Get startup folder

Disassembly:
sub esp, 0x210
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0xe]
push edi
push eax
mov dword [esp + 0x10], edi
mov word [esp + 0x14], di
call fcn.004ec1b0
mov ecx, dword [esp + 0x224]
add esp, 0xc
push edi
push ecx
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], di
jne 0x40a002
push edi
push 0x547f9c
jmp 0x40a025
lea eax, [esp + 8]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40a010
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00402af0
mov ecx, dword [esp + 0x210]
pop edi
xor ecx, esp
mov eax, esi
call fcn.004ead41
add esp, 0x210
ret
Function at 0x40a050
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x528c38
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
push 1
xor ebp, ebp
push ebp
lea eax, [esp + 0x18]
push eax
mov edi, ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0x25
call fcn.00405d30
cmp eax, 0xffffffff
push 0xffffffffffffffff
push ebp
push edi
jne 0x40a0c1
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
mov ecx, esi
mov word [esi + 4], bp
call fcn.00403310
jmp 0x40a1b4
mov ebx, 7
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], bp
call fcn.00403310
mov dword [esp + 0x40], ebp
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [esp + 0x10], eax
jb 0x40a0ef
mov eax, dword [eax]
push ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x40a12a
push 0xffffffffffffffff
push ebp
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push edi
mov ecx, esi
mov word [esi + 4], bp
call fcn.00403310
cmp dword [esp + 0x30], 8
jb 0x40a1b4
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x40a1ac
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004aaa5e
add esp, 4
cmp dword [edi + 0x18], 8
mov ebx, eax
mov eax, dword [esp + 0x10]
jb 0x40a154
mov eax, dword [eax]
mov edi, dword [esp + 0x14]
lea ecx, [edi + 1]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebp
jbe 0x40a17a
cmp eax, edi
ja 0x40a17a
push ebx
lea ecx, [esp + 0x1c]
mov word [ebx + eax*2], bp
call fcn.00401ea0
push ebx
call fcn.004aaa63
add esp, 4
push 0xffffffffffffffff
push ebp
lea edx, [esp + 0x20]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
push edx
mov ecx, esi
mov word [esi + 4], bp
call fcn.00403310
cmp dword [esp + 0x30], 8
jb 0x40a1b4
mov eax, dword [esp + 0x1c]
push eax
call fcn.004aaa59
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004ead41
add esp, 0x34
ret

Function at 0x40a1e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.004ec1b0
add esp, 0xc
mov dword [esp + 4], 0x3c
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 0xc], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 0x14], str.open
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0xc], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40a251
mov ecx, 0x20
cmp ecx, dword [esp + 0x24]
pop esi
sbb eax, eax
neg eax
add esp, 0x3c
ret
cmp edi, esi
je 0x40a25d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
xor al, al
pop esi
add esp, 0x3c
ret
Function at 0x40b090
Capabilities:
Create thread
Resume thread

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
jne 0x40b09d
xor al, al
pop edi
ret
cmp dword [eax + 4], 0
je 0x40b099
push esi
lea ecx, [eax + 0xc]
push ecx
push 4
push eax
push 0x40af50
push 0
push 0
call fcn.004f0fcc
mov edx, dword [edi]
mov dword [edx + 0x10], eax
mov eax, dword [edi]
add esp, 0x18
cmp dword [eax + 0x10], 0
jne 0x40b0f2
or esi, 0xffffffff
mov dword [eax + 0x10], esi
mov edi, dword [edi]
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x40b0e2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], esi
pop esi
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
xor al, al
pop edi
ret
mov byte [eax + 8], 1
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40b114
mov esi, dword [edi]
call fcn.0040afe0
mov edx, dword [edi]
mov byte [edx + 8], 0
pop esi
mov al, 1
pop edi
ret
Function at 0x40cee0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x52accb
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x10], bl
jne 0x40d078
mov ebp, 8
cmp dword [esi + 0x34], ebp
mov dword [esp + 0x18], ebx
jb 0x40cf3b
mov eax, dword [esi + 0x20]
jmp 0x40cf3e
lea eax, [esi + 0x20]
lea ecx, [esp + 0x18]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
je 0x40d07c
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x40d07c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x40d07c
cmp dword [esi + 0x34], ebp
jb 0x40cf83
mov ecx, dword [esi + 0x20]
jmp 0x40cf86
lea ecx, [esi + 0x20]
mov edx, dword [esp + 0x18]
push eax
push edi
push edx
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
mov edx, dword [esi + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push str.VarFileInfoTranslation
push edx
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_VerQueryValueW
xor ebp, ebp
test dword [esp + 0x14], 0xfffffffc
jbe 0x40d074
xor edi, edi
push 0x7e
lea eax, [esp + 0x42]
push ebx
push eax
mov word [esp + 0x48], bx
call fcn.004ec1b0
mov eax, dword [esp + 0x28]
movzx ecx, word [eax + edi*4 + 2]
movzx edx, word [eax + edi*4]
add esp, 0xc
push ecx
push edx
push str.StringFileInfo_04x_04x
lea eax, [esp + 0x48]
push 0x3f
push eax
call fcn.004f120e
lea eax, [esp + 0x50]
add esp, 0x14
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d011
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x28]
call fcn.00402af0
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0xcc], ebx
call fcn.004020c0
mov dword [esp + 0xc8], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x40d05f
mov eax, dword [esp + 0x24]
push eax
call fcn.004aaa59
add esp, 4
mov ecx, dword [esp + 0x14]
add ebp, 1
movzx edi, bp
shr ecx, 2
cmp edi, ecx
jb 0x40cfc1
mov byte [esi + 0x10], 1
mov al, 1
jmp 0x40d07e
xor al, al
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004ead41
add esp, 0xb8
ret
Function at 0x40e110
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52ab63
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
push esi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
lea esi, [esp + 0x10]
call fcn.0043f3b0
push 0x50
mov dword [esp + 0x3c], 0
call fcn.004aaa2e
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov byte [esp + 0x38], 1
je 0x40e185
cmp dword [esp + 0x28], 0x10
mov ecx, dword [esp + 0x14]
jae 0x40e17b
lea ecx, [esp + 0x14]
push eax
call fcn.004407c0
mov esi, eax
jmp 0x40e187
xor esi, esi
test edi, edi
mov byte [esp + 0x38], 0
mov eax, esi
je 0x40e1a7
mov ecx, edi
call fcn.004400c0
cmp dword [esp + 0x28], 0x10
jb 0x40e1c2
mov eax, dword [esp + 0x14]
push eax
jmp 0x40e1ba
mov ecx, ebp
call fcn.004400c0
cmp dword [esp + 0x28], 0x10
jb 0x40e1c2
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004aaa59
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004ead41
add esp, 0x30
ret 4
Function at 0x4106d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52a9b8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp eax, 0xffffffff
mov edi, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], esi
je 0x410826
lea ecx, [esp + 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x41073e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x410826
xor eax, eax
mov dword [esp + 0x39], eax
mov word [esp + 0x3d], ax
mov byte [esp + 0x3f], al
mov eax, dword [esi]
cmp eax, 0xffffffff
mov byte [esp + 0x38], 0
je 0x410826
push 0
lea edx, [esp + 0x18]
push edx
push 8
lea ecx, [esp + 0x44]
push ecx
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410826
mov ecx, dword [esp + 0x14]
test ecx, ecx
seta al
test al, al
je 0x410826
cmp ecx, 8
jne 0x410826
movzx edx, byte [esp + 0x38]
mov eax, 0x47
sub eax, edx
jne 0x4107c6
movzx ecx, byte [esp + 0x39]
mov eax, 0x4d
sub eax, ecx
jne 0x4107c6
movzx edx, byte [esp + 0x3a]
mov eax, 0x5a
sub eax, edx
je 0x4107d4
test eax, eax
mov ecx, 1
jg 0x4107d6
or ecx, 0xffffffff
jmp 0x4107d6
xor ecx, ecx
test ecx, ecx
jne 0x410826
mov al, byte [esp + 0x3b]
cmp al, 1
mov byte [edi + 0xa8], al
ja 0x410826
mov edi, dword [esp + 0x3c]
cmp edi, 0x3200000
mov ebx, edi
ja 0x410826
lea esi, [esp + 0x18]
call fcn.004038c0
lea eax, [esp + 0x14]
push eax
xor esi, esi
mov dword [esp + 0x54], esi
mov ecx, dword [esp + 0x24]
push ebx
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.0043b9c0
test al, al
jne 0x41082a
lea ecx, [esp + 0x18]
call fcn.00403950
xor al, al
jmp 0x410870
cmp dword [esp + 0x14], ebx
jne 0x41081d
mov eax, dword [esp + 0x1c]
cmp ebx, eax
mov dword [esp + 0x24], eax
ja 0x410840
mov dword [esp + 0x24], ebx
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 8]
call fcn.0040ff10
test al, al
lea ecx, [esp + 0x18]
je 0x410821
mov byte [esi + 0xd4], 1
call fcn.00403950
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004ead41
mov esp, ebp
pop ebp
ret 4
Function at 0x413870
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x527d38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x3c]
mov dword [esi], ebx
mov dword [esi + 4], ebx
cmp dword [eax + 0x70], ebx
mov dword [esp + 0x38], ebx
jne 0x413980
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
mov dword [esp + 0x38], ebx
je 0x4138eb
mov edx, dword [esp + 0x40]
mov eax, dword [edx]
cmp eax, 0xffffffff
je 0x4138eb
push ebx
lea edx, [esp + 0x3c]
push edx
push ebp
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4138eb
mov eax, dword [esp + 0x38]
cmp ebp, eax
je 0x413929
mov dword [esp + 0x2c], 0xffffffff
mov esi, dword [esp + 0x48]
cmp esi, ebx
je 0x413925
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x413925
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x413925
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor al, al
jmp 0x41396a
add dword [esi], eax
adc dword [esi + 4], ebx
mov dword [esp + 0x2c], 0xffffffff
mov esi, dword [esp + 0x48]
cmp esi, ebx
je 0x413968
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x413968
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x413968
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x18
cmp ebp, ebx
mov dword [esp + 0x3c], ebx
jbe 0x41392e
mov edi, dword [esp + 0x44]
lea esp, [esp]
mov edx, dword [esp + 0x34]
mov eax, dword [edi]
push ebx
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
add ecx, edx
mov edx, dword [eax + 4]
push ebp
push ecx
mov ecx, edi
call edx
test al, al
je 0x413a3b
mov eax, dword [esp + 0x3c]
add dword [esp + 0x38], eax
sub ebp, eax
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
mov dword [esp + 0x20], ebp
call edx
test eax, eax
jbe 0x413a2e
mov dword [esp + 0x14], ebx
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call edx
cmp eax, ebx
je 0x413a25
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
jbe 0x413a25
add dword [esi], ecx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x18], ebx
adc dword [esi + 4], ebx
mov edx, dword [edx]
cmp edx, 0xffffffff
mov dword [esp + 0x1c], ecx
je 0x413a3b
push ebx
lea ebp, [esp + 0x1c]
push ebp
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413a3b
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x18]
jne 0x413a3b
mov ebp, dword [esp + 0x20]
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
cmp ebp, ebx
ja 0x413990
jmp 0x41392e
lea eax, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004113e0
xor al, al
jmp 0x41396a
Function at 0x4184c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52c2f3
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push esi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
xor esi, esi
mov eax, ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, si
jne 0x418517
sub eax, ebx
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00402af0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0xa4], esi
call fcn.0040c230
mov byte [esp + 0xa0], 2
cmp dword [esp + 0x30], 8
jb 0x418562
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004aaa59
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
call fcn.0040cee0
test al, al
je 0x4185f4
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0x54807c
push ecx
mov dword [esp + 0x24], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4185f4
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
mov edx, eax
movzx eax, ax
shr edx, 0x10
mov dword [edi], edx
mov dword [edi + 4], eax
mov edx, ecx
movzx eax, cx
shr edx, 0x10
lea ecx, [esp + 0x34]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
call fcn.0040c2d0
mov al, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004ead41
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x34]
call fcn.0040c2d0
xor al, al
jmp 0x4185d1
Function at 0x419400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52d228
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push str.SOFTWAREAGEIA_Technologies
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x419548
mov eax, 4
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
push ebx
push str.PhysX_Version
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x41949a
mov dword [esp + 0x20], eax
jmp 0x419539
mov ecx, dword [esp + 0x10]
mov eax, 0x55e63b89
mul ecx
shr edx, 0x19
imul edx, edx, 0x5f5e100
mov edi, ecx
sub edi, edx
mov eax, 0x431bde83
mul edi
shr edx, 0x12
mov dword [esi + 4], edx
mov eax, 0x431bde83
mul ecx
shr edx, 0x12
imul edx, edx, 0xf4240
mov edi, ecx
sub edi, edx
mov eax, 0xd1b71759
mul edi
shr edx, 0xd
mov dword [esi + 8], edx
mov eax, 0xd1b71759
mul ecx
shr edx, 0xd
imul edx, edx, 0x2710
mov edi, ecx
sub edi, edx
mov eax, 0x51eb851f
mul edi
shr edx, 5
mov dword [esi + 0xc], edx
mov eax, 0x51eb851f
mul ecx
shr edx, 5
imul edx, edx, 0x64
sub ecx, edx
mov dword [esi + 0x10], ecx
lea edi, [esi + 0x14]
mov ecx, str.PhysXLoader.dll
call fcn.004184c0
test al, al
je 0x419539
push str.NxCreatePhysicsSDK
mov ecx, str.PhysXLoader.dll
call fcn.00418130
add esp, 4
mov byte [esi + 0x24], al
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x419548
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4198d0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
xor eax, eax
push esi
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push edi
lea eax, [esp + 8]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 8]
cmp ax, 9
jne 0x419919
mov edi, 2
jmp 0x419928
xor ecx, ecx
cmp ax, 6
sete cl
lea ecx, [ecx + ecx + 1]
mov edi, ecx
push edi
xor cl, cl
mov dword [esi], 0
call fcn.00419990
test al, al
je 0x41993d
or dword [esi], 1
push edi
mov cl, 1
call fcn.00419990
test al, al
je 0x41994c
or dword [esi], 2
push edi
xor cl, cl
call fcn.00419dc0
test al, al
je 0x41995b
or dword [esi], 4
push edi
mov cl, 1
call fcn.00419dc0
test al, al
je 0x41996a
or dword [esi], 8
push edi
xor cl, cl
call fcn.0041a380
test al, al
je 0x419979
or dword [esi], 0x10
push edi
mov cl, 1
call fcn.0041a380
test al, al
je 0x419988
or dword [esi], 0x20
pop edi
pop esi
add esp, 0x24
ret