joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4abac0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x408540]
call fcn.00405c1c
xor eax, eax
push ebp
push 0x4abc61
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x51cdc8], 0
jne 0x4abb1b
mov ecx, dword [0x52033c]
mov dl, 1
mov eax, dword [0x408bf4]
call fcn.0040e77c
call fcn.00404abc
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403a0c
mov eax, ebx
call fcn.00405acc
mov dword [ebp - 0x24], eax
mov esi, 0x4abc70
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406f50
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405adc
test eax, eax
jle 0x4abc04
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4abbf0
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.004053d4
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x4abb96
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.004053ec
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x4abbac
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.004053ec
mov eax, dword [ebp - 0x54]
call fcn.004055f4
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.004053d4
mov eax, dword [ebp - 0x58]
call fcn.004055f4
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x4abbf2
xor eax, eax
test al, al
je 0x4abbfd
mov ebx, 0x15
jmp 0x4abc09
mov ebx, 0x10
jmp 0x4abc09
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x51cdc8]
call fcn.004ab8e4
mov eax, dword [ebp - 4]
call fcn.004ab8e4
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406f68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4abc68
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00405188
lea eax, [ebp - 0xc]
mov edx, dword [0x408540]
call fcn.00405cec
ret
Function at 0x4b44c8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4b44f6
mov eax, ebx
call fcn.004b4f7c
cmp dword [ebx + 0x40], 0
je 0x4b44ef
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4b4567
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4b4559
cmp dword [ebx + 8], 0
je 0x4b4518
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4b452a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b4559
cmp dword [ebx + 8], 0
je 0x4b450b
cmp eax, 3
je 0x4b453d
dec eax
jne 0x4b450b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4b450b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4b450b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4b4585
cmp dword [ebx + 0x14], 0xcc
je 0x4b4585
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004b4590
pop ebx
ret

Function at 0x4cbb3c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4cbb96
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004cbb2c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004c941c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004c8f34
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cbb9d
lea eax, [ebp - 4]
call fcn.00405164
ret
Function at 0x4de250
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4de306
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.004055f4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x4de2f0
lea eax, [ebp - 4]
mov edx, edi
call fcn.00405884
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebp - 0x10]
push eax
mov eax, esi
call fcn.004055f4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4de2f0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4de318
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4de2f0
cmp dword [ebp - 0xc], 0x34
jne 0x4de2f0
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de30d
lea eax, [ebp - 4]
call fcn.00405164
ret
Function at 0x4df328
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4df508
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.004de664
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x51f27c], eax
mov eax, dword [ebp - 0xc]
mov dword [0x51f280], eax
mov eax, dword [ebp - 0x24]
mov dword [0x51f284], eax
mov eax, dword [0x520ed0]
cmp dword [eax], 2
sete byte [0x51ea34]
push 0x4df514
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.004de10c
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp byte [0x51ea34], 0
jne 0x4df3b7
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.004de250
test al, al
je 0x4df3b7
mov eax, dword [ebp - 0x4c]
mov dword [0x52723c], eax
jmp 0x4df3be
xor eax, eax
mov dword [0x52723c], eax
call fcn.004df060
and eax, 0x7f
cmp eax, 0x12
ja case.0x4df3cf.0
jmp dword [eax*4 + 0x4df3d6]
mov byte [0x51ea20], 1
jmp case.0x4df3cf.0
mov byte [0x51ea24], 1
jmp case.0x4df3cf.0
mov byte [0x51ea28], 1
jmp case.0x4df3cf.0
mov byte [0x51ea2c], 1
jmp case.0x4df3cf.0
mov byte [0x51ea30], 1
jmp case.0x4df3cf.0
mov byte [0x51ea38], 1
mov byte [0x51ea3c], 1
jmp case.0x4df3cf.0
mov byte [0x51ea38], 1
mov byte [0x51ea40], 1
jmp case.0x4df3cf.0
mov byte [0x51ea38], 1
mov byte [0x51ea40], 1
mov byte [0x51ea44], 1
jmp case.0x4df3cf.0
mov byte [0x51ea48], 1
jmp case.0x4df3cf.0
mov byte [0x51ea4c], 1
jmp case.0x4df3cf.0
mov byte [0x51ea50], 1
jmp case.0x4df3cf.0
mov byte [0x51ea54], 1
jmp case.0x4df3cf.0
mov byte [0x51ea58], 1
jmp case.0x4df3cf.0
mov byte [0x51ea5c], 1
jmp case.0x4df3cf.0
mov byte [0x51ea60], 1
jmp case.0x4df3cf.0
mov byte [0x51ea64], 1
jmp case.0x4df3cf.0
mov byte [0x51ea68], 1
jmp case.0x4df3cf.0
mov byte [0x51ea6c], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4df50f
lea eax, [ebp - 4]
call fcn.00405164
ret

Function at 0x4e13a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4e1408
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004053d4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP_1
mov edx, eax
pop eax
call fcn.0040a384
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e140f
lea eax, [ebp - 0xc]
call fcn.00405164
ret
Function at 0x4e1da0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x4e1db5
add esp, 0xfffffff0
call fcn.0040456c
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
xor edx, edx
mov eax, ebx
call fcn.00404218
lea eax, [ebx + 0xc]
mov edx, esi
call fcn.004051b8
mov eax, esi
call fcn.004055f4
push eax
movzx eax, byte [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateMutexA
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x4e1e09
mov ecx, dword [0x520cb0]
mov dl, 1
mov eax, dword [0x4e1b84]
call fcn.004db9c0
call fcn.00404abc
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
sete al
mov byte [ebx + 4], al
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4e1e30
call fcn.004045c4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4e39dc
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], eax
mov edi, str.cw
mov esi, 4
mov eax, dword [esp]
mov ecx, 4
mov edx, eax
movzx ebx, byte [edx]
movzx ebx, byte [edi + ebx]
mov byte [edx], bl
inc edx
dec ecx
jne 0x4e39f7
add eax, 4
dec esi
jne 0x4e39f0
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4e3a10
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], eax
mov edi, 0x51fd44
mov esi, 4
mov eax, dword [esp]
mov ecx, 4
mov edx, eax
movzx ebx, byte [edx]
movzx ebx, byte [edi + ebx]
mov byte [edx], bl
inc edx
dec ecx
jne 0x4e3a2b
add eax, 4
dec esi
jne 0x4e3a24
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4e3ce4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff10
mov esi, edx
lea edi, [esp]
push ecx
mov ecx, 0x3c
rep movsd dword es:[edi], dword [esi]
pop ecx
xor edi, edi
mov edx, eax
mov ebx, ecx
add ebx, ebx
add ebx, ebx
add ebx, edi
mov esi, dword [esp + ebx*4]
mov ebx, esi
shr ebx, 0x18
and bl, 0xff
xor byte [edx], bl
mov ebx, esi
shr ebx, 0x10
and bl, 0xff
xor byte [edx + 1], bl
mov ebx, esi
shr ebx, 8
and bl, 0xff
xor byte [edx + 2], bl
mov ebx, esi
and bl, 0xff
xor byte [edx + 3], bl
inc edi
add edx, 4
cmp edi, 4
jne 0x4e3cff
add esp, 0xf0
pop edi
pop esi
pop ebx
ret
Function at 0x4e4054
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055e4
xor eax, eax
push ebp
push 0x4e412b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 4]
mov ebx, esi
test ebx, ebx
je 0x4e408c
sub ebx, 4
mov ebx, dword [ebx]
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 1
push ebx
mov eax, dword [ebp - 4]
call fcn.004055f4
mov edi, eax
push edi
call sub.Crypt32.dll_CryptStringToBinaryA
test eax, eax
je 0x4e4115
mov eax, dword [ebp - 0x10]
call fcn.00402fac
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4e410e
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, esi
test ebx, ebx
je 0x4e40d1
sub ebx, 4
mov ebx, dword [ebx]
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 1
push ebx
push edi
call sub.Crypt32.dll_CryptStringToBinaryA
test eax, eax
je 0x4e40f8
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.004204d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4115
mov eax, dword [ebp - 0xc]
call fcn.00402fc8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4132
lea eax, [ebp - 4]
call fcn.00405164
ret
Function at 0x4e60cc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov dword [esp], edx
mov ebx, eax
xor eax, eax
mov dword [esp + 4], eax
xor esi, esi
call fcn.004e5c70
test al, al
jne 0x4e60f7
mov eax, dword [esp]
push eax
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
jmp 0x4e614f
test ebx, ebx
je 0x4e614f
lea eax, [ebx + 0x3c]
mov eax, dword [eax]
add eax, ebx
mov esi, dword [eax + 0x78]
add esi, ebx
mov ebp, dword [esi + 0x18]
dec ebp
test ebp, ebp
jl 0x4e614b
inc ebp
xor edi, edi
mov eax, dword [esi + 0x20]
add eax, ebx
mov eax, dword [eax + edi*4]
add eax, ebx
mov edx, dword [esp]
call fcn.0040add8
test eax, eax
jne 0x4e6147
mov eax, dword [esi + 0x24]
add eax, ebx
movsx eax, word [eax + edi*2]
mov edx, dword [esi + 0x1c]
add edx, ebx
mov eax, dword [edx + eax*4]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, ebx
mov dword [esp + 4], eax
inc edi
dec ebp
jne 0x4e6112
mov esi, dword [esp + 4]
mov eax, esi
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x502e28
Capabilities:
Resolve dns
Send icmp echo request

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov esi, edx
mov edi, eax
xor ebx, ebx
test esi, esi
jg 0x502e3d
mov esi, 1
mov eax, edi
call fcn.004055f4
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x502eca
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx edx, byte [eax]
mov byte [esp], dl
movzx edx, byte [eax + 1]
mov byte [esp + 1], dl
movzx edx, byte [eax + 2]
mov byte [esp + 2], dl
movzx eax, byte [eax + 3]
mov byte [esp + 3], al
call sub.icmp.dll_IcmpCreateFile
mov edi, eax
push 0x3e8
push 0x1c
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push dword [esp + 0x18]
push edi
call sub.icmp.dll_IcmpSendEcho
test eax, eax
setne bl
test bl, bl
je 0x502ea4
cmp dword [esp + 8], 0
je 0x502ea8
xor eax, eax
jmp 0x502eaa
mov al, 1
mov ebx, eax
dec esi
cmp esi, 1
jle 0x502ebc
push 0x3e8
call sub.kernel32.dll_Sleep_2
test bl, bl
jne 0x502ec4
test esi, esi
jne 0x502e78
push edi
call sub.icmp.dll_IcmpCloseHandle
mov eax, ebx
add esp, 0x20
pop edi
pop esi
pop ebx
ret
Function at 0x503420
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055e4
mov eax, dword [ebp - 8]
call fcn.004055e4
mov eax, dword [ebp - 0xc]
call fcn.004055e4
mov eax, dword [ebp + 0x10]
call fcn.004055e4
mov eax, dword [ebp + 0xc]
call fcn.004055e4
mov eax, dword [ebp + 8]
call fcn.004055e4
xor eax, eax
push ebp
push 0x5035d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
xor edx, edx
push ebp
push 0x5035a0
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
call fcn.0040a750
test al, al
je 0x50349f
mov eax, dword [ebp - 8]
call fcn.004055f4
push eax
call sub.kernel32.dll_DeleteFileA
xor edx, edx
push ebp
push 0x50358f
push dword fs:[edx]
mov dword fs:[edx], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4a5568]
call fcn.004747b0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push 1
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.0050312c
test al, al
je 0x503565
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.004a83c8
xor eax, eax
push ebp
push 0x503538
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41b604]
call fcn.00404218
mov dword [ebp - 0x18], eax
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.004a6eb0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov dword [ebp - 0x1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50353f
lea eax, [ebp - 0x18]
call fcn.00410398
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503596
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x5c]
test al, al
je 0x503586
mov eax, dword [ebp - 0x14]
call fcn.00487ed8
lea eax, [ebp - 0x14]
call fcn.00410398
ret
Function at 0x503c84
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055e4
xor eax, eax
push ebp
push 0x503de8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
xor edx, edx
push ebp
push 0x503d95
push dword fs:[edx]
mov dword fs:[edx], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4e7cb8]
call fcn.004e9f54
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00503974
test al, al
je 0x503d8b
xor edx, edx
push ebp
push 0x503d84
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004ebf14
mov eax, dword [ebp - 0xc]
call fcn.004ec930
test al, al
je 0x503d55
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004ebfe4
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.004ebf14
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.004ebc7c
mov eax, dword [ebp - 0xc]
call fcn.004ecc9c
mov eax, dword [ebp - 4]
call fcn.004055f4
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 8], 1
jmp 0x503d5a
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503d8b
mov eax, dword [ebp - 0xc]
call fcn.004eab30
test al, al
je 0x503d7b
mov eax, dword [ebp - 0xc]
call fcn.004ecb7c
lea eax, [ebp - 0xc]
call fcn.00410398
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x503dca
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503def
lea eax, [ebp - 0x10]
call fcn.00405164
lea eax, [ebp - 4]
call fcn.00405164
ret

Function at 0x503f98
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004055e4
mov eax, dword [ebp - 8]
call fcn.004055e4
xor eax, eax
push ebp
push 0x50405b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x504078
call fcn.004051fc
xor edx, edx
push ebp
push 0x504039
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
movzx eax, byte [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00503b04
dec eax
jne 0x50401d
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504040
mov eax, dword [ebp - 0xc]
call fcn.004055f4
push eax
call sub.kernel32.dll_DeleteFileA
ret
Function at 0x50407c
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebx
push esi
add esp, 0xfffffe6c
mov ebx, eax
lea eax, [esp + 4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x5040a7
mov eax, ebx
mov edx, 0x5040e8
call fcn.004051b8
jmp 0x5040d0
push 4
push esi
call sub.wsock32.dll_gethostname
push esi
call sub.wsock32.dll_gethostbyname
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp], eax
push dword [esp]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call fcn.0040535c
call sub.wsock32.dll_WSACleanup
add esp, 0x194
pop esi
pop ebx
ret

Function at 0x5040f8
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x410], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x504233
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405164
push 0
push 0
push 0
push 0
push 0x504244
call sub.wininet.dll_InternetOpenA
mov esi, eax
test esi, esi
je 0x504204
push 0
push 0x80000000
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004055f4
push eax
push esi
call sub.wininet.dll_InternetOpenUrlA
mov edi, eax
test edi, edi
je 0x5041cd
lea eax, [ebp - 0x409]
xor ecx, ecx
mov edx, 0x401
call fcn.00403a0c
lea eax, [ebp - 0x410]
lea edx, [ebp - 0x409]
mov ecx, 0x401
call fcn.004053d4
mov edx, dword [ebp - 0x410]
mov eax, ebx
call fcn.00405430
lea eax, [ebp - 0x409]
xor ecx, ecx
mov edx, 0x401
call fcn.00403a0c
lea eax, [ebp - 8]
push eax
push 0x401
lea eax, [ebp - 0x409]
push eax
push edi
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 8], 0
jne 0x504174
push edi
call sub.wininet.dll_InternetCloseHandle
jmp 0x5041fc
mov eax, dword [ebp - 4]
mov dword [ebp - 0x418], eax
mov byte [ebp - 0x414], 0xb
lea eax, [ebp - 0x418]
push eax
push 0
mov ecx, 0x504258
mov dl, 1
mov eax, dword [0x408bf4]
call fcn.0040e6fc
call fcn.00404abc
push esi
call sub.wininet.dll_InternetCloseHandle
jmp 0x50421a
mov ecx, 0x504274
mov dl, 1
mov eax, dword [0x408bf4]
call fcn.0040e6c0
call fcn.00404abc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50423a
lea eax, [ebp - 0x410]
call fcn.00405164
ret
Function at 0x50702c
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055e4
mov eax, dword [ebp - 8]
call fcn.004055e4
mov eax, dword [ebp + 0xc]
call fcn.004055e4
mov eax, dword [ebp + 8]
call fcn.004055e4
xor eax, eax
push ebp
push 0x507205
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x507196
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x1d], 0
lea eax, [ebp - 0x10]
mov edx, 0x507224
call fcn.004051fc
lea eax, [ebp - 0x18]
call fcn.0050407c
lea edx, [ebp - 0x2c]
mov eax, 0x507238
call fcn.004104e8
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.0040aae4
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0040f3fc
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.0040547c
mov eax, dword [ebp - 0xc]
call fcn.004055f4
mov esi, eax
mov ebx, esi
push 0
push ebx
mov eax, dword [ebp - 8]
call fcn.004055f4
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea edx, [ebp - 0x54]
mov ecx, 4
mov eax, 0x507248
call fcn.0040b788
mov dl, 1
mov eax, dword [0x5022c0]
call fcn.00502318
mov ebx, eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.005040f8
mov dl, 1
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 4]
mov edx, 0x5072ac
mov eax, dword [ebp - 0x14]
call fcn.0043e0c8
test al, al
je 0x50717a
mov byte [ebp - 0x1d], 1
mov eax, dword [ebp - 0xc]
call fcn.0040a750
test al, al
je 0x50718c
push esi
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5071c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50720c
lea eax, [ebp - 0x58]
call fcn.00405164
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00405188
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00405188
lea eax, [ebp + 8]
mov edx, 2
call fcn.00405188
ret