joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cff0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x450
push ebx
push ebp
mov ebp, dword [esp + 0x45c]
push esi
push edi
push ebp
mov esi, 1
call fcn.0040c9d0
add esp, 4
test eax, eax
je 0x40d1ee
mov edx, dword [esp + 0x468]
test edx, edx
je 0x40d1ee
cmp byte [edx], 0
je 0x40d1ee
mov ebx, dword [esp + 0x470]
test ebx, ebx
je 0x40d1ee
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x35d]
mov byte [esp + 0x35c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x155]
mov byte [esp + 0x154], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
push ebp
lea eax, [esp + 0x364]
push 0x104
push eax
call fcn.0040cf70
add esp, 0x10
test eax, eax
je 0x40d1ee
push 0x42b1bc
push ebp
lea ecx, [esp + 0x15c]
push 0x104
push ecx
call fcn.0040cf70
add esp, 0x10
test eax, eax
je 0x40d1ee
lea edx, [esp + 0x14]
lea eax, [esp + 0x35c]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov edi, dword [esp + 0x474]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x40d11b
test byte [esp + 0x14], 0x10
jne 0x40d0f0
push edi
lea ecx, [esp + 0x18]
push 0
push ecx
push ebp
call ebx
add esp, 0x10
mov esi, eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
je 0x40d108
test esi, esi
jne 0x40d0d9
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindClose]
test esi, esi
je 0x40d1ee
mov eax, dword [esp + 0x46c]
test eax, eax
je 0x40d1ee
lea edx, [esp + 0x14]
lea eax, [esp + 0x154]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x40d1ee
test byte [esp + 0x14], 0x10
je 0x40d1c7
cmp byte [esp + 0x40], 0x2e
je 0x40d1c7
push edi
lea ecx, [esp + 0x18]
push 1
push ecx
push ebp
call ebx
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d1c7
lea edx, [esp + 0x258]
push ebp
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [esp + 0x258]
push 0x104
push eax
call fcn.0040ce70
add esp, 8
lea ecx, [esp + 0x40]
lea edx, [esp + 0x258]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov eax, dword [esp + 0x46c]
mov ecx, dword [esp + 0x468]
push edi
push ebx
push eax
lea edx, [esp + 0x264]
push ecx
push edx
call fcn.0040cff0
add esp, 0x14
mov esi, eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
je 0x40d1e3
test esi, esi
jne 0x40d14a
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x450
ret
Function at 0x40d230
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x244
xor eax, eax
push ebp
mov ebp, dword [esp + 0x250]
mov ecx, ebp
push esi
mov esi, dword [esp + 0x250]
push edi
mov dword [ecx], eax
push esi
mov dword [ecx + 4], eax
call fcn.0040c9d0
add esp, 4
test eax, eax
jne 0x40d267
pop edi
pop esi
pop ebp
add esp, 0x244
ret
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0xc]
push esi
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0040ce70
add esp, 8
lea ecx, [esp + 0xc]
push 0x42b1bc
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea edx, [esp + 0x110]
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d2d0
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x244
ret
mov edi, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test byte [esp + 0x110], 0x10
je 0x40d2ef
cmp byte [esp + 0x13c], 0x2e
je 0x40d2f2
inc dword [ebp]
jmp 0x40d2f2
inc dword [ebp + 4]
lea ecx, [esp + 0x110]
push ecx
push esi
call edi
test eax, eax
jne 0x40d2d6
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x244
ret

Function at 0x40d320
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
xor esi, esi
push edi
test ebx, ebx
je 0x40d35e
cmp byte [ebx], 0
je 0x40d35e
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
call ebp
cmp edi, 0xffffffff
je 0x40d35e
and edi, 0xfffffffe
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
call ebp
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d36c
mov dword [eax], 0x57
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40faf0
Capabilities:
Initialize winsock library

Disassembly:
push 0x4324a4
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
jmp 0x40fb60
mov eax, dword [0x4324a0]
sub esp, 0x1c8
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
jne 0x40fc2e
lea eax, [esp + 0x44]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x40fbec
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov esi, eax
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push str.GatorAsyncWndClass
push esi
call dword [sym.imp.USER32.dll_GetClassInfoExA]
test eax, eax
jne 0x40fbe2
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x30
push edx
mov dword [esp + 0x20], 0x40fcf0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x40], str.GatorAsyncWndClass
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x40fbec
mov dword [0x4324a0], 1
mov byte [0x4324a8], bl
lea eax, [esp + 0xc]
push ebx
push eax
push str.GetHostByNameTimeout
push str.softwareQwertyuioQwertdyn
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x20], ebx
call fcn.0040afb0
add esp, 0x14
test eax, eax
je 0x40fc24
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [0x42b8d8], eax
jne 0x40fc2e
mov dword [0x42b8d8], 0x14
call fcn.0040fd10
test eax, eax
je 0x40fce0
cmp dword [0x42b8dc], 0xffffffff
jne 0x40fce0
mov edi, dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push ebp
push 0x108
push pe_nt_image_headers32
mov dword [0x42b8dc], ebx
call edi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
mov esi, eax
push ecx
push edx
push esi
push ebx
mov dword [esi], 0x108
push ebx
mov dword [esp + 0x28], 0x108
mov dword [esp + 0x24], ebx
call dword [0x4324b8]
mov ebp, dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp eax, 0x25b
jne 0x40fcb9
push esi
call ebp
mov eax, dword [esp + 0x14]
push eax
push pe_nt_image_headers32
call edi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
mov esi, eax
push ecx
push edx
push esi
push ebx
push ebx
mov dword [esi], 0x108
call dword [0x4324b8]
cmp eax, ebx
jne 0x40fccd
cmp dword [esp + 0x10], ebx
je 0x40fccd
mov dword [0x42b8dc], 1
push esi
call ebp
mov eax, dword [0x4324a0]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c8
ret
mov eax, dword [0x4324a0]
pop edi
pop esi
pop ebx
add esp, 0x1c8
ret
Function at 0x417790
Capabilities:
Get common file path

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], 0
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x13c]
xor esi, esi
stosw word es:[edi], ax
test ebp, ebp
stosb byte es:[edi], al
jne 0x4177e4
lea eax, [esp + 0x34]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
test eax, eax
je 0x4178c2
lea ecx, [esp + 0x34]
lea ebp, [esp + 0x34]
test ecx, ecx
je 0x4178c2
cmp byte [ebp], 0
je 0x4178c2
mov ebx, dword [esp + 0x140]
test ebx, ebx
je 0x4178c2
cmp byte [ebx], 0
je 0x4178c2
mov edi, dword [esp + 0x144]
test edi, edi
je 0x4178c2
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push ebp
call esi
mov edx, eax
push ebx
mov dword [esp + 0x14], edx
call esi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x148]
lea eax, [edx + eax + 0x10]
cmp ecx, eax
jle 0x4178b3
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, eax
mov eax, dword [0x4338bc]
cmp esi, eax
jne 0x41785c
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, eax
mov eax, dword [0x4338bc]
cmp esi, eax
je 0x41784b
push ebp
push edi
mov dword [0x4338bc], esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov ecx, dword [esp + 0x148]
push ecx
push edi
call fcn.0040ce70
add esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcatA]
push edi
call ebx
push esi
lea edx, [esp + 0x18]
push str._08X.tmp
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push edi
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x128
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret 0x10

Function at 0x418510
Capabilities:
Copy file

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
lea eax, [esp + 0x10]
push ebp
lea edi, [esi + 0x1574]
push eax
push str.AccumFile
push edi
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x24], ebp
call fcn.0040adb0
mov ecx, dword [esp + 0x24]
push ebp
push ecx
call fcn.0040ca30
mov edx, dword [esp + 0x2c]
push edx
call fcn.0041b272
add esp, 0x20
lea ebx, [esi + 0x1d74]
mov ecx, esi
push 1
push 0x104
push ebx
push 0x42dc24
call fcn.00418a10
test eax, eax
je 0x4185de
push ebx
push str.AccumFile
push edi
push reloc.WSOCK32.dll_bind
call fcn.0040b170
mov eax, dword [esi + 0x1e80]
push eax
push str.UrlSize
push edi
push reloc.WSOCK32.dll_bind
call fcn.0040b1f0
lea ecx, [esi + 0x1e88]
push ecx
push str.UrlTime
push edi
push reloc.WSOCK32.dll_bind
call fcn.0040b170
mov edi, dword [esp + 0x48]
push edi
call fcn.0040ca00
add esp, 0x34
test eax, eax
je 0x4185c8
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
push 0
mov ecx, esi
call fcn.004185f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x418a80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x114]
cmp eax, 0xfffffffe
jne 0x418abf
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea eax, [esp + 0xc]
cmp eax, ebx
je 0x418b72
cmp byte [eax], bl
je 0x418b72
mov edi, dword [esp + 0x118]
cmp edi, ebx
je 0x418b72
cmp byte [edi], bl
je 0x418b72
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push eax
push 0x4338c0
call esi
push 0x4338c0
call fcn.0040ce90
push ebx
push 0x4338c0
call fcn.0040cbf0
add esp, 0xc
test eax, eax
je 0x418b72
push 0x4338c0
push 0x4339c4
call esi
push 0x104
push 0x4339c4
call fcn.0040ce70
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
add esp, 8
push str.accum
push 0x4339c4
call esi
push 0x104
push 0x4339c4
call fcn.0040ce70
add esp, 8
push edi
push 0x4339c4
call esi
push ebx
push 0x4339c4
call fcn.0040cbf0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x104
ret
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x402aeb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43631d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x44c054]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x44c054]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
cmp ebx, esi
jne 0x402b35
xor eax, eax
jmp 0x402ca5
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x402b5e
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x402b5e
dec dword [edx]
mov edx, dword [edi + 0x20]
mov eax, ebx
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x402ca5
cmp dword [edi + 0x50], 0
je 0x402ca3
mov ecx, edi
call fcn.00403ad4
xor eax, eax
cmp dword [edi + 0x40], eax
jne 0x402b8f
push dword [edi + 0x50]
movsx eax, bl
push eax
call dword [sym.imp.MSVCR110.dll_fputc]
pop ecx
cmp eax, esi
pop ecx
cmovne esi, ebx
jmp 0x402ca3
push eax
push 8
lea ecx, [esp + 0x28]
mov byte [esp + 0x1b], bl
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], eax
mov byte [esp + 0x28], al
call fcn.0040a328
and dword [esp + 0x48], 0
cmp dword [esp + 0x34], 0x10
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x24]
cmovae edx, dword [esp + 0x24]
lea ecx, [esp + 0x24]
cmovae ecx, dword [esp + 0x24]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
lea eax, [edi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::out_int___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x402c9a
cmp eax, 1
jg 0x402c7f
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub ebx, eax
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp + 8]
je 0x402c49
push dword [edi + 0x50]
cmp ecx, 0x10
push dword [esp + 0x18]
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp ecx, eax
jne 0x402c9a
jmp 0x402c4d
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x13]
mov byte [edi + 0x45], 1
cmp dword [esp + 0x1c], eax
jne 0x402c7b
test ecx, ecx
jne 0x402bb4
cmp dword [esp + 0x30], 0x20
jae 0x402c9a
push ecx
push 8
lea ecx, [esp + 0x28]
call fcn.0040a328
jmp 0x402bb4
mov esi, ebx
jmp 0x402c9a
cmp eax, 3
jne 0x402c9a
movsx eax, byte [esp + 0x13]
push dword [edi + 0x50]
push eax
call dword [sym.imp.MSVCR110.dll_fputc]
pop ecx
cmp eax, esi
pop ecx
cmovne esi, ebx
lea ecx, [esp + 0x20]
call fcn.004023b1
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0041d508
mov esp, ebp
pop ebp
ret 4
Function at 0x408691
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43631d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x44c054]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x44c054]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, 0xffff
cmp si, bx
jne 0x4086de
xor eax, eax
jmp 0x408868
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40870a
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x40870a
dec dword [edx]
mov edx, dword [edi + 0x20]
mov ax, bx
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x408868
cmp dword [edi + 0x50], 0
je 0x408865
mov ecx, edi
call fcn.004094cb
xor ecx, ecx
cmp dword [edi + 0x40], ecx
jne 0x40873f
push dword [edi + 0x50]
push ebx
call dword [sym.imp.MSVCR110.dll_fputwc]
pop ecx
pop ecx
cmp ax, si
je 0x408865
movzx esi, bx
jmp 0x408865
movzx eax, bx
push ecx
mov dword [esp + 0x34], ecx
mov byte [esp + 0x24], cl
push 8
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], 0xf
call fcn.0040a328
and dword [esp + 0x48], 0
cmp dword [esp + 0x34], 0x10
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x24]
cmovae edx, dword [esp + 0x24]
lea ecx, [esp + 0x24]
cmovae ecx, dword [esp + 0x24]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x22]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [edi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_wchar_t__char__int_::out_int___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
test eax, eax
js 0x40885c
cmp eax, 1
jg 0x40883d
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub ebx, eax
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp + 8]
je 0x408800
push dword [edi + 0x50]
cmp ecx, 0x10
push dword [esp + 0x18]
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp ecx, eax
jne 0x408835
jmp 0x408804
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
mov byte [edi + 0x46], 1
cmp dword [esp + 0x1c], eax
jne 0x408832
test ecx, ecx
jne 0x408767
cmp dword [esp + 0x30], 0x20
jae 0x408838
push ecx
push 8
lea ecx, [esp + 0x28]
call fcn.0040a328
jmp 0x408767
movzx esi, bx
movzx esi, si
movzx esi, si
jmp 0x408859
cmp eax, 3
jne 0x40885c
push dword [edi + 0x50]
push dword [esp + 0x14]
call dword [sym.imp.MSVCR110.dll_fputwc]
pop ecx
pop ecx
cmp ax, si
je 0x408859
movzx esi, bx
movzx esi, si
lea ecx, [esp + 0x20]
call fcn.004023b1
mov ax, si
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0041d508
mov esp, ebp
pop ebp
ret 4
Function at 0x40a9a5
Capabilities:
Create http request
Parse url

Disassembly:
push 0x64
mov eax, 0x43648c
call fcn.00433ea9
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
push 0x3c
lea eax, [esi + 0xc]
push ecx
push eax
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
call dword [sym.imp.MSVCR110.dll_memset]
or ecx, 0xffffffff
mov dword [esi + 0x14], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x44], ecx
lea eax, [esi + 0xc]
mov ecx, 0xffff
mov dword [eax], 0x3c
mov word [esi + 0x24], cx
mov ecx, dword [edi + 0x10]
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40a9ff
mov edi, dword [edi]
push eax
push 0
push ecx
push edi
call dword [sym.imp.wininet.dll_InternetCrackUrlW]
test eax, eax
jne 0x40aa15
xor al, al
jmp 0x40aac9
push dword [esi + 0x1c]
lea ecx, [ebp - 0x28]
call fcn.0040a328
xor edi, edi
mov dword [ebp - 4], edi
push dword [esi + 0x20]
lea ecx, [ebp - 0x58]
push edi
push ecx
mov ecx, eax
call fcn.0040a328
push eax
lea ecx, [esi + 0x48]
call fcn.0040a328
push edi
push 1
lea ecx, [ebp - 0x58]
call fcn.0040a328
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.0040a328
push dword [esi + 0x38]
lea ecx, [ebp - 0x70]
call fcn.0040a328
mov dword [ebp - 4], 1
push dword [esi + 0x3c]
lea ecx, [ebp - 0x40]
push edi
push ecx
mov ecx, eax
call fcn.0040a328
push eax
lea ecx, [esi + 0x60]
call fcn.0040a328
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.0040a328
push edi
push 1
lea ecx, [ebp - 0x70]
call fcn.0040a328
cmp dword [ebx + 0x14], 8
jb 0x40aa9f
mov ebx, dword [ebx]
push edi
push edi
push edi
push edi
push ebx
call dword [sym.imp.wininet.dll_InternetOpenW]
mov dword [esi], eax
test eax, eax
je 0x40aa0e
xor ecx, ecx
mov edx, 0x4186f1
cmp ecx, edx
je 0x40aac7
push edx
push eax
call dword [sym.imp.wininet.dll_InternetSetStatusCallbackW]
mov al, 1
call fcn.00433e58
ret 0x10
Function at 0x40abd5
Capabilities:
Read data from internet
Receive data

Disassembly:
push 0x20
mov eax, 0x436403
call fcn.00433edf
mov dword [ebp - 0x20], ecx
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], esi
push dword [eax + 8]
call dword [sym.imp.wininet.dll_InternetQueryDataAvailable]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x40acc7
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.0040a328
pop ecx
mov ecx, dword [ebp - 0x14]
inc ecx
push ecx
mov ebx, eax
push esi
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.MSVCR110.dll_memset]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push ebx
push dword [eax + 8]
call dword [sym.imp.wininet.dll_InternetReadFile]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x40ac53
mov dword [ebp - 0x14], esi
jmp 0x40ac65
cmp dword [ebp - 0x14], 0
jbe 0x40ac65
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
push ebx
call fcn.0040a328
or dword [ebp - 4], 0xffffffff
jmp 0x40acb0
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
cmp dword [ebp - 0x14], 0
pop ecx
mov dword [ebp - 0x18], esi
ja 0x40abec
test edi, edi
setne al
call fcn.00433e44
ret 4
Function at 0x40c14d
Capabilities:
Get common file path

Disassembly:
push 0x874
mov eax, 0x4369b0
call fcn.00433ea9
mov edi, edx
mov esi, ecx
xor ebx, ebx
push 0x802
lea eax, [ebp - 0x81c]
push ebx
push eax
mov dword [ebp - 0x880], ebx
call dword [sym.imp.MSVCR110.dll_memset]
add esp, 0xc
lea eax, [ebp - 0x81c]
push eax
push ebx
push ebx
push 0x801a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40c2b2
mov dword [ebp - 0x820], 7
mov dword [ebp - 0x824], ebx
mov word [ebp - 0x834], ax
cmp word [ebp - 0x81c], ax
je 0x40c1c9
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.MSVCR110.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x81c]
push eax
lea ecx, [ebp - 0x834]
call fcn.0040a328
mov edx, edi
lea ecx, [ebp - 0x84c]
mov dword [ebp - 4], ebx
call fcn.004069bf
push eax
lea ecx, [ebp - 0x87c]
mov byte [ebp - 4], 1
call fcn.0040a328
mov byte [ebp - 4], 2
mov edx, eax
lea ecx, [ebp - 0x864]
mov dword [esp], 0x43fd8c
call fcn.0040a328
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x834]
mov byte [ebp - 4], 3
call fcn.0040a328
push ebx
push 1
lea ecx, [ebp - 0x864]
call fcn.0040a328
push ebx
push 1
lea ecx, [ebp - 0x87c]
call fcn.0040a328
push ebx
push 1
lea ecx, [ebp - 0x84c]
mov byte [ebp - 4], bl
call fcn.0040a328
lea edx, [ebp - 0x834]
lea ecx, [ebp - 0x84c]
call fcn.00407dbd
mov ecx, eax
call fcn.004074d4
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x84c]
mov bl, al
call fcn.0040a328
test bl, bl
je 0x40c2a0
lea edx, [ebp - 0x834]
mov ecx, esi
call fcn.004068f7
push edi
push 1
lea ecx, [ebp - 0x834]
call fcn.0040a328
jmp 0x40c2be
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x834]
call fcn.0040a328
push 0x43f9ae
mov ecx, esi
call fcn.0040a328
mov eax, esi
call fcn.00433e58
ret

Function at 0x4128d9
Capabilities:
Get common file path

Disassembly:
push 0x264
mov eax, 0x4375ca
call fcn.00433ea9
mov edi, ecx
xor esi, esi
push 0x20a
lea eax, [ebp - 0x224]
push esi
push eax
mov dword [ebp - 0x258], esi
call dword [sym.imp.MSVCR110.dll_memset]
add esp, 0xc
call fcn.0040a328
test al, al
je 0x41299a
push str.IE_is_protected_mode_
lea ecx, [ebp - 0x23c]
call fcn.0040a328
push str.LogSession
lea ecx, [ebp - 0x254]
mov dword [ebp - 4], esi
call fcn.0040a328
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 1
call fcn.0040c42d
push 0x43f9ae
lea ecx, [ebp - 0x270]
mov esi, eax
call fcn.0040a328
push eax
mov byte [ebp - 4], 2
mov edx, dword [esi]
lea eax, [ebp - 0x23c]
push eax
mov ecx, esi
call dword [edx + 0x40]
lea ecx, [ebp - 0x270]
call fcn.004023b1
lea ecx, [ebp - 0x254]
call fcn.004023b1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.004023b1
mov ecx, edi
call fcn.0041283a
jmp 0x4129c7
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push 0x801a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, 0x43fc28
test eax, eax
lea ecx, [ebp - 0x224]
cmovne ecx, edx
push ecx
mov ecx, edi
call fcn.0040a328
mov eax, edi
call fcn.00433e58
ret