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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x489d80]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x4568db
cmp word [edx], bx
jne 0x4568db
or byte [edi + eax + 0x28], 4
jmp 0x4568e0
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x456a34
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x456a14
cmp ax, word [ebp - 0x10]
je 0x456919
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x456a09
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x45693f
push 0xa
pop ecx
cmp word [eax], cx
jne 0x45692f
push ecx
pop eax
push 4
jmp 0x456934
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x456a03
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4569fa
cmp dword [ebp - 0x18], 0
je 0x4569fa
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x489d80]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x4569c6
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x45698a
mov word [esi], ax
jmp 0x4569be
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x489d80]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x489d80]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x489d80]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x456a09
cmp word [ebp - 4], ax
jne 0x4569db
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4569db
mov word [esi], ax
add esi, 2
jmp 0x456a09
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00449987
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x456a06
jmp 0x4569fd
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x4568f9
jmp 0x456a34
mov ecx, dword [ecx*4 + 0x489d80]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x456a2b
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x456a34
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45bab9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045b75b
Function at 0x40694c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
push edi
mov edi, ecx
test ebx, ebx
je 0x4069a0
test edi, edi
je 0x4069a4
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406964
sub ecx, edx
je 0x4069a0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406974
sub ecx, edx
je 0x4069a0
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Attempting_to_send
call esi
push ebx
call esi
push str._to_URL:
call esi
push edi
call esi
push 0x480934
call esi
test edi, edi
jne 0x4069df
mov esi, dword [0x4ae254]
test esi, esi
je 0x406a0e
xor edi, edi
push edi
push edi
push 0x12
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call fcn.0043d605
pop ecx
mov dword [0x4ae254], edi
jmp 0x406a0e
cmp dword [0x4ae254], 0
jne 0x406a04
push 0x10
call fcn.0043d630
pop ecx
test eax, eax
je 0x4069fd
mov ecx, eax
call fcn.004063fa
jmp 0x4069ff
xor eax, eax
mov dword [0x4ae254], eax
push dword [ebp + 8]
push ebx
push edi
call fcn.00406446
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408db7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
push 0x100
lea eax, [edi + 8]
mov dword [edi + 0x108], ebx
lea esi, [edi + 0x120]
mov byte [eax], bl
push eax
mov dword [edi + 4], ebx
mov dword [edi], ebx
mov byte [edi + 0x10c], 1
mov byte [edi + 0x124], 1
mov dword [esi], ebx
mov dword [edi + 0x11c], ebx
call fcn.0043e21a
mov eax, dword [ebp + 0xc]
push 8
push 8
mov dword [edi + 0x108], eax
call fcn.0043e287
add esp, 0x14
mov dword [edi + 0x114], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push ebx
push edi
push 0x408ff0
push ebx
push ebx
mov dword [edi + 0x11c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x118], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x408e4d
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, edx
push esi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408e59
sub ecx, esi
pop esi
je 0x408e9d
mov al, byte [edx + ecx - 1]
cmp al, 0x2e
je 0x408e7d
cmp al, 0x78
je 0x408e7d
cmp al, 0x58
je 0x408e7d
cmp al, 0x30
jl 0x408e80
cmp al, 0x39
jg 0x408e80
dec ecx
jne 0x408e65
test ecx, ecx
je 0x408e9d
push edx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x408e98
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x408ea4
or eax, 0xffffffff
jmp 0x408ea4
push edx
call dword [sym.imp.WSOCK32.dll_inet_addr]
pop ebp
ret 4
Function at 0x408ea8
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a0
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
jne 0x408f6f
lea eax, [esp + 0x18]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
lea edi, [esi + 8]
cmp byte [edi], 0
jne 0x408ef4
push dword [ebp + 8]
push 0x100
push edi
call fcn.0043e21a
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi + 0x108], eax
mov cl, byte [esi + 0x10c]
push 6
pop eax
push 0x11
pop edx
test cl, cl
cmovne eax, edx
push eax
xor eax, eax
test cl, cl
setne al
inc eax
push eax
push 2
pop eax
push eax
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [esi + 4], eax
test eax, eax
jne 0x408f24
xor al, al
jmp 0x408f71
push 2
pop eax
push edi
mov word [esp + 0xc], ax
call fcn.00408e4d
mov dword [esp + 0xc], eax
movzx eax, word [esi + 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x408f6f
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_closesocket]
and dword [esi + 4], 0
mov byte [edi], 0
jmp 0x408f20
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40bfeb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push ecx
call dword [sym.imp.ole32.dll_StringFromIID]
push dword [ebp - 4]
mov esi, 0x4aeda8
push 0x481204
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x800
push eax
push esi
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
mov ecx, 0x4aedbc
cmovne esi, ecx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40cc56
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x167c
call fcn.00443b60
push ebx
push 0x40
xor ebx, ebx
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.00443b90
mov eax, dword [0x4ae264]
xorps xmm0, xmm0
add esp, 0xc
mov dword [esp + 0x18], 0x44
movdqu xmmword [esp + 8], xmm0
test byte [eax + 0xaf68], 1
je 0x40cd20
cmp dword [eax + 0xaf70], ebx
jne 0x40cd20
push 1
push eax
lea ecx, [esp + 0x270]
call fcn.00413d2f
xor eax, eax
push 0x206
mov word [esp + 0x64], ax
lea eax, [esp + 0x66]
push ebx
push eax
call fcn.00443b90
add esp, 0xc
mov ecx, ebx
movzx eax, word [esp + ecx + 0x115a]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x5e], ax
test ax, ax
jne 0x40cccf
push 0x481a6c
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1162]
push eax
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [esp + 0x80]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [0x4ae264]
test byte [eax + 0xaf68], 2
je 0x40cda0
push 2
push eax
lea ecx, [esp + 0x270]
call fcn.00413d2f
xor eax, eax
push 0x206
mov word [esp + 0x64], ax
lea eax, [esp + 0x66]
push ebx
push eax
call fcn.00443b90
add esp, 0xc
mov ecx, ebx
movzx eax, word [esp + ecx + 0x115a]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x5e], ax
test ax, ax
jne 0x40cd54
push 0x481a8c
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1162]
push eax
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [esp + 0x80]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [esp + 8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d2ba
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x190
call fcn.0041026f
test eax, eax
jne 0x40d2e6
push 0x30
push str.Cannot_start_install
push str.There_is_a_problem_with_the_install_program.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40d33f
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.0040dbe5
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov eax, dword [0x4ae264]
add eax, 0xd851
push eax
call fcn.00421785
mov edx, dword [0x4ae264]
pop ecx
lea ecx, [edx + 0xa4d8]
cmp byte [ecx], 0
jne 0x40d32d
cmp dword [edx + 0xa5d7], 0
je 0x40d33c
mov edx, dword [edx + 0xa5d7]
push ecx
push ecx
call fcn.00407301
pop ecx
pop ecx
xor eax, eax
inc eax
mov esp, ebp
pop ebp
ret

Function at 0x40d3f1
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x560
lea eax, [ebp - 0x25c]
push ebx
push esi
push edi
mov esi, 0x104
xor ebx, ebx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x360]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [0x4ae264]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test byte [eax + 0xaf68], 1
je 0x40d451
lea ecx, [ebp - 0x158]
add eax, 0xb07b
push ecx
push ebx
push eax
lea eax, [ebp - 0x360]
push eax
call esi
mov eax, dword [0x4ae264]
test byte [eax + 0xaf68], 2
je 0x40d471
lea ecx, [ebp - 0x158]
add eax, 0xa8de
push ecx
push ebx
push eax
lea eax, [ebp - 0x360]
push eax
call esi
push ebx
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
push 0x4000000
push 3
push ebx
push 1
push ebx
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [ebp - 0x25c]
push eax
push edi
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x560]
push str._s__cleanup__d___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00443b90
add esp, 0x20
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x10]
xor ecx, ecx
push eax
lea eax, [ebp - 0x54]
push eax
push ecx
push ecx
push ecx
push 1
push ecx
push ecx
lea eax, [ebp - 0x560]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d52a
Capabilities:
Delete directory
Delete file

Disassembly:
push esi
push edi
mov esi, ecx
mov edi, edx
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x5c
push edi
call fcn.0043d6b0
pop ecx
pop ecx
test eax, eax
je 0x40d558
mov byte [eax], 0
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
ret
Function at 0x40dbe5
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x481cac
push eax
mov dword [0x4ae27c], eax
call edi
push str.user32
mov dword [0x4ae288], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.SetWindowTextW
push eax
mov dword [0x4ae284], eax
call edi
push str.GetWindowTextW
push dword [0x4ae284]
mov dword [0x4ae274], eax
call edi
cmp dword [0x4ae288], 0
mov dword [0x4ae268], eax
pop edi
je 0x40dc5b
cmp dword [0x4ae274], 0
mov byte [0x4ae270], 1
jne 0x40dc62
mov byte [0x4ae270], 0
push 0x90
lea eax, [ebp - 0x90]
mov dword [ebp - 0x94], 0x94
push 0
push eax
call fcn.00443b90
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
sbb al, al
inc al
mov byte [0x4ae270], al
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
xor ebx, ebx
lea eax, [ebp - 0x103]
push 0x103
push ebx
push eax
mov byte [ebp - 0x104], bl
call fcn.00443b90
add esp, 0xc
lea edx, [ebp - 0x104]
push ebx
push ecx
call fcn.0040b8b5
push ecx
lea ecx, [ebp - 0x104]
call fcn.0040b922
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40e186
mov ebx, eax
and ebx, 0x10
xor eax, eax
test ebx, ebx
pop ebx
setg al
mov esp, ebp
pop ebp
ret
Function at 0x40e69f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
mov eax, ecx
mov dword [ebp - 0xc], edx
push esi
xor ebx, ebx
mov dword [ebp - 8], eax
push 0x103
mov dword [eax], ebx
lea eax, [ebp - 0x133]
push ebx
push eax
mov dword [edx], ebx
mov byte [ebp - 0x134], bl
call fcn.00443b90
add esp, 0xc
lea eax, [ebp - 0x134]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
push 3
push ebx
push 5
push SysReAllocString
lea eax, [ebp - 0x134]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e713
xor eax, eax
jmp 0x40e85e
push edi
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x3c
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 4]
push 0
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push esi
call edi
push 0
push 0
push dword [ebp - 0x14]
push esi
call ebx
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push esi
call edi
cmp dword [ebp - 0x20], 0x4550
jne 0x40e84c
mov edi, dword [ebp - 0x14]
xor eax, eax
push eax
push eax
add edi, 0x18
mov dword [ebp - 0x10], eax
push edi
push esi
call ebx
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x10b
cmp word [ebp - 0x10], ax
jne 0x40e790
sub edi, 0xffffff80
jmp 0x40e7a5
mov eax, 0x20b
cmp word [ebp - 0x10], ax
jne 0x40e7a3
add edi, 0x90
jmp 0x40e7a5
xor edi, edi
test edi, edi
je 0x40e84c
push 0
push 0
push edi
push esi
call ebx
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
lea edi, [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x30], ecx
stosd dword es:[edi], eax
mov dword [ebp - 0x18], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x40e84c
push ecx
push ecx
lea eax, [edi - 0x10]
push eax
push esi
call ebx
push 0
lea eax, [ebp - 0x18]
push eax
push 0x10
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x30], 0
jne 0x40e84c
cmp dword [ebp - 0x2c], 0
jne 0x40e84c
cmp dword [ebp - 0x28], 0
jne 0x40e84c
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40e84c
mov ecx, dword [ebp - 0xc]
push eax
mov dword [ecx], eax
call fcn.0041ed01
pop ecx
mov ecx, dword [ebp - 8]
push 0
push 0
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
sub edi, dword [eax]
sub edi, 0x10
push edi
push esi
call ebx
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax]
mov eax, dword [ebp - 8]
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
cmp dword [ecx], eax
setne al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411ec4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov edx, dword [ebp + 8]
push edi
test edx, edx
je 0x41200c
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41200c
xor eax, eax
test esi, esi
je 0x411ef5
cmp dword [esi + 4], eax
jne 0x411eff
cmp dword [esi + 0xc], eax
je 0x411f37
cmp dword [esi + 4], eax
je 0x411f1a
push ecx
push edx
mov edx, esi
mov ecx, ebx
call fcn.00411e7d
pop ecx
pop ecx
test eax, eax
jne 0x41200e
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp dword [esi + 0xc], 0
je 0x41200e
push ecx
push edx
lea edx, [esi + 8]
mov ecx, ebx
call fcn.00411e7d
pop ecx
pop ecx
jmp 0x41200e
push 0x103
push eax
mov byte [ebp - 0x10c], al
lea eax, [ebp - 0x10b]
push eax
call fcn.00443b90
add esp, 0xc
lea edx, [ebp - 0x10c]
push str.theme_
push ecx
call fcn.0040b8b5
mov edx, ebx
mov esi, ebx
mov al, byte [edx]
inc edx
test al, al
jne 0x411f67
lea edi, [ebp - 0x10c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x411f77
mov ecx, edx
xor eax, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push eax
push 3
push eax
push 1
mov ecx, edx
lea eax, [ebp - 0x10c]
and ecx, 3
push SysReAllocString
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x412015
push str.data_
push ecx
lea edx, [ebp - 0x10c]
call fcn.0040b8b5
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x411fc3
lea edi, [ebp - 0x10c]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x411fd3
mov ecx, ebx
lea eax, [ebp - 0x10c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
and ecx, 3
push SysReAllocString
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x412017
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
push ebx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
inc eax
push eax
call fcn.0041ed01
mov edi, dword [ebp + 8]
pop ecx
push ebx
mov ebx, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
mov dword [edi], eax
push dword [esi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [edi]
mov ecx, dword [esi]
push ebx
mov byte [edx + ecx], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x41200e
Function at 0x41234d
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x474174
call fcn.00473d84
mov eax, 0x1528
call fcn.00443b60
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push SysReAllocString
push 0x48086e
lea ecx, [ebp - 0x1530]
call fcn.0041f18f
mov dword [ebp - 4], ebx
mov edx, dword [0x4ae264]
cmp byte [edx + 0xcd1c], bl
je 0x412484
lea ecx, [edx + 0xcd1d]
test ecx, ecx
je 0x412484
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4123a4
sub ecx, esi
je 0x412484
lea ecx, [edx + 0xd621]
test ecx, ecx
je 0x412484
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4123c4
sub ecx, esi
je 0x412484
lea eax, [edx + 0xd725]
push eax
push SysReAllocString
call fcn.0041f90f
test eax, eax
jne 0x412484
mov eax, dword [0x4ae264]
add eax, 0xd725
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0041f90f
test eax, eax
jne 0x412484
call fcn.00412495
push 0x103
mov esi, eax
mov byte [ebp - 0x120], bl
lea eax, [ebp - 0x11f]
push ebx
push eax
call fcn.00443b90
mov ecx, dword [0x4ae264]
lea eax, [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x10], ebx
lea edx, [ebp - 0x120]
mov dword [ebp - 0x14], ebx
push ecx
push ecx
push eax
lea eax, [ebp - 0x10]
add ecx, 0xd51d
push eax
push 0x104
call fcn.00410cfb
add esp, 0x14
test esi, esi
je 0x41247d
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41245f
sub ecx, edx
je 0x41247d
push 5
push ebx
lea eax, [ebp - 0x120]
push eax
push esi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push esi
call fcn.0041ed0a
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412495
Capabilities:
Check http status code
Create http request
Reference http user-agent string

Disassembly:
mov eax, 0x474188
call fcn.00473d84
sub esp, 0x410
push ebx
push esi
push edi
mov esi, 0x104
push esi
call fcn.0041ed01
pop ecx
push esi
xor ebx, ebx
mov dword [ebp - 0x14], eax
push ebx
push eax
call fcn.00443b90
mov edx, dword [0x4ae264]
add esp, 0xc
cmp byte [edx + 0xcd1c], bl
je 0x41268b
lea ecx, [edx + 0xcd1d]
test ecx, ecx
je 0x41268b
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4124e7
sub ecx, esi
je 0x41268b
lea ecx, [edx + 0xd621]
test ecx, ecx
je 0x41268b
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412507
sub ecx, edx
je 0x41268b
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_5.0__Windows__U__Windows_NT_5.1__en_GB__rv:1.9.0.5__Gecko_2008120122_Firefox_3.0.5
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [0x4ae264]
push ebx
push 0x40300
push ebx
push ebx
add ecx, 0xcd1d
mov dword [ebp - 0x18], eax
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
push 0x3ff
mov esi, eax
mov byte [ebp - 0x41c], bl
lea eax, [ebp - 0x41b]
push ebx
push eax
call fcn.00443b90
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp - 0x1c]
add esp, 0xc
mov dword [ebp - 0x1c], 0x400
push ebx
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x13
push esi
call edi
lea eax, [ebp - 0x41c]
push eax
call fcn.0043e4c8
mov byte [ebp - 0x41c], bl
mov dword [ebp - 0x1c], 0x400
pop ecx
cmp eax, 0xc8
jne 0x412602
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x2f
push esi
call edi
neg eax
lea ecx, [ebp - 0x41c]
lea edx, [ecx + 1]
sbb al, al
and byte [ebp - 0x41c], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4125c4
sub ecx, edx
je 0x412602
lea eax, [ebp - 0x41c]
push str.filename
push eax
call fcn.0043efe0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x412602
add edi, 9
push 0x482a78
push edi
call fcn.0043efe0
pop ecx
pop ecx
test eax, eax
je 0x4125fe
mov byte [eax], bl
test edi, edi
jne 0x41261d
mov eax, dword [0x4ae264]
add eax, 0xcd1d
push 0x2f
push eax
call fcn.0043d6b0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41261d
inc edi
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x18]
call esi
mov ecx, dword [0x4ae264]
call fcn.004126a1
push 0x1414
mov esi, eax
call fcn.0043d630
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x41265d
push esi
push dword [0x4ae264]
mov ecx, eax
call fcn.00413d2f
mov ebx, eax
mov esi, dword [ebp - 0x14]
lea eax, [ebx + 0xef2]
push eax
push 0x481d54
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test ebx, ebx
je 0x41268e
push ebx
call fcn.0043d605
pop ecx
jmp 0x41268e
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret