joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416350
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value

Disassembly:
mov eax, 0x2644
call fcn.0042c880
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, ecx
xor ebp, ebp
push ebp
push 0x3eb
push dword [ebx + 0xc]
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push ebp
push 0x3ed
push dword [ebx + 0xc]
call edi
push eax
call esi
mov esi, 0x104
mov dword [esp + 0x14], ebp
cmp dword [ebx + 0x870], ebp
jne 0x416417
lea eax, [ebx + 0x434]
push eax
lea eax, [esp + 0x654]
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_s.exe
push eax
call fcn.00409f79
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebp
lea eax, [esp + 0x65c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416417
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41640d
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x20]
add edx, 0x18
push ebp
call fcn.00405902
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [ebx + 0x63e]
cmp word [edi], bp
je 0x416517
push 0x20a
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.00417fd0
add esp, 0xc
lea eax, [esp + 0x20]
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x230]
call fcn.0040494e
lea ecx, [esp + 0x230]
call fcn.00404313
lea eax, [esp + 0x230]
push edi
push eax
call fcn.0041df08
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x28]
push ebp
push dword [eax + 8]
call fcn.00416935
add esp, 0x10
cmp eax, 1
jne 0x416498
push 0x8920
call fcn.0041730e
pop ecx
mov ecx, eax
call fcn.0040d08f
jmp 0x4164aa
push 0x328
call fcn.0041730e
pop ecx
mov ecx, eax
call fcn.0040e221
mov esi, eax
test esi, esi
je 0x416517
mov eax, dword [ebx + 4]
mov ecx, esi
mov edx, dword [esi]
push ebp
push dword [eax + 8]
lea eax, [esp + 0x28]
push ebp
push eax
call dword [edx + 4]
test eax, eax
jne 0x41650f
mov eax, dword [esi]
lea ecx, [esp + 0x230]
push ebp
push ebp
push ebp
push ebp
push ebp
push ecx
push edi
mov ecx, esi
call dword [eax + 0x1c]
test eax, eax
jne 0x41650f
lea eax, [esp + 0x440]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 1
lea eax, [esp + 0x444]
push eax
push ebp
lea eax, [esp + 0x23c]
push eax
push ebp
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2644
ret
Function at 0x416d8d
Capabilities:
Create process on windows
Get common file path
Set environment variable

Disassembly:
sub esp, 0xc50
lea eax, [esp + 0x214]
push ebx
push ebp
push esi
push edi
push eax
lea eax, [esp + 0xa58]
mov edi, edx
push eax
lea edx, [esp + 0x850]
mov ebx, ecx
call fcn.004058c7
pop ecx
lea ecx, [esp + 0x228]
call fcn.00407989
mov ebp, dword [esp + 0xc68]
pop ecx
mov ecx, dword [ebp + 4]
and ecx, 0x10
test eax, eax
je 0x416e1a
test ecx, ecx
jne 0x416de2
xor eax, eax
inc eax
jmp 0x416f0e
lea eax, [esp + 0x430]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 1
lea eax, [esp + 0x434]
xor esi, esi
push eax
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
jmp 0x416f0e
push 0x104
lea eax, [esp + 0x1c]
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x644]
call fcn.00404d92
pop ecx
pop ecx
test eax, eax
je 0x416e59
lea eax, [esp + 0x63c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041aed7
pop ecx
pop ecx
lea eax, [esp + 0x18]
push eax
push str.ZIP_SOURCE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
lea ecx, [esp + 0x18]
call fcn.0040845c
cmp dword [ebp + 0x222], esi
jbe 0x416e93
lea eax, [esp + 0x18]
push eax
push edi
lea eax, [esp + 0x1c]
push str._s__ZIP_SOURCE__s_
push eax
call fcn.00408980
add esp, 0x10
mov eax, dword [0x441014]
test eax, eax
je 0x416e9e
mov esi, dword [eax]
push esi
push ecx
lea eax, [esp + 0x850]
push eax
lea ecx, [esp + 0x20]
call fcn.0040848a
mov edx, eax
mov ecx, ebx
call fcn.0040a17e
add esp, 0xc
mov esi, eax
cmp dword [esp + 0xc68], 0
je 0x416ef7
mov edi, 0x103
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
neg eax
push 0x3e8
sbb eax, eax
and dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x10], edi
je 0x416ed2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.00408471
xor eax, eax
test esi, esi
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc50
ret

Function at 0x416f19
Capabilities:
Delete directory
Read .ini file

Disassembly:
push esi
mov esi, ecx
call fcn.00404c34
test eax, eax
jne 0x404c2c
pop esi
ret
mov ecx, esi
pop esi
jmp fcn.0040426a
push esi
push str.INSTALL.INI
push 0
push str.GARDETEMP
push str.INSTALL
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x416f3a
pop esi
ret
mov ecx, esi
pop esi
jmp 0x404c1e
Function at 0x427d1b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004279db
Function at 0x403e50
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bc0b
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x45800c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2e4], edx
mov edi, ecx
mov esi, dword [ebp + 8]
test edi, edi
je 0x404070
xor eax, eax
mov dword [ebp - 0x18], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00404800
push 1
push ecx
lea eax, [ebp - 0x2e0]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2e0], 0x5c
call fcn.00404580
mov ecx, eax
cmp ecx, 0xffffffff
je 0x403efe
cmp dword [ebp - 0x1c], ecx
jae 0x403eea
push str.invalid_string_position
call fcn.00416eaa
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmovae eax, dword [ebp - 0x2c]
xor edx, edx
mov word [eax + ecx*2], dx
cmp dword [esi + 0x14], 8
jb 0x403f06
mov esi, dword [esi]
lea eax, [ebp - 0x2dc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40405b
nop
test byte [ebp - 0x2dc], 0x10
jne 0x40403e
push 0x44b714
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x8c]
call fcn.004051f0
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x74]
call fcn.004052e0
mov esi, eax
mov edx, dword [ebp - 0x2e4]
lea ecx, [ebp - 0x5c]
push 0x44b714
mov byte [ebp - 4], 2
call fcn.004051f0
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.004052e0
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 4
cmp dword [esi + 0x14], 8
jb 0x403f94
mov esi, dword [esi]
cmp dword [ecx + 0x14], 8
jb 0x403f9c
mov ecx, dword [ecx]
mov eax, dword [edi]
push esi
push ecx
mov ecx, edi
call dword [eax + 8]
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x403fba
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00404a90
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
cmp eax, 8
jb 0x403fe3
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00404a90
xor eax, eax
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x4c], 0
cmp eax, 8
jb 0x40400c
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00404a90
xor eax, eax
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x64], 0
cmp eax, 8
jb 0x40403e
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.00404a90
lea eax, [ebp - 0x2dc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403f20
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x404070
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00404a90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00416f78
mov esp, ebp
pop ebp
ret
Function at 0x405560
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x405570
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteW]

Function at 0x4056e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_CreateProcessW]

Function at 0x405730
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_CreateThread]

Function at 0x405740
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0041a747
add esp, 0x18
pop ebp
ret

Function at 0x4057a0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TerminateThread]

Function at 0x405880
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetFileAttributesW]

Function at 0x405db0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
Function at 0x406eba
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x3c
mov eax, 0x43c06a
call fcn.00434e0a
mov ebx, ecx
and dword [ebp - 4], 0
push 0xfa00
call fcn.0041757e
mov edi, eax
mov dword [esp], 0x44c604
lea ecx, [ebp - 0x30]
call fcn.00404380
mov byte [ebp - 4], 1
mov ecx, ebx
call fcn.00404480
cmp dword [eax], 2
jbe 0x406f35
push 2
push 0
lea eax, [ebp - 0x48]
push eax
mov ecx, ebx
call fcn.00404130
mov byte [ebp - 4], 2
push 0x44c610
mov ecx, eax
call fcn.004070a6
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00404090
test esi, esi
jne 0x406f35
push 0x44a6b8
lea ecx, [ebp - 0x30]
call fcn.004042b0
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x30]
call fcn.00404ff0
push 0
push edi
push 0x7d00
lea ecx, [ebp - 0x30]
call fcn.004041a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
dec eax
cmp eax, 0x7cfe
ja 0x406f64
push edi
jmp 0x406f6d
lea ecx, [ebp - 0x30]
call fcn.004041a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
push edi
call fcn.00417587
pop ecx
cmp ebx, 0xffffffff
jne 0x406f8f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00404090
jmp 0x406fae
test bl, 0x10
jne 0x406f81
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00404090
mov al, 1
jmp 0x406fb0
xor al, al
call fcn.00434d57
ret

Function at 0x406fb6
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0x7c
mov eax, 0x43c09a
call fcn.00434d9c
mov esi, ecx
push ecx
push ecx
push 0x1ac
push str.NGUtils::CFileUtils::DeleteFileW
push 0x45a2a8
push dword [0x45a5e8]
lea ecx, [ebp - 0x88]
call fcn.00410f0b
and dword [ebp - 4], 0
mov ecx, esi
call fcn.004041a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407048
test bl, 1
je 0x407061
and ebx, 0xfffffffe
mov ecx, esi
push ebx
call fcn.004041a0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x407061
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
mov ecx, esi
call fcn.004041a0
push eax
push str.::SetFileAttributes__s__0x_X___error_d
push 0x1bb
lea eax, [ebp - 0x88]
push 0x80
push eax
call fcn.004111e7
add esp, 0x1c
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00410f74
mov al, bl
call fcn.00434d46
ret
mov ecx, esi
call fcn.004041a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4070a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004041a0
push eax
push str.::DeleteFile__s___error_d
push 0x1c2
lea eax, [ebp - 0x88]
push 0x80
push eax
call fcn.004111e7
add esp, 0x18
jmp 0x407048
mov bl, 1
jmp 0x40704a
Function at 0x407bd6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], ebx
mov esi, edi
jmp 0x407beb
mov ebx, dword [ebp - 4]
add edi, 0x200
test esi, esi
je 0x407bfc
push esi
call fcn.00417587
pop ecx
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041757e
mov esi, eax
pop ecx
test esi, esi
je 0x407c5d
xor eax, eax
lea ecx, [ebx + 4]
mov word [esi], ax
call fcn.004041a0
push eax
push edi
push esi
push 0x44a6b8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
lea ecx, [edi - 1]
cmp ebx, ecx
jae 0x407be8
mov ecx, dword [ebp + 0x10]
push esi
call fcn.004042b0
push esi
call fcn.00417587
xor eax, eax
cmp eax, ebx
pop ecx
sbb eax, eax
neg eax
jmp 0x407c5f
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40b6bc
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
push esi
push edi
mov esi, ecx
lea eax, [ebx - 1]
cmp eax, 7
jbe 0x40b6d8
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x40b6fc
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
mov dword [esi + 0x6af6c], edi
push edi
push eax
call fcn.00419290
movzx eax, word [ebx*8 + 0x44bfba]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x44bfb8]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x44bfbc]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x44bfbe]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x40b75f
mov eax, dword [ebp + 8]
or word [eax], 4
jmp 0x40b76a
cmp ebx, 8
jl 0x40b76a
mov eax, dword [ebp + 8]
or word [eax], cx
push 0x10000
lea ebx, [esi + 0x1af70]
mov dword [esi + 0x6af84], edi
push ebx
push esi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x40b7d1
cmp eax, 0xffffffff
je 0x40b7d1
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x40b7ac
mov ecx, esi
call fcn.0040b98d
mov dword [esi + 0x6af7c], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af7c], ecx
cmp edi, 2
jb 0x40b7b4
jmp 0x40b7e1
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40c681
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40c68c
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x40c748
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44bbb8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44bbb8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44bbb8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44bbb8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44bbb8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44bbb8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44bbb8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44bbb8]
sub edi, 1
jne 0x40c6a1
pop edi
test esi, esi
je 0x40c764
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44bbb8]
inc edx
sub esi, 1
jne 0x40c74c
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x40cd6b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x6c]
test ecx, ecx
je 0x40cdb5
mov eax, dword [edi + 0x74]
mov esi, dword [edi + 0x70]
cmp eax, esi
jae 0x40cdf0
sub esi, eax
cmp esi, dword [ebp + 0xc]
cmova esi, dword [ebp + 0xc]
add eax, ecx
push esi
push eax
push dword [ebp + 8]
call fcn.00435500
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x60]
add dword [edi + 0x74], esi
add dword [edi + 0x5c], esi
push esi
call fcn.0040c681
add esp, 0x10
mov dword [edi + 0x60], eax
mov eax, esi
jmp 0x40cdf2
cmp dword [edi + 0x64], 0
je 0x40cde9
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40cdf0
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x60]
add dword [edi + 0x5c], esi
push esi
call fcn.0040c681
pop ecx
jmp 0x40cdae
mov dword [edi + 0x10], 0x1000000
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40cfda
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x45800c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x64], eax
lea ebx, [esi + 0x58]
mov dword [esi + 0x6c], eax
mov byte [esi + 0x68], al
mov dword [esi + 0x60], eax
mov dword [ebx], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x5c], eax
test edi, edi
je 0x40d0d4
cmp edi, 0xffffffff
je 0x40d0d4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x40d05f
lea eax, [esi + 0x50]
mov ecx, edi
push eax
lea eax, [esi + 0x38]
push eax
push ebx
lea edx, [esi + 0x30]
call fcn.0040c8f0
add esp, 0xc
test eax, eax
jne 0x40d0d9
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [esi + 0x54], 1
mov dword [esi + 0x64], edi
xor eax, eax
jmp 0x40d0d9
or dword [ebx], 0xffffffff
lea eax, [esp + 0x1c]
push eax
mov dword [esi + 0x30], SysStringLen
mov byte [esi + 0x54], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.0040c831
pop ecx
pop ecx
mov ecx, edx
mov dword [esi + 0x38], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x4c], ecx
movzx ecx, word [esp + 0xc]
mov dword [esi + 0x40], eax
mov dword [esi + 0x48], eax
movzx eax, word [esp + 0x10]
shl ecx, 0x10
or ecx, eax
mov dword [esi + 0x3c], edx
mov dword [esi + 0x50], ecx
jmp 0x40d058
mov eax, 0x10000
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00416f78
mov esp, ebp
pop ebp
ret 8
Function at 0x410880
Capabilities:
Get file version info

Disassembly:
push 0x10
mov eax, 0x43cd07
call fcn.00434dd3
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.NGUtils::AFileVersionInfo.0
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.NGUtils::CFileVersionInfo.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 4], edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x410956
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x410956
mov byte [ebp - 4], 1
push ebx
call fcn.0041757e
pop ecx
mov dword [esi + 0xc], eax
mov dword [ebp - 4], edi
jmp 0x4108ff
cmp dword [esi + 0xc], 0
je 0x410956
push dword [esi + 0xc]
push ebx
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x410956
mov dword [ebp + 8], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0x10]
push eax
push str.VarFileInfoTranslation
push dword [esi + 0xc]
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
call edi
test eax, eax
je 0x410944
mov eax, dword [ebp + 8]
shr eax, 2
mov dword [esi + 8], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + 4]
push eax
push 0x44b714
push dword [esi + 0xc]
call edi
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00434d31
ret 4

Function at 0x41290c
Capabilities:
Query environment variable

Disassembly:
push 0x210
mov eax, 0x43d67e
call fcn.00434d9c
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, ebx
test esi, esi
je 0x4129d1
cmp word [esi], bx
je 0x4129d1
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x412961
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00420d8c
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.00415e4b
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.004128b2
test eax, eax
jne 0x4129d1
push 0x38
call fcn.00416f97
mov esi, eax
pop ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 4]
mov byte [esi], 1
call fcn.00404380
mov byte [ebp - 4], 1
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], ebx
call fcn.004043e0
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x21c]
push eax
lea ecx, [edi + 0x40]
mov dword [ebp - 0x21c], esi
call fcn.00411267
mov eax, dword [ebp - 0x21c]
call fcn.00434d46
ret 4
Function at 0x413938
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x43d96a
call fcn.00434d9c
mov esi, ecx
mov dword [ebp - 0x38], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], eax
cmp dword [esi + 0x2e4], ebx
jle 0x413a20
cmp eax, 0xffffffff
je 0x413a20
push str.____Queued_Lines_End_____r_n
lea ecx, [ebp - 0x2c]
call fcn.00404380
mov dword [ebp - 4], 1
mov ecx, eax
lea edi, [esi + 0x2d4]
call fcn.00404490
push eax
mov ecx, edi
call fcn.00415175
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00404090
cmp dword [esi + 0x2e4], ebx
jbe 0x413a20
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.004153ff
mov edx, eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x4139ba
xor eax, eax
jmp 0x4139bc
mov eax, dword [ecx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov esi, dword [eax + ecx*4]
mov ecx, esi
call fcn.00404480
push 0
lea ecx, [ebp - 0x34]
push ecx
mov eax, dword [eax]
mov ecx, esi
add eax, eax
push eax
call fcn.004041a0
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4139f3
add ebx, dword [ebp - 0x34]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
dec ecx
and ecx, dword [edi + 0xc]
mov ecx, dword [eax + ecx*4]
call fcn.00404090
sub dword [edi + 0x10], 1
jne 0x413a11
and dword [edi + 0xc], 0
jmp 0x413a14
inc dword [edi + 0xc]
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x2e4], 0
ja 0x4139a3
mov eax, ebx
call fcn.00434d46
ret 8
Function at 0x414323
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x45800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
xor esi, esi
mov ebx, ecx
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4143ab
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x4143a4
test dword [ebp - 0x408], 0xfffffffc
jbe 0x4143a4
add ebx, 0xbc
push 0x104
push ebx
push dword [ebp + esi*4 - 0x404]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 0x408]
inc esi
shr eax, 2
cmp esi, eax
jb 0x414383
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416f78
mov esp, ebp
pop ebp
ret 4