joyce8/EMBER2024-capa huggingface dataset:
Function at 0x539bd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov dword [esp], ecx
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
mov ebx, dword [edx]
mov esi, edx
mov dword [esp + 0x3c], eax
call fcn.00449fa0
mov ecx, dword [esp + 0x3c]
mov edi, eax
mov eax, ebx
test edx, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
je 0x539cda
mov ebx, edx
nop dword [eax + eax]
add edi, 0x10
dec ebx
cmp ebx, 0xffffffff
je 0x539cee
lea eax, [edi - 0x10]
lea ecx, [esp + 0x20]
lea esi, [esp + 0x40]
lea edx, [esp + 0xc]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
mov eax, dword [esp + 0x1c]
movsd qword [esp + 0x48], xmm1
movsd qword [esp + 0x40], xmm0
mov eax, dword [eax + 0xc]
push esi
push dword [eax + 0x20]
call fcn.00533840
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, eax
xor edx, 0x2e
or edx, ecx
je 0x539d1a
lea esi, [esp + 0x32]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
mov esi, dword [esi]
mov dword [esp + 4], esi
lea esi, [esp + 0x32]
movzx esi, word [esi + 4]
mov word [esp + 8], si
movzx esi, word [esp + 0x30]
cmp si, word [ebp + 8]
mov esi, dword [esp + 0x2c]
jne 0x539c20
movzx edi, word [esp + 8]
mov ebx, dword [esp]
mov word [ebx + 0x16], di
mov edi, dword [esp + 4]
mov dword [ebx + 0x12], edi
mov dword [ebx + 4], ecx
movzx ecx, word [ebp + 8]
mov dword [ebx], eax
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], esi
mov word [ebx + 0x10], cx
jmp 0x539d5b
cmp dword [esi + 0x14], 0
jne 0x539d08
sub eax, dword [esi]
mov dword [esi + 0x14], 1
mov dword [esi + 0x18], eax
jmp 0x539d08
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x14], 0
jne 0x539d08
mov ecx, dword [esp + 0xc]
sub ecx, dword [eax]
mov dword [eax + 0x14], 1
mov dword [eax + 0x18], ecx
mov eax, dword [esp]
mov dword [eax + 4], 0
mov dword [eax], 0x2e
jmp 0x539d5b
lea edx, [esp + 0x32]
mov ecx, dword [esp]
mov edi, dword [esp + 0x2c]
mov esi, dword [edx]
movzx eax, word [edx + 4]
movzx edx, word [esp + 0x30]
mov dword [esp + 4], esi
mov dword [ecx + 0x12], esi
mov esi, dword [esp + 0x28]
mov word [ecx + 0x16], ax
mov word [esp + 8], ax
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], esi
mov word [ecx + 0x10], dx
mov dword [ecx + 4], 0
mov dword [ecx], 0x2f
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x540ed0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x438
mov esi, ecx
lea ecx, [ebp - 0x444]
push dword [ebp + 8]
call fcn.00520d80
add esp, 4
mov eax, dword [ebp - 0x444]
cmp eax, 0x80000000
jne 0x540f12
lea ecx, [ebp - 0x444]
call fcn.00520ef0
mov dword [esi], 0x80000000
jmp 0x5410a8
mov ecx, dword [ebp - 0x440]
mov dword [ebp - 0x20], esi
mov esi, 0x200
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], ecx
cmp esi, 0x201
jae 0x540f80
jmp 0x540f6e
jbe 0x541008
cmp esi, 0x201
jae 0x540f80
mov dword [ebp - 0x28], 0x200
lea edi, [ebp - 0x444]
mov ebx, esi
jmp 0x540fb4
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
sub esi, ebx
sub eax, ebx
cmp eax, esi
jae 0x540fa5
mov edx, ebx
lea ecx, [ebp - 0x34]
push esi
call fcn.005211b0
add esp, 4
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], ebx
push 0
call sub.KERNEL32.DLL_SetLastError
push ebx
push edi
push dword [ebp - 0x1c]
call sub.KERNEL32.DLL_GetEnvironmentVariableW
mov esi, eax
test eax, eax
jne 0x540fd8
call sub.KERNEL32.DLL_GetLastError
test eax, eax
jne 0x5410b3
cmp esi, ebx
jne 0x540f60
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x7a
jne 0x5410d0
lea esi, [ebx + ebx]
test ebx, ebx
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x540f6e
jmp 0x540f80
mov edx, dword [ebp - 0x28]
cmp esi, edx
ja 0x5410e9
mov edx, edi
lea ecx, [ebp - 0x44]
push esi
call fcn.00522900
add esp, 4
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], 0
je 0x541043
mov ecx, dword [ebp - 0x18]
mov edx, 2
call fcn.004256e0
cmp edi, 0x80000000
jne 0x541084
mov eax, dword [ebp - 0x20]
cmp bl, 3
mov dword [eax], 0x80000000
jne 0x541095
mov edi, dword [esi + 4]
mov ebx, dword [esi]
mov eax, dword [edi]
push ebx
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x541076
mov edx, dword [edi + 8]
mov ecx, ebx
call fcn.004256e0
mov ecx, esi
mov edx, 4
call fcn.004256e0
jmp 0x541095
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
cmp dword [ebp - 0x24], 0
je 0x5410a8
mov ecx, dword [ebp - 0x1c]
mov edx, 2
call fcn.004256e0
add esp, 0x438
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
mov edi, 0x80000000
call sub.KERNEL32.DLL_GetLastError
mov esi, eax
cmp dword [ebp - 0x14], 0
jne 0x541036
jmp 0x541043
mov edx, 0x28
mov ecx, str.internal_error:_entered_unreachable_codeC:Users_admin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rustls_webpki_0.101.7_srccalendar.rs
push 0x69e0d0
call fcn.0043a9e0
add esp, 4
jmp 0x5410f8
mov ecx, esi
push 0x69e0c0
call fcn.0043a6f0
add esp, 4
ud2
Function at 0x542e00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
xorps xmm0, xmm0
call 0x542e11
pop eax
mov ebx, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x40], xmm0
lea edi, [ebp - 0x40]
lea ecx, [ebp - 0x14]
push 0x20
push edi
call fcn.00543180
add esp, 8
movzx eax, byte [ebp - 0x14]
cmp al, 4
jne 0x542e7f
mov esi, dword [ebp - 0x10]
cmp esi, 0x21
jae 0x542f35
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ebx, dword [edi + 8]
sub eax, ebx
cmp eax, esi
jb 0x542f20
mov eax, dword [edi + 4]
add eax, ebx
push esi
lea ecx, [ebp - 0x40]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x1c]
add ebx, esi
mov dword [edi + 8], ebx
mov dword [eax + 4], esi
mov byte [eax], 4
jmp 0x542f18
mov dword [ebp - 0x20], ebx
jmp 0x542eba
movzx ecx, al
mov ecx, dword [ecx*4 + 0x542f70]
add ecx, dword [ebp - 0x18]
jmp ecx
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
mov edx, ebx
push esi
call fcn.00524120
add esp, 4
mov ebx, dword [edi + 8]
jmp 0x542e59
mov ecx, esi
mov edx, 0x20
push 0x69ca48
call fcn.0043a6f0
cmp dword [edi + 4], 0
mov dword [ebp - 0x18], eax
je 0x542f59
mov edx, dword [edi + 8]
mov ecx, ebx
call fcn.004256e0
mov ecx, esi
mov edx, 4
call fcn.004256e0
push dword [ebp - 0x18]
call fcn.0056dac0
nop dword [eax]
sti
add byte [eax], al
add bh, cl
add byte [eax], al
add byte [eax - 0x48000000], bh
add byte [eax], al
add byte [ebp - 0x77], dl
push ebp
mov ebp, esp
push ebx

Function at 0x542f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
call 0x542f97
pop ebx
mov edx, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov eax, edx
sub eax, edi
jb 0x54304f
mov esi, dword [ecx]
add esi, edi
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
push esi
call fcn.005430a0
add esp, 8
movzx esi, byte [ebp - 0x18]
cmp esi, 4
jne 0x542fe1
add edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], edi
mov eax, dword [ecx + 0xc]
cmp eax, edi
cmova edi, eax
mov dword [ecx + 0xc], edi
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 4
jmp 0x543047
add ebx, dword [esi*4 + 0x543084]
jmp ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
push 0x69b538
call fcn.00439ff0
cmp dword [ebx + 4], 0
mov dword [ebp - 0x10], eax
je 0x54306e
mov edx, dword [ebx + 8]
mov ecx, edi
call fcn.004256e0
mov ecx, esi
mov edx, 4
call fcn.004256e0
push dword [ebp - 0x10]
call fcn.0056dac0
nop
pop esp
add byte [eax], al
add byte [esi], ah
add byte [eax], al
push ebx
add byte [eax], al
add byte [ebx], dl
add byte [eax], al
nop word cs:[eax + eax]
nop
Function at 0x5430a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov edi, edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x103
lea edx, [ebp - 0x14]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x5430e8
push 0xffffffffffffffff
push edi
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, dword [ebp - 0x14]
cmp eax, 0xc0000011
jne 0x5430f8
mov dword [esi + 4], 0
jmp 0x543109
cmp eax, 0x103
je 0x543121
test eax, eax
js 0x543113
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x34
pop esi
pop edi
pop ebp
ret
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x54310c
lea eax, [ebp - 0xc]
mov dword [ebp - 0x3c], 0x69d7ac
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], 0
push eax
push ecx
push edx
call fcn.0051e990
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
call fcn.0051ea60
mov ecx, 7
int 0x29
ud2

Function at 0x547380
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push eax
mov esi, ecx
test ecx, ecx
jne 0x547397
movzx eax, byte [0x7060bc]
test al, al
je 0x5473b4
mov byte [0x7060bc], 1
call fcn.00547400
test eax, eax
je 0x5473b8
mov ecx, dword [eax]
mov dword [eax], esi
mov eax, ecx
add esp, 4
pop esi
pop edi
pop ebp
ret
xor ecx, ecx
jmp 0x5473ab
test esi, esi
je 0x5473c8
lock dec dword [esi]
jne 0x5473c8
mov ecx, esi
call fcn.00547500
lea eax, [ebp - 9]
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_std_src_threadlocal.rs
mov edx, 0x46
push 0x69c9d4
push 0x69b840
push eax
call fcn.0043f6f0
mov edi, eax
test esi, esi
je 0x5473f7
lock dec dword [esi]
jne 0x5473f7
mov ecx, esi
call fcn.00547500
push edi
call fcn.0056dac0
nop dword [eax]
Function at 0x547400
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x5920d8]
test eax, eax
je 0x5474b9
dec eax
push eax
call sub.KERNEL32.DLL_TlsGetValue
cmp eax, 2
jb 0x54742e
cmp dword [eax + 4], 0
mov edi, eax
je 0x54742e
add edi, 8
jmp 0x5474b3
mov eax, dword [0x5920d8]
test eax, eax
je 0x5474c8
dec eax
push eax
call sub.KERNEL32.DLL_TlsGetValue
cmp eax, 1
je 0x5474b1
mov esi, eax
test eax, eax
jne 0x547487
movzx eax, byte [0x706188]
mov ecx, 0xc
mov edx, 4
call fcn.00425680
test eax, eax
je 0x5474e3
mov dword [eax], 0x5920d8
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x5920d8]
test eax, eax
je 0x5474d7
dec eax
push esi
push eax
call sub.KERNEL32.DLL_TlsSetValue
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x5474b3
test ecx, ecx
je 0x5474b3
lock dec dword [ecx]
jne 0x5474b3
call fcn.00547500
jmp 0x5474b3
xor edi, edi
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov ecx, 0x5920d8
call fcn.0051f070
jmp 0x547413
mov ecx, 0x5920d8
call fcn.0051f070
jmp 0x54743c
mov ecx, 0x5920d8
call fcn.0051f070
jmp 0x547480
mov ecx, 4
mov edx, 0xc
call fcn.00434230
nop word cs:[eax + eax]
nop dword [eax]
Function at 0x547a80
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1ac
movzx eax, word [edx + 8]
mov esi, ecx
mov ecx, dword [edx]
mov ebx, dword [edx + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x70611c]
cmp eax, 3
jne 0x547c4e
cmp ebx, 0x17f
ja 0x547c63
lea eax, [ebp - 0x1b8]
mov edi, ebx
push ebx
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebx + 1]
cmp ebx, 6
mov byte [ebp + ebx - 0x1b8], 0
ja 0x547af8
xor edx, edx
nop dword [eax]
cmp byte [ebp + edx - 0x1b8], 0
je 0x547bc0
inc edx
cmp eax, edx
jne 0x547ae0
jmp 0x547c16
lea ecx, [ebp - 0x1b5]
lea edx, [ebp - 0x1b8]
mov dword [ebp - 0x10], esi
and ecx, 0xfffffffc
sub ecx, edx
je 0x547b3c
je 0x547b3c
xor edx, edx
nop word cs:[eax + eax]
nop dword [eax]
cmp byte [ebp + edx - 0x1b8], 0
je 0x547bbd
inc edx
cmp ecx, edx
jne 0x547b20
lea edx, [ebx - 7]
cmp ecx, edx
jbe 0x547b41
jmp 0x547b91
lea edx, [ebx - 7]
xor ecx, ecx
movdqa xmm0, xmmword [0x5935d0]
movdqa xmm1, xmmword [0x5935e0]
nop word cs:[eax + eax]
nop dword [eax + eax]
movq xmm2, qword [ebp + ecx - 0x1b8]
movdqa xmm3, xmm2
paddd xmm3, xmm0
pandn xmm2, xmm3
pand xmm2, xmm1
movd edi, xmm2
pshufd xmm2, xmm2, 0x55
movd esi, xmm2
or esi, edi
jne 0x547b91
add ecx, 8
cmp ecx, edx
jbe 0x547b60
mov esi, dword [ebp - 0x10]
sub eax, ecx
je 0x547c16
lea edi, [ebp + ecx - 0x1b8]
xor edx, edx
nop word cs:[eax + eax]
nop dword [eax + eax]
cmp byte [edi + edx], 0
je 0x547c10
inc edx
cmp eax, edx
jne 0x547bb0
jmp 0x547c16
mov esi, dword [ebp - 0x10]
cmp edx, ebx
jne 0x547c16
pxor xmm0, xmm0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x38]
movdqu xmmword [ebp - 0x38], xmm0
movdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x30], 1
push eax
push ecx
push 0
lea eax, [ebp - 0x1b8]
push eax
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x547c2f
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
jmp 0x547c41
add edx, ecx
cmp edx, ebx
je 0x547bc4
mov eax, dword [0x69cda8]
mov ecx, dword [0x69cdac]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x547c43
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov word [esi + 0xc], ax
xor eax, eax
mov dword [esi], eax
add esp, 0x1ac
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, ecx
call fcn.00548000
mov ecx, edi
cmp ebx, 0x17f
jbe 0x547ab4
mov edx, ecx
mov ecx, esi
push dword [ebp - 0x14]
push ebx
call fcn.00548050
add esp, 0x1b4
jmp 0x547c49
Function at 0x548050
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
call fcn.00434400
add esp, 4
mov eax, dword [ebp - 0x20]
cmp eax, 0x80000000
jne 0x5480bc
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
push eax
push ecx
push 0
push edi
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x5480dd
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
jmp 0x5480f0
mov ecx, dword [0x69cda8]
mov edx, dword [0x69cdac]
test eax, eax
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x548105
mov ecx, dword [ebp - 0x1c]
jmp 0x5480fb
mov ecx, dword [ebp - 0x10]
movzx eax, word [ebp + 0xc]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x548105
mov ecx, edi
mov edx, 1
call fcn.004256e0
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x548230
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov edi, dword [edx + 0xc]
mov ebx, dword [edx + 0x10]
mov dword [ebp - 0x10], ecx
xor ecx, ecx
cmp edi, ebx
ja 0x54834d
mov eax, dword [edx + 8]
cmp ebx, eax
mov dword [ebp - 0x1c], eax
ja 0x54834d
mov esi, dword [edx + 0x14]
mov eax, dword [edx + 4]
lea ecx, [edx + 0x18]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], eax
add eax, edi
lea ecx, [esi - 1]
cmp esi, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], eax
jbe 0x5482e0
nop dword [eax]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, ecx
sub ebx, edi
movzx ecx, byte [eax + ecx]
push ebx
call fcn.004424d0
add esp, 4
cmp eax, 1
jne 0x548352
mov ebx, edx
mov ecx, esi
add ebx, edi
mov eax, ebx
sub eax, esi
jb 0x5482ba
add eax, dword [ebp - 0x14]
jb 0x5482ba
cmp eax, dword [ebp - 0x1c]
jbe 0x54837d
mov edx, dword [ebp - 0x18]
cmp edi, ebx
mov dword [edx + 0x10], ebx
ja 0x548358
cmp ebx, dword [ebp - 0x1c]
jbe 0x548280
jmp 0x548358
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, ecx
sub ebx, edi
movzx ecx, byte [eax + ecx]
push ebx
call fcn.004424d0
add esp, 4
cmp eax, 1
jne 0x548352
mov ebx, edx
mov ecx, esi
add ebx, edi
mov edx, ebx
sub edx, esi
jb 0x54833c
mov esi, edx
add esi, dword [ebp - 0x14]
jb 0x54833c
cmp esi, dword [ebp - 0x1c]
ja 0x54833c
mov eax, dword [ebp - 0x28]
add eax, edx
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push eax
mov dword [ebp - 0x2c], esi
mov esi, ecx
mov dword [ebp - 0x30], edx
call sub.msvcrt.dll_memcmp
mov ecx, esi
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
add esp, 0xc
test eax, eax
je 0x548367
mov edx, dword [ebp - 0x18]
cmp edi, ebx
mov dword [edx + 0x10], ebx
ja 0x548358
cmp ebx, dword [ebp - 0x1c]
jbe 0x5482e0
jmp 0x548358
mov eax, dword [ebp - 0x10]
jmp 0x54835d
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x10], edi
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [eax], ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov ecx, 1
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov dword [eax + 8], esi
jmp 0x54835d
mov ecx, dword [ebp - 0x14]
mov edx, 4
push 0x6c2d4c
call fcn.0043a6f0
nop
Function at 0x548390
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 8]
test dx, dx
mov eax, 2
mov ebx, 0x17
mov esi, ecx
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push edi
push ebx
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x5483cd
mov dword [esi + 4], eax
mov byte [esi], 4
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x5483e0
cmp eax, 0x2739
jne 0x548409
push 1
push 0
push 0
push 0
push edi
push ebx
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x548411
mov edi, eax
push 0
push 1
push eax
call sub.KERNEL32.DLL_SetHandleInformation
test eax, eax
je 0x548421
mov dword [esi + 4], edi
jmp 0x5483c5
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x5483c8
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x5483c8
call sub.KERNEL32.DLL_GetLastError
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [esi], 0
shr ecx, 8
shl edx, 0x18
mov byte [esi + 7], al
mov dword [esi + 1], edx
mov word [esi + 5], cx
push edi
call sub.ws2_32.dll_closesocket
jmp 0x5483c8

Function at 0x548450
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 0
lea edi, [ebp - 0xc]
push 0
push 0
push 0
push edi
push ecx
push eax
push edx
call sub.ws2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x548487
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x548495
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
add esp, 4
pop esi
pop edi
pop ebp
ret
Function at 0x54e4f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call fcn.00520d80
add esp, 4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
cmp edx, 0x80000000
jne 0x54e529
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], 0x80000000
jmp 0x54e548
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x30], eax
call fcn.0054e420
mov ebx, dword [ebp - 0x18]
cmp ebx, 0x80000000
jne 0x54e55e
lea ecx, [ebp - 0x18]
call fcn.00520ef0
mov dword [esi], 0x80000000
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x54e57f
mov eax, dword [ebp - 0x1c]
mov dword [esi], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], eax
jmp 0x54e556
test ebx, ebx
mov dword [esi], 0x80000000
je 0x54e556
mov ecx, edi
mov edx, 2
call fcn.004256e0
jmp 0x54e556
Function at 0x54feb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
movzx eax, byte [0x706188]
mov ebx, edx
mov esi, ecx
mov ecx, 8
mov edx, 4
call fcn.00425680
test eax, eax
je 0x54ff43
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
push 0
push 0x10000
push edi
push 0x54ffa0
push ebx
push 0
call sub.KERNEL32.DLL_CreateThread
test eax, eax
je 0x54ff03
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x54ff3b
mov ebx, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [ebx]
mov dword [ebp - 0x10], ecx
push ecx
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x54ff24
mov edx, dword [ebx + 8]
mov ecx, dword [ebp - 0x10]
call fcn.004256e0
mov ecx, edi
mov edx, 4
call fcn.004256e0
call sub.KERNEL32.DLL_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, 4
mov edx, 8
call fcn.00434230
ud2

Function at 0x550200
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1024
call fcn.005760a0
mov esi, edx
mov edi, ecx
lea ebx, [ebp - 0x1030]
push 0x1000
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push 0x548d30
push eax
push 0x1000
push ebx
push edi
call sub.KERNEL32.DLL_ReadFileEx
test eax, eax
je 0x550326
mov dword [ebp - 0x10], edi
push 1
push 0xffffffffffffffff
call sub.KERNEL32.DLL_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x55025e
cmp dword [ebp - 0x18], 0
jne 0x550335
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x550335
cmp ebx, 0x1000
ja 0x55035f
xor edi, edi
mov eax, ebx
sub eax, edi
jb 0x55034c
xorps xmm0, xmm0
lea edx, [ebp - 0x1c]
lea ecx, [ebp + edi - 0x1030]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edx
push 0x548d30
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push esi
call sub.KERNEL32.DLL_WriteFileEx
test eax, eax
je 0x55032d
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call sub.KERNEL32.DLL_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x5502d0
cmp dword [ebp - 0x18], 0
jne 0x550332
add edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x550290
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
push 0x548d30
lea eax, [ebp - 0x30]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
mov edi, dword [ebp - 0x10]
push edi
call sub.KERNEL32.DLL_ReadFileEx
test eax, eax
jne 0x55025e
call sub.KERNEL32.DLL_GetLastError
jmp 0x550335
call sub.KERNEL32.DLL_GetLastError
mov edi, dword [ebp - 0x10]
push edi
call sub.KERNEL32.DLL_CloseHandle
push esi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0x1024
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, ebx
mov ecx, edi
push 0x69da5c
call fcn.0043e3d0
add esp, 4
jmp 0x550373
mov edx, 0x1000
mov ecx, ebx
push 0x69da5c
call fcn.0043a6f0
add esp, 4
ud2