joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49cc60
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x49cc77
add esp, 0xfffffff0
call fcn.004052c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043ab80
mov eax, dword [0x4a8e08]
cmp byte [eax], 0
jne 0x49cca4
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4a9044]
cmp word [eax + 2], 0
jne 0x49ccbe
mov eax, dword [0x4a9044]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0049ed58
mov eax, dword [0x4a911c]
cmp word [eax + 2], 0
jne 0x49ccd8
mov eax, dword [0x4a911c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0049ef68
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x4453b8]
call fcn.0044a3c0
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x49f518
mov dl, 1
mov eax, dword [0x424204]
call fcn.00404d78
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x424204]
call fcn.00404d78
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x448a50]
call fcn.004511b8
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x49ceb8
mov eax, dword [0x4a8f44]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0045164c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x49f800
mov dl, 1
mov eax, dword [0x424204]
call fcn.00404d78
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4a8f44]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00411778
test eax, eax
je 0x49cde9
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041155c
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0041175c
test eax, eax
je 0x49ce01
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406a14
push ebx
push 0x49e728
call fcn.004928b4
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4a8e08]
cmp byte [eax], 0
jne 0x49ce52
mov eax, ebx
call fcn.0049d02c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0049fa2c
mov eax, ebx
call fcn.004a0660
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x49ceaf
call fcn.0040531c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49d300
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x49d3a2
cmp dword [ebx + 0x94], 0
jne 0x49d39c
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x49d24c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x49d39c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x49d362
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x49d39c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0042efd4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x49d371
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x49d5c0
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4af280]
cmp dword [eax + 0x170], 0
je 0x49d725
test bl, bl
jne 0x49d673
cmp dword [esi + 0x9c], 0
jne 0x49d668
mov eax, esi
call fcn.004a04b0
push eax
push 0x49d4cc
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x49d639
mov eax, dword [0x4af280]
cmp byte [eax + 0xd3], 0
je 0x49d639
mov eax, dword [esi + 0xd8]
call fcn.00407e30
mov edi, eax
cmp edi, 0
jl 0x49d639
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x49d622
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x49d668
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0042efd4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x49d648
inc dword [esi + 0x9c]
jmp 0x49d725
cmp dword [esi + 0x9c], 0
jle 0x49d725
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x49d725
cmp dword [esi + 0x44], 0
je 0x49d6d0
mov eax, dword [0x4af280]
cmp byte [eax + 0xd3], 0
je 0x49d6d0
mov eax, dword [esi + 0xd8]
call fcn.00407e30
mov edi, eax
cmp edi, 0
jl 0x49d6d0
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x49d6b9
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x49d6ff
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0042efd4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x49d6df
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x49078c]
call fcn.00407ff0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x49e374
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x49e3df
cmp byte [ebx + 0xd3], 0
jne 0x49e3df
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406968
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x49e3cc
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x49e3ec
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040682c
jmp 0x49e3ec
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040682c
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x49fc14
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x49fc82
mov eax, esi
call fcn.00478424
test al, al
je 0x49fc82
mov eax, dword [ebx + 0x84]
call fcn.004780a4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x49fc82
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x49fc76
push 0
mov eax, dword [ebx + 0x84]
call fcn.004780a4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0046f134
jmp 0x49fc82
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0049fa4c
pop esi
pop ebx
ret

Function at 0x4a0dd4
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406814
mov eax, dword [ebp - 8]
call fcn.00406814
xor eax, eax
push ebp
push 0x4a0e93
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 0xffffffff
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x44
call fcn.0040476c
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 0x101
mov word [ebp - 0x2c], 1
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00406880
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004068b8
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004068b8
push eax
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0e9a
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406824
ret
Function at 0x40501d
Capabilities:
Delete file

Disassembly:
push 0x5c
mov eax, 0x433803
call fcn.00428b99
mov esi, ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
and dword [ebp - 4], 0
lea eax, [esi + 0xc8]
cmp dword [eax + 0x18], 8
jb 0x40504c
mov eax, dword [eax + 4]
jmp 0x40504f
add eax, 4
cmp dword [esi + 0x6c], 8
jb 0x40505a
mov ebx, dword [esi + 0x58]
jmp 0x40505d
lea ebx, [esi + 0x58]
cmp dword [esi + 0x50], 8
jb 0x405068
mov edi, dword [esi + 0x3c]
jmp 0x40506b
lea edi, [esi + 0x3c]
push eax
lea esi, [ebp - 0x30]
call fcn.00415438
pop ecx
lea eax, [ebp - 0x68]
push eax
call fcn.0040682d
push 0xa4
mov byte [ebp - 4], 1
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 2
mov edi, str.StartupPatch
test eax, eax
je 0x4050a8
push 0
push edi
push eax
call fcn.00406370
jmp 0x4050aa
xor eax, eax
mov ebx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov dword [ebx + 0x184], eax
mov eax, dword [ebp - 0x2c]
jae 0x4050c3
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x68]
call fcn.004068e1
test al, al
je 0x405118
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4050e4
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x405118
cmp dword [eax + 0x48], 0x10
jb 0x4050f6
mov eax, dword [eax + 0x34]
jmp 0x4050f9
add eax, 0x34
mov esi, eax
push 0xd
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x405118
mov esi, dword [ebx + 0x184]
call fcn.004031b9
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x184], eax
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x405124
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.0040688a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
call fcn.00428c1c
ret
Function at 0x40554e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
lea edi, [esi + 0x1b8]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x405618
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x4055d0
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x40559a
mov eax, dword [esi + 0x100]
push 0x67
push 0x14
lea edx, [ebp - 0x18]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x10]
push dword [esi + 0xa8]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x4055d0
push 0x7530
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4055d0
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [esi + 0x28], 8
jb 0x4055db
mov ecx, dword [esi + 0x14]
jmp 0x4055de
lea ecx, [esi + 0x14]
lea eax, [esi + 0xac]
cmp dword [eax + 0x18], 8
jb 0x4055ef
mov eax, dword [eax + 4]
jmp 0x4055f2
add eax, 4
push dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
push eax
lea eax, [esi + 0x1a0]
push eax
lea eax, [esi + 0x188]
push eax
push edi
push dword [ebp + 0xc]
push esi
call fcn.0040569d
pop edi
pop ebx
leave
ret 0x14
Function at 0x40612b
Capabilities:
Copy file

Disassembly:
push 0x74
mov eax, 0x431b8f
call fcn.00428b99
lea eax, [ebp - 0x80]
push eax
mov ebx, ecx
call fcn.004170b8
and dword [ebp - 4], 0
mov esi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
push edi
push eax
lea eax, [ebp - 0x2c]
push eax
call esi
add esp, 0x10
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push ebx
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 3
call esi
mov ecx, dword [ebp - 0x44]
add esp, 0xc
cmp dword [ebp - 0x30], 8
jae 0x40618c
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x406198
lea eax, [ebp - 0x28]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
lea ecx, [ebp - 0x48]
setne bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
call fcn.00428c1c
ret

Function at 0x40679b
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x433281
call fcn.00428b99
mov eax, dword [ebp + 8]
push 0x438f4c
push eax
call dword [sym.imp.MSVCR90.dll__wfopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4067c2
xor al, al
jmp 0x40680b
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.00403843
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x4067e5
lea eax, [ebp - 0x28]
push esi
push dword [ebp - 0x18]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
or dword [ebp - 4], 0xffffffff
add esp, 0x14
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
call fcn.00428c1c
ret 4
Function at 0x4068e1
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x4004]
mov eax, 0x4004
call fcn.00428c50
push 0xffffffffffffffff
push 0x4331e6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x4000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x400c]
mov edi, ecx
push 0x438f54
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov byte [ebp - 0xd], 1
call dword [sym.imp.MSVCR90.dll__wfopen]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x40694b
xor al, al
jmp 0x4069f0
add edi, 4
call fcn.00406a15
mov esi, dword [sym.imp.MSVCR90.dll_feof]
push ebx
call esi
pop ecx
test eax, eax
jne 0x406999
cmp byte [ebp - 0xd], 0
je 0x4069e5
push ebx
push 0x4000
lea eax, [ebp]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
push 0
lea ecx, [ebp]
push ecx
push edi
call fcn.00406a55
push ebx
mov byte [ebp - 0xd], al
call esi
pop ecx
test eax, eax
je 0x406961
cmp byte [ebp - 0xd], 0
je 0x4069e5
mov edi, dword [ebp - 0x14]
xor esi, esi
cmp dword [edi + 0x20], esi
je 0x4069e5
push 0x48
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x4069bd
push eax
call fcn.0040359f
mov esi, eax
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x10]
call dword [0x434368]
mov edi, dword [edi + 0x20]
mov eax, esi
mov ecx, edi
call fcn.0040732b
push edi
call fcn.00406f23
pop ecx
call fcn.004031b9
push ebx
call dword [sym.imp.MSVCR90.dll_fclose]
mov al, byte [ebp - 0xd]
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4000]
xor ecx, ebp
call fcn.0042860c
add ebp, 0x4004
leave
ret 4
Function at 0x40a725
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a0
mov eax, dword [0x445bbc]
xor eax, esp
mov dword [esp + 0x19c], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
mov dword [esp + 0xc], eax
cmp byte [esi + 0x24], bl
jne 0x40a7bb
lea edi, [esi + 0x28]
mov ecx, edi
call fcn.00414f50
push str.DownloadRecord.xml
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [edi + 0x18], 8
jb 0x40a771
mov edi, dword [edi + 4]
jmp 0x40a774
add edi, 4
push edi
push esi
call fcn.0040aff5
cmp dword [esp + 0xc], ebx
je 0x40a78e
push dword [esp + 0xc]
lea ecx, [esi + 0x44]
call dword [0x434368]
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x60], eax
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov byte [esi + 0x24], 1
mov ecx, dword [esp + 0x1a4]
pop edi
pop ebx
xor ecx, esp
call fcn.0042860c
mov esp, ebp
pop ebp
ret 4
Function at 0x40caef
Capabilities:
Create thread
Resume thread

Disassembly:
push 0x20c
mov eax, 0x4322d9
call fcn.00428b99
xor ebx, ebx
push ebx
push 1
mov dword [ebp - 0x214], esi
lea edi, [esi + 8]
call fcn.0040301d
pop ecx
pop ecx
cmp eax, ebx
je 0x40cb1b
mov dword [eax], edi
jmp 0x40cb1d
xor eax, eax
mov dword [edi], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
lea eax, [esi + 0x20]
push eax
mov dword [ebp - 4], 1
call fcn.0040cfee
lea eax, [esi + 0x38]
push eax
mov byte [ebp - 4], 2
call fcn.0040cfee
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov dword [esi + 0x54], eax
lea eax, [ebp - 0x210]
push str.UPDATE_EVENT__d
push eax
call fcn.0040c6d6
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x58], eax
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x40cad5
push ebx
push ebx
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
call fcn.00428c1c
ret

Function at 0x40eb4c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x40eb79
lea eax, [edi + 0x3e4]
cmp dword [eax + 0x18], 8
jb 0x40eb66
mov eax, dword [eax + 4]
jmp 0x40eb69
add eax, 4
push eax
push dword [edi + 0x470]
mov eax, edi
call fcn.0040ea72
jmp 0x40ebe2
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ebe2
push ebx
push 0x10
push 0x10
push 0x10
push 1
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, eax
test ebx, ebx
je 0x40ebe1
push esi
lea esi, [edi + 0x474]
mov eax, dword [esi]
test eax, eax
je 0x40ebb7
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
and dword [esi], 0
push dword [ebp + 8]
lea ecx, [edi + 0x478]
mov dword [esi], ebx
call dword [0x434368]
cmp dword [ebp + 0xc], 0
pop esi
jne 0x40ebd6
mov dword [ebp + 0xc], 0x438bf4
push dword [ebp + 0xc]
mov eax, edi
push ebx
call fcn.0040ea72
pop ebx
pop ebp
ret 8
Function at 0x4108af
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push edi
cmp byte [esi + 0xcc], bl
je 0x4108c7
xor al, al
jmp 0x410958
push ebx
push ebx
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x54], eax
cmp eax, ebx
je 0x4108c0
lea edi, [esi + 0xc0]
mov byte [esi + 0xcc], 1
mov dword [ebp - 4], ebx
cmp dword [edi], ebx
jbe 0x4108fe
mov ecx, esi
call fcn.00410c49
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [edi]
jb 0x4108ed
mov eax, dword [edi]
push ebx
push ebx
push ebx
push 0xffffffffffffffff
mov dword [esi + 0xbc], eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x44], eax
cmp eax, ebx
je 0x410956
lea eax, [ebp - 4]
push eax
push 4
push esi
push 0x40f911
push ebx
push ebx
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x48], eax
cmp eax, ebx
jne 0x410944
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], ebx
jmp 0x410956
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
pop edi
pop ebx
leave
ret

Function at 0x410ba4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
add esi, 0xd0
push edi
mov ebx, eax
mov dword [ebp - 8], esi
call fcn.00410dcc
mov esi, eax
push 7
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
xor edi, edi
inc edi
mov dword [esi + 0x14], edi
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
mov dword [esi + 8], eax
push esi
mov dword [esi + 0xc], ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebx + 0x18]
push dword [ebx + 0x14]
push dword [ebx + 0x10]
cmp dword [ebx], edi
jne 0x410c00
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x410c06
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410c14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, edi
jmp 0x410c36
mov eax, dword [ebp + 8]
push esi
push 0
push dword [ebp - 4]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov ebx, eax
test ebx, ebx
jne 0x410c36
mov edi, esi
mov esi, dword [ebp - 8]
call fcn.00410e37
pop edi
xor eax, eax
test ebx, ebx
pop esi
setne al
pop ebx
leave
ret 4