joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52b060
Capabilities:
Check for time delay via gettickcount
Connect socket
Get socket status

Disassembly:
sub esp, 0x238
mov eax, dword [0x5e95e0]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push edi
mov edi, dword [esi + 0x2c]
cmp dword [edi + 0x60], 0
mov eax, dword [edi + 0x890]
mov dword [esp + 0x10], eax
je 0x52b093
movzx edx, word [edi + 0x54]
lea ecx, [edi + 0x6c]
jmp 0x52b09d
movzx edx, word [edi + 0x14]
lea ecx, [edi + 0x474]
xor eax, eax
mov dword [esp + 0x22c], eax
mov dword [esp + 0x230], eax
mov dword [esp + 0x234], eax
mov dword [esp + 0x238], eax
mov ecx, dword [ecx]
push edx
mov dword [esp + 0x234], ecx
mov word [esp + 0x230], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x230]
mov word [esp + 0x232], ax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x52b107
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x52b257
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi + 0x30], 0
mov dword [esp + 0x14], eax
mov ebp, 1
jne 0x52b200
mov ebx, dword [sym.imp.WS2_32.dll_select]
jmp 0x52b130
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x78], 0
jne 0x52b21a
mov eax, dword [esi + 4]
lea edx, [esi + 0x50]
push edx
mov dword [esp + 0x128], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x128]
push ecx
push 0
push 0
mov dword [esp + 0x134], ebp
mov dword [esp + 0x2c], ebp
call ebx
cmp eax, 0xffffffff
je 0x52b251
test eax, eax
jne 0x52b1cf
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x4c], eax
jle 0x52b19b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [esp + 0x10]
sub ecx, dword [eax + 0x84]
cmp ecx, dword [eax + 0x4c]
jae 0x52b1b2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [edi + 0x30]
sub eax, dword [esp + 0x14]
imul edx, edx, 0x3e8
cmp eax, edx
jb 0x52b1f6
mov eax, 0x274c
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00552101
add esp, 0x238
ret
mov ecx, dword [esi + 4]
lea eax, [esp + 0x120]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x52b237
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x52b251
cmp dword [esi + 0x30], 0
je 0x52b130
mov eax, ebp
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00552101
add esp, 0x238
ret
mov eax, 2
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00552101
add esp, 0x238
ret
xor eax, eax
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00552101
add esp, 0x238
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x23c]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00552101
add esp, 0x238
ret
Function at 0x52c660
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x584c13
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
push 0x70
call fcn.005308cb
add esp, 4
mov dword [esp + 0x1c], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x30], edi
je 0x52c6b2
push eax
call fcn.0052c850
mov ebx, eax
jmp 0x52c6b4
xor ebx, ebx
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
mov dword [esp + 0x30], ecx
mov esi, dword [eax + 0x890]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x40], eax
mov eax, 1
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x14]
add eax, 0x20
push eax
mov dword [esp + 0x20], esi
mov dword [ebx + 4], ecx
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x30], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x48], edi
mov dword [ebx + 0x4c], edi
mov dword [ebx + 0x60], edi
mov dword [ebx + 0x64], edi
mov dword [ebx + 0x6c], edi
mov dword [ebx + 0x54], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
xor eax, eax
cmp dword [esi + 0x24], edi
jle 0x52c733
cmp eax, edi
jl 0x52c749
cmp eax, dword [esi + 0x24]
jge 0x52c749
mov ecx, dword [esi + 0x20]
lea ecx, [ecx + eax*4]
mov ecx, dword [ecx]
add edx, dword [ecx + 0x884]
add eax, 1
cmp eax, dword [esi + 0x24]
jl 0x52c714
mov esi, dword [ebp + 8]
add esi, 0x87c
mov dword [ebx], edx
mov eax, dword [esi + 8]
cmp eax, edi
mov dword [esp + 0x18], eax
jge 0x52c74e
call fcn.00530cad
lea edi, [eax + 1]
call fcn.00459ef0
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x18]
mov dword [edx + eax*4], ebx
mov eax, dword [esp + 0x14]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x20]
push ecx
push 0
push ebx
push 0x52bfa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x52c81b
call fcn.00530e1f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x52c7a7
push 0x80004005
call fcn.00401f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x18]
push str.Create_Socket_Worker_Thread_faild_with_error:__d
push ecx
call fcn.00405480
mov esi, dword [esp + 0x20]
add esp, 0xc
push esi
call fcn.0051f860
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x52c837
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ebx
push ecx
mov dword [ebx + 8], eax
mov eax, dword [edx + 0x64]
push 0x4ca
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x52d780
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push 0
lea eax, [esp + 0xc]
push eax
push 0
push edi
push ebx
mov dword [esi], 0
mov dword [esp + 0x1c], 0
call ebp
test eax, eax
jne 0x52d7d5
mov ecx, dword [esi]
add ecx, 2
push ecx
call fcn.005308fb
mov edx, dword [esp + 0x10]
add esp, 4
push esi
push eax
mov dword [edx], eax
lea eax, [esp + 0xc]
push eax
push 0
push edi
push ebx
call ebp
test eax, eax
jne 0x52d7d5
mov eax, 1
pop ebp
pop ecx
ret
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x52f9d0
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
test edi, edi
mov esi, eax
je 0x52fbd5
test esi, esi
je 0x52fbd5
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x52fbd5
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
push eax
mov eax, ebx
call fcn.0052f930
add esp, 4
cmp dword [ebp], eax
jl 0x52fbd5
mov eax, 0x55555556
imul ebx
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
lea ecx, [ebx*4]
mov eax, 0x6bca1af3
imul ecx
sar edx, 5
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
xor ecx, ecx
test ebp, ebp
mov eax, 0x13
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jl 0x52fb39
mov edx, dword [esp + 0x2c]
and edx, 2
mov dword [esp + 0x1c], edx
cmp ecx, ebp
jne 0x52fa82
mov edx, ebp
imul edx, edx, 0x4c
lea eax, [ebx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x14], eax
test eax, eax
jle 0x52faf1
mov edx, eax
movzx eax, byte [edi + 2]
xor ecx, ecx
mov ch, byte [edi]
add edi, 3
add esi, 4
mov cl, byte [edi - 2]
shl ecx, 8
or ecx, eax
shl ecx, 8
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__s:_s]
mov byte [esi - 4], al
shl ecx, 6
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__s:_s]
shl ecx, 6
mov byte [esi - 3], al
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__s:_s]
shr ecx, 0x14
and ecx, 0x3f
sub edx, 1
mov byte [esi - 2], al
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__s:_s]
mov byte [esi - 1], cl
jne 0x52fa88
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x1c], 0
mov edx, dword [esp + 0x10]
lea edx, [edx + eax*4]
mov dword [esp + 0x10], edx
jne 0x52fb14
mov byte [esi], 0xd
add esi, 1
mov byte [esi], 0xa
add esi, 1
add dword [esp + 0x10], 2
add ecx, 1
cmp ecx, ebp
mov dword [esp + 0x18], ecx
jle 0x52fa65
cmp dword [esp + 0x10], 0
je 0x52fb39
cmp dword [esp + 0x1c], 0
jne 0x52fb39
sub esi, 2
sub dword [esp + 0x10], 2
mov ecx, dword [esp + 0x24]
lea eax, [ebx + ebx*2]
sub ecx, eax
je 0x52fbbe
lea ebp, [ecx + 1]
test ebp, ebp
je 0x52fbbe
xor eax, eax
test ecx, ecx
jle 0x52fb57
movzx eax, byte [edi]
add edi, 1
shl eax, 8
cmp ecx, 1
jle 0x52fb67
movzx edx, byte [edi]
or eax, edx
add edi, 1
shl eax, 8
cmp ecx, 2
jle 0x52fb74
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test ebp, ebp
jle 0x52fb98
mov ecx, ebp
lea ecx, [ecx]
mov edx, eax
shr edx, 0x1a
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__s:_s]
mov byte [esi], dl
add esi, 1
shl eax, 6
sub ecx, 1
jne 0x52fb80
add dword [esp + 0x10], ebp
test byte [esp + 0x2c], 1
jne 0x52fbbe
mov edi, 4
sub edi, ebp
test edi, edi
jle 0x52fbba
push edi
push 0x3d
push esi
call fcn.00557890
add esp, 0xc
add dword [esp + 0x10], edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x5302c0
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
sub esp, 0x638
mov eax, dword [0x5e95e0]
xor eax, esp
mov dword [esp + 0x634], eax
push ebx
push ebp
mov ebp, dword [esp + 0x644]
push edi
lea eax, [esp + 0xc]
push eax
push 0x5c6cbc
mov ebx, ecx
mov edi, edx
mov dword [esp + 0x14], 0
call dword [sym.imp.Secur32.dll_QuerySecurityPackageInfoW]
test eax, eax
je 0x530302
xor al, al
jmp 0x53037a
mov ecx, dword [ebx]
mov dword [esp + 0x14], 0x200
mov dword [esp + 0x18], 0x2c
mov dword [esp + 0x34], 2
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x10], 0
je 0x530341
push ebp
push edi
lea eax, [esp + 0x1c]
call fcn.00530050
test al, al
je 0x530341
lea edx, [esp + 0x14]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esi + 0x10]
push eax
mov eax, dword [edx + 0xc]
push esi
push 0
push 0
push ecx
push 0
push 2
push eax
push 0
call dword [sym.imp.Secur32.dll_AcquireCredentialsHandleW]
mov edi, eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
push eax
mov dword [esi + 8], ecx
call sub.Secur32.dll_FreeContextBuffer
test edi, edi
sete al
mov ecx, dword [esp + 0x640]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00552101
add esp, 0x638
ret 4

Function at 0x534906
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x53493f
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049ec10
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046d440
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x53646d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x5364b0
call fcn.0053e3f5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5364b0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x5364cb
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00536027
test ebx, ebx
mov esi, eax
je 0x5364c9
test edi, edi
je 0x5364c9
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x53f28e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jne 0x53f2c1
push dword [ebp + 8]
call edi
push eax
call fcn.0053a5a8
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x20]
cmp eax, dword [ebp - 4]
je 0x53f2ec
test byte [ebp - 4], 1
je 0x53f2ec
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x53f2ec
push dword [ebp + 8]
call edi
push eax
call fcn.0053a5a8
lea eax, [esi + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x53f39c
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0053f1f3
pop ecx
lea eax, [esi + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x53f322
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0053f1f3
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x53f33b
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0053f1f3
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x53f366
push dword [ebp + 8]
call edi
push eax
call fcn.0053a5a8
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x53f386
push dword [ebp + 8]
call edi
push eax
call fcn.0053a5a8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x53f39c
push dword [ebp + 8]
call edi
push eax
call fcn.0053a5a8
movzx eax, byte [esi + 0x20]
cmp eax, dword [ebp - 4]
je 0x53f3c4
test byte [ebp - 4], 1
jne 0x53f3c4
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x53f3c4
push dword [ebp + 8]
call edi
push eax
call fcn.0053a5a8
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x54375a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x5437a0
call fcn.0053e3f5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5437a0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x5437e3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x5437cc
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x5437cc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x5437e0
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x5455db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
mov dword [esp + 4], ecx
call fcn.0053e3f5
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x5455f1
xor eax, eax
jmp 0x54563b
push ebx
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x54563a
push ebp
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
push eax
push ebp
call fcn.0054557d
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop ebp
pop ebx
pop esi
pop ecx
ret 4

Function at 0x546280
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 0x5462ae
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5462cc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005461ea
jmp 0x5462cc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5462cc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.005461ea
test edi, edi
mov eax, edi
jne 0x5462b6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x5efbbc]
test ecx, ecx
je 0x54638f
jmp 0x54627f
ret 8

Function at 0x552101
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5e95e0]
jne 0x55210b
repz ret
jmp fcn.0055b35a
Function at 0x569646
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0055aca4
xor ebx, ebx
cmp dword [0x5f09f4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x56971b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x569686
xor eax, eax
jmp 0x5697df
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x56967f
push eax
call fcn.0055ac41
mov dword [esp], 0x5903a0
push edi
mov dword [0x5f09f4], eax
call esi
push eax
call fcn.0055ac41
mov dword [esp], 0x59038c
push edi
mov dword [0x5f09f8], eax
call esi
push eax
call fcn.0055ac41
mov dword [0x5f09fc], eax
lea eax, [ebp - 8]
push eax
call fcn.00554375
test eax, eax
pop ecx
pop ecx
je 0x5696e9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00553578
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x56971b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0055ac41
cmp eax, ebx
pop ecx
mov dword [0x5f0a04], eax
je 0x56971b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0055ac41
pop ecx
mov dword [0x5f0a00], eax
mov eax, dword [0x5f0a00]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x569794
cmp dword [0x5f0a04], esi
je 0x569794
push eax
call fcn.0055acad
pop ecx
call eax
cmp eax, ebx
je 0x569761
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x5f0a04]
call fcn.0055acad
pop ecx
call eax
test eax, eax
je 0x569761
test byte [ebp - 0x18], 1
jne 0x569794
lea eax, [ebp - 0xc]
push eax
call fcn.005543ac
test eax, eax
pop ecx
je 0x56977c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00553578
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x56978b
or dword [ebp + 0x10], 0x200000
jmp 0x5697c5
or dword [ebp + 0x10], 0x40000
jmp 0x5697c5
mov eax, dword [0x5f09f8]
cmp eax, esi
je 0x5697c5
push eax
call fcn.0055acad
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x5697c5
mov eax, dword [0x5f09fc]
cmp eax, esi
je 0x5697c5
push dword [ebp - 4]
push eax
call fcn.0055acad
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x5f09f4]
call fcn.0055acad
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x57174e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x5e95e0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.005716e3
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00557890
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x57179d
cmp dword [ebp - 0x1c], 5
jb 0x5717b5
jmp 0x5717b1
cmp dword [ebp - 0x10], 1
jne 0x5717b5
cmp dword [ebp - 0x1c], 4
ja 0x5717b1
jne 0x5717b5
cmp dword [ebp - 0x18], 0
jbe 0x5717b5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x59246c
call fcn.005715d4
test eax, eax
jge 0x5717d6
mov byte [0x5f3228], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00552101
add ebp, 0x78
leave
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 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40288e
pop dword [ebp - 0x14]
mov eax, 0x40288e
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x153d204d
add dword [ebp - 0x24], 0x391524fe
mov dword [ebp - 0x20], 0x627d4acc
sub dword [ebp - 0x20], 0x3049fe87
mov dword [ebp - 0x1c], 0xb5f51430
sub dword [ebp - 0x1c], 0x69a8d002
mov dword [ebp - 0x18], 0xcce0e14
sub dword [ebp - 0x18], 0xcce0e14
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xf44109e4
add dword [ebp - 0x24], 0x80315f72
mov dword [ebp - 0x20], 0x5613ef84
add dword [ebp - 0x20], 0xeb5871f1
mov dword [ebp - 0x1c], 0x37ad581b
sub dword [ebp - 0x1c], 0xd43debaf
mov dword [ebp - 0x18], 0xb58ac790
add dword [ebp - 0x18], 0x4a753870
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x9ea9950e
sub eax, 0x9e692466
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3b206
push 0
call eax
mov ecx, 0x7a290c9f
sub ecx, 0x7a28b280
xor edx, edx
add edx, eax
mov ebx, 0xd1c2b62a
add ebx, 0x2e7e49d6
add ebx, dword [ebp - 0x14]
mov esi, 0xdcf2aa26
sub esi, 0x80c53ca2
sub dword [ebp - 4], 0xa59f77a5
mov edi, dword [ebx]
mov dword [ebp - 0xc], 0xf1c6b0b9
xor edi, esi
add dword [ebp - 4], eax
mov dword [edx], edi
xor dword [ebp - 4], edi
add edx, 0x5166518
add edx, 0xfae99aec
add ebx, 0x571ddb78
add ebx, 0xa8e2248c
loop 0x4029a8
add eax, 0x15b4f
mov ebx, eax
add eax, 0x8de281cb
add eax, 0x721d7e3a
mov ecx, 0x71a552be
sub ecx, 0x716552be
add ecx, dword [ebp - 0x14]
call ebx
leave
ret