joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420990
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x468100]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x66c]
push eax
add edi, 0x24
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x670], eax
cmp eax, 0xffffffff
je 0x420a86
cmp dword [ebp - 0x650], 0
jne 0x4209e2
cmp dword [ebp - 0x64c], 0x500000
jbe 0x420a7f
xor ecx, ecx
mov word [ebp - 0x41c], cx
mov ecx, edi
lea eax, [ebp - 0x41c]
call fcn.00420910
xor edx, edx
mov ecx, edi
lea eax, [ebp - 0x214]
mov word [ebp - 0x214], dx
call fcn.00420910
mov ecx, 0x45e700
lea eax, [ebp - 0x41c]
call fcn.00420910
mov ecx, 0x45e708
lea eax, [ebp - 0x214]
call fcn.00420910
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
lea eax, [ebp - 0x214]
push eax
call ebx
test eax, eax
jne 0x420a56
cmp esi, 2
jge 0x420a50
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 3
jl 0x420a36
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x41c]
push edx
call esi
lea eax, [ebp - 0x41c]
push eax
push edi
call esi
push edi
call ebx
mov eax, dword [ebp - 0x670]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret 4
Function at 0x420dd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
push 0x2c
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0x30
call fcn.00442420
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], str.TXLOGGER_BYCORETEAM
mov dword [esp + 0xc], 0x420d00
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
je 0x420e39
xor eax, eax
mov esp, ebp
pop ebp
ret
lea ecx, [esp]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
push 0
push edx
push 0
push 0xfffffffffffffffd
push 0x64
push 0x64
push 0
push 0
push 0
push str.loger_command_window
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [esi + 0x230], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x230]
mov esp, ebp
pop ebp
ret
Function at 0x420e90
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454bd6
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x468100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi + 0x240], edi
mov dword [esi + 0x244], edi
mov dword [esi + 0x248], edi
mov dword [esi + 0x22c], edi
mov dword [esi + 0x230], edi
mov dword [esi + 0x234], 4
mov dword [esi + 0x238], 0x3e8
mov dword [esi + 0x23c], 0x10101
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov bl, 2
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.004086c0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 3
call fcn.004206c0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420f58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
mov ecx, 1
sar eax, 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp eax, ecx
jbe 0x421018
mov edx, dword [ebp - 0x24]
mov ebx, dword [edx + ecx*4]
cmp ebx, edi
je 0x421008
cmp word [ebx], 0x2f
jne 0x420fae
movzx eax, word [ebx + 2]
push eax
call fcn.00440f2a
add esp, 4
test eax, eax
je 0x420fae
cmp word [ebx + 4], di
jne 0x420fae
movzx ecx, word [ebx + 2]
sub ecx, 0x30
mov dword [esi + 0x234], ecx
jmp 0x421008
push 0xa
push str._loglevel:
push ebx
call fcn.0044157d
add esp, 0xc
test eax, eax
jne 0x420fd6
add ebx, 0x14
push ebx
call fcn.0043ed26
add esp, 4
mov dword [esi + 0x234], eax
jmp 0x421008
push 8
push str._logbuf:
push ebx
call fcn.0044157d
add esp, 0xc
test eax, eax
jne 0x421008
add ebx, 0x10
push ebx
call fcn.0043ed26
add esp, 4
mov dword [esi + 0x238], eax
cmp eax, 1
ja 0x421008
mov byte [esi + 0x23d], 0
mov ecx, dword [ebp - 0x10]
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp - 0x14]
jb 0x420f74
call fcn.00420dd0
test eax, eax
jne 0x421027
mov byte [esi + 0x23c], al
mov ebx, esi
call fcn.00420aa0
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x42106f
mov ebx, edi
cmp edi, dword [ebp - 0x20]
je 0x421066
mov eax, dword [ebx]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42105e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 4
cmp ebx, dword [ebp - 0x20]
jne 0x421040
push edi
call fcn.0043e7d7
add esp, 4
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
Function at 0x421e50
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4539d2
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x468100]
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
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x424], edi
mov eax, dword [0x4690e4]
mov edx, dword [eax + 0xc]
mov ebx, ecx
mov ecx, 0x4690e4
mov dword [ebp - 0x428], ebx
call edx
add eax, 0x10
mov dword [ebx], eax
push edi
push edi
push 3
push edi
push 3
push edi
mov dword [ebp - 4], edi
push str..PhysicalDrive0
mov dword [ebp - 0x424], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x421f68
xor eax, eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], eax
push 0x400
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x410]
push edi
push eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x418], edi
call fcn.00442420
add esp, 0xc
push edi
lea ecx, [ebp - 0x420]
push ecx
push 0x400
lea edx, [ebp - 0x410]
push edx
push 0xc
lea eax, [ebp - 0x41c]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x421f61
mov edi, dword [ebp - 0x400]
movsx ecx, byte [ebp + edi - 0x410]
lea edi, [ebp + edi - 0x410]
push ecx
call fcn.0043fb3a
add esp, 4
test eax, eax
je 0x421f61
mov edx, edi
call fcn.004229b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
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.0043e1c4
mov esp, ebp
pop ebp
ret
Function at 0x422650
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4555c0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x468100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
cmp edi, esi
jne 0x422687
xor al, al
jmp 0x422811
lea ecx, [ebp - 0x74]
call fcn.00421e50
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], esi
call fcn.00421f90
mov ebx, 1
mov byte [ebp - 4], bl
mov eax, dword [0x4690e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4690e4
call edx
add eax, 0x10
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.00422520
add esp, 4
push 0x5c
lea ecx, [ebp - 0x70]
push esi
push ecx
mov byte [ebp - 4], 3
call fcn.00442420
mov eax, dword [ebp - 0x74]
add esp, 0xc
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x18], esi
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x70], 0x67452301
mov dword [ebp - 0x6c], 0xefcdab89
mov dword [ebp - 0x68], 0x98badcfe
mov dword [ebp - 0x64], 0x10325476
cmp dword [eax - 4], ebx
jle 0x42271a
push esi
lea eax, [ebp - 0x74]
push eax
call fcn.0040e6f0
mov eax, dword [ebp - 0x74]
push esi
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.0041e740
mov eax, dword [ebp - 0x78]
mov esi, dword [eax - 0xc]
add esp, 0xc
cmp dword [eax - 4], ebx
jle 0x422740
push esi
lea eax, [ebp - 0x78]
push eax
call fcn.0040e6f0
mov eax, dword [ebp - 0x78]
push esi
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.0041e740
mov eax, dword [ebp - 0x7c]
mov esi, dword [eax - 0xc]
add esp, 0xc
cmp dword [eax - 4], ebx
jle 0x422766
push esi
lea eax, [ebp - 0x7c]
push eax
call fcn.0040e6f0
mov eax, dword [ebp - 0x7c]
push esi
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.0041e740
add esp, 0xc
lea edx, [ebp - 0x70]
push edx
push edi
call fcn.0041ea90
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4227a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4227c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4227e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42280f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret
Function at 0x423bb0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x468100]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
xor eax, eax
push edi
mov edi, ecx
cmp esi, 0xffffffff
je 0x423c69
push 0x44
push eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00442420
mov eax, dword [edi]
or dword [ebp - 0x50], 0x101
add esp, 0xc
lea edx, [ebp - 0x34]
push edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
push 0
xor ecx, ecx
push 1
mov word [ebp - 0x4c], cx
mov dword [ebp - 0x44], esi
push 0
mov ecx, 7
mov esi, str.ipconfig__all
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
push 0
lea ecx, [ebp - 0x24]
push ecx
push 0
mov dword [ebp - 0x7c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
jne 0x423c55
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [ebp - 0x30]
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret 4
Function at 0x423c80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454ac6
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x468100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [0x4690e4]
mov dword [ebp - 0x420], eax
mov eax, dword [edx + 0xc]
mov esi, ecx
mov ecx, 0x4690e4
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x418], ebx
mov dword [ebp - 4], 0
mov eax, dword [esi]
test eax, eax
je 0x423cf8
cmp eax, 0xffffffff
je 0x423cf8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x423e3d
mov dword [esi], 0xffffffff
mov eax, dword [edi]
push 0
lea ecx, [ebp - 0x41c]
push ecx
push 0x400
lea edx, [ebp - 0x414]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423dd2
mov ebx, dword [ebp - 0x41c]
test ebx, ebx
je 0x423dd2
mov edx, dword [0x4690e4]
mov eax, dword [edx]
push 1
push ebx
mov ecx, 0x4690e4
call eax
test eax, eax
je 0x423e64
lea esi, [eax + 0x10]
mov dword [ebp - 0x424], esi
test ebx, ebx
js 0x423e69
cmp ebx, dword [esi - 8]
jg 0x423e69
push ebx
lea ecx, [ebp - 0x414]
push ecx
push ebx
mov dword [esi - 0xc], ebx
push esi
mov byte [ebx + esi], 0
call fcn.0043f17f
add esp, 0x10
mov byte [ebp - 4], 1
mov eax, dword [esi - 0xc]
push esi
lea ebx, [ebp - 0x418]
call fcn.00420510
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x423dac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push 0
lea ecx, [ebp - 0x41c]
push ecx
push 0x400
lea edx, [ebp - 0x414]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x423d1e
mov esi, dword [ebp - 0x420]
push esi
lea ecx, [ebp - 0x418]
call fcn.00423e80
mov ecx, esi
call fcn.00424960
mov ecx, esi
call fcn.00425090
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x418]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423e1b
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 esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043e1c4
mov esp, ebp
pop ebp
ret 4
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423e60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x423e20
call fcn.0040e7a0
push 0x80070057
call fcn.00407180
int3
Function at 0x4263e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455cb1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x468100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x10], ecx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.CDownload.0
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
push ebx
xor edx, edx
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00401690
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
lea ecx, [esi + 0x44]
push ecx
mov dword [esi + 0x40], vtable.fund::lock::critical_section.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 3
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x74], ebx
lea edi, [esi + 0x78]
push 8
mov dword [edi], ebx
call fcn.0043e884
add esp, 4
cmp eax, ebx
je 0x42658c
mov dword [edi], eax
xor edx, edx
mov dword [eax + 4], edx
xor ecx, ecx
mov dword [eax], ecx
mov edx, dword [edi]
mov dword [edx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
lea eax, [esi + 0x94]
push eax
mov dword [esi + 0x90], vtable.fund::lock::critical_section.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 5
push 0x18
mov dword [esi + 0xb4], ebx
call fcn.0043e884
add esp, 4
cmp eax, ebx
je 0x426568
mov dword [esi + 0xb0], eax
mov dword [eax], eax
mov eax, dword [esi + 0xb0]
mov dword [eax + 4], eax
mov eax, dword [esi + 0xb0]
mov dword [eax + 8], eax
mov ecx, dword [esi + 0xb0]
mov al, 1
mov byte [ecx + 0x14], al
mov edx, dword [esi + 0xb0]
mov byte [edx + 0x15], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xbc], ebx
mov byte [esi + 0xc4], bl
cmp dword [eax + 0x14], 8
jb 0x42651f
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 0x10]
push eax
push str.CDownload::CDownload__._nuiCustomID___d_nstrFilePath___s
push 3
call fcn.00425fb0
add esp, 0x10
cmp dword [esi + 8], ebx
jne 0x42654d
push 0x463318
lea ecx, [ebp + 0x14]
push ecx
mov dword [ebp + 0x14], str.CDownload:_DownloadNotify_invalid_pointer_
call fcn.004428e2
call fcn.00426770
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 0x10
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp - 0x18]
mov dword [ebp + 0xc], ebx
call fcn.0043e26c
push 0x463258
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], vtable.std::bad_alloc.0
call fcn.004428e2
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp + 0xc], ebx
call fcn.0043e26c
push 0x463258
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], vtable.std::bad_alloc.0
call fcn.004428e2
int3
Function at 0x426770
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455c38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push edi
mov eax, dword [0x468100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.CDownload::Init__
push 3
call fcn.00425fb0
add esp, 8
cmp dword [esi + 0xc], 0
jne 0x42684c
cmp dword [esi + 0x64], 0
mov dword [esi + 0xc0], 0x5dc
jne 0x426807
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x68], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x70], eax
lea eax, [esi + 0x74]
push eax
push 0
push esi
push 0x4287b0
push 0
push 0
call fcn.004421d2
add esp, 0x18
mov dword [esi + 0x64], eax
lea eax, [esi + 0x90]
lea edi, [eax + 4]
push edi
mov dword [ebp - 0x14], vtable.fund::lock::scoped_lock_class_fund::lock::critical_section_.0
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
push ecx
lea eax, [esi + 0x78]
mov dword [ebp - 0x1c], 1
call fcn.00428be0
mov edx, dword [esi + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x426940
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453818
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push edi
mov eax, dword [0x468100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.CDownload::Uninit__
push 3
call fcn.00425fb0
lea edi, [esi + 0x90]
add esp, 8
mov dword [ebp - 0x10], edi
add edi, 4
push edi
mov dword [ebp - 0x14], vtable.fund::lock::scoped_lock_class_fund::lock::critical_section_.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], 0
lea eax, [esi + 0x78]
mov dword [ebp - 0x1c], 2
call fcn.00428be0
mov ecx, dword [esi + 0x70]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
push ecx
call ebx
push edi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi + 0x68]
push edx
call ebx
mov eax, dword [esi + 0x70]
push eax
call ebx
cmp dword [esi + 0x64], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x426a0b
mov ecx, dword [esi + 0x6c]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4269fe
mov edx, dword [esi + 0x64]
push 0x3ff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x64]
push eax
call edi
mov dword [esi + 0x64], 0
mov ecx, dword [esi + 0x70]
push ecx
call edi
mov edx, dword [esi + 0x68]
push edx
call edi
mov eax, dword [esi + 0x6c]
push eax
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433010
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453428
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x468100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 1
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
jne 0x433098
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x433082
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
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
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
cmp edi, ebx
je 0x43306d
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4330cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 4