joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407828
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x38]
lea edi, [ebp - 0x2c]
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], 0x40001
mov dword [ebp - 0x28], 0x40c8b0
mov dword [ebp - 0x24], 0x40c8b0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x40c8a0
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x30], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edx
push edx
test eax, eax
je 0x407885
xor eax, eax
jmp 0x4078b2
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
jne 0x4078b2
mov dword [esp + 8], edi
mov dword [esp + 4], 0x80000007
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
sub esp, 0xc
test eax, eax
jne 0x407881
call ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x4078ea
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [0x43b3c0], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], 0x43b3c0
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
xor edx, edx
sub esp, 0x28
test eax, eax
je 0x407966
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push eax
leave
mov eax, edx
ret 4

Function at 0x40796c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x3c
mov dword [eax + 0x24], 0
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x407be5
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
inc eax
push edx
je 0x407c13
mov eax, ebx
mov dword [esp], esi
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x407c1e
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp], ebx
call fcn.00407be5
push ecx
cmp eax, 0xffffffff
jne 0x407c3f
xor edi, edi
jmp 0x407c7c
mov esi, eax
mov dword [esp], ebx
test edi, 1
je 0x407c74
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edx
test eax, eax
jne 0x407c6d
and edi, 4
jne 0x407c3b
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
jmp 0x407c7c
mov edi, 1
jmp 0x407c7c
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x407c52
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x407c88
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
cmp eax, 0xffffffff
jne 0x407ca3
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc

Function at 0x407ce0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, 0x65
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
dec esi
je 0x407d3f
mov edx, dword [0x40c684]
mov eax, dword [0x40c680]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
div ecx
mov dword [esp + 8], 0
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
add word [ebp - 0xc], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
sub esp, 0x10
test eax, eax
je 0x407cf0
jmp 0x407d46
mov word [ebx], 0
xor ebx, ebx
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8

Function at 0x407d51
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x407d90
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x407d97
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x407dd6
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc
Function at 0x40800b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x10], 0x800
test eax, eax
je 0x408029
mov eax, 0x100
or eax, 0x20019
lea edx, [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00407f47
sub esp, 0x10
test eax, eax
je 0x408059
mov word [ebx], 0
jmp 0x4080ae
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x14]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov word [ebx + 0x7fe], 0
test esi, esi
jne 0x408052
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
ja 0x408052
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x14
Function at 0x408617
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov dword [0x439bc0], 0x55004e
mov dword [0x439bc4], 0x4c
test ebx, ebx
jne 0x408670
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x4393c0
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
je 0x408865
cmp eax, 0x400
jle 0x4086c1
jmp 0x408865
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00407c88
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x439bc0
mov dword [esp], ebx
call esi
sub esp, 0xc
test eax, eax
je 0x408865
cmp eax, 0x400
jle 0x408641
jmp 0x408865
mov dword [esp + 0xc], 0x4393c0
mov dword [esp + 8], 0x439bc0
mov dword [esp + 4], str._ls_ls_r_n
mov dword [esp], 0x438fc0
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x43ca60]
mov eax, dword [eax + 0x128]
mov dword [esp], 0x4393c0
mov dword [esp + 4], eax
call fcn.004082f5
push esi
push esi
mov dword [esp + 8], 4
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x4393c0
call fcn.00407c88
sub esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
je 0x408865
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [ebp - 0x1c]
push ecx
push ecx
add eax, esi
mov dword [ebp - 0x24], eax
add eax, 0xa
mov dword [esp + 4], eax
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
push ebx
mov ebx, eax
test eax, eax
je 0x40885b
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00407d51
sub esp, 0xc
test eax, eax
je 0x40885b
mov dword [esp + 4], str._Rename__r_n
mov dword [esp], ebx
call fcn.00407b5d
lea ecx, [ebx + esi]
push edx
push edx
test eax, eax
jne 0x4087bb
mov dword [esp + 4], str._Rename__r_n
add esi, 0xa
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, esi
push eax
push eax
jmp 0x4087fb
add eax, 0xa
mov dword [esp + 4], 0x40c6b3
mov dword [esp], eax
mov dword [ebp - 0x28], ecx
call fcn.00407b5d
mov edx, esi
push ecx
mov dword [ebp - 0x20], eax
push ecx
test eax, eax
je 0x4087fb
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
add edx, ebx
cmp dword [ebp - 0x20], ecx
jae 0x4087f3
dec ecx
mov al, byte [ecx + 1]
dec edx
mov byte [edx + 1], al
jmp 0x4087e4
mov eax, dword [ebp - 0x20]
sub eax, ebx
lea edx, [eax + 1]
mov eax, dword [ebp - 0x1c]
add edx, ebx
mov dword [esp + 4], 0x438fc0
mov dword [esp], edx
mov dword [esp + 8], eax
call fcn.00407bc8
add esi, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00407d97
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4088ea
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], 0x43a3c0
mov dword [esp + 4], eax
call fcn.0040819c
push ebx
push ebx
mov dword [esp], 0x43a3c0
call fcn.00407ac9
push edx
test eax, eax
jne 0x40891b
xor eax, eax
jmp 0x408997
mov dword [esp], eax
mov ebx, eax
call fcn.00408218
push ecx
test byte [0x43cac4], 0x80
je 0x40893d
mov ax, word [ebx]
test ax, ax
je 0x408917
cmp ax, 0x5c
je 0x408917
sub ebx, 0x43a3c0
sar ebx, 1
mov dword [esp], 0x43a3c0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
mov dword [esp], 0x43a3c0
cmp ebx, eax
jge 0x40897c
call fcn.004088b2
push edx
test eax, eax
je 0x40896d
test byte [eax], 0x10
je 0x408917
mov dword [esp], 0x43a3c0
call fcn.00407a56
push eax
jmp 0x408945
call fcn.004081d0
push eax
mov dword [esp], 0x43a3c0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
push edx
setne al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x408c23
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x244]
sub esp, 0x254
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x408c61
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x408c68
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, edx
add eax, eax
mov dword [esp + 4], str._s_S.dll
add edx, 0x40c688
add eax, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4

Function at 0x408e34
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x43b424], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x408e71
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x408e5c
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x408e4e
mov dword [ecx*4 + 0x43b420], eax
inc ecx
cmp ecx, 0x100
jne 0x408e47
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x408e94
inc edx
mov cl, byte [edx - 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x43b420]
jmp 0x408e7b
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x403ed0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], 0x80ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_CreateDialogParamW]
push 0
push 0x4085b0
push 0
push 0x71
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x403f3e
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], 0x45594c
call fcn.004344aa
push 0x457140
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], vtable.std::runtime_error.0
call fcn.0043943b
push 0x408d10
call fcn.00404030
add esp, 4
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [ebp + 8], 2
je 0x403ff0
test byte [0x45bc68], 1
jne 0x403f6f
or dword [0x45bc68], 1
push 0
push 0x4010c0
push 0
push 0x67
push esi
mov dword [0x45bc64], 1
call ebx
push 0
push 0x404660
push 0
push 0x78
push esi
mov edi, eax
call ebx
mov esi, eax
test edi, edi
je 0x403ffb
test esi, esi
je 0x403ffb
push 0x401700
call fcn.00404030
add esp, 4
push 0
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp ebx, 2
je 0x403ff0
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00402550
push str.http:__www.dobreprogramy.pl_Stats.ashx_step4
call fcn.00402fb0
push 0
mov edi, esi
call fcn.00404030
add esp, 4
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], 0x45594c
call fcn.004344aa
push 0x457140
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x14], vtable.std::runtime_error.0
call fcn.0043943b
int3

Function at 0x4041c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x459394]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov byte [esi + 4], cl
mov ecx, dword [0x45b620]
mov dword [esi + 0x420], ecx
inc ecx
mov dword [esi], vtable.CFileWriter.0
mov dword [esi + 0x418], 0
mov word [esi + 0x41c], 0
mov dword [0x45b620], ecx
test eax, eax
je 0x40421b
push 0x104
push eax
lea edx, [esi + 6]
push edx
call fcn.00435586
add esp, 0xc
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea edi, [esi + 0x20e]
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push edi
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
pop edi
call fcn.00434402
mov esp, ebp
pop ebp
ret 4
Function at 0x404260
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x418]
mov dword [esi], vtable.CFileWriter.0
test eax, eax
je 0x404287
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 0x418], 0
cmp byte [esi + 4], 0
je 0x4042a4
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea eax, [esi + 0x20e]
push eax
call edi
lea ecx, [esi + 6]
push ecx
call edi
pop edi
test byte [ebp + 8], 1
mov dword [esi], vtable.IWriter.0
je 0x4042b9
push esi
call fcn.004345e7
add esp, 4
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x4042d0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44aef8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x459394]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x459394]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x418]
xor ebx, ebx
cmp eax, ebx
je 0x404322
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 0x418], ebx
push 3
push ebx
push ebx
lea eax, [esi + 6]
push eax
add esi, 0x20e
push esi
call dword [sym.imp.KERNEL32.DLL_MoveFileWithProgressW]
test eax, eax
jne 0x40438a
lea ecx, [esp + 0x10]
call fcn.00434411
mov dword [esp + 0x48], ebx
mov edi, 0x20
mov eax, 0x4559a8
lea esi, [esp + 0x1c]
mov dword [esp + 0x10], vtable.CFileWriter::CFileWriteException.0
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00402070
push 0x457178
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x50], 0xffffffff
call fcn.0043943b
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.00434402
mov esp, ebp
pop ebp
ret
Function at 0x404430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44aec0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x459394]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x459394]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x41d], bl
je 0x404499
push 0x5c
push str.FileWriter.cpp
push str._m_invalid
call fcn.00434f21
add esp, 0xc
cmp byte [esi + 0x41d], bl
je 0x404499
xor eax, eax
jmp 0x40459f
cmp dword [esi + 0x418], ebx
jne 0x404525
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [esi + 0x20e]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi + 0x418], eax
cmp eax, 0xffffffff
jne 0x40451e
lea ecx, [esp + 0x18]
call fcn.00434411
mov dword [esp + 0x78], ebx
mov edi, 0x20
mov eax, 0x4559a8
lea esi, [esp + 0x24]
mov dword [esp + 0x18], vtable.CFileWriter::CFileWriteException.0
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00402070
push 0x457178
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x80], 0xffffffff
call fcn.0043943b
mov byte [esi + 0x41c], 1
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x418]
push ebx
lea edx, [esp + 0x18]
push edx
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x40459b
lea ecx, [esp + 0x40]
call fcn.00434411
mov dword [esp + 0x78], 1
mov edi, 0x20
mov eax, 0x4559a8
lea esi, [esp + 0x4c]
mov dword [esp + 0x40], vtable.CFileWriter::CFileWriteException.0
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.00402070
push 0x457178
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x80], 0xffffffff
call fcn.0043943b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00434402
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4049c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push str.shell32
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x404a32
push str.SHGetKnownFolderPath
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x404a25
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x455ab8
mov dword [ebp - 4], 0
call eax
test eax, eax
js 0x404a25
mov edx, dword [ebp - 4]
push 0x104
push edx
add edi, 0x208
push edi
call fcn.00435586
mov eax, dword [ebp - 4]
add esp, 0xc
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
add edi, 0x208
push edi
push 0
push 0
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404a50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ae80
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x459394]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push esi
push 0x104
mov edi, ecx
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov dword [ebp - 0x4c], eax
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404aa3
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x2c]
call fcn.004032c0
push 1
mov eax, 0x455b1c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00404c50
xor ecx, ecx
push ecx
push edi
or eax, 0xffffffff
lea edi, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
call fcn.004031c0
mov edx, edi
push 0
push edx
or eax, 0xffffffff
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00404ba0
mov edi, 8
cmp dword [ebp - 0x34], edi
jb 0x404b1e
mov eax, dword [ebp - 0x48]
push eax
call fcn.004345e7
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x404b29
lea eax, [ebp - 0x2c]
push 0x104
push eax
push esi
call fcn.00435586
add esp, 0xc
cmp dword [ebp - 0x18], edi
jb 0x404b49
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004345e7
add esp, 4
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00434402
mov esp, ebp
pop ebp
ret
Function at 0x408790
Capabilities:
Get common file path
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44affe
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x459394]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1388
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
push 0x80
push esi
call edi
push str.Przygotowanie_pobierania...
push 0x3e8
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0x3ee
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 1
push 0x40a
push eax
call edi
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push 0x45b630
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
push 0x424
call fcn.00434643
add esp, 4
test eax, eax
je 0x408856
push 0x45b630
mov cl, 1
mov esi, eax
call fcn.004041c0
jmp 0x408858
xor eax, eax
test byte [0x45be18], 1
mov dword [0x45b628], eax
jne 0x40888d
or dword [0x45be18], 1
mov dword [ebp - 4], 0
call fcn.004025c0
push 0x44b0b0
call fcn.00434b54
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [0x45b628]
push 0
push 0x45bdf4
mov ecx, str.http:__www.dobreprogramy.pl_GetXml.ashx_id13060
call fcn.00402870
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00434402
mov esp, ebp
pop ebp
ret

Function at 0x408e70
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x459394]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x408ec0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x408eba
shr eax, 8
cmp al, 2
jne 0x408eba
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434402
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.00434402
mov esp, ebp
pop ebp
ret

Function at 0x416d40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x416d73
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret