joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100fe1d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x10133a48], 0x238b
mov dword [ebp - 8], 0
mov dword [0x10133a48], 0x1d7a
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x100fe241
mov dword [0x10133a48], 0x12a0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
je 0x100fe2e0
jmp 0x100fe361
jmp 0x100fe35c
jmp 0x100fe361
cmp dword [ebp - 0x10], 0x104
setl al
mov byte [ebp - 0x11], al
mov al, byte [ebp - 0x11]
test al, 1
jne 0x100fe257
jmp 0x100fe289
mov dword [0x10133a4c], 0x3c9
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2]
cmp eax, 0
jne 0x100fe274
jmp 0x100fe289
jmp 0x100fe276
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jmp 0x100fe241
mov dword [0x10133a4c], 0x17fe
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
jne 0x100fe365
mov eax, dword [0x10133a48]
sub eax, 0x82d
mov dword [0x10133a48], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
movzx edx, word [eax + ecx*2 - 0x18]
cmp edx, 0x6f
je 0x100fe212
jmp 0x100fe363
mov dword [0x10133a48], 0x1fd2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
jne 0x100fe23c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
jne 0x100fe35c
mov dword [0x10133a48], 0x2335
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
jne 0x100fe237
mov dword [0x10133a48], 0x202
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
jne 0x100fe357
mov dword [ebp - 4], 1
jmp 0x100fe376
jmp 0x100fe237
jmp 0x100fe23c
jmp 0x100fe363
jmp 0x100fe365
mov dword [0x10133a48], 0x3b1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 0x20
pop ebp
ret

Function at 0x100fe5c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.100fe5c0]
mov dword [0x10133a48], 0x1abd
mov dword [ebp - 4], eax
mov dword [0x10133a48], 0x24bb
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x100fe60c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 4]
cmp dword [ecx + eax], 0x4550
jne 0x100fe60a
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x100fe649
jmp 0x100fe60c
mov eax, dword [ebp - 4]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 4], eax
mov eax, dword [0x10133a48]
add eax, 0x1449
mov dword [0x10133a48], eax
mov al, 1
test al, 1
jne 0x100fe5e3
jmp 0x100fe633
mov eax, dword [0x10133a48]
sub eax, 0x24d8
mov dword [0x10133a48], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
add esp, 8
pop ebp
ret
Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401a50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
sub esp, 0xb8
lea eax, [esp + 0x28]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SYSTEMCurrentControlSetServicesDiskEnum
mov dword [esp], 0x80000002
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], pe_nt_image_headers32
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x401aa4
call sub.KERNEL32.dll_IsDebuggerPresent
test eax, eax
setne al
add esp, 0xb8
pop ebx
ret
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x2c]
lea ebx, [esp + 0x30]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 4], 0x406090
mov dword [esp], ecx
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x401b40
mov dword [esp + 4], str.VBOX
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
test eax, eax
je 0x401b10
mov edx, dword [esp + 0x28]
mov dword [esp], edx
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov eax, 1
add esp, 0xb8
pop ebx
ret
mov dword [esp + 4], str.VMware
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401af3
mov dword [esp + 4], str.QEMU
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401af3
nop
lea esi, [esi]
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
jmp 0x401a92

Function at 0x401b60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
sub esp, 0x38
lea ebx, [esp + 0x1e]
mov byte [esp + 0x1e], 0x5a
mov byte [esp + 0x1f], 0x35
mov byte [esp + 0x20], 0x6d
mov byte [esp + 0x21], 0x5e
mov eax, ebx
mov byte [esp + 0x22], 0x63
mov byte [esp + 0x23], 0x7c
mov byte [esp + 0x24], 0x3f
mov byte [esp + 0x25], 0x5f
mov byte [esp + 0x26], 0x74
mov byte [esp + 0x27], 0x2b
mov byte [esp + 0x28], 0x3f
mov byte [esp + 0x29], 0x2a
mov byte [esp + 0x2a], 0x5e
mov byte [esp + 0x2b], 0x61
mov byte [esp + 0x2c], 0x7a
mov byte [esp + 0x2d], 0x62
mov byte [esp + 0x2e], 0x4d
mov byte [esp + 0x2f], 0x64
call fcn.00401460
mov dword [esp + 4], ebx
mov dword [esp], 0x4060a3
call sub.msvcrt.dll_printf
add esp, 0x38
pop ebx
ret
Function at 0x4028e0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x40292b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x402924
test esi, esi
je 0x402924
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402900
mov dword [esp], 0x408044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402b10
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402b60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402c38
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x402b9e
cmp eax, 4
jne 0x402bc0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x402bae
cmp edx, 4
je 0x402bae
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402b10
Function at 0x4032b0
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x240c
call fcn.0040c8d0
mov eax, dword [0x2b87b94]
mov ecx, dword [0x2b87b08]
shr eax, 3
test eax, eax
jbe 0x4033e2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x403300
cmp dword [0x2b87b94], 0x959
jne 0x4033c4
push 0
lea eax, [esp + 0x1420]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
lea ecx, [esp + 0x420]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0xc24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x1c20]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0x402d44
push 0x402d54
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.00403100
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403300
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x240c
ret
Function at 0x4078b3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42fb80]
jne 0x4078bd
repz ret
jmp fcn.0040b0ff

Function at 0x40ac8f
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.00405fb1
and dword [ebp - 4], 0
cmp dword [0x430d28], 0
mov ebx, eax
jne 0x40ad40
push 0x402508
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40adf1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024fc
push edi
call esi
test eax, eax
je 0x40adf1
push eax
call fcn.00405f3f
mov dword [esp], 0x4024ec
push edi
mov dword [0x430d28], eax
call esi
push eax
call fcn.00405f3f
mov dword [esp], 0x4024d8
push edi
mov dword [0x430d2c], eax
call esi
push eax
call fcn.00405f3f
mov dword [esp], 0x4024bc
push edi
mov dword [0x430d30], eax
call esi
push eax
call fcn.00405f3f
pop ecx
mov dword [0x430d38], eax
test eax, eax
je 0x40ad40
push 0x4024a4
push edi
call esi
push eax
call fcn.00405f3f
pop ecx
mov dword [0x430d34], eax
mov eax, dword [0x430d34]
cmp eax, ebx
je 0x40ad98
cmp dword [0x430d38], ebx
je 0x40ad98
push eax
call fcn.00405fba
push dword [0x430d38]
mov esi, eax
call fcn.00405fba
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ad98
test edi, edi
je 0x40ad98
call esi
test eax, eax
je 0x40ad8f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ad8f
test byte [ebp - 0xc], 1
jne 0x40ad98
or dword [ebp + 0x10], 0x200000
jmp 0x40add1
mov eax, dword [0x430d2c]
cmp eax, ebx
je 0x40add1
push eax
call fcn.00405fba
pop ecx
test eax, eax
je 0x40add1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40add1
mov eax, dword [0x430d30]
cmp eax, ebx
je 0x40add1
push eax
call fcn.00405fba
pop ecx
test eax, eax
je 0x40add1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x430d28]
call fcn.00405fba
pop ecx
test eax, eax
je 0x40adf1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40adf3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401360
Capabilities:
Encode data using xor

Disassembly:
push esi
push str.__xml_version_1.0__encoding_UTF_8___
push 0x924180
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str._metalink__file_
push 0x924180
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x924180
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
lea esi, [eax - 0x20]
mov dword [ecx], 0
test esi, esi
jle 0x4013ba
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [ecx]
mov dl, byte [eax + 0x9241a0]
xor dl, byte [eax + 0x924180]
mov byte [eax + edi], dl
inc dword [ecx]
cmp dword [ecx], esi
jl 0x4013a2
pop edi
pop esi
ret

Function at 0x401730
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x2810
push ebp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401803
push esi
push edi
xor edi, edi
push edi
lea ecx, [esp + 0x10]
push ecx
push 0x280a
lea edx, [esp + 0x1c]
push edx
push ebp
mov esi, 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4017d4
push ebx
mov ebx, dword [esp + 0x10]
test ebx, ebx
jbe 0x4017d3
xor ecx, ecx
test ebx, ebx
jbe 0x4017b7
movzx eax, byte [esp + ecx + 0x14]
add eax, esi
xor edx, edx
mov esi, 0xfff1
div esi
inc ecx
mov esi, edx
lea eax, [edi + esi]
xor edx, edx
mov edi, 0xfff1
div edi
mov edi, edx
cmp ecx, ebx
jb 0x401792
push 0
lea eax, [esp + 0x14]
push eax
push 0x280a
lea ecx, [esp + 0x20]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401784
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
shl edi, 0x10
or edi, esi
push edi
push 0x405334
push 0x929918
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
pop edi
pop esi
mov eax, 0x929918
pop ebp
add esp, 0x2810
ret
mov eax, 0x40532c
pop ebp
add esp, 0x2810
ret

Function at 0x401810
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
je 0x40184a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x401a30
Capabilities:
Create process on windows

Disassembly:
push str.__c__start
push 0x938960
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov eax, 0x938960
cmp word [eax], 0
je 0x401a50
add eax, 2
jne 0x401a45
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x401a87
movzx edx, word [ecx]
test dx, dx
je 0x401a87
cmp dx, 0x26
je 0x401a6c
cmp dx, 0x7c
jne 0x401a77
mov edx, 0x5e
mov word [eax], dx
add eax, 2
mov dx, word [ecx]
mov word [eax], dx
add ecx, 2
add eax, 2
test ecx, ecx
jne 0x401a58
xor edx, edx
push edx
push edx
push 0x938960
push str.cmd.exe
mov ecx, 0x22
push edx
mov word [eax], cx
push edx
mov word [eax + 2], dx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x402320
Capabilities:
Read http header

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0
lea edx, [esp + 0x10]
push edx
push 0x9851c0
push 0
mov dword [eax], 0xffffffff
push 0x2a
mov dword [ecx], 0xffffffff
push esi
mov dword [esp + 0x24], 0x280a
mov dword [ebp], 0xffffffff
call edi
test eax, eax
je 0x40241c
push 0
lea eax, [esp + 0x10]
push eax
push 0x9851c0
push 0
push 0x35
push esi
mov dword [esp + 0x24], 0x280a
call edi
test eax, eax
je 0x40241c
mov ax, word [0x9851c0]
mov ecx, 0x9851c0
mov dword [esp + 0x18], ecx
test ax, ax
je 0x4023cc
movzx eax, ax
lea ebx, [ebx]
cmp ax, 0x30
jb 0x4023bc
cmp ax, 0x39
jbe 0x4023c8
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4023b0
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
push ecx
call fcn.004022d0
lea edx, [esp + 0x1c]
push edx
mov dword [ebp], eax
call fcn.004022d0
mov esi, dword [esp + 0x24]
mov dword [esi], eax
lea eax, [esp + 0x20]
push eax
call fcn.004022d0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov dword [ecx], eax
cmp dword [ebp], 0
jl 0x402415
cmp dword [esi], 0
jl 0x402415
test eax, eax
jl 0x402415
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
pop edi
pop esi
xor al, al
pop ebp
pop ecx
ret

Function at 0x402470
Capabilities:
Read http header

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push 0
lea eax, [esp + 4]
push eax
push 0x98f380
push 0
push 0x21
push ecx
mov dword [esp + 0x18], 0x280a
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x40256f
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str.http:__
push 0x98f380
call esi
cmp eax, 0x98f380
je 0x402567
push str.https:__
push 0x98f380
call esi
cmp eax, 0x98f380
je 0x402567
push str.http
push 0x98a368
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp byte [esp + 0x14], 0
mov eax, 0x4054ec
jne 0x4024f2
mov eax, 0x4054ee
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push eax
push 0x98a368
call esi
mov edx, dword [esp + 0x10]
push edx
push 0x98a368
call esi
push 0x4054e8
push 0x98a368
call esi
movzx eax, word [esp + 0x18]
push eax
push 0x4054e0
push 0x98a2a0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x98a2a0
push 0x98a368
call esi
cmp word [0x98f380], 0x2f
je 0x402553
push 0x4054dc
push 0x98a368
call esi
push 0x98f380
push 0x98a368
call esi
mov eax, 0x98a368
pop esi
pop ecx
ret
mov eax, 0x98f380
pop esi
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x402610
Capabilities:
Receive http response

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x2c]
push ebx
push esi
push ebp
push eax
mov byte [esp + 0x23], 0
mov dword [edi], 0
call fcn.00402580
add esp, 0x10
test al, al
je 0x4026cc
sub esi, ebp
mov dword [esp + 0x2c], 0
inc esi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push esi
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4026c2
mov eax, dword [esp + 0x2c]
test eax, eax
jbe 0x40269e
push eax
call fcn.00401910
mov eax, dword [esp + 0x30]
add dword [edi], eax
mov ecx, dword [ebx]
sub esi, eax
mov eax, dword [edi]
add eax, ebp
push eax
push ecx
call fcn.00402040
add esp, 0xc
test esi, esi
jne 0x4026ad
mov byte [esp + 0x13], 1
jmp 0x4026ad
push 0
mov byte [esp + 0x17], 1
call fcn.00401950
add esp, 4
cmp dword [esp + 0x2c], 0
jbe 0x4026cc
test esi, esi
jg 0x402653
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.00401950
add esp, 4
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4026e0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push esi
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402781
mov ecx, dword [esp + 0x10]
push ebp
push edi
mov edi, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402768
cmp dword [esp + 0x10], edi
jne 0x402768
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push esi
call ebp
cmp eax, edi
jne 0x402768
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push esi
call ebp
push eax
push edi
call fcn.00402040
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00401920
add esp, 4
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 8
call fcn.00401950
add esp, 4
pop edi
pop ebp
pop esi
xor al, al
pop ebx
pop ecx
ret
push 0xf
call fcn.00401950
add esp, 4
pop esi
xor al, al
pop ebx
pop ecx
ret
Function at 0x403030
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call edi
mov esi, eax
push str._extendtail
push esi
call fcn.004042ea
add esp, 8
test eax, eax
je 0x40306a
push 0x4055e0
push esi
call fcn.004042ea
add esp, 8
test eax, eax
je 0x40306a
pop edi
mov eax, 0x4055dc
pop esi
pop ecx
ret
push ebx
push ebp
lea eax, [esp + 0x10]
push eax
mov ebp, 0x4055dc
call edi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
cmp dword [esp + 0x10], esi
mov ebx, eax
jle 0x4030d7
lea esp, [esp]
test ebx, ebx
je 0x4030d7
mov edi, dword [ebx + esi*4]
push str._extendtail
push edi
call fcn.004042ea
add esp, 8
test eax, eax
jne 0x4030ca
push 0x4055e0
push edi
call fcn.004042ea
add esp, 8
test eax, eax
jne 0x4030ca
inc esi
cmp esi, dword [esp + 0x10]
jl 0x403090
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret
lea ecx, [esi + 1]
cmp ecx, dword [esp + 0x10]
jge 0x4030d7
mov ebp, dword [ebx + esi*4 + 4]
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret

Function at 0x403320
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x4032e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x4037d0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
push eax
push 0xbbb0b8
mov dword [esp + 0x10], 0
call fcn.00401360
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push ecx
push 0xbbb0b8
push edi
push esi
call fcn.00401400
add esp, 0x18
test eax, eax
jle 0x403867
add esi, eax
push esi
sub edi, eax
call fcn.00401450
add esp, 4
xor ecx, ecx
test edi, edi
jle 0x403830
lea ecx, [ecx]
mov edx, ecx
and edx, 0x1f
mov dl, byte [edx + eax]
xor byte [ecx + esi], dl
inc ecx
cmp ecx, edi
jl 0x403820
push ebx
push str.__metalink_
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov ebx, eax
test ebx, ebx
je 0x403858
push str.__metalink_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
sub ebx, esi
add edi, ebx
mov byte [esi + edi], 0
push esi
push edi
call fcn.00403670
add esp, 8
pop ebx
pop edi
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret

Function at 0x403870
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, 0x32000
cmp eax, 0x32000
ja 0x40388e
mov esi, eax
push 2
push 0
mov eax, esi
neg eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4038d1
push 0
lea ecx, [esp + 0xc]
push ecx
push esi
push 0xbbd8c8
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4038d1
mov edx, dword [esp + 8]
push edx
push 0xbbd8c8
call fcn.004037d0
add esp, 8
pop edi
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret