joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4943b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x49440a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004943a0
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004839e4
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004835e4
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494411
lea eax, [ebp - 4]
call fcn.004041e8
ret

Function at 0x49a65c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x49a68a
mov eax, ebx
call fcn.0049b110
cmp dword [ebx + 0x40], 0
je 0x49a683
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x49a6fb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x49a6ed
cmp dword [ebx + 8], 0
je 0x49a6ac
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x49a6be
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x49a6ed
cmp dword [ebx + 8], 0
je 0x49a69f
cmp eax, 3
je 0x49a6d1
dec eax
jne 0x49a69f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x49a69f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x49a69f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x49a719
cmp dword [ebx + 0x14], 0xcc
je 0x49a719
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0049a724
pop ebx
ret

Function at 0x4acdf0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4ace41
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4ace28
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4ace18
jmp 0x4ace41
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4ace29
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c132c
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404698
mov eax, dword [ebp - 8]
call fcn.00404698
xor eax, eax
push ebp
push 0x4c13ba
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4c1393
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004046a8
push eax
mov eax, dword [ebp - 4]
call fcn.004046a8
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c139f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c13c1
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040420c
ret

Function at 0x4c13cc
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c14bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0xfffffdf3
mov eax, dword [ebx + 0x44c]
call fcn.00471b58
cmp eax, 4
je 0x4c1418
push 0
mov ecx, 0x4c14c8
mov edx, 0x4c14d0
mov eax, dword [0x4c89b8]
mov eax, dword [eax]
call fcn.0046c19c
jmp 0x4c1498
mov eax, dword [ebx + 0x374]
add eax, 0x70
mov edx, 0x4c14ec
call fcn.0040423c
mov eax, dword [ebx + 0x374]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x4c1498
lea edx, [ebp - 8]
mov eax, dword [ebx + 0x374]
call fcn.0042e600
lea ecx, [ebp - 0xc]
mov edx, 0x66
mov eax, dword [ebx + 0x44c]
call fcn.00471d6c
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00404470
mov eax, dword [ebp - 4]
call fcn.00408f64
test al, al
je 0x4c148d
push 0
mov eax, dword [ebp - 8]
call fcn.004046a8
push eax
mov eax, dword [ebp - 4]
call fcn.004046a8
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x4c1498
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004c132c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c14c2
lea eax, [ebp - 0xc]
call fcn.004048c8
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040420c
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x4c3866e2
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x56217dd2
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4010c3
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp + 0x18]
and dword [esi], 0
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x40113b
cmp word [ebx + 8], 2
jne 0x401118
cmp word [ebx + 0xa], 4
jne 0x401118
mov edi, dword [ebx + 0xc]
jmp 0x401112
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00401060
test eax, eax
mov dword [esi], eax
je 0x401136
lea esi, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x4010f6
mov esi, dword [ebp + 0x18]
push 0x400
push dword [ebx]
push esi
call fcn.0040fe80
add esp, 0xc
mov byte [esi + 0x400], 0
xor eax, eax
jmp 0x401161
push 8
pop eax
jmp 0x401161
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x401161
dec ecx
je 0x40115c
dec ecx
je 0x401155
dec ecx
jmp 0x401161
mov eax, 0x2afb
jmp 0x401161
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x40170f
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
cmp dword [0x42b8b0], 0
mov eax, dword [0x4290c8]
mov dword [ebp + 0x1ac], eax
mov dword [ebp - 0x80], str.getaddrinfo
mov dword [ebp - 0x7c], 0x4012ea
mov dword [ebp - 0x78], str.getnameinfo
mov dword [ebp - 0x74], 0x401564
mov dword [ebp - 0x70], str.freeaddrinfo
mov dword [ebp - 0x6c], fcn.004012b1
jne 0x401864
push 0x104
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40185a
push ebx
push esi
push edi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0xa0]
push eax
call fcn.0040fd10
lea eax, [ebp + 0xa0]
push str.ws2_32
push eax
call fcn.0040fd20
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x10
lea eax, [ebp + 0xa0]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4017d1
push str.getaddrinfo
push esi
call edi
test eax, eax
jne 0x4017cd
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x40181d
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0xa0]
push eax
call fcn.0040fd10
lea eax, [ebp + 0xa0]
push str.wship6
push eax
call fcn.0040fd20
add esp, 0x10
lea eax, [ebp + 0xa0]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x401857
push str.getaddrinfo
push esi
call edi
test eax, eax
jne 0x401819
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x401857
xor ebx, ebx
push dword [ebp + ebx*8 - 0x80]
push esi
call edi
test eax, eax
mov dword [ebp + ebx*8 - 0x7c], eax
je 0x401836
inc ebx
cmp ebx, 3
jl 0x40181f
jmp 0x40183f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x401857
xor eax, eax
mov ecx, dword [ebp + eax - 0x7c]
mov dword [eax + 0x42a058], ecx
add eax, 8
cmp eax, 0x18
jl 0x401845
pop edi
pop esi
pop ebx
mov dword [0x42b8b0], 1
movzx eax, word [ebp + 0x1b8]
mov ecx, dword [ebp + 0x1ac]
mov eax, dword [eax*8 + 0x42a058]
call fcn.00412aab
add ebp, 0x1b0
leave
ret 4
Function at 0x4022e6
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x4290c8]
and dword [ebp - 0x7c], 0
push edi
mov dword [ebp + 0x1b0], eax
xor eax, eax
mov ecx, 0x8a
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov edi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
je 0x402384
lea ecx, [ebp - 0x7c]
push ecx
push eax
mov dword [ebp - 0x7c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x402384
push esi
cmp dword [ebp - 0x74], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40235c
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40233f
jmp 0x40237e
push dword [ebp - 0x64]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40237b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call esi
push dword [ebp - 0x80]
call esi
pop esi
mov ecx, dword [ebp + 0x1b0]
pop edi
call fcn.00412aab
add ebp, 0x1b4
leave
ret

Function at 0x402558
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, eax
push 3
xor edx, edx
lea eax, [esi + 2]
pop edi
div edi
shl eax, 2
cmp dword [ebp + 8], 0
je 0x402611
cmp dword [ebp + 0xc], eax
jae 0x402582
xor eax, eax
jmp 0x402611
mov eax, dword [ebp + 8]
push ebx
lea ebx, [ecx + esi]
jmp 0x4025e9
movzx esi, byte [ecx]
mov edi, esi
shr esi, 2
mov dl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__ccccccc]
and edi, 3
shl edi, 4
mov byte [eax], dl
inc eax
inc ecx
cmp ecx, ebx
jae 0x4025ef
movzx edx, byte [ecx]
mov esi, edx
and edx, 0xf
shr esi, 4
shl edx, 2
or esi, edi
mov dword [ebp + 0xc], edx
mov dl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__ccccccc]
mov byte [eax], dl
inc eax
inc ecx
cmp ecx, ebx
jae 0x4025fd
movzx esi, byte [ecx]
mov edi, esi
shr edi, 6
or edi, dword [ebp + 0xc]
and esi, 0x3f
mov dl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__ccccccc]
mov byte [eax], dl
mov dl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__ccccccc]
inc eax
mov byte [eax], dl
inc eax
inc ecx
cmp ecx, ebx
jb 0x40258b
jmp 0x40260d
mov cl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__ccccccc]
mov byte [eax], cl
inc eax
mov byte [eax], 0x3d
jmp 0x402608
mov ecx, dword [ebp + 0xc]
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__ccccccc]
mov byte [eax], cl
inc eax
mov byte [eax], 0x3d
inc eax
sub eax, dword [ebp + 8]
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x402c31
Capabilities:
Resume thread

Disassembly:
push esi
push edi
mov esi, eax
call fcn.00402c0c
mov edi, eax
test edi, edi
jne 0x402c70
mov eax, dword [esp + 0xc]
and dword [esi + 8], edi
mov dword [esi + 4], eax
lea eax, [esi + 0x10]
push eax
push 4
push esi
push 0x402b50
push edi
push edi
call fcn.00410daa
mov edi, eax
add esp, 0x18
test edi, edi
je 0x402c70
push edi
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x403399
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
test esi, esi
mov eax, dword [ecx]
jbe 0x4033be
push ebx
push edi
movzx ebx, byte [edx]
mov edi, eax
shl eax, 8
shr edi, 0x18
or eax, ebx
xor eax, dword [edi*4 + 0x420f68]
inc edx
dec esi
jne 0x4033a4
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret

Function at 0x403411
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
mov edi, ecx
cmp edi, esi
mov dword [eax + 0x14], esi
je 0x403472
cmp word [edi], si
je 0x403472
push eax
push edi
call fcn.0041106c
test eax, eax
pop ecx
pop ecx
jne 0x403472
push esi
push 0x8000000
push 3
push esi
push 3
push connect
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0xc], ebx
je 0x403472
mov edi, 0x1000
push edi
call fcn.00410f0c
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
jne 0x40347b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov ecx, dword [ebp + 8]
push esi
mov dword [ecx], esi
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4034ae
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x4034b4
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
call fcn.00403399
push esi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x403490
push dword [ebp - 4]
call fcn.0040fe08
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 8]
call fcn.004033c2
jmp 0x403474
Function at 0x40509b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4050b2
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4050c4
xor eax, eax
jmp 0x4050f5
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4050e7
cmp edi, eax
jae 0x4050c0
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4050d9
cmp edi, eax
jae 0x4050c0
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x405164
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov eax, 0x41df0d
call fcn.004132a4
sub esp, 0x1c8
mov eax, dword [0x4290c8]
and dword [ebp - 0x1c8], 0
push ebx
mov dword [ebp - 0x10], eax
push str.140330012008
lea eax, [ebp - 0x1c4]
push eax
call fcn.004048a7
and dword [ebp - 4], 0
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405263
push str.SendARP
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp - 0x1c8], eax
je 0x40525c
push edi
lea eax, [ebp - 0x1c0]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x20
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, dword [eax]
push 8
lea eax, [ebp - 0x1d4]
push 0xff
push eax
call fcn.0040fb60
add esp, 0xc
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x1d4]
push eax
push 0
push edi
mov dword [ebp - 0x1cc], 6
call dword [ebp - 0x1c8]
test eax, eax
pop edi
jne 0x405256
movzx eax, word [ebp - 0x1d0]
push eax
push dword [ebp - 0x1d4]
lea eax, [ebp - 0x1c4]
push str._08x_04x
push eax
call fcn.004023ad
add esp, 0x10
call dword [sym.imp.WS2_32.dll_WSACleanup]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x1c4]
add eax, 0xfffffff0
call fcn.00404cef
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x1c4]
add eax, 0xfffffff0
call fcn.00402528
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop ebx
call fcn.00412aab
leave
ret
Function at 0x40529b
Capabilities:
Get disk information

Disassembly:
mov eax, 0x41e01a
call fcn.004132a4
sub esp, 0x22c
mov eax, dword [0x4290c8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x21c], ebx
mov eax, dword [0x42a1ac]
mov esi, 0x42a1ac
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], ebx
mov eax, dword [0x42a1ac]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 1
mov eax, dword [0x42a1ac]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x218]
push eax
push 0x104
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push ebx
push ebx
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x230]
push eax
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
lea eax, [ebp - 0x224]
je 0x40535f
push dword [ebp - 0x230]
push str._08x
push eax
call fcn.004023ad
add esp, 0xc
jmp 0x40536a
push str.12281359
push eax
call fcn.00404fea
lea esi, [ebp - 0x21c]
call fcn.00405164
lea edi, [ebp - 0x228]
mov byte [ebp - 4], 3
call fcn.00404b4e
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.00402528
lea esi, [ebp - 0x220]
call fcn.00404faa
xor edi, edi
xor esi, esi
lea eax, [ebp - 0x21c]
push eax
push 3
pop ecx
mov edx, esi
lea eax, [ebp - 0x228]
call fcn.00405d2c
mov byte [ebp - 4], 4
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x220]
call fcn.00404f59
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.00402528
lea eax, [ebp - 0x22c]
push eax
push 2
pop ecx
mov edx, edi
lea eax, [ebp - 0x224]
call fcn.00405d2c
mov byte [ebp - 4], 5
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x220]
call fcn.00404f59
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
call fcn.00402528
add esi, 3
inc edi
inc edi
cmp esi, 0xc
jl 0x4053a5
mov esi, dword [ebp - 0x220]
add esi, 0xfffffff0
mov eax, esi
call fcn.00404cef
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
call fcn.00402528
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.00402528
mov eax, esi
call fcn.00402528
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00412aab
leave
ret 4
Function at 0x405485
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
mov eax, 0x41def8
call fcn.004132a4
sub esp, 0x210
mov eax, dword [0x4290c8]
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x21c], ebx
lea eax, [ebp - 0x218]
je 0x4054d4
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call fcn.004048a7
mov eax, dword [ebp + 8]
jmp 0x4055e7
push esi
push edi
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.00410e35
pop ecx
pop ecx
mov edi, eax
push str.acctdata_
lea eax, [edi + 2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
lea eax, [ebp - 0x218]
push eax
call esi
push str.update_
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
call edi
lea eax, [ebp - 0x218]
push eax
push str.GetDownloadPath_:_s_n
call fcn.0040b9f0
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004048a7
push str.write.test
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 4], ebx
call edi
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4055b7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404cef
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402528
mov eax, esi
jmp 0x4055e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetDownloadPath_error:_d_n
call fcn.0040b9f0
pop ecx
pop ecx
push 0x424d50
push dword [ebp + 8]
call fcn.004048a7
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402528
mov eax, dword [ebp + 8]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00412aab
leave
ret
Function at 0x4062f4
Capabilities:
Terminate thread

Disassembly:
and dword [esi + 0x10], 0
mov eax, esi
mov dword [esi], 0x422828
call fcn.00406327
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esi], 0x422834
mov eax, esi
jmp fcn.00402cb6

Function at 0x40633b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
lea eax, [esi + 0x18]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 0x38]
sub ebx, dword [esi + 0x3c]
push ebx
push str.CDownloadThread::DivideTask_nLen_ld_n
call fcn.0040b9f0
pop ecx
cmp ebx, 0x10000
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
jg 0x406388
call ebx
sub eax, dword [esi + 0x40]
cmp eax, 0x2710
jge 0x406381
xor esi, esi
jmp 0x4063ab
mov eax, esi
call fcn.00406327
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x34], eax
mov dword [edi + 0x3c], eax
dec eax
mov dword [esi + 0x38], eax
call ebx
mov dword [esi + 0x40], eax
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
pop ebx
leave
ret