joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022ec
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x4220b8]
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 0x40238a
lea ecx, [ebp - 0x7c]
push ecx
push eax
mov dword [ebp - 0x7c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40238a
push esi
cmp dword [ebp - 0x74], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x402362
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x402345
jmp 0x402384
push dword [ebp - 0x64]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x402381
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.0040f65e
add ebp, 0x1b4
leave
ret

Function at 0x40255e
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 0x402617
cmp dword [ebp + 0xc], eax
jae 0x402588
xor eax, eax
jmp 0x402617
mov eax, dword [ebp + 8]
push ebx
lea ebx, [ecx + esi]
jmp 0x4025ef
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 0x4025f5
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 0x402603
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 0x402591
jmp 0x402613
mov cl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__ccccccc]
mov byte [eax], cl
inc eax
mov byte [eax], 0x3d
jmp 0x40260e
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 0x402c37
Capabilities:
Resume thread

Disassembly:
push esi
push edi
mov esi, eax
call fcn.00402c12
mov edi, eax
test edi, edi
jne 0x402c76
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 0x402b56
push edi
push edi
call fcn.0040dd2a
mov edi, eax
add esp, 0x18
test edi, edi
je 0x402c76
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 0x403436
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
test esi, esi
mov eax, dword [ecx]
jbe 0x40345b
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 + 0x41be68]
inc edx
dec esi
jne 0x403441
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret

Function at 0x4034ae
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 0x40350f
cmp word [edi], si
je 0x40350f
push eax
push edi
call fcn.0040dfbc
test eax, eax
pop ecx
pop ecx
jne 0x40350f
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 0x40350f
mov edi, 0x1000
push edi
call fcn.0040de5c
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
jne 0x403518
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 0x40354b
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x403551
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
call fcn.00403436
push esi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x40352d
push dword [ebp - 4]
call fcn.0040cd88
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 8]
call fcn.0040345f
jmp 0x403511
Function at 0x403bc2
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41969e
call fcn.0040fe54
sub esp, 0x5c
mov eax, dword [0x4220b8]
push esi
push str.CDownloadFile::ContinueDownload_begin.__n
mov dword [ebp - 0x10], eax
call fcn.00409014
lea ecx, [ebp - 0x68]
lea esi, [ebx + 0x38]
mov eax, dword [esi]
push ecx
push eax
call fcn.0040dfbc
add esp, 0xc
test eax, eax
je 0x403bff
xor eax, eax
jmp 0x403d7b
mov eax, dword [esi]
push edi
mov edi, dword [eax - 0xc]
push 0x5c
call fcn.004046bb
mov ecx, edi
sub ecx, eax
lea eax, [ebp - 0x38]
push eax
dec ecx
mov eax, esi
call fcn.004046d9
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebx + 0x40]
push str.CDownloadFile::ContinueDownload_m_nThreadNumber_d.__n
call fcn.00409014
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop ecx
pop ecx
push dword [ebx + 0x48]
push edi
push str.ThreadNumber
push dword [ebp - 0x38]
call esi
cmp dword [ebx + 0x40], eax
jne 0x403d6d
push dword [ebx + 0x48]
push edi
push str.DownloadSize
push dword [ebp - 0x38]
call esi
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x40]
shl eax, 3
push eax
call fcn.0040c94c
and dword [ebp - 0x3c], 0
cmp dword [ebx + 0x40], 0
mov edi, eax
mov eax, dword [ebp - 0x40]
pop ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], eax
jle 0x403ce7
push dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
push str.Thread_dEnd
push eax
call fcn.0040e36f
add esp, 0xc
push dword [ebx + 0x48]
lea eax, [ebp - 0x30]
push 0
push eax
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp - 0x3c]
push ecx
mov dword [edi + ecx*8], eax
lea eax, [ebp - 0x30]
push 0x41ce70
push eax
call fcn.0040e36f
add esp, 0xc
push dword [ebx + 0x48]
lea eax, [ebp - 0x30]
push 0
push eax
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp - 0x3c]
mov edx, dword [edi + ecx*8]
mov dword [edi + ecx*8 + 4], eax
sub edx, eax
mov eax, dword [ebp - 0x34]
inc ecx
cmp ecx, dword [ebx + 0x40]
lea eax, [eax + edx + 1]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], ecx
jl 0x403c80
push dword [ebp - 0x34]
push str.CDownloadFile::ContinueDownload_lTmp_d.__n
call fcn.00409014
mov eax, dword [ebx + 0x30]
cmp dword [ebp - 0x34], eax
pop ecx
pop ecx
je 0x403d08
push edi
call fcn.0040e3de
xor edi, edi
jmp 0x403d6c
mov ecx, dword [ebp - 0x40]
mov dword [ebx + 0x3c], ecx
cmp dword [ebx + 0x3c], eax
jge 0x403d57
and dword [ebp - 0x34], 0
cmp dword [ebx + 0x40], 0
jle 0x403d57
push 0x44
call fcn.0040c951
test eax, eax
pop ecx
je 0x403d42
mov ecx, dword [ebp - 0x34]
shl ecx, 3
push dword [ecx + edi]
mov edi, dword [ecx + edi + 4]
mov esi, eax
call fcn.00405416
mov edi, dword [ebp - 0x44]
jmp 0x403d44
xor eax, eax
push ebx
mov esi, eax
call fcn.00402df3
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebx + 0x40]
jl 0x403d1d
push edi
call fcn.0040e3de
mov dword [esp], str.CDownloadFile::ContinueDownload_OK.__n
call fcn.00409014
xor edi, edi
inc edi
pop ecx
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.0040252e
mov eax, edi
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.0040f65e
leave
ret
Function at 0x404b6e
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 0x404b85
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x404b97
xor eax, eax
jmp 0x404bc8
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x404bba
cmp edi, eax
jae 0x404b93
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x404bac
cmp edi, eax
jae 0x404b93
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x404c1f
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
mov eax, 0x4193d4
call fcn.0040fe54
sub esp, 0x210
mov eax, dword [0x4220b8]
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 0x404c6e
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call fcn.00404504
mov eax, dword [ebp + 8]
jmp 0x404d6e
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.0040e33f
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.00409014
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.00404504
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 0x404d51
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.0040494a
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040252e
mov eax, esi
jmp 0x404d6c
push 0x41ca78
push dword [ebp + 8]
call fcn.00404504
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040252e
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.0040f65e
leave
ret
Function at 0x405460
Capabilities:
Terminate thread

Disassembly:
and dword [esi + 0x10], 0
mov eax, esi
mov dword [esi], 0x41d25c
call fcn.00405493
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esi], 0x41d268
mov eax, esi
jmp fcn.00402cbc

Function at 0x4054a7
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.00409014
pop ecx
cmp ebx, 0x10000
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
jg 0x4054f4
call ebx
sub eax, dword [esi + 0x40]
cmp eax, 0x2710
jge 0x4054ed
xor esi, esi
jmp 0x405517
mov eax, esi
call fcn.00405493
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
Function at 0x405e68
Capabilities:
Parse credit card information

Disassembly:
mov eax, 0x41935d
call fcn.0040fe54
sub esp, 0xc
mov eax, dword [0x422e4c]
push ebx
push esi
mov ebx, 0x422e4c
push edi
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edi, dword [eax - 0xc]
lea edx, [edi + edi*2 + 3]
lea esi, [ebp - 0x18]
call fcn.00406400
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
xor edx, edx
push edx
push edx
lea eax, [edi + edi*2 + 3]
push eax
push dword [ebp - 0x10]
push edi
push ecx
push edx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x14], eax
mov eax, dword [0x422e4c]
mov ecx, ebx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp + 8], edi
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004051a9
xor esi, esi
cmp dword [ebp - 0x14], esi
jle 0x406001
mov edx, dword [ebp - 0x10]
lea ebx, [esi + edx]
mov cl, byte [ebx]
cmp cl, 0x61
jl 0x405f07
cmp cl, 0x7a
jle 0x405fee
cmp cl, 0x41
jl 0x405f15
cmp cl, 0x5a
jle 0x405fee
cmp cl, 0x30
jl 0x405f23
cmp cl, 0x39
jle 0x405fee
cmp cl, 0x3a
je 0x405fee
cmp cl, 0x2f
je 0x405fee
cmp cl, 0x2e
je 0x405fee
cmp cl, 0x5f
je 0x405fee
cmp cl, 0x2d
je 0x405fee
cmp cl, 0x3d
je 0x405fee
cmp cl, 0x3f
je 0x405fee
cmp cl, 0x26
je 0x405fee
cmp cl, 0x25
jne 0x405fc8
mov al, byte [esi + edx + 1]
cmp al, 0x30
jl 0x405f84
cmp al, 0x39
jle 0x405f94
cmp al, 0x30
jl 0x405f84
cmp al, 0x39
jle 0x405f94
cmp al, 0x41
jl 0x405f8c
cmp al, 0x46
jle 0x405f94
cmp al, 0x61
jl 0x405fc8
cmp al, 0x66
jg 0x405fc8
mov al, byte [esi + edx + 2]
cmp al, 0x30
jl 0x405fa8
cmp al, 0x39
jle 0x405fb8
cmp al, 0x30
jl 0x405fa8
cmp al, 0x39
jle 0x405fb8
cmp al, 0x41
jl 0x405fb0
cmp al, 0x46
jle 0x405fb8
cmp al, 0x61
jl 0x405fc8
cmp al, 0x66
jg 0x405fc8
mov eax, dword [ebp + 0xc]
push 3
push ebx
call fcn.00406350
add esi, 3
jmp 0x405ff8
movzx eax, cl
push eax
lea eax, [ebp + 8]
push str.___X
push eax
call fcn.0040633d
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add esp, 0xc
push dword [edi - 0xc]
push edi
call fcn.00406350
jmp 0x405ff7
mov eax, dword [ebp + 0xc]
push ecx
call fcn.00406488
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x405ef1
lea eax, [edi - 0x10]
call fcn.0040252e
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040252e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4065da
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
lea eax, [esi + 0x3c]
mov dword [esi + 4], eax
lea eax, [esi + 0x4c]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x14c]
mov dword [esi + 0x1c], eax
push 0x40
pop eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
lea eax, [esi + 0x24c]
mov dword [esi + 0x2c], eax
lea ecx, [esi + 0x1cc]
lea eax, [esi + 0x44c]
mov dword [esi], 0x3c
mov dword [esi + 8], 8
mov dword [esi + 0x14], 0x80
mov dword [esi + 0x24], ecx
mov dword [esi + 0x30], pe_nt_image_headers32
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 0x1da
jge 0x40664a
push dword [ebp + 8]
call fcn.0040d82d
pop ecx
mov dword [ebp + 0xc], eax
push esi
push 0x90000000
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
pop ebp
ret 8

Function at 0x406660
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
mov eax, 0x419339
call fcn.0040fe54
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
lea esi, [edi + 0xc]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call fcn.0040239e
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x406695
push 0x41da94
jmp 0x4066b0
push ebx
push ebx
push ebx
push ebx
push dword [0x422ccc]
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [edi], eax
jne 0x4066bd
push str.InternetOpen
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.00406a73
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4067a4
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x4220b8]
push ebx
xor ebx, ebx
cmp dword [esi + 8], ebx
mov dword [ebp + 0x38c], eax
jne 0x4067cc
xor eax, eax
jmp 0x4068ac
push edi
mov edi, dword [sym.imp.WININET.dll_HttpSendRequestW]
push dword [ebp + 0x3a4]
push dword [ebp + 0x3a0]
push dword [ebp + 0x39c]
push dword [ebp + 0x398]
push dword [esi + 8]
call edi
test eax, eax
jne 0x406827
push 4
lea eax, [ebp - 0x80]
push eax
push 0x1f
push dword [esi + 8]
mov dword [ebp - 0x80], 0x8440f180
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push dword [ebp + 0x3a4]
push dword [ebp + 0x3a0]
push ebx
push ebx
push dword [esi + 8]
call edi
test eax, eax
je 0x4068c2
push ebx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x20000013
push dword [esi + 8]
mov dword [ebp - 0x78], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4068d8
cmp dword [ebp - 0x7c], 0x191
je 0x40685f
cmp dword [ebp - 0x7c], 0x197
jne 0x4068a1
lea eax, [ebp - 0x78]
push eax
push 0x400
lea eax, [ebp - 0x74]
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40687e
cmp dword [ebp - 0x78], ebx
jne 0x40685f
push ebx
push 7
push 0x2eee
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
je 0x4067d3
mov ecx, esi
call fcn.00406beb
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp + 0x38c]
pop ebx
call fcn.0040f65e
add ebp, 0x390
leave
ret 0x10
push str.HttpSendRequest
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.00406a73
xor eax, eax
jmp 0x4068ab
push str.HttpQueryInfo
jmp 0x4068c7
Function at 0x4068df
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4220b8]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
push edi
xor edi, edi
cmp eax, edi
jne 0x406902
xor eax, eax
jmp 0x4069a9
push edi
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push 5
push eax
mov dword [ebp - 0x48], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x406931
lea eax, [ebp - 0x44]
push eax
call fcn.0040e33a
add eax, 8
pop ecx
and eax, 0xfffffff8
jmp 0x406936
mov eax, 0x400
push esi
mov esi, dword [ebp + 0xc]
mov edx, eax
mov dword [ebp - 0x48], eax
call fcn.00406400
mov esi, eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x48]
push esi
push dword [ebx + 8]
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x406990
cmp dword [ebp - 0x4c], 0
je 0x406996
add edi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
cmp edx, edi
ja 0x40697f
mov esi, dword [ebp + 0xc]
mov eax, edi
shr eax, 1
add edx, eax
mov dword [ebp - 0x48], edx
call fcn.00406400
mov edx, dword [ebp - 0x48]
mov esi, eax
lea eax, [ebp - 0x4c]
push eax
sub edx, edi
push edx
lea eax, [edi + esi]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
call ebx
test eax, eax
jne 0x406959
mov esi, dword [ebp + 0xc]
mov eax, edi
call fcn.0040639c
xor eax, eax
cmp eax, edi
sbb eax, eax
neg eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0040f65e
leave
ret 8

Function at 0x4069b7
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4220b8]
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi], edi
mov dword [ebp - 4], eax
je 0x406a09
call fcn.00404c0c
call fcn.00404bf9
push edi
push 0x84400000
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x406a0d
push str.InternetOpenUrl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.00406a73
xor eax, eax
jmp 0x406a65
push ebx
push 0x20
pop ebx
push edi
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push 0x13
push eax
mov dword [ebp - 0x48], ebx
call edi
test eax, eax
je 0x406a61
lea eax, [ebp - 0x44]
push eax
call fcn.0040e33a
cmp eax, 0x194
pop ecx
je 0x406a61
push 0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
push 5
push dword [esi + 8]
mov dword [ebp - 0x48], ebx
call edi
test eax, eax
je 0x406a61
lea eax, [ebp - 0x44]
push eax
call fcn.0040e33a
pop ecx
jmp 0x406a64
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0040f65e
leave
ret 0xc
Function at 0x406e8e
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4220b8]
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x406eb4
or eax, 0xffffffff
jmp 0x406f7a
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str._acctdata
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406ef3
push 0xfffffffffffffffe
pop eax
jmp 0x406f79
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x218], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 1
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x406f42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AllocateAndInitializeSid_Error__u_n
call fcn.0040e6f1
pop ecx
pop ecx
push 0xfffffffffffffffd
jmp 0x406eed
push 3
push 2
push 0x10000000
push ebx
push dword [ebp - 0x218]
lea eax, [ebp - 0x214]
push 1
push eax
call fcn.00406dae
cmp eax, ebx
jne 0x406f79
lea eax, [ebp - 0x214]
push eax
push str.Succeed_CreateDirectory__s._n
call fcn.0040e6f1
pop ecx
pop ecx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0040f65e
leave
ret 4