joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a3c0
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42bf8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push ebp
mov ebp, dword [esp + 0x16c]
push esi
push edi
mov ecx, ebp
call sub.MFC42.DLL_CString::Empty
mov ecx, 0x10
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
lea edi, [esp + 0x120]
lea eax, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
push eax
push 1
lea ecx, [esp + 0x128]
push ebx
push ecx
push 0x80000002
mov dword [esp + 0x28], ebx
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a4d6
mov ecx, 0x40
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x14]
push edx
stosb byte es:[edi], al
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x103
push eax
push ebx
push ebx
push str.Path
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a4c7
call sub.MFC42.DLL_AfxGetEmptyString
mov edx, dword [eax]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
call sub.MFC42.DLL_CString::operator
push 0x43e9ec
lea ecx, [esp + 0x14]
mov dword [esp + 0x170], ebx
call sub.MFC42.DLL_CString::TrimLeft_1
push 0x43ee6c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight_2
mov ecx, dword [esp + 0x10]
push ecx
push str._sIEXPLORE.EXE
push ebp
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x16c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, dword [ebp]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push eax
call esi
test eax, eax
jne 0x40a529
mov ecx, 0x40
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x40a50f
xor al, al
jmp 0x40a534
lea ecx, [esp + 0x1c]
mov byte [esp + 0x11f], bl
push ecx
push str._sInternet_ExplorerIEXPLORE.EXE
push ebp
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ebp, dword [ebp]
push ebp
call esi
test eax, eax
setne al
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x160
ret
Function at 0x40a910
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x42bff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x14]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 0x14], 0
call fcn.00409e60
add esp, 8
test al, al
jne 0x40a96f
lea ecx, [esp]
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov dword [esp + 0xc], 0xffffffff
lea ecx, [esp]
jne 0x40a9a0
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40b900
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call sub.MSVCRT.dll_memset
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
ret
Function at 0x40c5d9
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
call sub.WS2_32.dll_ntohl
push dword [esi + 4]
mov edi, eax
call sub.WS2_32.dll_ntohl
mov ebx, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
lea esi, [ebp - 0x10]
sub eax, ecx
mov dword [ebp + 8], 4
mov dword [ebp + 0xc], eax
jmp 0x40c612
mov eax, dword [ebp + 0xc]
push dword [eax + esi]
call sub.WS2_32.dll_ntohl
mov dword [esi], eax
add esi, 4
dec dword [ebp + 8]
jne 0x40c60f
push 0x10
xor eax, eax
pop ecx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
sub eax, 0x61c88647
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
mov edx, edi
mov esi, edi
shr edx, 5
add edx, dword [ebp - 4]
shl esi, 4
add esi, dword [ebp - 8]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
dec ecx
jne 0x40c629
push edi
call sub.WS2_32.dll_htonl
mov esi, dword [ebp + 0x10]
push ebx
mov dword [esi], eax
call sub.WS2_32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
call sub.WS2_32.dll_ntohl
push dword [esi + 4]
mov ebx, eax
call sub.WS2_32.dll_ntohl
mov edi, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
lea esi, [ebp - 0x10]
sub eax, ecx
mov dword [ebp + 8], 4
mov dword [ebp + 0xc], eax
jmp 0x40c6b5
mov eax, dword [ebp + 0xc]
push dword [eax + esi]
call sub.WS2_32.dll_ntohl
mov dword [esi], eax
add esi, 4
dec dword [ebp + 8]
jne 0x40c6b2
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 4]
shl esi, 4
add esi, dword [ebp - 8]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
sub edi, edx
mov edx, edi
mov esi, edi
shr edx, 5
add edx, dword [ebp - 0xc]
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add eax, 0x61c88647
sub ebx, edx
dec ecx
jne 0x40c6cf
push ebx
call sub.WS2_32.dll_htonl
mov esi, dword [ebp + 0x10]
push edi
mov dword [esi], eax
call sub.WS2_32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d4b0
Capabilities:
Create directory

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
push edi
mov eax, dword [ebp]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x40d55f
push esi
push 0x5c
mov ecx, ebp
call sub.MFC42.DLL_CString::Find
mov esi, eax
test esi, esi
jl 0x40d55f
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x14]
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
lea ecx, [esp + 0x3c]
mov edi, eax
call sub.MFC42.DLL_CString::CString
test edi, edi
je 0x40d528
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x40d528
and eax, 0x10
test al, al
jne 0x40d552
lea eax, [esp + 0x10]
push esi
push eax
mov ecx, ebp
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
lea ecx, [esp + 0x10]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x40d56c
mov ecx, dword [ebp]
inc esi
cmp esi, dword [ecx - 8]
jl 0x40d4cb
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
Function at 0x40d990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42c1a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, dword [esp + 0x2c]
test esi, esi
mov dword [esp + 4], 0
je 0x40da49
xor eax, eax
push edi
mov dword [esp + 0xd], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x11], eax
mov byte [esp + 0xc], 0
mov dword [esp + 0x15], eax
mov word [esp + 0x19], ax
mov byte [esp + 0x1b], al
call sub.MFC42.DLL_CString::CString_2
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x10]
push esi
push ecx
call fcn.0040c5aa
lea edx, [esp + 0x18]
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.0040d0e0
mov esi, dword [esp + 0x40]
add esp, 0x14
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov esi, dword [esp + 0x28]
push 0x440080
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x40da70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42c1e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x440080
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_3
mov edi, 1
lea eax, [esp + 0x14]
push edi
push 0x1a
push eax
push 0
mov dword [esp + 0x130], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40dae6
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 8]
mov eax, dword [edx - 8]
test eax, eax
jne 0x40db0a
mov esi, dword [esp + 0x128]
push 0x43f144
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0xc], edi
jmp 0x40db63
push ebx
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x43e708
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
pop ebx
je 0x40db4c
push 0x43e708
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_2
mov esi, dword [esp + 0x128]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0xc], edi
lea ecx, [esp + 8]
mov byte [esp + 0x120], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x118]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x40de90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42c2a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
mov ecx, edi
call fcn.0040e340
lea ebx, [esi + 0x30]
mov dword [esp + 0x18], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x43238c
call fcn.0040e5c0
push 0x440080
mov ecx, ebx
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40f7a0
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov eax, 0x42c4fb
call fcn.0041e708
sub esp, 0x120
push ebx
push esi
push edi
xor esi, esi
push 0x440080
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esi
call sub.MFC42.DLL_CString::CString_3
push 1
lea ecx, [ebp - 0x1c]
pop edi
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x12c]
push pe_nt_image_headers32
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x40f80a
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x40f7f6
mov dword [eax], esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x10], edi
jmp 0x40f953
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_CString::operator
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x2c], ebx
jne 0x40f83d
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x40f944
mov dword [eax], esi
jmp 0x40f944
mov eax, dword [ebx + 0xc]
xor edx, edx
mov ecx, eax
cmp dword [ecx], esi
je 0x40f84e
inc edx
add ecx, 4
jmp 0x40f844
cmp edx, edi
jle 0x40f918
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x20]
add eax, ecx
cmp dword [eax], 0
je 0x40f90a
mov eax, dword [eax]
mov edi, dword [eax]
push edi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
push str.0.0.0.0
mov byte [ebp - 4], 3
push dword [ebp - 0x18]
call esi
pop ecx
test eax, eax
pop ecx
je 0x40f8d4
lea eax, [ebp - 0x28]
push 3
push eax
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x43f210
push eax
mov byte [ebp - 4], 4
call esi
mov ebx, eax
pop ecx
neg ebx
pop ecx
mov byte [ebp - 4], 3
sbb bl, bl
lea ecx, [ebp - 0x28]
inc bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40f8ec
mov ebx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
add dword [ebp - 0x20], 4
push 1
pop edi
jmp 0x40f862
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp - 0x24], edi
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push 1
pop edi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40f935
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
jmp 0x40f935
mov eax, dword [eax]
mov esi, dword [eax]
push esi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40f935
mov dword [eax], esi
push dword [ebp - 0x14]
push str.GetLocalIP__s_r_n
call fcn.0040faff
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x10], edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40f97d
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x42c52f
call fcn.0041e708
sub esp, 0x1c
push ebx
xor ebx, ebx
push str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], ebx
call sub.MFC42.DLL_CString::CString_3
push 0x440080
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_3
xor ecx, ecx
xor edx, edx
cmp dword [ebp + 0x10], ebx
mov byte [ebp - 4], 2
jle 0x40fa75
push esi
push edi
mov eax, dword [ebp + 0xc]
mov edi, edx
sub edi, 0
lea esi, [ebx + eax]
mov al, byte [ebx + eax]
je 0x40fa47
dec edi
dec edi
je 0x40fa1e
dec edi
dec edi
jne 0x40fa69
movzx esi, al
mov eax, esi
shr eax, 6
shl ecx, 2
or eax, ecx
mov ecx, dword [ebp - 0x18]
mov al, byte [eax + ecx]
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x1c], al
push dword [ebp - 0x1c]
call fcn.0041e11a
mov eax, dword [ebp - 0x18]
and esi, 0x3f
lea ecx, [ebp - 0x14]
mov al, byte [esi + eax]
mov byte [ebp - 0x20], al
push dword [ebp - 0x20]
call fcn.0041e11a
xor edx, edx
xor ecx, ecx
jmp 0x40fa69
movzx eax, al
shr eax, 4
shl ecx, 4
or eax, ecx
mov ecx, dword [ebp - 0x18]
mov al, byte [eax + ecx]
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x24], al
push dword [ebp - 0x24]
call fcn.0041e11a
mov cl, byte [esi]
push 4
pop edx
and ecx, 0xf
jmp 0x40fa69
mov ecx, dword [ebp - 0x18]
movzx eax, al
shr eax, 2
mov al, byte [eax + ecx]
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x28], al
push dword [ebp - 0x28]
call fcn.0041e11a
mov cl, byte [esi]
push 2
pop edx
and ecx, 3
inc ebx
cmp ebx, dword [ebp + 0x10]
jl 0x40f9c4
pop edi
pop esi
dec edx
pop ebx
dec edx
je 0x40faa1
dec edx
dec edx
jne 0x40fac5
mov eax, dword [ebp - 0x18]
shl ecx, 2
mov al, byte [ecx + eax]
lea ecx, [ebp - 0x14]
mov byte [ebp + 0x10], al
push dword [ebp + 0x10]
call fcn.0041e11a
push 0x3d
lea ecx, [ebp - 0x14]
call fcn.0041e11a
jmp 0x40fac5
mov eax, dword [ebp - 0x18]
shl ecx, 4
mov al, byte [ecx + eax]
lea ecx, [ebp - 0x14]
mov byte [ebp + 0x10], al
push dword [ebp + 0x10]
call fcn.0041e11a
push 0x43f21c
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
leave
ret
Function at 0x41c18e
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push 0x40
lea edi, [esi + 0x1c]
push ebx
push edi
call sub.MSVCRT.dll_memset
lea eax, [esi + 0x9c]
push 0x40
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [esi + 0x5c]
push 0x40
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
add esp, 0x24
cmp eax, ebx
mov word [esi + 0xdc], bx
mov dword [esi + 0xe0], ebx
je 0x41c1e7
cmp byte [eax], bl
je 0x41c1e7
push 0x3f
push eax
push edi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x41c205
cmp byte [eax], bl
je 0x41c205
push 0x3f
push eax
lea eax, [esi + 0x9c]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x41c220
cmp byte [eax], bl
je 0x41c220
push 0x3f
push eax
lea eax, [esi + 0x5c]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x41c294
cmp byte [edi], bl
je 0x41c294
push edi
call sub.MSVCRT.dll_strlen
pop ecx
xor ecx, ecx
cmp eax, ebx
jle 0x41c24f
mov dl, byte [ecx + edi]
cmp dl, 0x39
jg 0x41c245
cmp dl, 0x30
jge 0x41c24a
cmp dl, 0x2e
jne 0x41c25e
inc ecx
cmp ecx, eax
jl 0x41c238
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 0xe0], eax
jmp 0x41c27f
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x41c294
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [esi + 0xe0]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
push 1
mov word [esi + 0xdc], ax
pop eax
jmp 0x41c296
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x41ec40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42e961
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x433cd0
mov dword [esp + 0x18], 8
call fcn.0041ed20
lea ecx, [esi + 0x10c]
mov byte [esp + 0x18], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x108]
mov byte [esp + 0x18], 6
call sub.MFC42.DLL_CString::CString
lea edi, [esi + 0xb0]
mov dword [esp + 0xc], edi
lea ecx, [edi + 4]
mov byte [esp + 0x18], 9
call sub.MFC42.DLL_CString::CString
mov ecx, edi
mov byte [esp + 0x18], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x5c]
mov byte [esp + 0x18], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x58]
mov byte [esp + 0x18], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x54]
mov byte [esp + 0x18], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00421500
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x41f800
Capabilities:
Create http request

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42ea10
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x41f930
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 4]
mov ecx, esi
push eax
mov dword [esp + 0x20], 0
call fcn.004204c0
test eax, eax
jne 0x41f86a
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov ecx, dword [esi + 0x38]
mov edx, dword [esp + 4]
push 0x10000000
push 0
push 0
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 0x78], eax
jne 0x41f890
push eax
push eax
call sub.MFC42.DLL_AfxThrowInternetException
mov eax, dword [esi + 0x78]
push 0x420590
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp eax, 0xffffffff
jne 0x41f8ad
push 0
push 0
call sub.MFC42.DLL_AfxThrowInternetException
push 0
push 0x4412f4
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CSingleLock::CSingleLock
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CSingleLock::Lock
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41f8ef
push esi
mov ecx, 0x4412d8
call sub.MFC42.DLL_CMapPtrToPtr::operator__
lea ecx, [esp + 8]
mov dword [eax], 0
call sub.MFC42.DLL_CSingleLock::Unlock
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CSingleLock::Unlock
mov ecx, esi
call fcn.004204e0
test eax, eax
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 4]
jne 0x41f92b
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x41fa00
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebx, ecx
push esi
push edi
xor edi, edi
cmp dword [ebx + 0x74], edi
jne 0x41fa33
cmp dword [ebx + 0x68], edi
je 0x41fa38
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, edi
je 0x41fa30
mov ecx, dword [ebx + 0x6c]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [ebx + 0x74], eax
jne 0x41fa33
mov dword [ebx + 0x68], edi
cmp dword [ebx + 0x68], edi
jne 0x41fa73
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x84]
lea edx, [esp + 0x10]
push edi
push edx
push esi
push eax
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41fa69
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x41fa69
cmp esi, eax
je 0x41fab5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov edx, dword [ebx + 0x70]
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebx + 0x6c]
add edx, ebp
cmp edx, eax
jbe 0x41fa96
mov ecx, ebx
call fcn.0041fad0
test eax, eax
jne 0x41fa96
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edi, dword [ebx + 0x70]
mov eax, dword [ebx + 0x74]
mov esi, dword [esp + 0x18]
mov ecx, ebp
add edi, eax
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]
add dword [ebx + 0x70], ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8