joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ef60
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4edfae
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5441b4]
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 eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x50], eax
mov eax, 2
lea ecx, [ebp - 0x54]
mov edx, esi
call fcn.0042c0b0
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x64]
push edx
xor ebx, ebx
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x42f079
mov eax, 1
test byte [0x548484], al
jne 0x42effb
or dword [0x548484], eax
push 0x548408
mov byte [ebp - 4], al
call fcn.00431fb0
push 0x4f1010
mov byte [0x548480], bl
call fcn.004b809e
add esp, 4
mov byte [ebp - 4], bl
push 0x50f818
push 0x548408
mov edx, str.MsgBox
lea ecx, [ebp - 0x30]
call fcn.00429870
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
mov esi, 8
cmp dword [ebp - 0x1c], esi
jae 0x42f026
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x50]
call fcn.0042f5d0
cmp dword [ebp - 0x1c], esi
jb 0x42f03f
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004b6106
add esp, 4
xor edx, edx
lea eax, [edi - 0x10]
mov word [ebp - 0x30], dx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f072
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x42f133
cmp dword [ebp - 0x58], ebx
ja 0x42f0aa
jb 0x42f089
cmp dword [ebp - 0x5c], 0xc800000
jae 0x42f0aa
push 0x50f824
call fcn.00429200
push eax
mov edx, str.MsgBox
lea ecx, [ebp - 0x30]
call fcn.00429870
mov byte [ebp - 4], 3
jmp 0x42f016
mov esi, dword [esi]
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp eax, ebx
je 0x42f10b
cmp eax, 0x50
je 0x42f10b
cmp eax, 0xb7
je 0x42f10b
cmp eax, 5
je 0x42f10b
push 0x50f828
call fcn.00429200
push eax
mov edx, str.MsgBox
lea ecx, [ebp - 0x4c]
call fcn.00429870
mov byte [ebp - 4], 4
cmp dword [ebp - 0x38], 8
mov ecx, dword [ebp - 0x4c]
jae 0x42f0f1
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
call fcn.0042f5d0
lea ecx, [ebp - 0x4c]
call fcn.00406760
lea eax, [ebp - 0x54]
call fcn.00406bc0
jmp 0x42f12e
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f12e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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.004b6111
mov esp, ebp
pop ebp
ret
Function at 0x42f150
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ed4b4
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x5441b4]
xor eax, esp
mov dword [esp + 0x264], eax
push ebx
push esi
mov eax, dword [0x5441b4]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x6a]
push ebx
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0x70], ax
call fcn.004be120
add esp, 0xc
test byte [0x548484], 1
mov dword [esp + 0xc], esi
jne 0x42f20c
or dword [0x548484], 1
push 0x548408
mov dword [esp + 0x284], ebx
call fcn.00431fb0
push 0x4f1010
mov byte [0x548480], bl
call fcn.004b809e
add esp, 4
mov dword [esp + 0x280], 0xffffffff
push 0x50f82c
push 0x548408
mov edx, 0x50f830
lea ecx, [esp + 0x50]
call fcn.00429870
mov esi, 8
mov dword [esp + 0x280], 1
cmp dword [esp + 0x5c], esi
jb 0x42f244
mov edx, dword [esp + 0x48]
mov dword [esp + 0x18], edx
jmp 0x42f24c
lea eax, [esp + 0x48]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x20], 0x41
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp eax, ebx
jne 0x42f29b
cmp dword [esp + 0x5c], esi
jb 0x42f276
mov edx, dword [esp + 0x48]
push edx
call fcn.004b6106
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.004b6111
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x64]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [esp + 0x64]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42f2b0
sub eax, edx
lea edx, [esp + 0x64]
sar eax, 1
push edx
push edi
mov ebx, eax
call fcn.0042d2b0
mov ecx, dword [edi]
mov edx, dword [ecx - 0xc]
lea eax, [edx - 1]
test eax, eax
js 0x42f38f
cmp eax, edx
jg 0x42f38f
cmp word [ecx + eax*2], 0x5c
je 0x42f2f9
push 1
push 0x50b670
mov ebx, edi
call fcn.0042c510
lea esi, [esp + 0x2c]
call fcn.00403cb0
mov esi, 8
mov byte [esp + 0x280], 2
cmp dword [esp + 0x40], esi
jb 0x42f321
mov eax, dword [esp + 0x2c]
mov edx, eax
test eax, eax
jne 0x42f325
jmp 0x42f33f
lea edx, [esp + 0x2c]
mov eax, edx
lea ebx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f330
sub eax, ebx
sar eax, 1
push eax
push edx
mov ebx, edi
call fcn.0042c510
cmp dword [esp + 0x40], esi
jb 0x42f35b
mov eax, dword [esp + 0x2c]
push eax
call fcn.004b6106
add esp, 4
xor ecx, ecx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], cx
cmp dword [esp + 0x5c], esi
jb 0x42f385
mov edx, dword [esp + 0x48]
push edx
call fcn.004b6106
add esp, 4
mov eax, 1
jmp 0x42f278
push 0x80070057
call fcn.00406a50
int3
Function at 0x42f8d0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7e00
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5441b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x42fa8c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi + 0x2d6]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42fa5a
cmp dword [esi + 0x8f8], 0
jne 0x42f939
mov eax, esi
call fcn.0042f870
test al, al
je 0x42fa8c
mov eax, dword [esi + 0x8f8]
mov ecx, dword [eax]
push 0
lea edx, [esi + 0x4e0]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jns 0x42f966
add esi, 4
mov edi, str.SetURL
call fcn.00430520
jmp 0x42fa8c
lea edi, [esi + 0x6ea]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f971
sub eax, edx
sar eax, 1
mov ebx, 0xffffffff
je 0x42f9d4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42f9d4
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x8f8]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x4f297c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x42f9c2
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push edi
push eax
call edx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42f9d4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x8f8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x4f67dc
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x42fa1e
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jns 0x42fa32
add esi, 4
mov edi, 0x50f8cc
call fcn.00430520
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42fa8c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x42fa8c
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42fa44
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add esi, 4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42fa62
sub eax, edx
sar eax, 1
add eax, eax
push eax
push 0
push esi
call fcn.004be120
push 0x50f898
push 0x64
push esi
call fcn.004b91c9
add esp, 0x18
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42fac0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7dbb
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
push edi
mov esi, ecx
mov dword [ebp - 0x224], edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x42fc97
lea edi, [esi + 0x2d6]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42fc97
cmp dword [esi + 0x8f4], 0
jne 0x42fb34
mov eax, esi
call fcn.0042f810
test al, al
je 0x42fcca
mov eax, dword [esi + 0x8f4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
lea edx, [esi + 0xcc]
mov eax, edx
lea ebx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42fb50
sub eax, ebx
sar eax, 1
je 0x42fb70
mov eax, dword [esi + 0x8f4]
mov ecx, dword [eax]
push edx
mov edx, dword [ecx + 0x2c]
push eax
call edx
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov word [ebp - 0x21c], ax
call fcn.004be120
add esp, 0xc
test edi, edi
je 0x42fbb4
lea ebx, [ebp - 0x21c]
mov eax, edi
call fcn.00430290
test al, al
je 0x42fbb4
mov eax, dword [esi + 0x8f4]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
mov ecx, ebx
push ecx
push eax
call edx
lea ebx, [esi + 0x6ea]
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42fbc0
sub eax, edx
sar eax, 1
je 0x42fbed
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42fbed
mov eax, dword [esi + 0x8f4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push ebx
push eax
call edx
xor edi, edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x8f4]
mov ecx, dword [eax]
lea edx, [ebp - 0x220]
push edx
push 0x4f67dc
push eax
mov eax, dword [ecx]
call eax
cmp eax, edi
jge 0x42fc37
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x42fcca
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x42fcca
mov eax, dword [ebp - 0x220]
mov edx, dword [ebp - 0x224]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp eax, edi
jge 0x42fc7a
add esi, 4
mov edi, 0x50f8e4
call fcn.00430520
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x42fcca
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x42fcca
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x42fc93
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, 1
jmp 0x42fccc
add esi, 4
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42fca0
sub eax, edx
sar eax, 1
add eax, eax
push eax
push 0
push esi
call fcn.004be120
push 0x50f898
push 0x64
push esi
call fcn.004b91c9
add esp, 0x18
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret
Function at 0x42fcf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x208
mov esi, ecx
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.004be120
add esp, 0xc
push 0
push 0x10
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x42fd7e
add esi, 4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42fd43
sub eax, edx
sar eax, 1
add eax, eax
push eax
push 0
push esi
call fcn.004be120
push 0x50f8fc
push 0x64
push esi
call fcn.004b91c9
add esp, 0x18
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret
push 0x50b670
lea ecx, [ebp - 0x210]
push 0x105
push ecx
call fcn.004b922c
push edi
lea edx, [ebp - 0x210]
push 0x105
push edx
call fcn.004b922c
push str..lnk
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004b922c
add esp, 0x24
lea edx, [ebp - 0x210]
mov ecx, esi
call fcn.0042fac0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b6111
mov esp, ebp
pop ebp
ret

Function at 0x4301e0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.004be120
mov edx, dword [ebp + 8]
add esp, 0xc
push 0
push edx
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x50b670
lea ecx, [ebp - 0x210]
push 0x105
push ecx
call fcn.004b922c
push esi
lea edx, [ebp - 0x210]
push 0x105
push edx
call fcn.004b922c
push str..lnk
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004b922c
add esp, 0x24
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.004b6111
mov esp, ebp
pop ebp
ret

Function at 0x430290
Capabilities:
Check if file exists

Disassembly:
push edi
mov edi, eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4302a2
xor al, al
pop edi
ret
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4302a7
sub eax, edx
sar eax, 1
push esi
lea esi, [eax - 1]
test esi, esi
js 0x4302ca
mov edi, edi
cmp word [edi + esi*2], 0x5c
je 0x4302ca
dec esi
jns 0x4302c0
mov edx, edi
xor ecx, ecx
mov eax, ebx
sub edx, ebx
cmp ecx, esi
jge 0x4302e9
mov di, word [edx + eax]
mov word [eax], di
inc ecx
add eax, 2
cmp ecx, 0x104
jl 0x4302d2
pop esi
mov al, 1
pop edi
ret
Function at 0x431080
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb063
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5441b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
or ecx, 0xffffffff
mov dword [esi + 8], ecx
mov dword [esi + 4], ecx
xor edx, edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x30], edx
mov ebx, 0xf
mov dword [esi + 0x34], ebx
mov byte [esi + 0x20], dl
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 1
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [ebp - 4], edx
lea eax, [esi + 0x44]
mov dword [esi], vtable.TiXmlElement.0
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], edx
mov dword [eax], vtable.TiXmlAttribute.0
mov dword [eax + 0x28], ebx
mov dword [eax + 0x24], edx
mov byte [eax + 0x14], dl
mov dword [eax + 0x44], ebx
mov dword [eax + 0x40], edx
mov byte [eax + 0x30], dl
mov dword [eax + 0x10], edx
mov dword [eax + 0x50], eax
mov dword [eax + 0x4c], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], edx
mov dword [esi + 0x18], edx
lea ecx, [eax + 1]
lea ebx, [ebx]
mov bl, byte [eax]
inc eax
cmp bl, dl
jne 0x431120
sub eax, ecx
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esi + 0x20]
call fcn.00406bf0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x431fb0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb033
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x5441b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x30], ebx
mov edx, 0xf
mov dword [esi + 0x34], edx
mov byte [esi + 0x20], bl
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [ebp - 4], ebx
lea ecx, [esi + 0x4c]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x10], ebx
mov byte [ecx], bl
mov byte [ebp - 4], 1
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
push ebx
push 0x50c5a6
mov dword [esi + 0x68], 4
mov byte [esi + 0x74], bl
mov byte [esi + 0x44], bl
mov dword [esi + 0x48], ebx
call fcn.00406bf0
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x432540
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
test ebx, ebx
jne 0x43258b
cmp byte [esi + 0x44], bl
jne 0x432583
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x432567
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x4c]
call fcn.00406bf0
or eax, 0xffffffff
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
pop edi
xor al, al
pop ebx
pop ebp
ret 8
mov edi, dword [esi + 0x18]
test edi, edi
je 0x4325a3
mov ecx, edi
mov eax, dword [ecx]
mov edx, dword [eax]
mov edi, dword [edi + 0x40]
push 1
call edx
test edi, edi
jne 0x432592
xor eax, eax
push 2
push eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
or edi, 0xffffffff
push ebx
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.004b95db
push ebx
call fcn.004b97eb
push 0
mov ebx, eax
mov eax, dword [ebp + 8]
push 0
push eax
call fcn.004b95db
add esp, 0x1c
test ebx, ebx
jg 0x432616
cmp byte [esi + 0x44], 0
jne 0x43260e
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 0xd
mov edx, dword [str.Error_null__0__or_unexpected_EOF_found_in_input_stream.]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4325f5
sub eax, ebx
push eax
push edx
lea ecx, [esi + 0x4c]
call fcn.00406bf0
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], edi
pop edi
xor al, al
pop ebx
pop ebp
ret 8
lea ecx, [ebx + 1]
push ecx
call fcn.0046fc33
mov edx, dword [ebp + 8]
push edx
push 1
mov edi, eax
push ebx
push edi
mov byte [edi], 0
call fcn.004b768b
add esp, 0x14
cmp eax, 1
je 0x43266e
push edi
call fcn.004b77c3
add esp, 4
cmp byte [esi + 0x44], 0
jne 0x432583
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x432662
jmp 0x43256e
mov byte [edi + ebx], 0
cmp byte [edi], 0
mov eax, edi
mov ecx, edi
je 0x43269c
jmp 0x432680
mov dl, byte [eax]
cmp dl, 0xd
jne 0x432693
mov byte [ecx], 0xa
inc eax
inc ecx
cmp byte [eax], 0xa
jne 0x432697
jmp 0x432696
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x432680
mov byte [ecx], 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 8]
push ecx
push 0
push edi
mov ecx, esi
call edx
push edi
call fcn.004b77c3
add esp, 4
xor eax, eax
cmp byte [esi + 0x44], al
pop edi
sete al
pop ebx
pop ebp
ret 8
Function at 0x439cd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x439cd7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x439dad
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x50e6f8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x50e6f8]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x50e6f8]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x50e6f8]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x50e6f8]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x50e6f8]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x50e6f8]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x50e6f8]
add ecx, 8
sub edx, 8
dec esi
jne 0x439cf0
pop edi
test edx, edx
je 0x439dca
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x50e6f8]
inc ecx
dec edx
jne 0x439db1
not eax
pop esi
ret

Function at 0x439dd0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x50e6f8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x50e6f8]
mov dword [edx + 8], ecx
ret

Function at 0x439e40
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x50e6f8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x50e6f8]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x43a760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x43a796
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43a78c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x43a7a7
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.004ba8a0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x43a7d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x43a803
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43a7fe
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x43a82e
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x43a815
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.004ba8a0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x43a843
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x43a83d
cmp byte [esi + 8], 0
je 0x43a83d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret