joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c270
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40
sub esp, 0xc
cmp dword [ebp + 0x10], eax
jbe 0x42c283
mov dword [ebp + 0x10], eax
mov eax, dword [0x498160]
push ebx
push esi
xor ecx, ecx
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
cmp edi, ecx
je 0x42c379
cmp eax, ecx
je 0x42c2ae
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 1
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
push edi
call fcn.0042bd70
add esp, 0x18
test al, al
mov eax, dword [0x498160]
je 0x42c3a4
test eax, eax
je 0x42c2e3
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
cmp dword [esi], ecx
jb 0x42c302
push 0
push edi
call fcn.0042bf70
mov edx, dword [ebp + 0x10]
add esp, 8
cmp dword [esi], edx
jae 0x42c2f0
mov eax, dword [ebp - 4]
test eax, eax
je 0x42c312
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 4
push eax
push ecx
push 0
push 0
call fcn.00439731
mov edx, dword [esi]
add esp, 0x18
mov dword [ebx + edx*4], eax
xor edi, edi
mov eax, dword [esi]
cmp dword [ebx + eax*4], 0xffffffff
jne 0x42c364
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push 4
push ecx
push edx
push 0
push 0
call fcn.00439731
mov ecx, dword [esi]
inc edi
add esp, 0x18
mov dword [ebx + ecx*4], eax
cmp edi, 5
jl 0x42c331
mov eax, dword [esi]
cmp dword [ebx + eax*4], 0xffffffff
jne 0x42c38b
dec eax
pop edi
mov dword [esi], eax
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x498270
mov dword [ebp - 4], eax
mov ebx, 0x498168
jmp 0x42c2e9
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi]
mov eax, dword [ebx + edx*4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
inc dword [esi]
mov eax, dword [ebp - 4]
test eax, eax
je 0x42c3b3
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f450
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0
push 0x23
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x42f476
xor al, al
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42f480
mov ecx, dword [ebp + 0xc]
sub eax, edx
add ecx, 0xfffffff4
cmp eax, ecx
jae 0x42f470
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x104]
mov edx, esi
mov ecx, eax
push edi
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42f4a4
lea edi, [esi - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42f4b1
mov dx, word [0x4785b0]
mov word [edi], dx
lea edi, [esi - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42f4c6
cmp byte [ebp + 0x10], 0
mov eax, dword [0x477810]
mov dword [edi], eax
je 0x42f510
lea edi, [esi - 1]
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42f4e0
mov cx, word [0x4785b0]
mov word [edi], cx
lea eax, [esi - 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x42f4f5
mov edx, dword [str.cache]
mov dword [eax], edx
mov cx, word [0x47859c]
mov word [eax + 4], cx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4333d8
xor al, al
pop ebp
ret 4
and al, 0x10
cmp al, 0x10
sete al
pop ebp
ret 4
Function at 0x4336c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov eax, ebx
mov dword [ebp - 8], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4336d8
sub eax, edx
cmp eax, 0x104
jbe 0x4336f2
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x104
lea eax, [ebp - 0x10c]
push eax
push ebx
mov ecx, esi
call fcn.004332b0
push 0
lea ecx, [ebp - 0x10c]
push ecx
mov ecx, esi
call fcn.004333f0
test al, al
je 0x4336e8
push edi
xor edi, edi
mov byte [ebp + 0xb], 0
jmp 0x433726
mov esi, dword [ebp - 8]
push 0x4718a4
push ebx
call fcn.0043a181
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x4337a6
push ebx
push str.Unable_to_open__s_for_writing__will_try_again_in_1_sec
call fcn.0043bcaa
add esp, 8
lea edx, [ebp - 4]
push edx
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00433610
mov esi, dword [ebp - 4]
push esi
push str.__s__n
call fcn.0043bcaa
push esi
call fcn.00437e81
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x19
jb 0x433723
push ebx
push str.ERROR:_Couldnt_open__s_for_writing_n
call fcn.00439f10
add eax, 0x40
push eax
call fcn.0043a3ff
mov al, byte [ebp + 0xb]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov byte [ebp + 0xb], 1
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0x10], edi
jbe 0x433855
jmp 0x4337c0
mov esi, dword [ebp + 0x10]
sub esi, edi
cmp esi, 0x8000
jbe 0x4337d2
mov esi, 0x8000
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
push edx
push esi
push 1
push eax
call fcn.0043c240
add esp, 0x10
cmp eax, esi
jne 0x43380b
add dword [ebp + 0xc], esi
add edi, esi
cmp edi, dword [ebp + 0x10]
jb 0x4337c0
mov eax, dword [ebp - 4]
push eax
call fcn.0043a877
mov al, byte [ebp + 0xb]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push ebx
push edi
push esi
push str.ERROR:_Unable_to_write__li_bytes_at_offset__li_to__s_n
call fcn.00439f10
add eax, 0x40
push eax
call fcn.0043a3ff
add esp, 0x14
lea ecx, [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x10], 0
call fcn.00433610
mov esi, dword [ebp + 0x10]
push esi
push str.__s__n
call fcn.0043bcaa
push esi
call fcn.00437e81
mov eax, dword [ebp - 4]
add esp, 0xc
mov byte [ebp + 0xb], 0
push eax
call fcn.0043a877
mov al, byte [ebp + 0xb]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x433870
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x3c]
push eax
mov edi, ecx
push esi
mov dword [ebp - 0xc], edi
xor ebx, ebx
mov byte [ebp - 1], 1
call fcn.0043b353
add esp, 8
test eax, eax
jne 0x4338e9
push 0x479d2c
push esi
call fcn.0043a181
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
jne 0x4338f4
push esi
push str.ERROR:_Unable_to_open__s_for_reading_n
call fcn.0043bcaa
add esp, 8
lea ecx, [ebp + 0xc]
push ecx
mov ecx, edi
mov dword [ebp + 0xc], ebx
call fcn.00433610
mov esi, dword [ebp + 0xc]
push esi
push str.__s__n
call fcn.0043bcaa
push esi
call fcn.00437e81
mov eax, dword [ebp + 0x10]
add esp, 0xc
test eax, eax
je 0x4338e9
mov dword [eax], ebx
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
mov dword [edx], ebx
xor edi, edi
jmp 0x433900
mov esi, dword [ebp - 0x28]
push esi
call fcn.004381ac
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x433955
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x1e
jl 0x433900
mov edx, dword [ebp + 0xc]
cmp dword [edx], ebx
jne 0x433952
mov eax, dword [ebp + 8]
push eax
push str.Cabby:_Unable_to_allocate_memory_to_read__s_to_mem_n
call fcn.00439f10
add eax, 0x40
push eax
call fcn.0043a3ff
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx]
test eax, eax
je 0x433963
mov dword [eax], esi
test esi, esi
je 0x433a1f
jmp 0x433970
sub esi, ebx
cmp esi, 0x8000
jbe 0x43397f
mov esi, 0x8000
mov edx, dword [ebp - 8]
push edx
push esi
push 1
push edi
call fcn.0043a3e2
add esp, 0x10
cmp eax, esi
jne 0x4339b6
mov esi, dword [ebp - 0x28]
add ebx, eax
add edi, eax
cmp ebx, esi
jb 0x433970
mov eax, dword [ebp - 8]
push eax
call fcn.0043a877
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
push eax
push ebx
push esi
push str.Cabby:_Unable_to_read__li_bytes_at_offset__li_from_file__s_n
call fcn.00439f10
add eax, 0x40
push eax
call fcn.0043a3ff
add esp, 0x14
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 8], 0
call fcn.00433610
mov esi, dword [ebp + 8]
push esi
push str.__s__n
call fcn.00439f10
add eax, 0x40
push eax
call fcn.0043a3ff
push esi
call fcn.00437e81
mov edx, dword [ebp + 0xc]
push edx
call fcn.00437e81
mov eax, dword [ebp + 0x10]
add esp, 0x14
test eax, eax
je 0x433a1b
mov dword [eax], 0
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
push eax
call fcn.0043a877
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x433a55
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x433a96
push ebx
movzx edx, byte [ecx]
dec eax
inc ecx
movzx ebx, byte [ecx]
shl ebx, 8
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
test eax, eax
jg 0x433a6f
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x433ab4
dec esi
je 0x433aab
dec esi
jne 0x433ab9
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x43d1dd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x483750]
jne 0x43d1e7
repz ret
jmp fcn.00447b6d

Function at 0x447c73
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x483750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0043d838
and dword [ebp - 0x14], 0
cmp dword [0x49a0f4], 0
mov dword [ebp - 0x18], eax
jne 0x447d26
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x447dce
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x474a08
push ebx
call edi
test eax, eax
je 0x447dce
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4749f8
push ebx
mov dword [0x49a0f4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x49a0f8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x49a0fc], eax
call edi
push eax
call esi
mov dword [0x49a104], eax
test eax, eax
je 0x447d26
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x49a100], eax
mov eax, dword [0x49a100]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x447d7f
cmp dword [0x49a104], ecx
je 0x447d7f
push eax
call esi
push dword [0x49a104]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x447d7f
test ebx, ebx
je 0x447d7f
call edi
test eax, eax
je 0x447d76
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x447d76
test byte [ebp - 8], 1
jne 0x447d7f
or dword [ebp + 0x10], 0x200000
jmp 0x447db2
mov eax, dword [0x49a0f8]
cmp eax, dword [ebp - 0x18]
je 0x447db2
push eax
call esi
test eax, eax
je 0x447db2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x447db2
mov eax, dword [0x49a0fc]
cmp eax, dword [ebp - 0x18]
je 0x447db2
push eax
call esi
test eax, eax
je 0x447db2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49a0f4]
call esi
test eax, eax
je 0x447dce
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x447dd0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043d1dd
leave
ret
Function at 0x450f51
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x450f79
call fcn.0043c5b3
and dword [eax], 0
call fcn.0043c5a0
mov dword [eax], 0x16
call fcn.0043dee1
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x450f96
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043c5c6
pop ecx
jmp 0x450f74
test byte [ebp + 0xc], 0x80
je 0x450fa1
and eax, 0xfffffffe
jmp 0x450fa4
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x450f87
xor eax, eax
pop ebp
ret
Function at 0x45324b
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
call fcn.00453a79
lea esi, [edi + 0x10]
call fcn.00453a79
lea esi, [edi + 0x1c]
call fcn.00453a79
push dword [ebp + 8]
lea eax, [edi + 4]
push eax
xor ebx, ebx
or eax, 0xffffffff
mov dword [edi + 0x48], ebx
call fcn.00453b6f
lea eax, [edi + 0x40]
push eax
lea eax, [edi + 0x38]
push eax
lea eax, [edi + 0x30]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x453343
mov esi, 0x104
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [edi + 0x28]
push eax
push esi
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x453343
lea eax, [ebp - 0x118]
push eax
lea eax, [edi + 0x10]
push eax
or eax, 0xffffffff
call fcn.00453b6f
lea eax, [ebp - 0x220]
push eax
lea eax, [edi + 0x1c]
push eax
or eax, 0xffffffff
call fcn.00453b6f
push esi
lea eax, [ebp - 0x328]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.0043b08d
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0043b08d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0043ad58
add esp, 0x30
test eax, eax
jne 0x45333f
or dword [edi + 0x48], 1
xor eax, eax
jmp 0x453349
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x453ae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x64
mov esi, eax
pop ebx
call fcn.00453a1e
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x453b06
mov ebx, dword [esi + 8]
add ebx, 0x64
call fcn.00453a1e
mov eax, dword [esi + 8]
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [esi]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov dword [ebp - 0xc], eax
cmp eax, 0xea
je 0x453afb
xor eax, eax
cmp dword [ebp - 0xc], eax
jne 0x453b57
cmp dword [ebp - 8], eax
jbe 0x453b4b
cmp dword [ebp - 8], 2
jbe 0x453b43
cmp dword [ebp - 8], 7
jne 0x453b4b
cmp dword [ebp - 4], eax
je 0x453b4b
dec dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, esi
call fcn.00453a9e
jmp 0x453b65
xor ebx, ebx
call fcn.00453a1e
mov eax, dword [esi]
and dword [esi + 4], ebx
mov byte [eax], bl
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x45425b
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
push ebx
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [ebp - 4], 0x80004005
call fcn.0043cdc0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push 0x10
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x45434d
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x20c]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4542c0
push esi
mov esi, str..url
movsd dword es:[edi], dword [esi]
push 0x3ff
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60b]
push ebx
push eax
movsw word es:[edi], word [esi]
mov byte [ebp - 0x60c], bl
call fcn.0043cdc0
push dword [ebp + 0x10]
lea eax, [ebp - 0x60c]
push dword [ebp + 0xc]
push str._InternetShortcut__r_nURL_S_r_nIconFile_S_r_nIconIndex0_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
push ebx
push ebx
push 2
push ebx
push ebx
mov edi, eax
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45434b
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x60c]
push eax
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
pop esi
pop edi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0xc

Function at 0x454355
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x208], ax
xor esi, esi
lea eax, [ebp - 0x206]
push esi
push eax
call fcn.0043cdc0
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push esi
push esi
push 0x10
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4543e1
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x208]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x4543af
mov esi, str..url
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x208]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
je 0x4543e1
shr eax, 4
not eax
and eax, 1
jmp 0x4543e3
xor eax, eax
pop esi
leave
ret 4
Function at 0x4543e8
Capabilities:
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
push str.Mozilla_4.0__compatible__MSIE_5.5__Windows_NT_5.0_
mov dword [ebp - 8], 0x80004005
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x454502
push esi
push edi
push 8
pop ecx
mov esi, str.Accept:___r_n_r_n
lea edi, [ebp - 0x34]
lea eax, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45442b
push ebx
sub eax, edx
push 0x4000000
sar eax, 1
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x88]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x4544f2
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4544e0
push 0xff
lea eax, [ebp - 0x133]
push ebx
push eax
mov byte [ebp - 0x134], bl
call fcn.0043cdc0
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
mov edi, pe_nt_image_headers32
jmp 0x4544c6
cmp dword [ebp + 8], ebx
je 0x4544dd
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4544a6
jmp 0x4544e0
mov dword [ebp - 8], ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
cmp dword [ebp - 8], ebx
jge 0x45450b
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 8]
pop ebx
leave
ret 8
Function at 0x455d84
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov ebx, eax
call fcn.00454531
push 0x103
xor esi, esi
lea eax, [ebp - 0x103]
push esi
push eax
mov byte [ebp - 0x104], 0
call fcn.0043cdc0
mov eax, dword [ebp + 8]
add esp, 0xc
dec eax
je 0x455e06
dec eax
je 0x455de7
dec eax
je 0x455dc8
push 2
pop eax
jmp 0x455ebb
push str.TUdTUE9LRVJWMkNSRUFURU1VVEVYUElHR1k
call fcn.00455d48
lea edx, [ebp - 0x104]
pop ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x455ddb
jmp 0x455e23
push str.TUdTUE9LRVJWMkNSRUFURU1VVEVY
call fcn.00455d48
lea edx, [ebp - 0x104]
pop ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x455dfa
jmp 0x455e23
push str.TUdTUE9LRVJWMkNSRUFURU1VVEVYU0I
call fcn.00455d48
lea edx, [ebp - 0x104]
pop ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x455e19
lea eax, [ebp - 0x104]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push esi
push eax
mov dword [ebx + 0xd14], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x455e48
xor eax, eax
jmp 0x455ebb
push edi
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x455e50
mov esi, str._SEM
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x104]
push eax
push 1
movsb byte es:[edi], byte [esi]
push 1
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push edi
push eax
mov dword [ebx + 0xd18], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x455eb7
push dword [ebx + 0xd14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebx + 0xd14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebx + 0xd18]
mov dword [ebx + 0xd14], edi
call esi
mov dword [ebx + 0xd18], edi
xor eax, eax
jmp 0x455eba
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4