joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406861
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ecx
add ecx, 0xe42f
call fcn.00406861
add byte [ebx + 0x37], al
inc eax
xor edi, dword [edi]
cmp ecx, dword [ebx + eax*4 - 0x3c]
add esp, 4
pop ecx
add esp, 4
pop ecx
push ecx
add ecx, 0x9ad
pop ecx
push ebx
push ecx
add esp, 4
sub ebx, 0xaeed
xor ebx, 0xd6d9
pop ebx
mov ecx, dword [ebp - 0xcb0]
mov dx, word [ecx]
mov word [ebp - 0x103e], dx
mov eax, dword [ebp - 0xcb0]
add eax, 2
mov dword [ebp - 0xcb0], eax
mov cx, word [ebp - 0x103e]
mov word [ebp - 0x218], cx
mov edx, dword [ebp - 0xcb4]
mov ax, word [edx]
mov word [ebp - 0x1040], ax
mov ecx, dword [ebp - 0xcb4]
add ecx, 2
mov dword [ebp - 0xcb4], ecx
mov dx, word [ebp - 0x1040]
mov word [ebp - 0x34], dx
push ecx
or ecx, 0x58e9
or ecx, 0xc118
and ecx, 0xa72d
pop ecx
push ecx
push esi
add esp, 4
sub ecx, 0x3565
sub ecx, 0x17e92
sub ecx, 0x15da2
or ecx, 0x15ad8
pop ecx
movzx eax, word [ebp - 0x34]
test eax, eax
jne 0x406925
movzx ecx, word [ebp - 0x218]
movzx edx, word [ebp - 0x34]
sub ecx, edx
mov dword [ebp - 0x160c], ecx
jmp 0x40697f
movzx eax, word [ebp - 0x218]
movzx ecx, word [ebp - 0x34]
cmp eax, ecx
je 0x40684d
movzx edx, word [ebp - 0x218]
xor edx, 0x20
movzx eax, word [ebp - 0x34]
cmp edx, eax
je 0x40684d
movzx ecx, word [ebp - 0x218]
movzx edx, word [ebp - 0x34]
cmp ecx, edx
jge 0x406969
mov dword [ebp - 0x1608], 0xffffffff
jmp 0x406973
mov dword [ebp - 0x1608], 1
mov eax, dword [ebp - 0x1608]
mov dword [ebp - 0x160c], eax
cmp dword [ebp - 0x160c], 0
jne 0x4069c8
push esi
and esi, 0x8712
or esi, 0x569d
into
popfd
push esi
add byte [eax], al
add esi, 0x12d92
or esi, 0x10515
pop esi
push ebx
push eax
add esp, 4
xor ebx, 0xa033
xor ebx, 0x10b44
sub ebx, 0x167cb
pop ebx
mov ecx, dword [ebp - 0x510]
mov dword [ebp - 0x2d4], ecx
jmp 0x406a30
push edx
push edx
add esp, 4
sub edx, 0xc336
and edx, 0xbd26
and edx, 0x3593
pop edx
push ecx
push ebx
add esp, 4
and ecx, 0xf966
pop ecx
push eax
add eax, 0x152a1
and eax, 0x105c7
pop eax
mov edx, dword [ebp - 0x510]
mov eax, dword [edx]
mov dword [ebp - 0x510], eax
mov ecx, dword [ebp - 0x510]
cmp ecx, dword [ebp - 0xcb8]
je 0x406a26
mov edx, dword [ebp - 0x510]
cmp dword [edx + 0x30], 0
jne 0x4067f1
mov dword [ebp - 0x2d4], 0
Function at 0x406990
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ecx
add ecx, 0xe42f
call fcn.00406861
add byte [ebx + 0x37], al
inc eax
xor edi, dword [edi]
cmp ecx, dword [ebx + eax*4 - 0x3c]
add esp, 4
pop ecx
add esp, 4
pop ecx
push ecx
add ecx, 0x9ad
pop ecx
push ebx
push ecx
add esp, 4
sub ebx, 0xaeed
xor ebx, 0xd6d9
pop ebx
mov ecx, dword [ebp - 0xcb0]
mov dx, word [ecx]
mov word [ebp - 0x103e], dx
mov eax, dword [ebp - 0xcb0]
add eax, 2
mov dword [ebp - 0xcb0], eax
mov cx, word [ebp - 0x103e]
mov word [ebp - 0x218], cx
mov edx, dword [ebp - 0xcb4]
mov ax, word [edx]
mov word [ebp - 0x1040], ax
mov ecx, dword [ebp - 0xcb4]
add ecx, 2
mov dword [ebp - 0xcb4], ecx
mov dx, word [ebp - 0x1040]
mov word [ebp - 0x34], dx
push ecx
or ecx, 0x58e9
or ecx, 0xc118
and ecx, 0xa72d
pop ecx
push ecx
push esi
add esp, 4
sub ecx, 0x3565
sub ecx, 0x17e92
sub ecx, 0x15da2
or ecx, 0x15ad8
pop ecx
movzx eax, word [ebp - 0x34]
test eax, eax
jne 0x406925
movzx ecx, word [ebp - 0x218]
movzx edx, word [ebp - 0x34]
sub ecx, edx
mov dword [ebp - 0x160c], ecx
jmp 0x40697f
movzx eax, word [ebp - 0x218]
movzx ecx, word [ebp - 0x34]
cmp eax, ecx
je 0x40684d
movzx edx, word [ebp - 0x218]
xor edx, 0x20
movzx eax, word [ebp - 0x34]
cmp edx, eax
je 0x40684d
movzx ecx, word [ebp - 0x218]
movzx edx, word [ebp - 0x34]
cmp ecx, edx
jge 0x406969
mov dword [ebp - 0x1608], 0xffffffff
jmp 0x406973
mov dword [ebp - 0x1608], 1
mov eax, dword [ebp - 0x1608]
mov dword [ebp - 0x160c], eax
cmp dword [ebp - 0x160c], 0
jne 0x4069c8
push esi
and esi, 0x8712
or esi, 0x569d
into
popfd
push esi
add byte [eax], al
add esi, 0x12d92
or esi, 0x10515
pop esi
push ebx
push eax
add esp, 4
xor ebx, 0xa033
xor ebx, 0x10b44
sub ebx, 0x167cb
pop ebx
mov ecx, dword [ebp - 0x510]
mov dword [ebp - 0x2d4], ecx
jmp 0x406a30
push edx
push edx
add esp, 4
sub edx, 0xc336
and edx, 0xbd26
and edx, 0x3593
pop edx
push ecx
push ebx
add esp, 4
and ecx, 0xf966
pop ecx
push eax
add eax, 0x152a1
and eax, 0x105c7
pop eax
mov edx, dword [ebp - 0x510]
mov eax, dword [edx]
mov dword [ebp - 0x510], eax
mov ecx, dword [ebp - 0x510]
cmp ecx, dword [ebp - 0xcb8]
je 0x406a26
mov edx, dword [ebp - 0x510]
cmp dword [edx + 0x30], 0
jne 0x4067f1
mov dword [ebp - 0x2d4], 0
Function at 0x406d3b
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [ebp - 0x76c]
add edx, 1
mov dword [ebp - 0x76c], edx
add esp, 4
and esi, 0x16bb2
pop esi
push ebx
sub ebx, 0x8be0
xor ebx, 0x9502
pop ebx
push ecx
push edx
add esp, 4
and ecx, 0x554d
pop ecx
mov eax, dword [ebp - 0x770]
add eax, dword [ebp - 0x198]
movsx ecx, byte [eax]
or ecx, 0x20
mov edx, dword [ebp - 0x198]
movsx eax, byte [ebp + edx - 0x87c]
or eax, 0x20
cmp ecx, eax
jge 0x406d92
mov dword [ebp - 0xcbc], 0xffffffff
jmp 0x406d9c
mov dword [ebp - 0xcbc], 1
cmp dword [ebp - 0xcbc], 0
jne 0x406db3
mov ecx, dword [ebp - 0x1d48]
mov dword [ebp - 0x514], ecx
jmp 0x406dc4
jmp 0x406b9d
Function at 0x423ee0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1c80
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x62c140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x20]
add esi, 0x20
push 0x5e72f8
push eax
call fcn.00581e0d
add esp, 8
test eax, eax
jne 0x423f63
call fcn.00413450
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push ebx
push edi
push str._lu_lu_lu.download
push esi
call fcn.00402d20
mov eax, dword [esi]
add esp, 0x14
push eax
push str.Formed_Unique_id_for_the_file_is__s_n
call fcn.0043d7e0
add esp, 8
mov edi, dword [ebp + 8]
mov ebx, dword [0x6346a0]
add edi, 4
call fcn.00411310
mov eax, dword [ebp + 8]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call fcn.004117f0
mov ecx, dword [esi]
mov esi, edi
call fcn.00410810
mov edx, dword [0x62d034]
mov eax, dword [edx + 0xc]
mov ecx, 0x62d034
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov edx, dword [0x62d034]
mov eax, dword [edx + 0xc]
mov ebx, dword [0x6346a0]
mov ecx, 0x62d034
call eax
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
test ebx, ebx
je 0x423ff8
test ebx, 0xffff0000
jne 0x423ff8
movzx esi, bx
push 0
push esi
call fcn.00401770
add esp, 8
test eax, eax
je 0x424000
push esi
push eax
lea ecx, [ebp + 8]
call fcn.00411750
jmp 0x424000
lea edi, [ebp + 8]
call fcn.00411310
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
mov bl, 3
push edx
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00426a10
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00426e80
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424047
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42406a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x14]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push str.Temporary_file_path_is__S_n
call fcn.0043d7e0
lea eax, [esi - 0x10]
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4240d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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
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 0x4240f0
Capabilities:
Delete file

Disassembly:
push str.Performing_PreDownloadCleaningOfPartialFile_n
call fcn.0043d7e0
xor eax, eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret

Function at 0x424120
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1c40
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x62c140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push eax
push ecx
push str.Inside_SaveToDestFile_from__S_to__S_n
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
call fcn.0043d7e0
mov eax, dword [esi]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x42417d
mov edx, dword [eax - 0xc]
push edx
mov ecx, esi
call fcn.00410ea0
mov eax, dword [esi]
push 1
push eax
call fcn.004420d0
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x424198
cmp edi, 0xb7
jne 0x4241e9
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push ebx
push eax
push ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4241e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 4]
mov edi, eax
mov eax, dword [esi]
push eax
push ecx
push str.InternetGetRequestEx_:_could_nt_copy_from__S_file_to__S___n
call fcn.0043d500
push edi
call fcn.0043fb10
add esp, 0x10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00424230
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424230
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1c18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x62c140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
push str.Inside_CleanFileAndRegistry_n
mov dword [ebp - 4], 0
call fcn.0043d7e0
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 4
push eax
call esi
test eax, eax
jne 0x4242a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.temp_file_deletion_failed_with_error__d..reattempting_after_5secs_n
call fcn.0043d500
add esp, 8
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi + 4]
push eax
call esi
mov eax, dword [0x62d034]
mov edx, dword [eax + 0xc]
mov ecx, 0x62d034
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x36
push str.SoftwareAdventNetDesktopCentralDCDistributionServer
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00402980
push str.FileMetaData_
mov eax, 0xe
lea ebx, [ebp - 0x14]
call fcn.00402b60
mov eax, dword [ebp - 0x14]
mov ebx, 1
mov dword [ebp - 0x18], 0
cmp dword [eax - 4], ebx
jle 0x424303
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.004028c0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.00411ff0
mov eax, dword [edi + 0xc]
add esp, 8
cmp dword [eax - 4], ebx
jle 0x424324
mov edx, dword [eax - 0xc]
push edx
lea ecx, [edi + 0xc]
call fcn.00410ea0
mov eax, dword [edi + 0xc]
mov ebx, dword [ebp - 0x18]
call fcn.00412740
mov eax, dword [edi + 0x28]
cmp dword [eax - 4], 1
mov dword [ebp - 0x18], 0
jle 0x42434b
mov eax, dword [eax - 0xc]
push eax
lea ecx, [edi + 0x28]
call fcn.004028c0
mov esi, dword [edi + 0x28]
lea ecx, [ebp - 0x18]
push ecx
push esi
call fcn.00411ff0
mov esi, dword [ebp - 0x18]
add esp, 8
mov eax, esi
call fcn.00412740
test ebx, ebx
je 0x424372
push ebx
call fcn.0057f05b
add esp, 4
test esi, esi
je 0x42437f
push esi
call fcn.0057f05b
add esp, 4
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx - 0xc]
push ecx
lea ebx, [ebp - 0x14]
call fcn.00402b60
mov esi, dword [ebp - 0x14]
cmp dword [esi - 4], 1
jle 0x4243a5
mov edx, dword [esi - 0xc]
push edx
mov ecx, ebx
call fcn.004028c0
mov esi, dword [ebp - 0x14]
push esi
push reloc.ODBC32.dll_SQLAllocEnv
call fcn.00412ac0
lea eax, [esi - 0x10]
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4243d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a9f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x62c140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x138], ebx
call fcn.0042b870
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42aa50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcessID_:_CreateToolhelp32Snapshot_is_failed_due_to_the_following_error_code__d__n
call fcn.0043d500
add esp, 8
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ee81
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x130]
push eax
push ebx
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x42aa92
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcessID_:_Process32First_function_failed_:_d_n
call fcn.0043d500
add esp, 8
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ee81
mov esp, ebp
pop ebp
ret
push 0xf
lea ecx, [ebp - 0x10c]
push edi
push ecx
call fcn.0058a494
add esp, 0xc
test eax, eax
jne 0x42aaed
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x138]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x42aaed
cmp esi, 0xffffffff
je 0x42ab26
mov ecx, dword [ebp - 0x138]
push edi
push ecx
push str.GetProcessID_:_Retrieved_Session_ID_:__d_for_the_process__s__n
call fcn.0043d7e0
push esi
push str.GetProcessID_:_Compare_Session_ID_:__d__n
call fcn.0043d7e0
add esp, 0x14
cmp dword [ebp - 0x138], esi
je 0x42ab2e
lea edx, [ebp - 0x130]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x42aa92
mov esi, dword [ebp - 0x134]
push esi
push edi
push str.GetProcessID_:_Process_ID_for__s_is__d_n
call fcn.0043d7e0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057ee81
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x128]
jmp 0x42ab05
mov eax, dword [ebp - 0x128]
mov esi, eax
jmp 0x42ab05
Function at 0x431860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0c08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x62c140]
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, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x4319a5
cmp byte [edi + 0x4a], bl
je 0x4319a5
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x431992
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x4318e0
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x4318f8
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x431928
dec eax
je 0x43192c
sub eax, 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
jne 0x43198d
jmp 0x4319a0
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x43193c
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x431965
cmp ebx, 0x10
jae 0x43194b
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00583183
add esp, 0x10
cmp esi, eax
jne 0x431983
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x431996
test esi, esi
jne 0x4318ec
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00408880
jmp 0x4318e6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402f30
xor al, al
jmp 0x4319a7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402f30
mov al, 1
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.0057ee81
mov esp, ebp
pop ebp
ret
Function at 0x431b80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b055b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x62c140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.005a337a
push 4
mov dword [ebp - 4], 0
call fcn.0048047a
mov edi, eax
add esp, 4
test edi, edi
je 0x431c00
call fcn.005a2cb2
mov dword [edi], eax
call fcn.005a2b2d
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.005a2d9b
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x431bf6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.005a2dc3
jmp 0x431c02
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 [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435260
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b06ee
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x62c140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.0048047a
add esp, 4
cmp eax, ebx
je 0x43535d
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.0048047a
add esp, 4
cmp eax, ebx
je 0x435339
xor ecx, ecx
mov dword [edi], eax
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov edx, dword [ebp + 8]
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov eax, dword [edx]
mov dword [esi + 0x7c], eax
mov byte [esi + 0x80], bl
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 4
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.0057fbdd
push 0x613b00
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.00586c3e
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
call fcn.0057fbdd
push 0x613b00
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.00586c3e
int3
Function at 0x441e50
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push SQLAllocStmt
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
cmp eax, 2
jne 0x441ea0
call ebx
push eax
push edi
push str.IsFileExist_:_The_File_Name__s_is_not_found__d_n
call fcn.0043d500
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
cmp esi, 0xffffffff
jne 0x441ec4
call ebx
push eax
push edi
push str.IsFileExist_:_Invalid_Handle_returned_for__s____d_n
call fcn.0043d500
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push str.IsFileExist_:_The_File__s_size_is_given_by_:__d_n
call fcn.0043d390
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x441efe
push edi
push str.IsFileExist_:_The_required_file___s__size_is_0_bytes._Hence_returning_file_not_found._n
call fcn.0043d500
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret