joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401710
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a5e0
push 0x4086f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [0x4122b8]
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov ax, word [0x40a5bc]
mov word [ebp - 0x28], ax
mov cl, byte [0x40a5be]
mov byte [ebp - 0x26], cl
mov dl, byte [ebp + 0x10]
add dl, 0x41
mov byte [ebp - 0x28], dl
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x28]
push eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004013c0
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp esi, 0xffffffff
jne 0x401792
push eax
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCR71.dll__local_unwind2
add esp, 8
xor eax, eax
jmp 0x4018a0
lea edx, [ebp - 0x6c]
push edx
push esi
mov ecx, edi
call fcn.00401450
mov dword [ebp - 0x34], eax
cmp eax, ebx
jne 0x4017ba
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCR71.dll__local_unwind2
add esp, 8
xor eax, eax
jmp 0x4018a0
mov eax, dword [ebp + 0x14]
cdq
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
push edx
push eax
push ebx
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00408700
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
mov ecx, edx
sar ecx, 0x1f
mov dword [ebp - 0x3c], edx
push ebx
lea edx, [ebp - 0x3c]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
push 0x3000
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp + 0x1c]
imul eax, edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [ebp - 0x4c], ebx
mov eax, dword [ebp - 0x58]
imul eax, edi
mov edi, dword [ebp + 0x20]
cmp eax, edi
jg 0x40181a
mov edi, eax
mov dword [ebp - 0x38], edi
mov ecx, dword [ebp + 0xc]
push 0
test ecx, ecx
je 0x40184d
mov ecx, dword [ebp + 0x28]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x34], eax
mov ecx, edi
mov esi, ebx
mov edi, dword [ebp + 0x24]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40187c
mov ecx, edi
mov esi, dword [ebp + 0x24]
mov edi, ebx
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]
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp - 0x58]
imul edx, dword [ebp + 0x1c]
push edx
push ebx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x34], eax
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004018bb
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00408681
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x4019b0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x4122b8]
push esi
mov esi, ecx
mov dword [esp + 0x108], eax
mov eax, dword [esi + 0xb4]
test eax, eax
jle 0x4019ef
inc eax
mov dword [esi + 0xb4], eax
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
call fcn.00408681
add esp, 0x108
ret
push ebp
push 0x40a654
call fcn.00404a10
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 4
push 0
push 0x44000000
push 0
push 0
push 0
push 0
push 0x40a644
call ebp
push 0x40a620
mov dword [esi + 0xb0], eax
call fcn.00404a10
mov eax, dword [esi + 0xb0]
add esp, 4
cmp eax, 0xffffffff
jne 0x401aa4
push ebx
push edi
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edi, [esi + 0xb8]
push edi
call ebx
push 0x40a618
call fcn.00404a10
lea ecx, [esp + 0x14]
push ecx
call fcn.00404a10
push 0x40a60c
call fcn.00404a10
push edi
call fcn.00404a10
add esp, 0x10
push 0
push 0x44000000
push 0
push 0
push 0
push 0
push 0x40a644
call ebp
lea edx, [esp + 0x10]
push edx
mov dword [esi + 0xb0], eax
call ebx
pop edi
pop ebx
cmp dword [esi + 0xb0], 0xffffffff
pop ebp
je 0x401aca
push 0x40a604
call fcn.00404a10
mov eax, dword [esi + 0xb4]
add esp, 4
inc eax
mov dword [esi + 0xb4], eax
jmp 0x401ad7
push 0x40a5ec
call fcn.00404a10
add esp, 4
mov eax, dword [esi + 0xb4]
mov ecx, dword [esp + 0x108]
pop esi
call fcn.00408681
add esp, 0x108
ret

Function at 0x4024f0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
mov edi, ecx
push 0x80000000
lea eax, [edi + 4]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4025a8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x402596
push ebp
push esi
call sub.MFC71.DLL_operator_new_1
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x402595
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40258c
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40258c
mov edi, dword [edi + 0x148]
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], 1
push ebp
call sub.MFC71.DLL_operator_delete_1
add esp, 4
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 8
ret
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
Function at 0x402600
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push 0x412f20
mov edi, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4026cd
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x4026bb
cdq
idiv dword [edi + 0x15c]
push ebp
push esi
mov dword [edi + 0x154], esi
inc eax
mov dword [edi + 0x160], eax
call sub.MFC71.DLL_operator_new_1
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4026ba
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4026b1
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4026b1
mov edi, dword [edi + 0x150]
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], 1
push ebp
call sub.MFC71.DLL_operator_delete_1
add esp, 4
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 8
ret
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4026e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x141c
call fcn.00408740
mov eax, dword [0x4122b8]
push ebx
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x141c], eax
push esi
xor eax, eax
test ecx, ecx
push edi
je 0x40275c
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov byte [esp + 0x20], al
mov ecx, 0x4ff
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 0x10]
mov dword [esp + 0xc], 0
nop
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402771
mov eax, dword [esp + 0xc]
inc eax
cmp eax, 3
mov dword [esp + 0xc], eax
jl 0x402730
xor eax, eax
mov ecx, dword [esp + 0x1424]
call fcn.00408681
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov eax, 0xcccccccd
mul ecx
shr edx, 0xc
test edx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], 0
jle 0x402857
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
lea esp, [esp]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x158]
mov eax, dword [edx + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40275a
mov esi, dword [esp + 0x10]
push 0
mov ecx, 0x500
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x20]
push ecx
push 0x1400
lea edx, [esp + 0x2c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40275a
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x40275a
fild dword [esp + 0x14]
fidiv dword [esp + 0xc]
fmul dword [0x40a68c]
call fcn.00408780
mov edx, dword [esp + 0x18]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx + 0x158]
push ecx
mov ecx, dword [eax]
push 3
push 0x4a8
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
inc eax
add edx, 0x1400
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jl 0x4027a0
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0xc]
lea eax, [edx + edx*4]
shl eax, 0xa
sub ecx, eax
mov edx, ecx
je 0x402896
mov esi, dword [ebp + 8]
add esi, eax
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
push edx
lea edx, [esp + 0x2c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40275a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1424]
mov eax, 1
call fcn.00408681
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4028c0
Capabilities:
Get file size
Read file on windows
Set current directory

Disassembly:
sub esp, 0x40
mov eax, dword [0x4122b8]
push ebp
push esi
xor ebp, ebp
push 0x40a6a8
mov dword [esp + 0x48], eax
mov esi, ecx
mov dword [esp + 0xc], ebp
call fcn.00404a10
add esp, 4
push 0x104
add esi, 0x40
push esi
push ebp
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4029d2
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strrchr]
add esp, 8
cmp eax, ebp
je 0x4029d2
push esi
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x4029d2
push edi
mov edi, dword [esp + 0x50]
cmp edi, ebp
je 0x4029d1
mov eax, dword [esp + 0x58]
push ebx
push ebp
push 0x80
push 3
push ebp
push 1
push 0x80000000
push eax
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4029d0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov esi, dword [esp + 0x58]
mov dword [esi], eax
je 0x4029c5
push eax
call sub.MFC71.DLL_operator_new_1
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4029c5
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4029bc
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4029bc
mov ecx, dword [esi]
mov eax, ecx
shr ecx, 2
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], 1
push ebp
call sub.MFC71.DLL_operator_delete_1
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x10]
pop ebx
pop edi
push ebp
lea ecx, [esp + 0x14]
push 0x40a690
push ecx
call dword [sym.imp.MSVCR71.dll_sprintf]
lea edx, [esp + 0x1c]
push edx
call fcn.00404a10
mov ecx, dword [esp + 0x54]
add esp, 0x10
pop esi
mov eax, ebp
pop ebp
call fcn.00408681
add esp, 0x40
ret 0xc
Function at 0x402b10
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x24
mov eax, dword [0x4122b8]
push ebx
push esi
push 0x40a6d8
mov dword [esp + 0x2c], eax
mov esi, ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 0x413298
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea edx, [esp + 8]
lea esp, [esp]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x402b40
push edi
push 9
lea eax, [esp + 0x10]
push 0x412f20
push eax
call dword [sym.imp.MSVCR71.dll_strncat]
lea edi, [esp + 0x18]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402b65
mov edx, dword [esp + 0x34]
mov ecx, dword [0x40a6d4]
mov dword [edi], ecx
mov edi, dword [esi + 0x160]
mov al, dl
add al, 0x31
push ebp
lea ebp, [edi - 1]
mov byte [esp + 0x1e], al
mov eax, dword [esi + 0x15c]
cmp ebp, edx
mov ecx, eax
pop ebp
jne 0x402ba4
mov ecx, dword [esi + 0x154]
dec edi
imul edi, eax
sub ecx, edi
imul eax, edx
lea edi, [esp + 0xc]
push edi
mov edi, dword [esi + 0x150]
push ecx
add eax, edi
push eax
mov ecx, esi
call fcn.004026e0
test eax, eax
pop edi
mov eax, 1
jne 0x402bc9
mov eax, ebx
mov ecx, dword [esp + 0x28]
pop esi
pop ebx
call fcn.00408681
add esp, 0x24
ret 4

Function at 0x402bf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x408e39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::StringLength]
add esp, 4
push eax
push edi
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402c90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x408e39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, dword [esp + 0x20]
mov ecx, esi
mov dword [esp + 8], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov al, byte [esp + 0x24]
push 1
lea ecx, [esp + 0xb]
push ecx
mov ecx, esi
mov dword [esp + 0x1c], 0
mov byte [esp + 0xf], al
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea eax, [esp + 8]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4034f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x4122b8]
mov ecx, dword [0x40a748]
mov edx, dword [0x40a74c]
mov dword [esp + 0x358], eax
mov eax, dword [0x40a744]
mov dword [esp + 4], eax
mov al, byte [0x40a750]
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
mov byte [esp + 0x1c], al
xor eax, eax
mov dword [esp + 0x18], edx
mov ecx, 0x3d
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x118], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
push 0x104
lea ecx, [esp + 0x11c]
stosw word es:[edi], ax
push ecx
xor esi, esi
push esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4036b7
lea edx, [esp + 0x118]
push 0x5c
push edx
call dword [sym.imp.MSVCR71.dll_strrchr]
add esp, 8
test eax, eax
je 0x4036b7
lea edi, [esp + 0x118]
mov byte [eax], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4035a0
mov ax, word [0x40a740]
mov word [edi], ax
lea edi, [esp + 0x118]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4035c0
mov ecx, dword [0x40a730]
mov edx, dword [0x40a734]
mov eax, dword [0x40a738]
mov dword [edi], ecx
mov cl, byte [0x40a73c]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x11c]
push eax
mov byte [edi + 0xc], cl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4036cc
mov ebx, dword [sym.imp.MSVCR71.dll__stricmp]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x403620
test byte [esp + 0x220], 0x10
jne 0x403670
lea eax, [esp + 0x24c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403634
sub eax, edx
cmp eax, 0xc
jne 0x4036cc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x250]
push edx
call ebx
add esp, 8
test eax, eax
jle 0x403670
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x24c]
mov byte [esp + eax + 0x10], cl
inc eax
test cl, cl
jne 0x403660
lea eax, [esp + 0x220]
push eax
push esi
call edi
test eax, eax
jne 0x403620
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x403690
mov cl, byte [esp + eax + 0x10]
mov byte [eax + 0x412f20], cl
inc eax
test cl, cl
jne 0x403690
mov eax, 1
mov ecx, dword [esp + 0x364]
call fcn.00408681
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [esp + 0x364]
call fcn.00408681
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x364]
xor eax, eax
call fcn.00408681
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4039f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x408ee9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404c70
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x4122b8]
push edi
mov dword [esp + 0x114], eax
xor eax, eax
test esi, esi
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 4], 0x104
jne 0x404cc5
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x114]
call fcn.00408681
pop edi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push ebx
push esi
call fcn.00405fa0
add esp, 8
cmp ebx, 0x7fffffff
ja 0x404cb2
push 0x40a8c8
push ebx
push esi
call fcn.00404bf0
test eax, eax
jl 0x404cb2
lea edx, [esp + 8]
push edx
push ebx
push esi
call fcn.00404bf0
test eax, eax
jl 0x404cb2
push 0x40a8b8
push ebx
push esi
call fcn.00404bf0
test eax, eax
jl 0x404cb2
mov ecx, dword [esp + 0x114]
mov eax, 1
call fcn.00408681
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x404d90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40909e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x4122b8]
mov edx, ecx
push ebx
xor ebx, ebx
mov dword [edx], 0x40a8d0
mov dword [edx + 4], ebx
push esi
mov dword [esp + 0x118], eax
push edi
mov dword [esp + 0xc], edx
mov dword [edx + 0x10], ebx
mov dword [edx + 0x14], ebx
mov dword [edx + 0x18], ebx
mov byte [esp + 0x10], bl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x12c], ebx
mov dword [edx + 0x1c], ebx
mov ebx, 0x104
lea esi, [esp + 0x10]
stosb byte es:[edi], al
mov dword [edx + 8], 1
call fcn.00404c70
test eax, eax
je 0x404e1a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0xc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x11c]
call fcn.00408681
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x4090df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
push 0x40a7ae
lea ecx, [esi + 0x10]
mov dword [esp + 0xc], esi
mov dword [esi], 0x40a8d4
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call dword [fcn.0040a3a0]
push edi
push edi
push edi
push edi
lea ecx, [esi + 0x14]
mov dword [esp + 0x24], edi
call fcn.0040820e
lea ecx, [esi + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea ecx, [esi + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push edi
push edi
push 1
push edi
lea ecx, [esi + 0x38]
mov byte [esp + 0x24], 3
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
call fcn.0040820e
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x405480
Capabilities:
Get http content length

Disassembly:
push 0xffffffffffffffff
push 0x409179
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
mov ecx, dword [esi]
push edi
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
xor ebx, ebx
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
push 0x16
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], 4
mov dword [esp + 0x28], ebx
call edi
mov edx, dword [esp + 0x10]
inc edx
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004053e0
mov ebp, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40556d
mov edx, dword [esi]
push ebx
lea ecx, [esp + 0x14]
push ecx
push ebp
push 0x16
push edx
call edi
cmp eax, ebx
jne 0x405545
push 0x21e
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push 0x40aa50
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x6c], esp
push 0x40a940
mov dword [esp + 0x68], ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0x64], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404b40
add esp, 0x40
jmp 0x40556d
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
push ebx
lea ecx, [esp + 0x20]
push ecx
push edx
mov byte [eax + ebp], bl
mov eax, dword [esi]
push 0x20000005
push eax
call edi
test eax, eax
je 0x40556d
mov dword [esp + 0x18], 1
push ebp
call sub.MFC71.DLL_operator_delete_1
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 8