joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423d67
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jge 0x423d7d
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x423d89
or edi, 1
push 1
call esi
test ax, ax
jge 0x423d95
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x423da1
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x423dad
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x42591e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x425943
cmp ebx, dword [esi + 0x54]
je 0x425943
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x54]
cmp ebx, eax
je 0x425a05
push edi
test eax, eax
je 0x425996
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x54]
mov ecx, esi
call fcn.00425453
mov dword [esi + 0x54], edi
test ebx, ebx
je 0x425a04
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x425a04
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x425a04
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x425a04
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x54], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x54]
mov ecx, esi
call fcn.00425453
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x425c02
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xd0]
mov ecx, edi
xor ebx, ebx
call fcn.00427507
test eax, eax
jle 0x425c51
push ebx
mov ecx, edi
mov byte [ebp - 1], 0
call fcn.00428935
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x425cb2
mov ecx, edi
inc ebx
call fcn.00427507
cmp ebx, eax
jl 0x425c20
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x425d0b
sub eax, 4
je 0x425cb6
dec eax
dec eax
jne 0x425d02
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.0044f9e4
pop ecx
mov ecx, dword [esi + 0x50]
push reloc.WS2_32.dll_ioctlsocket
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x424eda
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x425d02
mov eax, dword [esi]
mov ecx, esi
call dword [eax + pe_nt_image_headers32]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x425d04
cmp dword [esi + 0x54], 0
je 0x425d02
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.00423d67
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x425d02
cmp dword [esi + 0x54], 0
je 0x425d5a
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x425d5a
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x425d5a
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.0044cea1
pop ecx
pop ecx
test eax, eax
je 0x425d5a
mov ecx, dword [esi + 0x54]
call fcn.00437903
test al, al
jne 0x425d02
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge al
movzx eax, al
push eax
mov ecx, esi
call fcn.00425ab6
jmp 0x425cb2
Function at 0x42a4ae
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x487ba4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x42a51f
cmp dword [esi + 0x10], ebx
je 0x42a51f
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.00452110
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x42a51f
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1b8
call fcn.00428ae2
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00425453
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c18b
leave
ret 0x10
Function at 0x42ff73
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x42ff7e
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x430039
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x472f50]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x472f50]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x472f50]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x472f50]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x472f50]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x472f50]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x472f50]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x472f50]
inc edx
sub edi, 8
dec esi
jne 0x42ff9e
pop ebx
test edi, edi
je 0x430052
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x472f50]
inc edx
dec edi
jne 0x43003d
pop edi
not eax
pop esi
ret

Function at 0x4304e9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x43051d
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x430518
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x430545
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x43052e
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00451730
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x4312e2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x487ba4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x43138c
movzx ecx, word [esi]
test cx, cx
je 0x43138c
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x431320
cmp cx, 0x5c
jne 0x431322
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x431314
cmp eax, esi
je 0x431360
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0044f032
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004312e2
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0045205d
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0045202f
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c18b
leave
ret
Function at 0x4328bd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x432938
cmp dword [esi + 4], 0xffffffff
jne 0x432938
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x479d68
push edi
call fcn.0045202f
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x43290a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x43290a
mov eax, 0x2000000
jmp 0x43293d
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004302ff
add esp, 0x10
test eax, eax
jne 0x432928
mov eax, dword [ebp + 0x10]
jmp 0x43293d
push eax
call fcn.004324b9
mov dword [esi], eax
mov eax, dword [0x489fc8]
pop ecx
jmp 0x43293d
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x438404
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
sub esp, 0x2b4
lea ebp, [esp - 4]
mov eax, dword [0x487ba4]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
push 0xc
mov eax, 0x46aab6
call fcn.00451557
mov edi, dword [ebp + 0x2c0]
mov ebx, ecx
call fcn.004379ed
call fcn.00423f2f
push eax
lea ecx, [ebp + 0x230]
call fcn.00428d75
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00423f35
mov ecx, eax
call fcn.00428a8b
test al, al
je 0x438566
push edi
lea ecx, [ebp + 0x230]
call fcn.00428b1e
push esi
push 0x80
push 3
push esi
push 1
push connect
lea ecx, [ebp + 0x230]
call fcn.00428ab6
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
push esi
cmp eax, 0xffffffff
jne 0x4384da
push str.Error_opening_file
mov ecx, ebx
call fcn.00437bc3
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x230]
call fcn.00428966
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2b4]
xor ecx, ebp
call fcn.0044c18b
add ebp, 0x2b8
leave
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
jne 0x4384ef
push esi
push str.File_is_empty
jmp 0x43849b
cmp edi, 0x400000
jbe 0x4384ff
push esi
push 0x4739ac
jmp 0x43849b
push edi
mov dword [ebp - 0x14], esi
call fcn.0044bd5e
pop ecx
push esi
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x438545
push dword [ebp - 0x10]
call fcn.0044c7ac
pop ecx
mov ecx, ebx
call fcn.004379ed
push esi
push str.Could_not_read_file
jmp 0x43849b
push dword [ebp + 0x2c4]
mov ecx, ebx
push edi
push dword [ebp - 0x10]
call fcn.004382b3
push dword [ebp - 0x10]
mov bl, al
call fcn.0044c7ac
pop ecx
jmp 0x4384a4
call fcn.00423f35
push eax
lea ecx, [ebp + 0x230]
call fcn.00428b04
call fcn.00423f3b
test al, al
je 0x438587
call fcn.00423f41
jmp 0x43859e
push 2
push esi
lea ecx, [ebp + 0x230]
call fcn.00428ab6
push eax
call fcn.00432c9c
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x4385b0
push esi
push str.Error_opening_zip_file
jmp 0x43849b
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push edi
push dword [ebp - 0x10]
call fcn.0043139a
add esp, 0x14
test eax, eax
je 0x4385d5
push esi
push str.Could_not_find_ziped_file
jmp 0x43849b
mov eax, dword [ebp + 0x22c]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x4384e7
cmp eax, 0x400000
ja 0x4384f7
push eax
call fcn.0044bd5e
push 3
push dword [ebp - 0x14]
mov edi, eax
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.00432cf9
add esp, 0x18
cmp eax, esi
je 0x43863c
cmp eax, 0x600
je 0x43863c
push edi
call fcn.0044c7ac
pop ecx
call fcn.00423f3b
test al, al
jne 0x438631
push dword [ebp - 0x10]
call fcn.00432d33
pop ecx
push esi
push str.Could_not_unzip_file
jmp 0x43849b
call fcn.00423f3b
test al, al
jne 0x43864e
push dword [ebp - 0x10]
call fcn.00432d33
pop ecx
push dword [ebp + 0x2c4]
mov ecx, ebx
push dword [ebp - 0x14]
push edi
call fcn.004382b3
push edi
jmp 0x438559
Function at 0x441d78
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x441d9d
cmp eax, edi
jge 0x441d95
mov eax, esi
call fcn.0044172c
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x441dbf
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x441da4
cmp ecx, 4
jge 0x441dde
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x441dcc
xor eax, eax
jmp 0x441dd4
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x441dc2
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x441e10
mov eax, str.zlib_corrupt
call fcn.0043f349
jmp 0x441e4b
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x441e20
mov eax, str.read_past_buffer
jmp 0x441e09
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x441e35
mov ecx, edi
call fcn.00441757
test eax, eax
je 0x441e4b
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00451730
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x44c18b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x487ba4]
jne 0x44c195
repz ret
jmp fcn.00454127
Function at 0x463b7f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004543ae
and dword [ebp - 4], 0
cmp dword [0x48ac38], 0
mov ebx, eax
jne 0x463c30
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x463ce1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x463ce1
push eax
call fcn.0045433c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x48ac38], eax
call esi
push eax
call fcn.0045433c
mov dword [esp], 0x47980c
push edi
mov dword [0x48ac3c], eax
call esi
push eax
call fcn.0045433c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48ac40], eax
call esi
push eax
call fcn.0045433c
pop ecx
mov dword [0x48ac48], eax
test eax, eax
je 0x463c30
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045433c
pop ecx
mov dword [0x48ac44], eax
mov eax, dword [0x48ac44]
cmp eax, ebx
je 0x463c88
cmp dword [0x48ac48], ebx
je 0x463c88
push eax
call fcn.004543b7
push dword [0x48ac48]
mov esi, eax
call fcn.004543b7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x463c88
test edi, edi
je 0x463c88
call esi
test eax, eax
je 0x463c7f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x463c7f
test byte [ebp - 0xc], 1
jne 0x463c88
or dword [ebp + 0x10], 0x200000
jmp 0x463cc1
mov eax, dword [0x48ac3c]
cmp eax, ebx
je 0x463cc1
push eax
call fcn.004543b7
pop ecx
test eax, eax
je 0x463cc1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x463cc1
mov eax, dword [0x48ac40]
cmp eax, ebx
je 0x463cc1
push eax
call fcn.004543b7
pop ecx
test eax, eax
je 0x463cc1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48ac38]
call fcn.004543b7
pop ecx
test eax, eax
je 0x463ce1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x463ce3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop ebp
ret

Function at 0x401cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebp
ret

Function at 0x40bef2
Capabilities:
Encode data using xor

Disassembly:
add esp, 0x10
mov esp, ebp
pop ebp
jmp loc.00886614
Function at 0x402c30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x417060]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
push 0x41510c
mov ecx, dword [ebp - 0x218]
call fcn.00405100
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x218]
call fcn.00402ce0
movzx ecx, al
test ecx, ecx
je 0x402c9d
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x402c9d
lea eax, [ebp - 0x210]
push eax
call fcn.00405070
add esp, 4
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004074a2
mov esp, ebp
pop ebp
ret

Function at 0x404b40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x417060]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004086b0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x414da4
call fcn.00404a20
add esp, 8
test eax, eax
jne 0x404b96
jmp 0x404c8a
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.004086b0
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
call fcn.00404ae0
add esp, 4
lea eax, [ebp - 0x218]
push eax
push 0x104
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x420]
push edx
push 0x414dc8
push 0x414dd8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov ecx, dword [ebp - 0x424]
add ecx, 2
mov dword [ebp - 0x428], ecx
mov edx, dword [ebp - 0x424]
mov ax, word [edx]
mov word [ebp - 0x42a], ax
add dword [ebp - 0x424], 2
cmp word [ebp - 0x42a], 0
jne 0x404c06
mov ecx, dword [ebp - 0x424]
sub ecx, dword [ebp - 0x428]
sar ecx, 1
mov dword [ebp - 0x430], ecx
mov edx, dword [ebp - 0x430]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2 - 2]
cmp edx, 0x5c
je 0x404c82
cmp dword [ebp - 8], 0x103
jae 0x404c7b
mov eax, 0x5c
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov word [edx + ecx*2], ax
xor eax, eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov word [edx + ecx*2 + 2], ax
jmp 0x404c82
mov dword [ebp - 4], 0
xor eax, eax
jne 0x404b5a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004074a2
mov esp, ebp
pop ebp
ret
Function at 0x404e70
Capabilities:
Delete file
Download url
Read file on windows
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x416188
push 0x40a5a0
mov eax, dword fs:[0]
push eax
add esp, 0xfffffdc4
mov eax, dword [0x417060]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
jne 0x404ebb
jmp 0x405042
xor eax, eax
mov word [ebp - 0x228], ax
push 0x206
push 0
lea ecx, [ebp - 0x226]
push ecx
call fcn.004086b0
add esp, 0xc
lea edx, [ebp - 0x228]
push edx
call fcn.00404b40
add esp, 4
test eax, eax
jne 0x404ef2
jmp 0x405042
push str.tempInfo.web
push 0x104
lea eax, [ebp - 0x228]
push eax
call fcn.00407dc2
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
lea edx, [ebp - 0x228]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x405021
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0xffffffff
je 0x405021
xor edx, edx
mov word [ebp - 0x248], dx
xor eax, eax
mov dword [ebp - 0x246], eax
mov dword [ebp - 0x242], eax
mov dword [ebp - 0x23e], eax
mov dword [ebp - 0x23a], eax
mov word [ebp - 0x236], ax
mov dword [ebp - 0x234], 0
push 0
lea ecx, [ebp - 0x234]
push ecx
push 0x14
lea edx, [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405007
cmp dword [ebp - 0x234], 0
je 0x405007
lea ecx, [ebp - 0x248]
push ecx
call fcn.00407f33
add esp, 4
mov dword [ebp - 0x24c], eax
xor edx, edx
cmp dword [ebp - 0x24c], 0
sete dl
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov dword [ebp - 0x1c], 1
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xfffffffe
jmp 0x40503a
xor eax, eax
jne 0x404eb0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004074a2
mov esp, ebp
pop ebp
ret
Function at 0x405070
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x405085
jmp 0x4050eb
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4050e7
mov edx, 0xfeff
mov word [ebp - 0x10], dx
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push 2
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
jne 0x40507d
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x406770
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ecx
push 0x208
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.004086b0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 2
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
mov cx, word [eax]
mov word [ebp - 0x12], cx
add dword [ebp - 0xc], 2
cmp word [ebp - 0x12], 0
jne 0x40679b
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x10]
sar edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0x104
jae 0x406808
mov eax, dword [ebp + 8]
push eax
push 0x104
mov ecx, dword [ebp - 8]
push ecx
call fcn.00407aa6
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x406808
mov eax, dword [ebp - 8]
push eax
call fcn.00405070
add esp, 4
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
call fcn.00406de0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4