joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4156c4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init

Function at 0x416034
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sym._fread
test eax, eax
mov edx, eax
jle 0x416084
movzx eax, byte [esi + eax - 1]
mov dword [ebx + 0x24], eax
mov ebx, dword [ebp - 8]
mov eax, edx
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x24], 0xffffffff
mov eax, edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401207
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x4182d8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4182dc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x10], edx
mov esi, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0x28], 0x9e3779b9
mov dword [ebp - 0x34], eax
call fcn.00401200
add dword [ebp - 0x10], 0x23f
cmp dword [0xb03ee4], 0x14
jne 0x401263
push edx
lea eax, [ebp - 0x834]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov eax, dword [0x4182e4]
mov edi, dword [0x4182e0]
push 0x20
pop edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov eax, esi
mov dword [ebp - 0xc], 0xedeb2e40
shl eax, 4
add eax, edi
cmp dword [0xb03ee4], 0xfa9
mov dword [ebp - 8], eax
mov eax, dword [0xb03ee0]
cmove eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
cmp dword [0xb03ee4], 0x3eb
mov dword [0xb03ee0], eax
mov eax, dword [0xb03e38]
cmove eax, dword [ebp - 0xc]
mov dword [0xb03e38], eax
mov eax, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
shr eax, 5
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
and dword [ebp - 0x14], 0
mov dword [0xb03edc], 0xf4ea3dee
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 4]
sub ebx, eax
mov dword [ebp - 0x18], eax
mov eax, ebx
shl eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
add eax, ebx
and dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor dword [ebp - 0x14], eax
cmp dword [0xb03ee4], 0xb03
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
jne 0x401362
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x28]
sub dword [ebp - 0x10], eax
dec edx
mov dword [ebp - 0x20], edx
jne 0x401277
mov edi, dword [ebp - 0x30]
mov dword [edi], esi
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e410
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push str.Com1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e441
push 0
push 0
push str.Error_opening_COM_1_port
call sub.MFC42.DLL_AfxMessageBox_1
lea eax, [esp + 4]
push 0
push eax
push 0x32
push str.SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret
Function at 0x423ab0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x576ad8
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xf70]
test eax, eax
je 0x423aed
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi + 0xee0]
test eax, eax
je 0x423b96
mov ecx, dword [esi + 0x374c]
test ecx, ecx
je 0x423b96
cmp eax, dword [esi + 0x444]
je 0x423b96
push ebp
lea ebp, [esi + 0x13338]
push 0
mov ecx, ebp
call fcn.00554380
mov ecx, dword [esi + 0x130b0]
mov eax, 1
cmp ecx, eax
je 0x423b3c
cmp dword [esi + 0x130ac], eax
jne 0x423b64
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xaf8]
mov ecx, dword [esi + 0xee0]
mov eax, dword [esi]
push 0
push ecx
push ebp
mov ecx, esi
call dword [eax + 0x1f4]
mov dword [esi + 0x130ac], 0
lea ebx, [esi + 0x10a0]
mov ecx, 0x104
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xae0]
mov eax, dword [esi]
push 0
push ebx
mov ecx, esi
call dword [eax + 0x92c]
push 1
mov ecx, ebp
call fcn.00554380
pop ebp
mov ecx, esi
call fcn.00431cf0
mov eax, dword [esi + 0xf70]
test eax, eax
je 0x423c37
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
sub edx, ebx
lea ecx, [esp + 0xc]
sbb eax, edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
fild qword [esp + 0x20]
fild qword [esp + 0x28]
fdivp st(1)
fstp qword [esp + 0x20]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x14]
push str._f_seconds.
push eax
mov dword [esp + 0x48], 0
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x35f0]
add esp, 0x10
push ecx
push 8
push 0x401
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x4405b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
call fcn.00441580
push 0x91
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
mov dword [esi + 0xf70], eax
mov ecx, dword [0x64b2e0]
mov eax, dword [esi + 0x444]
lea edi, [esi + 0xf84]
mov edx, dword [ecx]
push str._s.jpg
push edi
push eax
call dword [edx + 0x150]
mov eax, dword [edi]
push eax
call fcn.004924b0
add esp, 4
test eax, eax
je 0x440616
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push edi
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0xf88]
call fcn.00556f00
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x44d360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57a5a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
mov eax, dword [esp + 0xa4]
push esi
lea ecx, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x10], 0
call fcn.004f5170
mov edx, dword [esp + 0xb4]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x38]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
call fcn.0044d1a0
add esp, 0x1c
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
mov esi, dword [esp + 0xa4]
lea edx, [esp + 4]
push edx
mov ecx, esi
mov dword [esp + 0xa0], 1
call sub.MFC42.DLL_CString::CString_4
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x9c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x94]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x9c
ret

Function at 0x44eb70
Capabilities:
Create directory

Disassembly:
sub esp, 0x100
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
mov esi, dword [esp + 0x10c]
push 0
push esi
call ebp
test eax, eax
jne 0x44ec1b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp byte [esi], 0
je 0x44ec10
lea edi, [esp + 0x10]
sub edi, esi
mov al, byte [esi]
cmp al, 0x5c
je 0x44ebc6
cmp al, 0x2f
jne 0x44ebff
cmp byte [esi - 1], 0x3a
je 0x44ebff
mov al, byte [esp + 0x10]
test al, al
je 0x44ebff
mov cl, byte [esp + 0x11]
test cl, cl
jne 0x44ebe0
cmp al, 0x5c
je 0x44ebff
lea eax, [esp + 0x10]
push eax
call fcn.0044f510
add esp, 4
test eax, eax
jne 0x44ebff
lea ecx, [esp + 0x10]
push eax
push ecx
call ebp
test eax, eax
jne 0x44ebff
call ebx
mov dl, byte [esi]
mov al, byte [esi + 1]
mov byte [edi + esi], dl
inc esi
test al, al
mov byte [edi + esi], 0
jne 0x44ebbc
lea eax, [esp + 0x10]
push 0
push eax
call ebp
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x100
ret

Function at 0x44f2f0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor dl, dl
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x44f314
push ebx
mov bl, byte [eax + esi]
xor dl, bl
inc eax
cmp eax, ecx
jl 0x44f309
pop ebx
mov al, dl
and dl, 0xf0
and al, 0xf
cmp dl, 4
seta dl
cmp dl, 9
jg 0x44f32b
add dl, 0x30
jmp 0x44f32e
add dl, 0x37
cmp al, 9
mov byte [ecx + esi + 2], dl
jg 0x44f344
add al, 0x30
pop edi
mov byte [ecx + esi + 3], al
mov byte [ecx + esi + 4], 0xd
pop esi
ret
add al, 0x37
pop edi
mov byte [ecx + esi + 3], al
mov byte [ecx + esi + 4], 0xd
pop esi
ret
Function at 0x44f360
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x40
mov eax, dword [esp + 0x48]
xor ecx, ecx
mov edx, eax
dec eax
test edx, edx
mov dword [esp], ecx
mov dword [esp + 4], 0x1021
mov dword [esp + 8], 0x2042
mov dword [esp + 0xc], 0x3063
mov dword [esp + 0x10], 0x4084
mov dword [esp + 0x14], 0x50a5
mov dword [esp + 0x18], 0x60c6
mov dword [esp + 0x1c], 0x70e7
mov dword [esp + 0x20], 0x8108
mov dword [esp + 0x24], 0x9129
mov dword [esp + 0x28], 0xa14a
mov dword [esp + 0x2c], 0xb16b
mov dword [esp + 0x30], 0xc18c
mov dword [esp + 0x34], 0xd1ad
mov dword [esp + 0x38], 0xe1ce
mov dword [esp + 0x3c], 0xf1ef
je 0x44f45f
push ebx
push esi
push edi
mov edi, dword [esp + 0x50]
lea ebx, [eax + 1]
mov al, byte [edi]
mov byte [esp + 0x54], al
mov eax, ecx
mov esi, dword [esp + 0x54]
cdq
and edx, 0xff
and esi, 0xff
add eax, edx
mov edx, esi
sar eax, 8
and eax, 0xff
and esi, 0xf
shr eax, 4
shr edx, 4
xor eax, edx
mov edx, ecx
shl edx, 4
mov ecx, dword [esp + eax*4 + 0xc]
xor ecx, edx
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
and eax, 0xff
shr eax, 4
xor eax, esi
shl ecx, 4
mov eax, dword [esp + eax*4 + 0xc]
xor ecx, eax
inc edi
dec ebx
jne 0x44f3f6
pop edi
pop esi
mov eax, ecx
pop ebx
add esp, 0x40
ret
mov eax, ecx
add esp, 0x40
ret

Function at 0x44f510
Capabilities:
Get file system object information

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x160
lea eax, [esp]
push 0x400
push 0x160
push eax
push 0
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
neg eax
sbb eax, eax
neg eax
add esp, 0x160
ret
Function at 0x450d80
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x57ab2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
push esi
push edi
mov esi, ecx
push 0
push 1
push ecx
xor ebx, ebx
mov bl, byte [esi + 0x517]
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x619640
mov byte [esi + 0x517], 0
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x114]
mov edx, dword [esp + 0x430]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
mov byte [esi + 0x517], bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x450df6
push edx
lea ecx, [esp + 0x24]
push 0x400
push ecx
jmp 0x450e07
mov eax, dword [esi + 0x470]
lea edx, [esp + 0x20]
push eax
push 0x400
push edx
call fcn.004455f0
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll__strupr]
lea ecx, [esp + 0x24]
push str..XML
push ecx
push 1
call fcn.004a6d70
add esp, 0x10
test eax, eax
jne 0x450e49
push str..XML
lea edx, [esp + 0x24]
push 0x400
push edx
call fcn.00445620
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call fcn.004924b0
add esp, 4
cmp eax, 1
jne 0x450e66
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x20]
mov word [esp + 0xc], 8
push edx
call fcn.0057132d
test eax, eax
mov dword [esp + 0x14], eax
jne 0x450e91
lea eax, [esp + 0x20]
test eax, eax
je 0x450e91
push 0x8007000e
call fcn.00571280
mov eax, dword [esi + 0x41c]
mov dword [esp + 0x428], 0
test eax, eax
jne 0x450eb0
push 0x80004003
call fcn.00571280
mov eax, dword [esp + 0xc]
push 1
sub esp, 0x10
mov esi, dword [esi + 0x41c]
mov edx, esp
mov ecx, dword [esi]
push esi
mov dword [edx], eax
mov eax, dword [esp + 0x28]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 0xc], eax
call dword [ecx + 0x150]
mov edi, eax
test edi, edi
jge 0x450ef5
push 0x601d40
push esi
push edi
call fcn.0057128e
test edi, edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x428], 0xffffffff
push ecx
setl bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x450f18
push eax
call fcn.00571280
test bl, bl
je 0x450f2e
push 0
lea edx, [esp + 0x24]
push 0
push edx
call sub.MFC42.DLL_AfxMessageBox_1
xor eax, eax
jmp 0x450f4d
mov eax, dword [esp + 0x434]
test eax, eax
je 0x450f48
lea eax, [esp + 0x20]
push 1
push eax
call fcn.00450c90
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x420]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x420
ret 8
Function at 0x456ee0
Capabilities:
Get file size

Disassembly:
mov eax, 0x2004
call fcn.00552f40
mov eax, dword [esp + 0x200c]
push ebx
push esi
push edi
push eax
call fcn.004f17e0
mov esi, dword [esp + 0x2018]
add esp, 4
lea ecx, [esp + 0xc]
mov ebx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x2000
mov edi, eax
jb 0x456f20
mov edi, 0x2000
push esi
call fcn.004f1d40
lea edx, [esp + 0x14]
push edi
push edx
push esi
call fcn.004f1a80
xor al, al
add esp, 0x10
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
mov byte [esp + 0x16], al
mov byte [esp + 0x17], al
cmp dword [esp + 0x201c], 1
jne 0x456f68
lea eax, [esp + 0x4f]
mov ecx, 0x80
mov dl, byte [eax]
add eax, 0x20
and dl, 0xfe
dec ecx
mov byte [eax - 0x20], dl
jne 0x456f5a
push ebx
call fcn.004f1d40
lea eax, [esp + 0x14]
push edi
push eax
push ebx
call fcn.004f1b70
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x2004
ret
Function at 0x4771a0
Capabilities:
Copy file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x57f001
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfac
push ebx
push esi
lea eax, [esp + 0x7e4]
push edi
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0xfc0], ebx
call sub.MFC42.DLL_CString::CString_3
mov esi, dword [esp + 0xfc8]
lea ecx, [esp + 0x7e8]
push esi
push ecx
lea edx, [esp + 0x18]
push 0x60212c
push edx
mov byte [esp + 0xfd0], 1
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
push eax
call fcn.004924b0
add esp, 0x14
cmp eax, ebx
je 0x477295
lea ecx, [esp + 0x18]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x18]
push esi
push edx
lea eax, [esp + 0x14]
push str._s_system32_s
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 0x10
push ebx
push ecx
push edx
call edi
cmp eax, ebx
je 0x477336
call fcn.00476010
test eax, eax
je 0x477295
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x14]
push str._sSysWOW64_s
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add esp, 0x10
push ebx
push edx
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, 0x20
jae 0x4772e7
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
push esi
lea ecx, [esp + 0x18]
push str.Unable_to_load_DLL___s_.
push ecx
mov byte [esp + 0xfcc], 2
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x20]
push 0x731
push edx
call fcn.004c31a0
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0xfc0], 1
call sub.MFC42.DLL_CString::CString
jmp 0x477336
push str.DllRegisterServer
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x477324
call eax
lea ecx, [esp + 0xc]
mov byte [esp + 0xfc0], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0xfc0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x47735c
push 0x732
push str.unable_to_locate_entry_point
call fcn.004c31a0
add esp, 8
lea ecx, [esp + 0xc]
mov byte [esp + 0xfc0], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0xfc0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0xfb8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xfb8
ret 4
Function at 0x48c930
Capabilities:
Connect to http server
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x581718
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
mov dword [esp + 0x7c], 0
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
push 5
lea ecx, [esi + 0x134]
call sub.MFC42.DLL_CWnd::ShowWindow
push str.Initializing....__please_wait...
push 0x1771
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
mov eax, dword [esi + 0x64]
lea ecx, [esp + 0x10]
push eax
push str._s.zip
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0
push 0
push 0
push 1
push str.FTPGET
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x60]
mov edi, eax
mov eax, dword [esi + 0x6c]
push 0
push 0
push 1
push eax
push ecx
push 0x15
push edx
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
push 0
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, eax
push 0x80
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x20]
push edx
push eax
push ebx
call dword [sym.imp.WININET.dll_FtpGetFileA]
mov ecx, esi
mov dword [esi + 0x70], eax
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push edi
call ebx
mov eax, dword [esi + 0x70]
test eax, eax
jne 0x48ca2a
lea ecx, [esp + 0xc]
push str.Download_fail_nPlease_try_again
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x14]
add esp, 8
mov ecx, esi
push 0
push 0
push edx
call sub.MFC42.DLL_CWnd::MessageBoxA
mov esi, dword [esi + 0x70]
lea ecx, [esp + 0xc]
mov dword [esp + 0x7c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x74]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret
Function at 0x4924b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4924d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4924ce
xor eax, eax
ret
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
ret
not al
and eax, 0xff
shr eax, 4
and eax, 1
ret

Function at 0x4925f0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push eax
push esi
call fcn.00492520
add esp, 8
cmp eax, 1
jne 0x49260f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret

Function at 0x492690
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x10], ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.MSVCRT.dll_getenv]
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4926e5
push ebx
call fcn.0044e430
add esp, 4
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], 0
test ebp, ebp
mov byte [ebx], 0
je 0x49271f
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x2c]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.004925f0
push ebx
call fcn.004924b0
add esp, 0xc
test eax, eax
je 0x4927bf
lea ecx, [esp + 0x14]
push ecx
call fcn.004fedb0
mov eax, dword [esp + 0x34]
add esp, 4
inc eax
cmp eax, 0x64
mov dword [esp + 0x30], eax
jl 0x4926f9
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
jns 0x4926f1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x492ca0
Capabilities:
Get common file path

Disassembly:
sub esp, 0xc8
lea eax, [esp]
push eax
push 0xbe
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0xd0]
push ecx
push 0
lea eax, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, 1
add esp, 0xc8
ret