joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483cb0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b4
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
movzx eax, word [eax + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x51e10c]
cmp eax, 3
jne 0x483d96
cmp ebx, 0x17f
ja 0x483da7
lea esi, [ebp - 0x1c0]
push ebx
push edi
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [ebp + ebx - 0x1c0], 0
inc ebx
lea eax, [ebp - 0x20]
push ebx
push esi
push eax
call fcn.004b2250
add esp, 0xc
cmp dword [ebp - 0x20], 0
je 0x483d35
mov esi, dword [ebp + 8]
mov eax, dword [0x4e0480]
mov ecx, dword [0x4e0484]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x483db7
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
push ecx
push edx
push 0
push eax
call sub.ws2_32.dll_getaddrinfo
mov esi, dword [ebp + 8]
test eax, eax
je 0x483d80
call sub.ws2_32.dll_WSAGetLastError
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x483db7
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov word [esi + 0xc], ax
xor eax, eax
mov dword [esi], eax
jmp 0x483db7
call fcn.0046dd80
cmp ebx, 0x17f
jbe 0x483ce8
mov ecx, esi
mov edx, edi
push dword [ebp - 0x10]
push ebx
call fcn.0046ec10
add esp, 8
mov eax, esi
add esp, 0x1b4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x484320
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0xa0
xorps xmm0, xmm0
mov esi, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0xc], pe_nt_image_headers32
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
push eax
push ecx
push edx
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x4843c5
movzx ecx, word [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp ecx, 2
je 0x4843dd
cmp ecx, 0x17
jne 0x484401
cmp eax, 0x1b
jbe 0x484417
movzx eax, word [esp + 0x12]
movups xmm0, xmmword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov word [esi], 1
rol ax, 8
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edx
mov word [esi + 0x1c], ax
lea esp, [ebp - 4]
pop esi
pop ebp
ret
call sub.ws2_32.dll_WSAGetLastError
mov byte [esi + 4], 0
mov byte [esi + 7], 0
mov word [esi + 5], 0
mov dword [esi + 8], eax
jmp 0x48440c
cmp eax, 0xf
jbe 0x484428
movzx ecx, word [esp + 0x12]
mov eax, dword [esp + 0x14]
mov word [esi], 0
rol cx, 8
mov dword [esi + 2], eax
mov word [esi + 6], cx
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov byte [esi + 4], 2
mov dword [esi + 8], 0x4e2368
mov word [esi], 2
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x4e2348
push 0x43
push 0x4e2304
call fcn.004b4b80
push 0x4e22f4
push 0x42
push str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
call fcn.004b4b80
nop dword [eax]
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x5c]
push 0xb
push 0x4e23d8
push dword [ebp + 0xc]
push edi
call fcn.004b8cc0
add esp, 0x10
mov esi, dword [esi]
lea ecx, [ebp - 0x34]
mov edx, esi
call fcn.00484320
cmp word [ebp - 0x34], 2
jne 0x4844b8
cmp byte [ebp - 0x30], 3
jne 0x4844f9
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
mov dword [ebp - 0x10], ecx
push ecx
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x4844a7
push dword [ebx + 8]
push eax
push dword [ebp - 0x10]
call fcn.00401c20
add esp, 0xc
push 4
push 0xc
push dword [ebp - 0x14]
call fcn.00401c20
add esp, 0xc
jmp 0x4844f9
movsd xmm1, qword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x1c]
movsd xmm2, qword [ebp - 0x34]
movsd qword [ebp - 0x44], xmm1
movsd xmm1, qword [ebp - 0x2c]
movsd qword [ebp - 0x3c], xmm0
movsd qword [ebp - 0x54], xmm2
movsd qword [ebp - 0x4c], xmm1
lea eax, [ebp - 0x54]
push 0x4e23c4
push eax
push 4
push str.addrlinenolibrary_std_src...._backtrace_src_symbolizemod.rs
push edi
call fcn.004b5380
add esp, 0x14
mov dword [ebp - 0x54], esi
lea eax, [ebp - 0x54]
push 0x4dea18
push eax
push 6
push 0x4dfe0e
push edi
call fcn.004b5380
add esp, 0x14
push eax
call fcn.004b5570
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4849d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00484990
nop
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 8]
cmp dword [eax], 2
jne 0x484a52
mov esi, dword [eax + 0x24]
test esi, esi
je 0x484a77
mov ecx, dword [ebp + 0xc]
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
nop word cs:[eax + eax]
nop
push esi
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.004ba8d0
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x484a5e
mov dword [ebp - 0x20], ebx
movzx eax, byte [ebp - 0x13]
mov edi, dword [ebp - 0x18]
movzx ebx, byte [ebp - 0x14]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x10]
push 3
push 0x4e070c
call fcn.004b9ae0
add esp, 0xc
test al, al
jne 0x484a73
test bl, 1
je 0x484a77
add edi, dword [ebp - 0x24]
cmp esi, edi
jb 0x484a81
mov ebx, dword [ebp - 0x20]
add ebx, edi
sub esi, edi
jne 0x484a00
jmp 0x484a77
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004a6b60
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.004b9ae0
add esp, 0xc
test al, al
je 0x484a77
mov al, 1
jmp 0x484a79
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4e0cb4
push esi
push edi
call fcn.004ba610
nop dword [eax]
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 8]
cmp dword [eax], 2
jne 0x484b12
mov esi, dword [eax + 0x24]
test esi, esi
je 0x484b37
mov ecx, dword [ebp + 0xc]
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
nop word cs:[eax + eax]
nop
push esi
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.004ba8d0
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x484b1e
mov dword [ebp - 0x20], ebx
movzx eax, byte [ebp - 0x13]
mov edi, dword [ebp - 0x18]
movzx ebx, byte [ebp - 0x14]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x10]
push 3
push 0x4e070c
call fcn.004b97a0
add esp, 0xc
test al, al
jne 0x484b33
test bl, 1
je 0x484b37
add edi, dword [ebp - 0x24]
cmp esi, edi
jb 0x484b41
mov ebx, dword [ebp - 0x20]
add ebx, edi
sub esi, edi
jne 0x484ac0
jmp 0x484b37
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004a6cc0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.004b97a0
add esp, 0xc
test al, al
je 0x484b37
mov al, 1
jmp 0x484b39
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4e0cb4
push esi
push edi
call fcn.004ba610
nop dword [eax]

Function at 0x484b50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x4b0
call fcn.00484b64
Function at 0x488ec0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 7
mov dword [esp + 0x32], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x36], 0
mov byte [esp + 0x34], 1
lea esi, [esp + 0x18]
lea ecx, [esp + 0xc]
push esi
push eax
call fcn.00473d90
add esp, 8
cmp byte [esp + 0xc], 4
jne 0x488f35
mov esi, dword [esp + 0x10]
jmp 0x488f46
movzx eax, byte [esp + 0xc]
mov esi, dword [esp + 0x10]
cmp al, 4
jne 0x488ff1
lea ebx, [esp + 0x18]
mov edx, esi
mov ecx, ebx
call fcn.00473fc0
mov eax, dword [esp + 0x18]
xor eax, 2
or eax, dword [esp + 0x1c]
jne 0x488fa9
cmp byte [esp + 0x20], 3
jne 0x488fe6
mov eax, dword [esp + 0x24]
mov ebx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp + 4], ecx
push ecx
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x488f97
push dword [ebx + 8]
push eax
push dword [esp + 0xc]
call fcn.00401c20
add esp, 0xc
push 4
push 0xc
push dword [esp + 0x10]
call fcn.00401c20
add esp, 0xc
jmp 0x488fe6
cmp dword [esp + 0x54], 0
jne 0x488fe6
mov eax, dword [esp + 0x50]
test esi, esi
mov dword [esp + 8], eax
je 0x489003
mov dword [esp + 0x18], 0
call sub.kernel32.dll_GetCurrentProcess
push 2
push 0
push 0
push ebx
push eax
push esi
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x48906b
mov eax, dword [esp + 0x18]
jmp 0x489005
mov dword [edi], 0
jmp 0x489076
movzx ecx, al
mov edx, esi
call fcn.0043ac20
mov dword [edi], 0
jmp 0x48907c
xor eax, eax
push 0
push 0
push 0
push 2
push 0
mov dword [esp + 0x18], eax
push eax
call sub.kernel32.dll_CreateFileMappingA
test eax, eax
je 0x48905a
mov ebx, eax
push dword [esp + 8]
push 0
push 0
push 4
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [esp + 0x14], eax
push ebx
call sub.kernel32.dll_CloseHandle
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x48905a
mov eax, dword [esp + 4]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov ecx, dword [esp + 8]
mov dword [edi + 0xc], ecx
mov dword [edi], 1
jmp 0x489076
mov dword [edi], 0
push dword [esp + 4]
call sub.kernel32.dll_CloseHandle
jmp 0x489076
call fcn.004c9ea0
mov dword [edi], 0
push esi
call sub.kernel32.dll_CloseHandle
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x48b0a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x4d3044]
mov esi, ecx
test eax, eax
je 0x48b0c9
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x48b0e1
cmp dword [eax + 4], 0
je 0x48b0e1
add eax, 8
pop esi
pop edi
pop ebp
ret
push 0x4d3044
call fcn.00480f80
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jae 0x48b0bc
mov eax, dword [0x4d3044]
test eax, eax
je 0x48b178
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x48b194
mov edi, eax
test eax, eax
jne 0x48b140
mov eax, dword [0x4f92d8]
movzx eax, byte [eax]
push 4
push 0x10
call fcn.00401c10
add esp, 8
test eax, eax
je 0x48b1a9
mov dword [eax], 0x4d3044
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x4d3044]
test eax, eax
je 0x48b19a
dec eax
push edi
push eax
call sub.kernel32.dll_TlsSetValue
test esi, esi
je 0x48b160
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0
mov dword [esi], 0
cmp eax, 1
jne 0x48b164
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x48b164
xor ecx, ecx
xor edx, edx
lea eax, [edi + 8]
mov dword [edi + 4], 1
mov dword [edi + 8], ecx
mov byte [edi + 0xc], dl
pop esi
pop edi
pop ebp
ret
push 0x4d3044
call fcn.00480f80
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x48b0fe
xor eax, eax
pop esi
pop edi
pop ebp
ret
push 0x4d3044
call fcn.00480f80
add esp, 4
jmp 0x48b139
push 0x10
push 4
call fcn.004a7010
nop word cs:[eax + eax]
nop dword [eax]

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 8
mov eax, dword [0x4d3054]
mov esi, ecx
test eax, eax
je 0x48b299
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x48b1ef
cmp dword [eax + 4], 0
mov edi, eax
jne 0x48b294
mov eax, dword [0x4d3054]
test eax, eax
je 0x48b2ba
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x48b2d6
mov edi, eax
test eax, eax
jne 0x48b252
mov eax, dword [0x4f92d8]
movzx eax, byte [eax]
push 4
push 0xc
call fcn.00401c10
add esp, 8
test eax, eax
je 0x48b2f3
mov dword [eax], 0x4d3054
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x4d3054]
test eax, eax
je 0x48b2e1
dec eax
push edi
push eax
call sub.kernel32.dll_TlsSetValue
test esi, esi
je 0x48b267
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
je 0x48b269
mov eax, dword [esi + 4]
jmp 0x48b269
xor eax, eax
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
test edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
mov dword [edi + 4], 1
mov dword [edi + 8], eax
je 0x48b294
test ecx, ecx
je 0x48b294
lock dec dword [ecx]
jne 0x48b294
lea ecx, [ebp - 0xc]
call fcn.00442c90
add edi, 8
jmp 0x48b2d8
push 0x4d3054
call fcn.00480f80
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jae 0x48b1e3
jmp 0x48b1ef
push 0x4d3054
call fcn.00480f80
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x48b20c
xor edi, edi
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebp
ret
push 0x4d3054
call fcn.00480f80
add esp, 4
jmp 0x48b24b
push 0xc
push 4
call fcn.004a7010
nop dword [eax]
Function at 0x48b300
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x4d3064]
mov esi, ecx
test eax, eax
je 0x48b329
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x48b341
cmp byte [eax + 4], 0
je 0x48b341
add eax, 5
pop esi
pop edi
pop ebp
ret
push 0x4d3064
call fcn.00480f80
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jae 0x48b31c
mov eax, dword [0x4d3064]
test eax, eax
je 0x48b3b4
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x48b3cc
mov edi, eax
test eax, eax
jne 0x48b391
mov eax, dword [0x4f92d8]
movzx eax, byte [eax]
push 4
push 8
call fcn.00401c10
add esp, 8
test eax, eax
je 0x48b3e1
mov dword [eax], 0x4d3064
mov byte [eax + 4], 0
mov edi, eax
mov eax, dword [0x4d3064]
test eax, eax
je 0x48b3d2
dec eax
push edi
push eax
call sub.kernel32.dll_TlsSetValue
xor ecx, ecx
test esi, esi
je 0x48b3a6
cmp byte [esi], 0
mov byte [esi], 0
movzx eax, byte [esi + 1]
cmove eax, ecx
mov ecx, eax
lea eax, [edi + 5]
mov byte [edi + 4], 1
mov byte [edi + 5], cl
pop esi
pop edi
pop ebp
ret
push 0x4d3064
call fcn.00480f80
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x48b356
xor eax, eax
pop esi
pop edi
pop ebp
ret
push 0x4d3064
call fcn.00480f80
add esp, 4
jmp 0x48b38a
push 8
push 4
call fcn.004a7010
nop word [eax + eax]
Function at 0x48b3f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x4d3074]
test eax, eax
je 0x48b415
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x48b42d
cmp byte [eax + 4], 0
je 0x48b42d
add eax, 5
pop esi
pop ebp
ret
push 0x4d3074
call fcn.00480f80
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jae 0x48b409
mov eax, dword [0x4d3074]
test eax, eax
je 0x48b4a2
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x48b4ba
mov esi, eax
test eax, eax
jne 0x48b47d
mov eax, dword [0x4f92d8]
movzx eax, byte [eax]
push 4
push 8
call fcn.00401c10
add esp, 8
test eax, eax
je 0x48b4ce
mov dword [eax], 0x4d3074
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x4d3074]
test eax, eax
je 0x48b4bf
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov eax, dword [ebp + 8]
xor ecx, ecx
test eax, eax
je 0x48b495
cmp byte [eax], 0
mov byte [eax], 0
movzx eax, byte [eax + 1]
cmove eax, ecx
mov ecx, eax
lea eax, [esi + 5]
mov byte [esi + 4], 1
mov byte [esi + 5], cl
pop esi
pop ebp
ret
push 0x4d3074
call fcn.00480f80
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x48b442
xor eax, eax
pop esi
pop ebp
ret
push 0x4d3074
call fcn.00480f80
add esp, 4
jmp 0x48b476
push 8
push 4
call fcn.004a7010
nop word [eax + eax]
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [0x4d3084]
test eax, eax
je 0x48b5b4
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x48b50c
cmp dword [eax + 4], 0
mov esi, eax
jne 0x48b5af
mov eax, dword [0x4d3084]
test eax, eax
je 0x48b5dc
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x48b5f8
mov esi, eax
test eax, eax
jne 0x48b56f
mov eax, dword [0x4f92d8]
movzx eax, byte [eax]
push 4
push 0xc
call fcn.00401c10
add esp, 8
test eax, eax
je 0x48b614
mov dword [eax], 0x4d3084
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x4d3084]
test eax, eax
je 0x48b602
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x48b5d5
mov eax, dword [ecx + 4]
cmp dword [ecx], 0
mov dword [ecx], 0
je 0x48b5d5
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
test edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov dword [esi + 4], 1
mov dword [esi + 8], eax
je 0x48b5af
test ecx, ecx
je 0x48b5af
lock dec dword [ecx]
jne 0x48b5af
lea ecx, [ebp - 8]
call fcn.00442da0
add esi, 8
jmp 0x48b5fa
push 0x4d3084
call fcn.00480f80
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jae 0x48b500
jmp 0x48b50c
call fcn.0046d5a0
jmp 0x48b584
push 0x4d3084
call fcn.00480f80
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x48b529
xor esi, esi
mov eax, esi
add esp, 8
pop esi
pop ebp
ret
push 0x4d3084
call fcn.00480f80
add esp, 4
jmp 0x48b568
push 0xc
push 4
call fcn.004a7010
nop dword [eax]
Function at 0x48b4e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x4d3074]
test eax, eax
je 0x48b415
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x48b42d
cmp byte [eax + 4], 0
je 0x48b42d
add eax, 5
pop esi
pop ebp
ret
push 0x4d3074
call fcn.00480f80
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jae 0x48b409
mov eax, dword [0x4d3074]
test eax, eax
je 0x48b4a2
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x48b4ba
mov esi, eax
test eax, eax
jne 0x48b47d
mov eax, dword [0x4f92d8]
movzx eax, byte [eax]
push 4
push 8
call fcn.00401c10
add esp, 8
test eax, eax
je 0x48b4ce
mov dword [eax], 0x4d3074
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x4d3074]
test eax, eax
je 0x48b4bf
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov eax, dword [ebp + 8]
xor ecx, ecx
test eax, eax
je 0x48b495
cmp byte [eax], 0
mov byte [eax], 0
movzx eax, byte [eax + 1]
cmove eax, ecx
mov ecx, eax
lea eax, [esi + 5]
mov byte [esi + 4], 1
mov byte [esi + 5], cl
pop esi
pop ebp
ret
push 0x4d3074
call fcn.00480f80
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x48b442
xor eax, eax
pop esi
pop ebp
ret
push 0x4d3074
call fcn.00480f80
add esp, 4
jmp 0x48b476
push 8
push 4
call fcn.004a7010
nop word [eax + eax]
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [0x4d3084]
test eax, eax
je 0x48b5b4
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x48b50c
cmp dword [eax + 4], 0
mov esi, eax
jne 0x48b5af
mov eax, dword [0x4d3084]
test eax, eax
je 0x48b5dc
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x48b5f8
mov esi, eax
test eax, eax
jne 0x48b56f
mov eax, dword [0x4f92d8]
movzx eax, byte [eax]
push 4
push 0xc
call fcn.00401c10
add esp, 8
test eax, eax
je 0x48b614
mov dword [eax], 0x4d3084
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x4d3084]
test eax, eax
je 0x48b602
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x48b5d5
mov eax, dword [ecx + 4]
cmp dword [ecx], 0
mov dword [ecx], 0
je 0x48b5d5
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
test edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov dword [esi + 4], 1
mov dword [esi + 8], eax
je 0x48b5af
test ecx, ecx
je 0x48b5af
lock dec dword [ecx]
jne 0x48b5af
lea ecx, [ebp - 8]
call fcn.00442da0
add esi, 8
jmp 0x48b5fa
push 0x4d3084
call fcn.00480f80
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jae 0x48b500
jmp 0x48b50c
call fcn.0046d5a0
jmp 0x48b584
push 0x4d3084
call fcn.00480f80
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x48b529
xor esi, esi
mov eax, esi
add esp, 8
pop esi
pop ebp
ret
push 0x4d3084
call fcn.00480f80
add esp, 4
jmp 0x48b568
push 0xc
push 4
call fcn.004a7010
nop dword [eax]
Function at 0x4bd030
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x4bd088
lea edi, [edx + eax*2]
xor ebx, ebx
movzx esi, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea eax, [ebx + esi]
jne 0x4bd080
cmp ebx, eax
ja 0x4bd0f6
cmp eax, dword [ebp + 0x10]
ja 0x4bd102
add ebx, dword [ebp + 0xc]
nop word cs:[eax + eax]
nop
test esi, esi
je 0x4bd082
dec esi
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x4bd070
jmp 0x4bd0df
ja 0x4bd088
cmp edx, edi
mov ebx, eax
jne 0x4bd042
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x4bd0e3
mov esi, dword [ebp + 0x14]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x4bd0c0
mov esi, edi
sub ecx, ebx
jns 0x4bd0d7
jmp 0x4bd0e5
cmp edi, edx
je 0x4bd0ec
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x4bd0e5
xor al, 1
cmp esi, edx
jne 0x4bd0a0
jmp 0x4bd0e5
xor eax, eax
jmp 0x4bd0e5
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4ee0a8
call fcn.004b48b0
push 0x4ee0b8
push eax
push ebx
call fcn.004ba6d0
push 0x4ee0b8
push dword [ebp + 0x10]
push eax
call fcn.004ba670
Function at 0x4ce8a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004cf5b0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004cf5b0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4ce900
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x51e1b0]
test esi, esi
jle 0x4cea20
mov eax, dword [0x51e1b4]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4ce934
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4ce9b7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4ce920
mov dword [esp], ebx
call fcn.004cf290
mov edi, eax
test eax, eax
je 0x4cea47
mov eax, dword [0x51e1b4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004cf3a0
mov edx, dword [0x51e1b4]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4cea27
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4ce9b0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4ce9c0
add dword [0x51e1b0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x51e1b4]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4ce9b0
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004ce8a0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4ce93e
mov eax, dword [0x51e1b4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004ce8a0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004ce8a0
lea esi, [esi]
nop