joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491350
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d1da8
push eax
mov dword fs:[0], esp
sub esp, 0x10
xor al, al
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esi + 0xc]
test cl, cl
je 0x491474
mov ecx, dword [esi + 4]
xor ebp, ebp
sub ecx, ebp
je 0x491486
dec ecx
je 0x4913cc
dec ecx
jne 0x491474
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x49149b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x49149b
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x4913c5
mov eax, dword [0x83152c]
lea ecx, [esi + 0x10]
push eax
push ebp
call fcn.00491890
mov bl, 1
jmp 0x491467
mov edx, dword [0x83152c]
mov cl, byte [esi + 0x10]
push edi
lea edi, [esi + 0x10]
push edx
mov byte [esp + 0x14], cl
push ebp
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.00491690
mov eax, dword [esi + 8]
mov dword [esp + 0x28], ebp
cmp eax, ebp
je 0x491455
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x491455
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x491424
mov eax, dword [0x83152c]
mov ecx, edi
push eax
push ebp
call fcn.00491890
mov eax, dword [esp + 0x14]
mov bl, 1
cmp eax, ebp
jne 0x491433
mov eax, 0x831528
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x14]
pop edi
cmp ecx, ebp
je 0x491463
mov al, byte [ecx - 1]
test al, al
je 0x491459
cmp al, 0xff
je 0x491459
dec al
mov byte [ecx - 1], al
jmp 0x491463
xor bl, bl
jmp 0x49143a
dec ecx
push ecx
call fcn.004c3c25
add esp, 4
test bl, bl
je 0x491472
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
mov al, bl
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov eax, dword [esi]
cmp eax, ebp
je 0x49149b
push eax
call fcn.00492410
add esp, 4
mov dword [esi], ebp
mov bl, 1
jmp 0x491467
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x491d60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push ebp
push esi
push edi
xor edi, edi
push 0x89219c
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x491daf
call fcn.004cd2e2
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x491d94
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push 0x89219c
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x491daf
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x491dc5
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x491dd9
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x491df2
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x18]
push edi
push ebx
push ebp
call fcn.00492510
add esp, 0xc
test al, al
jne 0x491e91
mov eax, dword [edi + 8]
cmp eax, ebx
jb 0x491e99
mov esi, dword [0x831534]
jae 0x491e21
call fcn.004c05b9
mov ecx, edi
call fcn.004920a0
mov eax, dword [edi + 8]
mov ecx, eax
sub ecx, ebx
cmp ecx, esi
jae 0x491e35
mov esi, ecx
test esi, esi
jbe 0x491e73
mov ecx, dword [edi + 4]
sub eax, esi
sub eax, ebx
push eax
lea eax, [ecx + esi]
add eax, ebx
add ecx, ebx
push eax
push ecx
call fcn.004b04f0
mov ebp, dword [edi + 8]
add esp, 0xc
sub ebp, esi
mov ecx, edi
push 0
push ebp
call fcn.00491f80
test al, al
je 0x491e6f
mov ecx, dword [edi + 4]
mov dword [edi + 8], ebp
mov byte [ecx + ebp], 0
mov ebp, dword [esp + 0x10]
mov edi, dword [edi + 4]
test edi, edi
jne 0x491e7f
mov edi, 0x831530
mov ecx, ebx
mov esi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
mov edx, ebx
push 0
sub edx, eax
mov ecx, edi
push edx
call fcn.00491eb0
jmp 0x491e73
Function at 0x49a7f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x8b0198]
xor edx, edx
cmp eax, edx
jne 0x49a816
xor eax, eax
mov byte [eax + 0x8b0098], al
inc eax
cmp eax, 0x100
jl 0x49a7fe
mov dword [0x8b0198], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x8b0098
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x49a8a7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x49a87a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x49a848
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x49a920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x49a973
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x49a95a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a1320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d1fbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004a1c40
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x834d1c
call fcn.004c3bfc
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4a13b3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004c3bfc
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4a13ac
push 0
mov ecx, eax
call fcn.00498420
mov dword [esi + 0xc], eax
jmp 0x4a13b5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4a13b5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4b226a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b228a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b170a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4b22ad
test byte [esp + 8], 2
je 0x4b22ad
call fcn.004b177d
mov dword [eax], 0xd
call fcn.004b1786
mov dword [eax], 5
jmp 0x4b2286
xor eax, eax
ret

Function at 0x4c626f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c62a7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c4316
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c42ee
jmp 0x4c62b3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c795d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c799f
call fcn.004cd2e2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c799f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c7996
xor eax, eax
jmp 0x4c79a7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c79ad
pop edi
pop esi
pop ebx
ret 4

Function at 0x4cd812
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4cd840
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4cd85e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004cd778
jmp 0x4cd85e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4cd85e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004cd778
test edi, edi
mov eax, edi
jne 0x4cd848
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4f9793
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push edi
push 0
push eax
mov edi, 0x1000
mov eax, edi
sub eax, dword [esi + 4]
push eax
push dword [esi + 0x10]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
sub eax, dword [esi + 4]
cmp dword [ebp + 8], eax
jne 0x4f97cf
mov eax, dword [esi + 0x10]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
inc eax
jmp 0x4f97d1
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x4f9e10
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0x10]
push ebx
xor ebx, ebx
push esi
mov esi, ebx
test eax, eax
je 0x4f9fd4
cmp word [eax], bx
je 0x4f9fd4
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x4f9fd0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x18], eax
test eax, eax
jle 0x4f9fc6
push ebp
mov ebp, dword [esp + 0x20]
push edi
push ebp
call fcn.004faf79
mov edi, eax
test edi, edi
je 0x4f9fc4
mov ebx, dword [esp + 0x1c]
cmp ebp, 0xffffffff
jne 0x4f9e88
push 2
jmp 0x4f9e89
push ebp
push ebx
call fcn.004f8284
mov esi, eax
test esi, esi
je 0x4f9fbd
cmp ebx, 0xffffffff
jne 0x4f9ea0
mov ebx, esi
mov eax, dword [esi + 4]
xor ecx, ecx
mov dword [esi + 0x30], ebx
mov ebx, dword [esp + 0x20]
add ebx, 8
mov dword [esi + 0x2c], edi
push ebx
push ecx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x14], ecx
push dword [0x6b00f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x4f9ee5
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x28]
and dword [eax], 0
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp ebp, 0xffffffff
je 0x4f9ef1
mov dword [esi + 0x34], 1
push esi
push edi
call fcn.00536780
mov ebp, dword [esp + 0x28]
mov ebx, 0x4000
pop ecx
pop ecx
xor ecx, ecx
mov dword [esp + 0x1c], ecx
test ebp, ebp
jle 0x4f9fb9
lea eax, [ebx + ecx]
cmp eax, ebp
jle 0x4f9f1c
mov ebx, ebp
sub ebx, ecx
push ebx
push edi
call fcn.00536110
mov dword [esp + 0x28], eax
pop ecx
pop ecx
test eax, eax
je 0x4f9fab
push 0
lea ecx, [esp + 0x14]
push ecx
push ebx
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
jne 0x4f9f9b
mov eax, dword [esp + 0x1c]
add eax, ecx
cmp dword [esi + 0x14], 0
mov dword [esp + 0x1c], eax
jne 0x4f9f6d
push ecx
push dword [esp + 0x24]
call fcn.004fb024
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jl 0x4f9f75
push 1
jmp 0x4f9f77
push 0
push ecx
push edi
call fcn.005363e0
add esp, 0xc
test eax, eax
je 0x4f9f8f
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
jl 0x4f9f11
jmp 0x4f9fb9
push edi
call fcn.005363c0
pop ecx
mov dword [esi + 0x18], eax
jmp 0x4f9fb2
mov dword [esi + 0x18], 0x100
mov dword [esi + 0x24], str.file_read_error
jmp 0x4f9fb9
mov dword [esi + 0x18], 1
push edi
push esi
call fcn.004fb0de
and dword [esi + 0x2c], 0
push edi
call fcn.00536520
pop ecx
pop edi
pop ebp
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4f9fd6
xor eax, eax
pop esi
pop ebx
pop ecx
pop ecx
ret 0xc
Function at 0x4fb538
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x4fb5d0
push edi
push 0x6b3cc8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x6b14cc]
test edi, edi
je 0x4fb5a4
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4fb59d
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x6b14cc
call fcn.0052f848
pop ecx
pop ecx
jmp 0x4fb59f
mov edi, dword [edi]
test edi, edi
jne 0x4fb574
pop ebx
mov eax, dword [0x6acfb8]
mov esi, eax
inc eax
push 0x10
push 0x6b14cc
mov dword [0x6acfb8], eax
call fcn.0052f888
pop ecx
pop ecx
push 0x6b3cc8
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x4fb6d8
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.004fb479
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x6b3cc8
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x6b14cc]
jmp 0x4fb709
cmp dword [esi + 0xc], edi
je 0x4fb70f
mov esi, dword [esi]
test esi, esi
jne 0x4fb702
jmp 0x4fb727
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x6b14cc
call fcn.0052f848
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4
Function at 0x4fe4ff
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4fe554
push dword [esp + 0x10]
push 0x4fe47e
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x6b172c]
test esi, esi
je 0x4fe5ad
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4fe54c
cmp byte [esi + 0x10], 0
je 0x4fe54c
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4fe528
jmp 0x4fe5ad
mov esi, dword [0x6b172c]
test esi, esi
je 0x4fe5ad
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x4fe5a6
cmp byte [esi + 0x11], 0
je 0x4fe582
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x4fe599
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x6b172c
call fcn.0052f848
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4fe561
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x4ff0e5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push dword [0x6b3d0c]
call fcn.0052eed9
mov ebx, eax
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4ff13a
push ebp
push esi
xor ecx, ecx
mov ebp, 0xfde9
push ecx
push ecx
push 0xffffffffffffffff
push dword [eax + 0xc]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [esp + 0x10]
mov esi, eax
lea ecx, [esi - 1]
push ecx
call fcn.0052fd30
push esi
push eax
mov eax, dword [ebx + 0x20]
push 0xffffffffffffffff
push dword [eax + 0xc]
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
pop esi
pop ebp
pop ebx
ret 4
pop ebx
jmp fcn.0052ff90

Function at 0x4ff438
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x6b3d0c]
call fcn.0052eed9
mov edi, dword [eax + 0x24]
test edi, edi
je 0x4ff4f6
cmp dword [edi + 8], 1
je 0x4ff4f6
mov edi, dword [edi + 0xc]
test edi, edi
je 0x4ff4f6
mov al, byte [edi]
cmp al, 0x20
je 0x4ff471
cmp al, 9
jne 0x4ff474
inc edi
jmp 0x4ff467
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call esi
push dword [esp + 0x14]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
call fcn.0052fd30
push ebx
mov ebp, eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test ebx, ebx
jle 0x4ff4c5
push 9
pop edx
lea eax, [ebp - 2]
lea eax, [eax + ebx*2]
movzx ecx, word [eax]
push 0x20
pop esi
cmp cx, si
je 0x4ff4e1
cmp cx, dx
je 0x4ff4e1
pop edi
pop esi
pop ebp
pop ebx
ret 4
movzx ecx, word [eax]
cmp cx, si
je 0x4ff4d9
cmp cx, dx
jne 0x4ff4e5
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, ebp
jae 0x4ff4cc
push ebp
call sub.MSVCRT.dll_wcslen
pop ecx
sub ebx, eax
push ebx
call fcn.0052fe10
jmp 0x4ff4c5
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.0052ff90
Function at 0x5019e0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x6b1740], 0
jne 0x5019ee
call fcn.00501980
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x6b1744]
call esi
test eax, eax
jne 0x501a11
call fcn.00501980
push dword [0x6b1744]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x501a20
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x501a80
mov ebx, 0x10
test edi, edi
jns 0x501a89
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x501a52
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x501aa0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x6b1740], 0
jne 0x501aae
call fcn.00501980
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x6b1744]
call esi
mov edx, eax
test edx, edx
jne 0x501ad5
call fcn.00501980
push dword [0x6b1744]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x501b08
mov ebx, 0x10
test esi, esi
jns 0x501b11
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x501b20
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x503d46
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [0x6b3d30]
xor edi, edi
call fcn.0052eed9
mov ebx, eax
cmp dword [ebp + 8], edi
je 0x503dfd
cmp dword [ebp + 0xc], edi
je 0x503dfd
push esi
push 0x60
push 8
push dword [0x6b00f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0x14]
mov dword [esi + 0xc], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0x40], eax
add esp, 0xc
mov eax, dword [ebx]
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
test al, 1
je 0x503dec
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x503f9f
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x503de4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x503dfc
push esi
call fcn.00503ff0
jmp 0x503dfb
push esi
call fcn.00503e17
push esi
mov edi, eax
call fcn.00503ff0
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x503e17
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov ebp, dword [edi + 0xc]
push dword [edi + 8]
mov dword [esp + 0x18], ebp
call fcn.005c3f50
push dword [edi + 0x40]
mov dword [esp + 0x20], eax
call fcn.005c3f50
mov dword [esp + 0x10], eax
call fcn.0058ea80
mov esi, eax
test esi, esi
je 0x503f75
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x503f60
test byte [edi + 0x24], 2
mov dword [edi + 0x10], ebp
jne 0x503e89
push 1
push 0x34
push esi
call fcn.005919d0
add esp, 0xc
mov eax, dword [0x6b1784]
test eax, eax
je 0x503ea1
push eax
push 0x2714
push esi
call fcn.005919d0
add esp, 0xc
mov eax, dword [0x6b1788]
test eax, eax
je 0x503ed2
cmp dword [0x6b178c], ebx
je 0x503ed2
push eax
push 0x27bf
push esi
call fcn.005919d0
push dword [0x6b178c]
push 0x27c0
push esi
call fcn.005919d0
add esp, 0x18
push dword [esp + 0x1c]
push 0x2712
push esi
call fcn.005919d0
push dword [esp + 0x1c]
push 0x2722
push esi
call fcn.005919d0
push 0x503fae
push 0x4e2b
push esi
call fcn.005919d0
push edi
push 0x2711
push esi
call fcn.005919d0
push dword [edi + 0x28]
push 0x9c
push esi
call fcn.005919d0
push dword [edi + 0x2c]
push 0x9b
push esi
call fcn.005919d0
add esp, 0x48
push 1
push 0x63
push esi
call fcn.005919d0
push esi
call fcn.0058eb20
add esp, 0x10
test eax, eax
jne 0x503f4b
cmp dword [edi + 4], 0xfffffffb
je 0x503f4b
xor ebx, ebx
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x503f60
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.0058ea60
pop ecx
cmp ebx, 1
jne 0x503f75
mov dword [edi + 4], 0xfffffffe
jmp 0x503f84
xor ecx, ecx
cmp dword [edi + 4], 0xfffffffb
setne cl
add ecx, 0xfffffffc
mov dword [edi + 4], ecx
push dword [esp + 0x1c]
call fcn.005c3f40
push dword [esp + 0x10]
call fcn.005c3f40
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret
Function at 0x504132
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
push fcn.00504081
push 0x10
push 0x2c
call fcn.0052f5ec
xor esi, esi
mov dword [0x6b1798], eax
push esi
push esi
push 8
call fcn.0052ef44
mov dword [0x6b3d38], eax
cmp word [0x6b1790], si
jne 0x50421b
push edi
lea eax, [esp + 8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x50418a
mov word [0x6b1790], di
jmp 0x504192
xor eax, eax
mov word [0x6b1790], ax
push 0x800
push esi
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x6b17ac], eax
test eax, eax
je 0x50421a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5ccfb8
push eax
call esi
push 0x5ccfc4
push dword [0x6b17ac]
mov dword [0x6b179c], eax
call esi
push str.getnameinfo
push dword [0x6b17ac]
mov dword [0x6b17a0], eax
call esi
push str.WSAStringToAddressA
push dword [0x6b17ac]
mov dword [0x6b17a4], eax
call esi
cmp dword [0x6b179c], 0
mov dword [0x6b17a8], eax
je 0x50421a
cmp dword [0x6b17a0], 0
je 0x50421a
cmp dword [0x6b17a4], 0
je 0x50421a
test eax, eax
je 0x50421a
mov dword [0x6b1794], edi
pop edi
pop esi
add esp, 0x190
ret