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

Disassembly:
push 0xffffffffffffffff
push 0x437be9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x439224
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi], 0x43a188
mov dword [esi + 4], edi
mov cl, byte [esp + 0x20]
mov al, byte [esp + 0x1c]
mov dword [esp + 0x14], 1
mov byte [esi + 9], cl
lea ecx, [esi + 0x40]
mov byte [esi + 8], al
call sub.MFC42.DLL_CImageList::CImageList
lea ecx, [esi + 0x48]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CUIntArray::CUIntArray
lea eax, [esi + 0x5c]
mov byte [esp + 0x14], 3
mov dword [esp + 0x1c], eax
mov dword [eax], 0x439224
mov byte [esp + 0x14], 4
mov dword [eax], 0x43a174
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax + 8], edi
mov dword [eax + 4], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], 0xa
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x14], 5
mov dword [esi], 0x43a158
mov dword [esi + 0xc], 0x6e
mov dword [esi + 0x10], 0x14
mov dword [esi + 0x14], 0x303030
mov dword [esi + 0x18], 0xffffff
mov dword [esi + 0x1c], 0xa0a0a0
mov dword [esi + 0x20], 0xfafafa
mov dword [esi + 0x24], 0xc8751f
mov dword [esi + 0x28], 0xf6d8bb
mov dword [esi + 0x2c], 0xffd0d0
mov dword [esi + 0x30], 0x767e7
mov dword [esi + 0x34], 0xbe00
mov dword [esi + 0x38], 0xf01010
mov dword [esi + 0x3c], edi
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x43180e
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov edx, eax
mov eax, dword [ecx + 4]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov edi, dword [ebp + 0xc]
mov esi, eax
lea eax, [ebp - 0x10]
push 4
lea ecx, [ebp - 0x10]
sub edi, eax
pop ebx
mov eax, dword [edi + ecx]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov dword [ecx], eax
add ecx, 4
dec ebx
jne 0x431841
push 0x10
xor eax, eax
pop ecx
mov edi, esi
mov ebx, esi
shr edi, 5
add edi, dword [ebp - 0xc]
sub eax, 0x61c88647
shl ebx, 4
add ebx, dword [ebp - 0x10]
xor edi, ebx
lea ebx, [eax + esi]
xor edi, ebx
add edx, edi
mov edi, edx
mov ebx, edx
shr edi, 5
add edi, dword [ebp - 4]
shl ebx, 4
add ebx, dword [ebp - 8]
xor edi, ebx
lea ebx, [eax + edx]
xor edi, ebx
add esi, edi
dec ecx
jne 0x431859
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
bswap eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
bswap eax
pop edi
pop esi
mov dword [ecx + 4], eax
pop ebx
leave
ret
Function at 0x4318b0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov esi, eax
mov eax, dword [ecx + 4]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov edi, dword [ebp + 0xc]
mov edx, eax
lea eax, [ebp - 0x10]
push 4
lea ecx, [ebp - 0x10]
sub edi, eax
pop ebx
mov eax, dword [edi + ecx]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov dword [ecx], eax
add ecx, 4
dec ebx
jne 0x4318e3
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edi, esi
mov ebx, esi
shr edi, 5
add edi, dword [ebp - 4]
shl ebx, 4
add ebx, dword [ebp - 8]
xor edi, ebx
lea ebx, [eax + esi]
xor edi, ebx
sub edx, edi
mov edi, edx
mov ebx, edx
shr edi, 5
add edi, dword [ebp - 0xc]
shl ebx, 4
add ebx, dword [ebp - 0x10]
xor edi, ebx
lea ebx, [eax + edx]
xor edi, ebx
add eax, 0x61c88647
sub esi, edi
dec ecx
jne 0x4318fe
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 8]
bswap eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
bswap eax
pop edi
pop esi
mov dword [ecx + 4], eax
pop ebx
leave
ret
Function at 0x401050
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, ecx
mov al, byte [edi + 4]
test al, al
je 0x401087
mov eax, dword [edi + 0x3cc]
xor edx, edx
test eax, eax
jle 0x401087
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x14]
mov cl, byte [esi]
mov bl, byte [eax]
xor bl, cl
inc esi
mov byte [eax], bl
mov ecx, dword [edi + 0x3cc]
inc eax
inc edx
cmp edx, ecx
jl 0x401070
pop esi
pop ebx
pop edi
ret 8
Function at 0x402d30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
mov eax, 0x55555556
push esi
lea ecx, [ebp*4]
imul ecx
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 4]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov esi, eax
test eax, eax
jne 0x402d63
pop esi
or eax, 0xffffffff
pop ebp
ret
xor ecx, ecx
push edi
test ebp, ebp
jle 0x402df0
mov edi, dword [esp + 0x10]
push ebx
xor edx, edx
mov dl, byte [ecx + edi]
inc ecx
shl edx, 8
cmp ecx, ebp
jge 0x402d87
xor ebx, ebx
mov bl, byte [ecx + edi]
add edx, ebx
inc ecx
shl edx, 8
cmp ecx, ebp
jge 0x402d96
xor ebx, ebx
mov bl, byte [ecx + edi]
add edx, ebx
mov ebx, edx
inc ecx
sar ebx, 0x12
and ebx, 0x3f
mov bl, byte [ebx + 0x41d3bc]
mov byte [esi], bl
mov ebx, edx
sar ebx, 0xc
and ebx, 0x3f
mov bl, byte [ebx + 0x41d3bc]
mov byte [esi + 1], bl
mov ebx, edx
sar ebx, 6
and ebx, 0x3f
and edx, 0x3f
cmp ecx, ebp
mov bl, byte [ebx + 0x41d3bc]
mov byte [esi + 2], bl
mov dl, byte [edx + 0x41d3bc]
mov byte [esi + 3], dl
jle 0x402ddd
mov byte [esi + 3], 0x3d
lea edx, [ebp + 1]
cmp ecx, edx
jle 0x402de8
mov byte [esi + 2], 0x3d
add esi, 4
cmp ecx, ebp
jl 0x402d73
pop ebx
mov ecx, dword [esp + 0x18]
mov byte [esi], 0
mov edi, eax
mov dword [ecx], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
mov eax, ecx
pop ebp
ret

Function at 0x404a50
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x41fc68]
sub esp, 0x800
cmp eax, ecx
jb 0x404aa9
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
mov edx, dword [esp + 0x80c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x810]
stosb byte es:[edi], al
push ecx
push edx
lea eax, [esp + 0xc]
push 0x7ff
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x800
ret

Function at 0x404ab0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1000
call fcn.00412330
mov eax, dword [esp + 0x1004]
mov ecx, dword [0x41fc68]
cmp eax, ecx
jb 0x404b11
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 6]
mov edx, dword [esp + 0x100c]
mov word [esp + 4], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1010]
stosw word es:[edi], ax
push ecx
push edx
lea eax, [esp + 0xc]
push 0x7ff
push eax
call dword [sym.imp.MSVCRT.dll__vsnwprintf]
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
add esp, 0x1000
ret
Function at 0x405060
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebp
push esi
mov eax, dword [esp + 0x14]
push edi
xor edi, edi
xor esi, esi
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40514f
push ebx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, edi
jbe 0x405139
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx]
cmp esi, edi
jne 0x4050c7
lea edx, [ebx + 1]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
mov dword [esp + 0x10], 1
lea ecx, [ebx + 1]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
je 0x405113
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [ecx], esi
je 0x40513e
push ebp
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40513e
test esi, esi
je 0x40513e
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret
mov edi, 1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 8
ret

Function at 0x405470
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x854
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x860]
mov cx, word [esp + 0x868]
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
push str.CmdLine_:__s_n
mov dword [esp + 0x18], eax
push 1
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x20], eax
mov dword [esp + 0x50], 1
mov word [esp + 0x54], cx
call fcn.00404a50
add esp, 0xc
lea edx, [esp + 0x5c]
push 0x800
push edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [esp + 0x864]
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push edx
push 0
push 0
push 0
push 0
lea eax, [esp + 0x78]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
test esi, esi
je 0x405555
mov eax, dword [esp + 0x86c]
test eax, eax
je 0x405536
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0xc]
push eax
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x854
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x41d574
push 3
call fcn.00404a50
add esp, 0x10
mov eax, esi
pop edi
pop esi
add esp, 0x854
ret
Function at 0x406d50
Capabilities:
Set http header

Disassembly:
push 0xffffffffffffffff
push 0x412b1c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push ebp
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], bx
rep stosd dword es:[edi], eax
cmp dword [ebp + 0x9c], ebx
je 0x406ea5
mov al, byte [esp + 0xf]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
push str.Content_Length:
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call esi
add esp, 4
lea ecx, [esp + 0x14]
push eax
push str.Content_Length:
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov ecx, dword [ebp + 0xa0]
lea edx, [esp + 0x24]
push ecx
push 0x41d660
push edx
mov dword [esp + 0x238], ebx
call dword [sym.imp.MSVCRT.dll_swprintf]
lea eax, [esp + 0x30]
push eax
call esi
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov esi, eax
add esp, 0x10
mov edx, dword [ecx]
mov ecx, dword [esp + 0x1c]
sub edx, ecx
cmp edx, esi
ja 0x406e07
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
cmp esi, ebx
jbe 0x406e48
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x18]
lea edi, [eax + esi]
push edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x406e48
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push esi
push ecx
lea ecx, [edx + eax*2]
push ecx
call fcn.00407840
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], edi
add esp, 0xc
mov word [edx + edi*2], bx
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
jne 0x406e56
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x230]
push 0x1000000
push ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x406e7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc4], eax
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x406ea5
mov al, byte [ecx - 1]
cmp al, bl
je 0x406e99
cmp al, 0xff
je 0x406e99
dec al
mov byte [ecx - 1], al
jmp 0x406ea5
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x220]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x220
ret 4
Function at 0x407430
Capabilities:
Read http header

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 0xc]
push 0
push eax
push 0
push 0
push 0x13
mov dword [esp + 0x24], ecx
push esi
mov dword [esp + 0x24], 0
call ebp
test eax, eax
jne 0x40746f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x407584
mov ecx, dword [esp + 0xc]
lea edx, [ecx + ecx]
push edx
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x407584
mov ecx, dword [esp + 0xc]
push edi
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push ebx
push 0
push 0x13
push esi
call ebp
test eax, eax
je 0x40757a
mov ecx, dword [esp + 0x14]
push ebx
lea esi, [ecx + 0xc8]
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, eax
add esp, 4
cmp edi, 0x7ffffffd
jbe 0x4074db
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [esi + 4]
xor ebp, ebp
cmp ecx, ebp
je 0x407514
mov al, byte [ecx - 1]
test al, al
je 0x407514
cmp al, 0xff
je 0x407514
cmp edi, ebp
jne 0x40754b
dec al
push ebx
mov byte [ecx - 1], al
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
cmp edi, ebp
jne 0x407535
push 1
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov eax, dword [esi + 0xc]
cmp eax, 0x1f
ja 0x407541
cmp eax, edi
jae 0x407554
push 1
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push edi
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Copy_unsigned_int_]
mov eax, dword [esi + 4]
cmp edi, ebp
mov ecx, ebx
jbe 0x407570
mov edx, edi
mov bp, word [ecx]
add ecx, 2
mov word [eax], bp
add eax, 2
dec edx
jne 0x40755f
xor ebp, ebp
mov edx, dword [esi + 4]
mov dword [esi + 8], edi
mov word [edx + edi*2], bp
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x407590
Capabilities:
Receive http response

Disassembly:
sub esp, 0x18
push ebx
mov ebx, ecx
push esi
xor esi, esi
mov eax, dword [ebx + 0x64]
push edi
test eax, eax
mov dword [esp + 0x18], 0x2800
mov dword [esp + 0x10], esi
je 0x4075b9
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebx + 0x64], esi
push 0x2800
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebx + 0x64], edi
jne 0x4075d8
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4
mov ecx, 0xa00
xor eax, eax
push ebp
mov dword [esp + 0x24], 1
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x407716
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40773e
push esi
mov ecx, ebx
call fcn.00405bd0
mov edx, dword [esp + 0x10]
inc edx
push edx
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x20], ebp
je 0x407722
mov eax, dword [esp + 0x10]
mov edi, ebp
mov dword [esp + 0x18], 0
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x2c]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
push ebp
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40770b
mov eax, dword [esp + 0x18]
lea ecx, [eax + esi]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jbe 0x4076de
mov ebp, dword [ebx + 0x64]
lea esi, [eax + eax]
push esi
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebx + 0x64], edi
je 0x40772f
mov ecx, esi
xor eax, eax
mov dword [esp + 0x1c], ecx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov esi, ebp
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
mov edi, dword [ebx + 0x64]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_operatordelete
mov ebp, dword [esp + 0x24]
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [ebx + 0x64]
mov ecx, dword [esp + 0x18]
mov edi, eax
add edi, edx
mov edx, ecx
mov esi, ebp
mov ebp, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov esi, eax
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x407722
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xc4], eax
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x40773e
jmp 0x4075ea
mov esi, dword [esp + 0x14]
mov dword [ebx + 0x64], ebp
mov dword [esp + 0x24], 0
push esi
mov ecx, ebx
call fcn.00405bd0
mov eax, dword [esp + 0x24]
pop ebp
mov dword [ebx + 0x68], esi
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4
Function at 0x407760
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, 0x55555556
lea ecx, [edi*4]
imul ecx
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 4]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
mov esi, ebx
jne 0x407794
pop edi
pop esi
pop ebx
ret
xor eax, eax
test edi, edi
jle 0x407820
push ebp
mov ebp, dword [esp + 0x14]
xor ecx, ecx
mov cl, byte [eax + ebp]
inc eax
shl ecx, 8
cmp eax, edi
jge 0x4077b7
xor edx, edx
mov dl, byte [eax + ebp]
add ecx, edx
inc eax
shl ecx, 8
cmp eax, edi
jge 0x4077c6
xor edx, edx
mov dl, byte [eax + ebp]
add ecx, edx
mov edx, ecx
inc eax
sar edx, 0x12
and edx, 0x3f
mov dl, byte [edx + 0x41d5a8]
mov byte [esi], dl
mov edx, ecx
sar edx, 0xc
and edx, 0x3f
mov dl, byte [edx + 0x41d5a8]
mov byte [esi + 1], dl
mov edx, ecx
sar edx, 6
and edx, 0x3f
and ecx, 0x3f
cmp eax, edi
mov dl, byte [edx + 0x41d5a8]
mov byte [esi + 2], dl
mov cl, byte [ecx + 0x41d5a8]
mov byte [esi + 3], cl
jle 0x40780d
mov byte [esi + 3], 0x3d
lea ecx, [edi + 1]
cmp eax, ecx
jle 0x407818
mov byte [esi + 2], 0x3d
add esi, 4
cmp eax, edi
jl 0x4077a3
pop ebp
mov edx, dword [esp + 0x18]
mov byte [esi], 0
test edx, edx
je 0x407839
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [edx], ecx
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x407950
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x100
push esi
mov edx, ecx
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov edx, dword [edx + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x118]
push edx
mov edx, dword [esp + 0x114]
push 0x100
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x118]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [esp + 0x114]
lea ecx, [esp + 8]
push 0x100
push ecx
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, esi
pop edi
pop esi
add esp, 0x100
ret 0x10

Function at 0x4079d0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x412b78
push eax
mov dword fs:[0], esp
push esi
mov ecx, dword [ecx + 4]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0xc
Function at 0x408aa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x412d8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov byte [esi + 0x18], al
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esp + 0x14], eax
call fcn.00408bc0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x408bc0
Capabilities:
Create thread

Disassembly:
push esi
push 0
mov esi, ecx
push 0
push 0
push 0
mov dword [esi + 0x158], 0
mov dword [esi + 0x14c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x4000
push esi
mov dword [esi + 0x154], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push 0
push 0
push esi
push 0x408e40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x150], eax
pop esi
ret

Function at 0x408c90
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x14c]
cmp eax, 0xffffffff
je 0x408cb0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x14c], 0xffffffff
lea esi, [edi + 0x48]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov eax, dword [esp + 0xc]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x14c], eax
pop edi
cmp eax, 0xffffffff
pop esi
je 0x408cfe
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
ret 4