joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a50
Capabilities:
Enumerate processes
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ad1e1
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4d25ac]
xor eax, esp
mov dword [esp + 0x26c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d25ac]
xor eax, esp
push eax
lea eax, [esp + 0x284]
mov dword fs:[0], eax
xor eax, eax
mov edi, ecx
mov word [esp + 0x18], ax
mov ebp, 7
xor ebx, ebx
push 0x2a
mov eax, 0x4b6248
lea esi, [esp + 0x18]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
call fcn.00401f30
mov ecx, esi
push ecx
mov dword [esp + 0x290], ebx
call fcn.00403780
add esp, 4
mov dword [esp + 0x28c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x405ae8
mov edx, dword [esp + 0x18]
push edx
call fcn.00491101
add esp, 4
cmp edi, ebx
je 0x405bee
mov ecx, 0x4b49f8
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405b1d
cmp dx, bx
je 0x405b19
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405b1d
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x405af7
xor eax, eax
jmp 0x405b22
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x405bee
push ebx
call fcn.00491f39
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
mov edi, 0x22c
mov edi, edi
push 0
push 2
xor bl, bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov esi, eax
lea eax, [esp + 0x58]
push 0
push eax
call fcn.004957a0
add esp, 0xc
lea ecx, [esp + 0x50]
push ecx
push esi
mov dword [esp + 0x58], edi
call sub.KERNEL32.dll_Process32FirstW
mov edx, dword [esp + 0x30]
push edx
lea eax, [esp + 0x78]
push eax
call fcn.004925f5
add esp, 8
test eax, eax
je 0x405b97
lea ecx, [esp + 0x50]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x405b70
jmp 0x405b99
mov bl, 1
push 0
call fcn.00491f39
add esp, 4
test bl, bl
je 0x405bad
push 0x64
call ebp
jmp 0x405b40
mov eax, str.CSystemCommands::Wait4AllProcesses__EXIT_ALLPROCCESS_ENDED.
lea ecx, [esp + 0x34]
call fcn.00401fe0
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x290], 3
call fcn.00403780
add esp, 4
cmp dword [esp + 0x4c], 8
jb 0x405be7
mov eax, dword [esp + 0x38]
push eax
call fcn.00491101
add esp, 4
mov eax, 2
jmp 0x405c39
xor ecx, ecx
push 0x3b
mov eax, str.CSystemCommands::Wait4AllProcesses__not_valid_process_name.
lea esi, [esp + 0x18]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
call fcn.00401f30
mov edx, esi
push edx
mov dword [esp + 0x290], 1
call fcn.00403780
add esp, 4
cmp dword [esp + 0x2c], 8
jb 0x405c37
mov eax, dword [esp + 0x18]
push eax
call fcn.00491101
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.0049110c
add esp, 0x27c
ret
Function at 0x406070
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4d25ac]
xor eax, esp
mov dword [esp + 0x22c], eax
test edi, edi
je 0x406155
mov ecx, 0x4b49f8
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4060b9
test dx, dx
je 0x4060b5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4060b9
add eax, 4
add ecx, 4
test dx, dx
jne 0x406093
xor eax, eax
jmp 0x4060be
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406155
push ebx
push esi
push 0
push 2
xor bl, bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov esi, eax
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004957a0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
lea esp, [esp]
lea edx, [esp + 0x2c]
push edi
push edx
call fcn.004925f5
add esp, 8
test eax, eax
je 0x40613a
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406100
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0049110c
add esp, 0x230
ret
mov bl, 1
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0049110c
add esp, 0x230
ret
mov ecx, dword [esp + 0x22c]
xor ecx, esp
xor al, al
call fcn.0049110c
add esp, 0x230
ret
Function at 0x408eb0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4d25ac]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x104
lea eax, [esp + 4]
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x408f4d
cmp word [esp + eax*2 - 2], 0x5c
push esi
push edi
je 0x408f04
lea edi, [esp + 8]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x408ef0
mov ecx, dword [0x4b4d78]
mov dword [edi], ecx
lea edi, [esp + 8]
add edi, 0xfffffffe
jmp 0x408f10
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x408f10
lea edx, [esp + 8]
push ebx
mov ecx, 8
mov esi, str.toolbar_log.txt
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00492bbe
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0049110c
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor eax, eax
call fcn.0049110c
add esp, 0x20c
ret
Function at 0x4096b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4adbe8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4d25ac]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov eax, dword [ebp + 8]
push eax
mov dword [esp + 0x44], edi
call fcn.004092c0
mov ebx, eax
cmp ebx, edi
jne 0x409715
mov eax, 0x3e81
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, 8
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
cmp dword [esi + 0x18], ecx
jb 0x40972c
mov esi, dword [esi + 4]
jmp 0x40972f
add esi, 4
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], ecx
jb 0x40973c
mov edi, dword [eax + 4]
jmp 0x40973f
lea edi, [eax + 4]
xor eax, eax
test esi, esi
setne al
test eax, eax
jne 0x409809
lea edi, [eax + 0xd]
xor edx, edx
push 0x21
mov eax, str.CRegistry::setValue_...___for_key
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], dx
call fcn.00401f30
mov ecx, dword [ebp + 0xc]
mov eax, esi
push eax
mov byte [esp + 0x44], 1
call fcn.004035d0
add esp, 4
mov byte [esp + 0x40], 0
cmp dword [esp + 0x30], 8
jb 0x4097a4
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00491101
add esp, 4
xor edx, edx
push 0x2e
mov eax, str.CRegistry::setValue_...___SetStringValue_error
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], dx
call fcn.00401f30
mov ecx, edi
mov byte [esp + 0x40], 2
call fcn.00403270
cmp dword [esp + 0x30], 8
jb 0x4097eb
mov eax, dword [esp + 0x1c]
push eax
call fcn.00491101
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jne 0x409751
push ebx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
jmp 0x4097eb
Function at 0x409840
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4adba8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d25ac]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x54]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x50]
push eax
call fcn.004093b0
mov edi, eax
cmp edi, ebx
je 0x40996c
cmp dword [ebp + 0x18], 8
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
jb 0x4098a0
mov eax, dword [ebp + 4]
jmp 0x4098a3
lea eax, [ebp + 4]
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x58]
push ecx
push ebx
push eax
mov esi, 4
push edi
mov dword [esp + 0x6c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x409984
mov dword [esp + 0x54], eax
xor edx, edx
push 0x21
mov eax, str.CRegistry::getValue_...___for_key
lea esi, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], dx
call fcn.00401f30
mov eax, esi
push eax
mov ecx, ebp
mov byte [esp + 0x4c], 1
call fcn.004035d0
mov ebp, 8
add esp, 4
mov byte [esp + 0x48], bl
cmp dword [esp + 0x3c], ebp
jb 0x409921
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00491101
add esp, 4
xor edx, edx
push 0x2f
mov eax, str.CRegistry::getValue_...___QueryDWORDValue_error
lea esi, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], dx
call fcn.00401f30
mov byte [esp + 0x48], 2
mov ecx, dword [esp + 0x54]
call fcn.00403270
cmp dword [esp + 0x3c], ebp
jb 0x409965
mov eax, dword [esp + 0x28]
push eax
call fcn.00491101
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 8
cmp dword [esp + 0x50], esi
je 0x409997
mov dword [esp + 0x54], 0xd
jmp 0x4098d0
push edi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov esi, dword [esp + 0x18]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40996e
Function at 0x4099b0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4adb68
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d25ac]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x48]
push eax
call fcn.004092c0
mov ebp, eax
cmp ebp, ebx
jne 0x4099ff
mov eax, 0x3e81
jmp 0x409ae0
mov eax, dword [esp + 0x4c]
cmp dword [eax + 0x18], 8
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
jb 0x409a16
mov eax, dword [eax + 4]
jmp 0x409a19
add eax, 4
push 4
lea ecx, [esp + 0x4c]
push ecx
push 4
push ebx
push eax
push ebp
mov dword [esp + 0x60], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp edi, ebx
jne 0x409a45
push ebp
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
jmp 0x409ad7
xor edx, edx
push 0x21
mov eax, str.CRegistry::setValue_...___for_key
lea esi, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], dx
call fcn.00401f30
mov ecx, dword [esp + 0x4c]
mov eax, esi
push eax
mov byte [esp + 0x44], 1
call fcn.004035d0
add esp, 4
mov byte [esp + 0x40], bl
cmp dword [esp + 0x34], 8
jb 0x409a94
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00491101
add esp, 4
xor edx, edx
push 0x2d
mov eax, str.CRegistry::setValue_...___SetDWORDValue_error
lea esi, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], dx
call fcn.00401f30
mov ecx, edi
mov byte [esp + 0x40], 2
call fcn.00403270
cmp dword [esp + 0x34], 8
jb 0x409ad7
mov eax, dword [esp + 0x20]
push eax
call fcn.00491101
add esp, 4
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8

Function at 0x409d10
Capabilities:
Delete registry value

Disassembly:
push ecx
push esi
push edi
xor edi, edi
cmp dword [ebx + 0x14], edi
jne 0x409d21
lea eax, [edi + 0xd]
pop edi
pop esi
pop ecx
ret
cmp dword [eax + 0x1c], 8
jb 0x409d2c
mov ecx, dword [eax + 8]
jmp 0x409d2f
lea ecx, [eax + 8]
mov eax, dword [eax + 0x20]
lea edx, [esp + 8]
push edx
push 0xf003f
push edi
push ecx
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x409d74
cmp dword [ebx + 0x18], 8
mov esi, dword [esp + 8]
jb 0x409d5c
mov eax, dword [ebx + 4]
jmp 0x409d5f
lea eax, [ebx + 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test esi, esi
je 0x409d74
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x409d80
Capabilities:
Delete registry key

Disassembly:
push ecx
cmp dword [edi + 0x14], 0
jne 0x409d8e
mov eax, 0xd
pop ecx
ret
cmp dword [eax + 0x1c], 8
mov dword [esp], 0
jb 0x409da0
mov ecx, dword [eax + 8]
jmp 0x409da3
lea ecx, [eax + 8]
mov eax, dword [eax + 0x20]
push esi
lea edx, [esp + 4]
push edx
push 0xf003f
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x409dec
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x409dec
cmp dword [edi + 0x18], 8
jb 0x409dd4
mov eax, dword [edi + 4]
jmp 0x409dd7
lea eax, [edi + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret

Function at 0x409e00
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4ad066
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4d25ac]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d25ac]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x25c]
xor esi, esi
mov ebx, edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
lea edx, [esp + 0x20]
push edx
push 0x20019
push esi
push ecx
mov dword [esp + 0x264], esi
push eax
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x409f21
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], esi
xor edi, edi
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x58]
push edx
push edi
push ebp
mov dword [esp + 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x409f28
cmp eax, esi
jne 0x409f1b
xor eax, eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x44]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x409ed0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x48]
lea esi, [esp + 0x2c]
call fcn.00401f30
mov ecx, esi
push ecx
mov byte [esp + 0x258], 1
call fcn.0040a070
mov byte [esp + 0x254], 0
cmp dword [esp + 0x40], 8
jb 0x409f19
mov edx, dword [esp + 0x2c]
push edx
call fcn.00491101
add esp, 4
xor esi, esi
inc edi
jmp 0x409e82
mov eax, 0x3e80
jmp 0x409f35
cmp ebp, esi
je 0x409f33
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0049110c
add esp, 0x244
ret
Function at 0x40ad90
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4b01a0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d25ac]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, edx
xor eax, eax
mov word [esp + 0x18], ax
xor ebp, ebp
push 0x2c
mov eax, str.CDirectory::CopyFile_started._szOriginalPath
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebp
call fcn.00401f30
mov ecx, esi
push ecx
mov ecx, ebx
mov dword [esp + 0x58], ebp
call fcn.004035d0
or ebp, 0xffffffff
add esp, 4
mov dword [esp + 0x54], ebp
cmp dword [esp + 0x2c], 8
jb 0x40ae0c
mov edx, dword [esp + 0x18]
push edx
call fcn.00491101
add esp, 4
xor eax, eax
mov word [esp + 0x18], ax
push 0x27
mov eax, str.CDirectory::CopyFile._szDestinationPath
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
call fcn.00401f30
mov ecx, esi
push ecx
mov ecx, edi
mov dword [esp + 0x58], 1
call fcn.004035d0
mov dword [esp + 0x58], ebp
mov ebp, 8
add esp, 4
cmp dword [esp + 0x2c], ebp
jb 0x40ae64
mov edx, dword [esp + 0x18]
push edx
call fcn.00491101
add esp, 4
cmp dword [ebx + 0x18], ebp
jb 0x40ae6e
mov ebx, dword [ebx + 4]
jmp 0x40ae71
add ebx, 4
cmp dword [edi + 0x18], ebp
jb 0x40ae7b
mov edi, dword [edi + 4]
jmp 0x40ae7e
add edi, 4
xor esi, esi
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x1c
cmp eax, esi
jne 0x40aeec
xor eax, eax
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], ax
mov eax, str.CDirectory::CopyFile_failed.
lea esi, [esp + 0x18]
mov dword [esp + 0x30], 7
call fcn.00401f30
mov ecx, esi
push ecx
mov dword [esp + 0x58], 2
call fcn.00403780
add esp, 4
cmp dword [esp + 0x2c], ebp
jb 0x40aed6
mov edx, dword [esp + 0x18]
push edx
call fcn.00491101
add esp, 4
xor al, al
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
xor eax, eax
mov dword [esp + 0x48], esi
mov word [esp + 0x38], ax
mov eax, str.Directory::CopyFile_success.
lea esi, [esp + 0x34]
mov dword [esp + 0x4c], 7
call fcn.00401f30
mov ecx, esi
push ecx
mov dword [esp + 0x58], 3
call fcn.00403780
add esp, 4
cmp dword [esp + 0x48], ebp
jb 0x40af33
mov edx, dword [esp + 0x34]
push edx
call fcn.00491101
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
Function at 0x40cda0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ace38
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d25ac]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call ebp
cmp dword [esi + 0x18], 8
jb 0x40cde0
mov esi, dword [esi + 4]
jmp 0x40cde3
add esi, 4
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40ce62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
mov word [esp + 0x1c], ax
xor ebx, ebx
push 0x3c
mov eax, str.CFirefoxBrowser::WriteFile___CreateFile_failed._GetLastError
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
call fcn.00401f30
mov ecx, edi
mov dword [esp + 0x58], ebx
call fcn.00403270
cmp dword [esp + 0x30], 8
jb 0x40ce4c
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00491101
add esp, 4
xor al, al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
xor esi, esi
push esi
call ebp
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x14], esi
jb 0x40ce79
mov eax, dword [edi + 4]
jmp 0x40ce7c
lea eax, [edi + 4]
push esi
lea edx, [esp + 0x18]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40cefa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], ax
push 0x3b
mov eax, str.CFirefoxBrowser::WriteFile___WriteFile_failed._GetLastError
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], 7
call fcn.00401f30
mov ecx, edi
mov dword [esp + 0x58], 1
call fcn.00403270
cmp dword [esp + 0x30], 8
jb 0x40cedd
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00491101
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov edi, dword [edi + 0x14]
cmp dword [esp + 0x14], edi
jae 0x40cf34
mov eax, str.CFirefoxBrowser::WriteFile_____WriteFile_failed._size_written_too_small
lea ecx, [esp + 0x34]
call fcn.00401fe0
mov dword [esp + 0x58], 2
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x34]
call fcn.00403270
cmp dword [esp + 0x4c], 8
jb 0x40cedd
mov edx, dword [esp + 0x38]
push edx
jmp 0x40ced5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x41f660
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4abf3b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4d25ac]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004905b3
push 4
mov dword [esp + 0x24], 0
call fcn.00491198
mov edi, eax
add esp, 4
test edi, edi
je 0x41f6e2
call fcn.00490424
mov dword [edi], eax
call fcn.00490252
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00490574
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x41f6d7
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0049059c
jmp 0x41f6e4
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x420210
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4adac0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
mov eax, dword [0x4d25ac]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x58]
xor eax, eax
mov word [esp + 0x14], ax
xor ebx, ebx
push 0x17
mov eax, 0x4c0d84
lea esi, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
call fcn.00401f30
mov ecx, esi
push ecx
mov ecx, ebp
mov dword [esp + 0x54], ebx
call fcn.004035d0
mov esi, 8
add esp, 4
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x28], esi
jb 0x420290
mov edx, dword [esp + 0x14]
push edx
call fcn.00491101
add esp, 4
cmp dword [ebp + 0x18], esi
jb 0x42029a
mov eax, dword [ebp + 4]
jmp 0x42029d
lea eax, [ebp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
mov byte [edi + 0x24], al
cmp al, bl
je 0x4202c0
lea ebx, [edi + 0x20]
mov ecx, ebp
call fcn.0048fda0
mov byte [edi + 0x24], al
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 4]
mov eax, ebp
call fcn.00401c20
xor eax, eax
mov word [esp + 0x30], ax
push 0x17
mov eax, str.CINIReader::Init___init
lea esi, [esp + 0x30]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
call fcn.00401f30
mov dword [esp + 0x50], 1
movzx ecx, byte [edi + 0x24]
push ecx
mov edx, esi
push edx
call fcn.00403190
add esp, 8
cmp dword [esp + 0x44], 8
jb 0x42031c
mov eax, dword [esp + 0x30]
push eax
call fcn.00491101
add esp, 4
mov al, byte [edi + 0x24]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4