joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40110a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, 0x104
push esi
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40112e
cmp eax, esi
pop esi
jae 0x40112e
pop ebp
jmp fcn.0040137a
push 1
call dword [sym.imp.MSVCR90.dll_exit]
int3

Function at 0x401137
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_wcsrchr]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x5c
push edi
call ebx
mov esi, dword [sym.imp.MSVCR90.dll_wcsncpy]
pop ecx
pop ecx
test eax, eax
je 0x40119d
sub eax, edi
sar eax, 1
inc eax
push eax
mov dword [ebp - 0x668], eax
lea eax, [ebp - 0x20c]
push edi
push eax
call esi
mov eax, dword [ebp - 0x668]
mov ecx, 0x104
sub ecx, eax
push ecx
lea eax, [ebp + eax*2 - 0x20c]
push str..dll
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
mov dword [ebp - 0x668], eax
call fcn.0040100a
add esp, 4
test al, al
je 0x40123b
push 0x5c
push edi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x401207
sub eax, edi
sar eax, 1
inc eax
push eax
mov dword [ebp - 0x66c], eax
lea eax, [ebp - 0x414]
push edi
push eax
call esi
mov eax, dword [ebp - 0x66c]
mov ecx, 0x104
sub ecx, eax
push ecx
lea ecx, [ebp - 0x638]
push ecx
lea eax, [ebp + eax*2 - 0x414]
push eax
call esi
add esp, 0x18
push dword [ebp + 0xc]
lea eax, [ebp - 0x414]
push eax
call fcn.0040106c
pop ecx
pop ecx
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4011c4
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004017cc
leave
ret
Function at 0x4017cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4017d6
repz ret
jmp fcn.00401b69
Function at 0x4c1cd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea eax, [ebp - 0x394]
push eax
call fcn.004c0859
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x4c1cf5
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x4c1d3e
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x4c1ce8
call fcn.004c08e8
sbb al, 0x68
pop esp
dec edx
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.004c08e8
popal
cli
push ebx
arpl word [ebp - 0x72b7b], cx
call dword [eax - 0x18]
pop ss
jmp 0x4c1ddf
invalid
Function at 0x4e1b6c
Capabilities:
Delete file
Query or enumerate registry value

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0xc
mov ebp, ecx
cmp dword [0x6e915c], 0
je 0x4e1c69
mov dword [esp + 8], 0
cmp dword [ebp + 0x23], 0
je 0x4e1c69
mov ecx, 0x801
call fcn.004dbcd8
mov ebx, eax
push dword [0x6e915c]
push str.TallyODBC
push str._s__d
push ebx
call fcn.006964d6
add esp, 0x10
push 1
call fcn.0065f0c8
push ebx
call fcn.0065f09e
push 2
call fcn.0065f0c8
push ebx
call fcn.0065f09e
mov dword [esp + 8], 0
lea eax, [esp + 8]
push eax
push 1
push str.Tally_ODBC_Driver
call fcn.0065f0b3
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREODBCODBC.INIODBC_File_DSN
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4e1c5b
mov dword [esp + 8], 0x801
mov ecx, 0x801
call fcn.004dbcd8
mov dword [esp], eax
xor ecx, ecx
lea eax, [esp + 8]
push eax
mov edx, dword [esp + 4]
push edx
push ecx
push ecx
push str.DefaultDSNDir
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4e1c49
mov ecx, dword [esp]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x4e1bec
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x4e1bd7
dec eax
mov dword [esp + 8], eax
mov edx, dword [esp]
cmp byte [edx + eax - 1], 0x5c
je 0x4e1c07
mov byte [edx + eax], 0x5c
mov eax, dword [esp + 8]
inc eax
mov dword [esp + 8], eax
mov edi, edx
mov byte [edi + eax], 0
mov edx, ebx
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x4e1c19
mov edi, dword [esp]
mov edx, str..dsn
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x4e1c35
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp]
call fcn.004db418
mov ecx, ebx
call fcn.004db418
mov dword [ebp + 0x23], 0
call sub.WSOCK32.dll_WSACleanup
add esp, 0xc
pop ebx
pop ebp
pop esi
pop edi
ret

Function at 0x4e1c78
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push edi
push ecx
mov eax, 0x18c
call fcn.00696350
mov ecx, dword [esp + 0x18c]
mov edi, ecx
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [edi + 0x1b], eax
movzx eax, word [0x6e915c]
push eax
call sub.WSOCK32.dll_htons
push 0
call sub.WSOCK32.dll_htonl
mov dword [0x6e915c], 0
add esp, 0x190
pop edi
ret 4
Function at 0x4f56fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x88
call fcn.00696350
mov dword [esp + 0x80], 0x80
lea eax, [esp + 0x84]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4f573d
xor eax, eax
add esp, 0x88
ret
xor ecx, ecx
lea edx, [esp]
lea eax, [esp + 0x80]
push eax
push edx
push ecx
push ecx
push str.Version
push dword [esp + 0x98]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4f576c
xor eax, eax
add esp, 0x88
ret
push dword [esp + 0x84]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp]
push eax
call fcn.006966be
pop ecx
movsx eax, ax
add esp, 0x88
ret
Function at 0x4fa5c0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
push ebp
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
je 0x4fa5ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, 5
je 0x4fa5e2
mov eax, ebp
pop ebp
pop esi
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
je 0x4fa5ff
mov eax, ebp
pop ebp
pop esi
ret
xor eax, eax
pop ebp
pop esi
ret

Function at 0x4fa604
Capabilities:
Delete file
Set file attributes

Disassembly:
push edi
push esi
push ebp
push ebx
mov ebx, edx
mov eax, 0x6ffcc0
cmp ecx, eax
je 0x4fa61a
mov ebp, 0x6ffcc0
jmp 0x4fa61f
mov ebp, 0x6ffdc0
test ecx, ecx
je 0x4fa656
mov esi, ebp
mov edi, ecx
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x4fa627
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x4fa648
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x4fa633
dec eax
cmp byte [eax + ebp - 1], 0x5c
je 0x4fa658
mov byte [eax + ebp], 0x5c
inc eax
jmp 0x4fa658
xor eax, eax
lea edx, [ebp + eax]
mov byte [eax + ebp], 0
push ebx
push 0x6c3a54
push edx
call fcn.006964d6
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
je 0x4fa6a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x4fa6a2
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
jne 0x4fa6a2
xor ebx, ebx
mov eax, ebx
pop ebx
pop ebp
pop esi
pop edi
ret
Function at 0x4fae3c
Capabilities:
Create directory

Disassembly:
test dword [0x7eda90], 0xffffff80
jne 0x4fae64
test dword [0x7eda90], 0xffffffff
jne 0x4fae64
call fcn.006a6b5c
jmp fcn.004fae3c
push edi
push esi
push ebp
push ebx
sub esp, 0xc
mov edi, edx
mov esi, ecx
mov ecx, esi
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x4fae88
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x4fae73
dec eax
mov ebp, eax
lea ecx, [ebp + 0xa]
call fcn.004dbd48
mov ebx, eax
cmp byte [esi + ebp - 1], 0x5c
je 0x4fb049
push edi
push 0x5c
push esi
push str._s_c_04.4d
push ebx
call fcn.006964d6
add esp, 0x14
movsx eax, byte [ebx]
test eax, eax
je 0x4faf0b
cmp eax, 0x5c
je 0x4fb00e
mov edi, ebx
mov ecx, ebx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x4faedc
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x4faec7
dec eax
lea edx, [ebx + eax + 1]
mov esi, ebx
cmp ebx, edx
je 0x4fb007
xor ebp, ebp
mov dword [esp + 8], ebx
movsx ebx, byte [esi]
test ebx, ebx
je 0x4faefc
cmp ebx, 0x5c
jne 0x4faf00
cmp esi, edi
ja 0x4faf21
inc esi
cmp esi, edx
jne 0x4faef0
mov ebx, dword [esp + 8]
jmp 0x4faf10
mov ebp, 3
mov ecx, ebx
call fcn.004db418
mov eax, ebp
add esp, 0xc
pop ebx
pop ebp
pop esi
pop edi
ret
movsx eax, byte [esi - 1]
cmp eax, 0x3a
je 0x4faf00
cmp eax, 0x5c
je 0x4faf00
xor eax, eax
mov byte [esi], al
push eax
mov ecx, dword [esp + 0xc]
push ecx
mov dword [esp + 0xc], edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [esp + 4]
cmp eax, 1
je 0x4faf7b
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 4]
mov ebp, eax
mov byte [esi], bl
cmp ebp, 0x35
je 0x4fafe0
cmp ebp, 0x7b
je 0x4fafb7
cmp ebp, 5
je 0x4faf84
test ebp, ebp
je 0x4faf00
cmp ebp, 0xb7
jne 0x4faf05
jmp 0x4faf00
mov byte [esi], bl
xor ebp, ebp
jmp 0x4faf00
mov eax, dword [esp + 8]
push eax
push str.Could_not_create_directory__s_nAccess_denied_
push 3
push 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebp
call fcn.004fbd00
mov edx, dword [esp + 0x14]
add esp, 0x10
test ebp, ebp
je 0x4faf00
mov ebx, dword [esp + 8]
jmp 0x4faf10
mov eax, dword [esp + 8]
push eax
push str.Could_not_create_directory__s_nInvalid_directory_name_
push 3
push 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebp
call fcn.004fbd00
mov edx, dword [esp + 0x14]
add esp, 0x10
cmp ebp, 5
je 0x4faf84
jmp 0x4faf6d
mov eax, dword [esp + 8]
push eax
push str.Could_not_create_directory__s_nNetwork_path_not_found_
push 7
push 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebp
call fcn.004fbd00
mov edx, dword [esp + 0x14]
add esp, 0x10
jmp 0x4faf6d
xor ebp, ebp
jmp 0x4faf10
cmp byte [ebx + 1], 0x5c
jne 0x4faec1
lea eax, [ebx + 2]
push 0x5c
push eax
call fcn.00697340
add esp, 8
test eax, eax
je 0x4faf0b
inc eax
push 0x5c
push eax
call fcn.00697340
add esp, 8
mov edi, eax
test edi, edi
je 0x4faf0b
jmp 0x4faec3
push edi
push esi
push str._s_04.4d
push ebx
call fcn.006964d6
add esp, 0x10
jmp 0x4faeb1
Function at 0x4fb6d0
Capabilities:
Delete file
Set file attributes

Disassembly:
push edi
push esi
push ebp
push ebx
mov ebx, ecx
test edx, edx
jne 0x4fb785
mov edx, 0x6ffcc0
mov eax, dword [esp + 0x14]
cmp eax, edx
je 0x4fb6f2
mov ebp, 0x6ffcc0
jmp 0x4fb6f7
mov ebp, 0x6ffdc0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4fb738
mov esi, ebp
mov edi, dword [esp + 0x14]
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x4fb705
mov ecx, dword [esp + 0x14]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x4fb72a
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x4fb715
dec eax
cmp byte [eax + ebp - 1], 0x5c
je 0x4fb73a
mov byte [eax + ebp], 0x5c
inc eax
jmp 0x4fb73a
xor eax, eax
lea edx, [ebp + eax]
mov byte [eax + ebp], 0
push ebx
push 0x6c3a54
push edx
call fcn.006964d6
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
je 0x4fb7ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4fb7ff
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4fb7ff
mov edx, 0x6ffcc0
mov eax, dword [esp + 0x14]
cmp eax, edx
je 0x4fb799
mov ebp, 0x6ffcc0
jmp 0x4fb79e
mov ebp, 0x6ffdc0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4fb7df
mov esi, ebp
mov edi, dword [esp + 0x14]
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x4fb7ac
mov ecx, dword [esp + 0x14]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x4fb7d1
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x4fb7bc
dec eax
cmp byte [eax + ebp - 1], 0x5c
je 0x4fb7e1
mov byte [eax + ebp], 0x5c
inc eax
jmp 0x4fb7e1
xor eax, eax
lea edx, [ebp + eax]
mov byte [eax + ebp], 0
push ebx
push 0x6c3a54
push edx
call fcn.006964d6
add esp, 0xc
mov ecx, ebp
call fcn.004fa724
mov eax, 1
pop ebx
pop ebp
pop esi
pop edi
ret 4
Function at 0x502330
Capabilities:
Encode data using xor

Disassembly:
test dword [0x7eda90], 0xffffff80
jne 0x502358
test dword [0x7eda90], 0xffffffff
jne 0x5023f0
call fcn.006a6b5c
jmp fcn.00502330
push edi
push esi
push ebp
push esi
mov eax, dword [esp + 0x14]
lea ebp, [ecx + 4]
lea edi, [eax - 4]
movzx esi, dx
mov edx, esi
shr edi, 0x1f
lea eax, [edi + eax - 4]
sar eax, 1
test eax, eax
je 0x5023cf
mov dword [esp], ebx
mov edi, esi
shl edi, 8
movzx ebx, byte [ebp]
and esi, 0xffffff00
shr esi, 8
xor ebx, esi
movzx ebx, bl
movzx esi, word [ebx*2 + 0x6ef140]
xor edi, esi
movzx esi, di
movzx edi, byte [ebp + 1]
add ebp, 2
mov ebx, edx
shl ebx, 8
and edx, 0xffffff00
shr edx, 8
xor edi, edx
and edi, 0xff
movzx edx, word [edi*2 + 0x6ef140]
xor ebx, edx
movzx edx, bx
dec eax
jne 0x50237b
mov ebx, dword [esp]
shl esi, 0x10
add esi, edx
cmp esi, dword [ecx]
jne 0x5023e1
xor eax, eax
pop ecx
pop ebp
pop esi
pop edi
ret 4
mov eax, 1
pop ecx
pop ebp
pop esi
pop edi
ret 4
push edi
push esi
push ebp
push esi
mov edi, dword [esp + 0x14]
lea ebp, [ecx + 4]
lea esi, [edi - 4]
movzx edx, dx
mov eax, edx
shr esi, 0x1f
lea esi, [esi + edi - 4]
sar esi, 1
test esi, esi
je 0x50246a
mov dword [esp], ebx
movzx edi, byte [ebp]
mov ebx, edx
and ebx, 0xffffff00
shr ebx, 8
xor edi, ebx
and edi, 0xff
shl edx, 8
movzx ebx, word [edi*2 + 0x6ef140]
xor edx, ebx
movzx edx, dx
movzx edi, byte [ebp + 1]
add ebp, 2
mov ebx, eax
and ebx, 0xffffff00
shr ebx, 8
xor edi, ebx
and edi, 0xff
shl eax, 8
movzx ebx, word [edi*2 + 0x6ef140]
xor eax, ebx
movzx eax, ax
dec esi
jne 0x502413
mov ebx, dword [esp]
shl edx, 0x10
add edx, eax
cmp edx, dword [ecx]
jne 0x50247c
xor eax, eax
pop ecx
pop ebp
pop esi
pop edi
ret 4
mov eax, 1
pop ecx
pop ebp
pop esi
pop edi
ret 4
Function at 0x502488
Capabilities:
Encode data using xor

Disassembly:
test dword [0x7eda90], 0xffffff80
jne 0x5024b0
test dword [0x7eda90], 0xffffffff
jne 0x502538
call fcn.006a6b5c
jmp fcn.00502488
push edi
push esi
push ebp
push esi
mov eax, edx
mov edi, dword [esp + 0x14]
lea ebp, [ecx + 4]
lea edx, [edi - 4]
movzx eax, ax
mov esi, eax
shr edx, 0x1f
lea edx, [edx + edi - 4]
sar edx, 1
test edx, edx
je 0x502528
mov dword [esp], ebx
mov edi, eax
shl edi, 8
movzx ebx, byte [ebp]
and eax, 0xffffff00
shr eax, 8
xor ebx, eax
movzx ebx, bl
movzx eax, word [ebx*2 + 0x6ef140]
xor edi, eax
movzx eax, di
movzx edi, byte [ebp + 1]
add ebp, 2
mov ebx, esi
shl ebx, 8
and esi, 0xffffff00
shr esi, 8
xor edi, esi
and edi, 0xff
movzx esi, word [edi*2 + 0x6ef140]
xor ebx, esi
movzx esi, bx
dec edx
jne 0x5024d5
mov ebx, dword [esp]
shl eax, 0x10
add eax, esi
mov dword [ecx], eax
pop ecx
pop ebp
pop esi
pop edi
ret 4
push edi
push esi
push ebp
push esi
mov edi, dword [esp + 0x14]
lea ebp, [ecx + 4]
lea esi, [edi - 4]
movzx eax, dx
mov edx, eax
shr esi, 0x1f
lea esi, [esi + edi - 4]
sar esi, 1
test esi, esi
je 0x5025b2
mov dword [esp], ebx
movzx edi, byte [ebp]
mov ebx, eax
and ebx, 0xffffff00
shr ebx, 8
xor edi, ebx
and edi, 0xff
shl eax, 8
movzx ebx, word [edi*2 + 0x6ef140]
xor eax, ebx
movzx eax, ax
movzx edi, byte [ebp + 1]
add ebp, 2
mov ebx, edx
and ebx, 0xffffff00
shr ebx, 8
xor edi, ebx
and edi, 0xff
shl edx, 8
movzx ebx, word [edi*2 + 0x6ef140]
xor edx, ebx
movzx edx, dx
dec esi
jne 0x50255b
mov ebx, dword [esp]
shl eax, 0x10
add eax, edx
mov dword [ecx], eax
pop ecx
pop ebp
pop esi
pop edi
ret 4

Function at 0x5025c0
Capabilities:
Encode data using xor

Disassembly:
test dword [0x7eda90], 0xffffff80
jne 0x5025e8
test dword [0x7eda90], 0xffffffff
jne 0x502664
call fcn.006a6b5c
jmp fcn.005025c0
push esi
push ebx
push esi
movzx eax, dx
mov ebx, eax
mov esi, dword [esp + 0x10]
mov edx, esi
shr edx, 0x1f
add edx, esi
sar edx, 1
test edx, edx
je 0x502659
mov dword [esp], edi
mov edi, eax
shl edi, 8
movzx esi, byte [ecx]
and eax, 0xffffff00
shr eax, 8
xor esi, eax
and esi, 0xff
movzx eax, word [esi*2 + 0x6ef140]
xor edi, eax
movzx eax, di
movzx edi, byte [ecx + 1]
add ecx, 2
mov esi, ebx
shl esi, 8
and ebx, 0xffffff00
shr ebx, 8
xor edi, ebx
and edi, 0xff
movzx ebx, word [edi*2 + 0x6ef140]
xor esi, ebx
movzx ebx, si
dec edx
jne 0x502604
mov edi, dword [esp]
shl eax, 0x10
add eax, ebx
pop ecx
pop ebx
pop esi
ret 4
push esi
push ebx
push esi
movzx eax, dx
mov ebx, eax
mov esi, dword [esp + 0x10]
mov edx, esi
shr edx, 0x1f
add edx, esi
sar edx, 1
test edx, edx
je 0x5026d6
mov dword [esp], edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xffffff00
shr esi, 8
xor edi, esi
and edi, 0xff
shl eax, 8
movzx esi, word [edi*2 + 0x6ef140]
xor eax, esi
movzx eax, ax
movzx edi, byte [ecx + 1]
add ecx, 2
mov esi, ebx
and esi, 0xffffff00
shr esi, 8
xor edi, esi
and edi, 0xff
shl ebx, 8
movzx esi, word [edi*2 + 0x6ef140]
xor ebx, esi
movzx ebx, bx
dec edx
jne 0x502680
mov edi, dword [esp]
shl eax, 0x10
add eax, ebx
pop ecx
pop ebx
pop esi
ret 4
Function at 0x52a160
Capabilities:
Terminate process

Disassembly:
push edi
push ebp
push ebx
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x52a1dc
push dword [edi + 0x14]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x52a1d8
mov edx, dword [edi + 0x18]
test edx, edx
je 0x52a195
xor eax, eax
push eax
push eax
push 0x12
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
push dword [edi + 0xc]
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x52a1aa
mov ebx, 1
jmp 0x52a1c0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x52a1be
mov ebx, 1
jmp 0x52a1c0
xor ebx, ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov eax, ebx
pop ebx
pop ebp
pop edi
ret
xor ebx, ebx
jmp 0x52a1d2
xor eax, eax
pop ebx
pop ebp
pop edi
ret

Function at 0x52a1e4
Capabilities:
Create process on windows

Disassembly:
push esi
push ecx
mov eax, 0x154
call fcn.00696350
mov ecx, dword [esp + 0x154]
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x52a20b
xor eax, eax
add esp, 0x158
pop esi
ret 0xc
xor eax, eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], eax
mov dword [esp + 0x140], eax
mov dword [esp + 0x100], 0x44
mov dword [esp + 0x104], 0
mov dword [esp + 0x12c], 1
mov eax, dword [esp + 0x168]
test eax, eax
je 0x52a2be
mov eax, dword [esp + 0x168]
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x164]
cmp eax, 1
je 0x52a2d9
mov eax, 5
mov word [esp + 0x130], ax
jmp 0x52a2e3
xor eax, eax
mov word [esp + 0x130], ax
xor eax, eax
mov dword [esp + 0x144], eax
mov dword [esp + 0x148], eax
mov dword [esp + 0x14c], eax
mov dword [esp + 0x150], eax
lea eax, [esp]
push dword [esp + 0x160]
push dword [esi]
push str.__s___s
push eax
call fcn.006964d6
add esp, 0x10
xor eax, eax
lea ecx, [esp + 0x100]
lea edx, [esp + 0x144]
push edx
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x52a34f
xor eax, eax
add esp, 0x158
pop esi
ret 0xc
push dword [esi + 4]
push dword [esp + 0x148]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
lea eax, [esp + 0x154]
push eax
push dword [esp + 0x148]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x154]
cmp eax, 0x103
je 0x52a3a8
push dword [esp + 0x144]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x148]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x158
pop esi
ret 0xc
mov edx, dword [esp + 0x144]
mov dword [esi + 0x10], edx
mov ecx, dword [esp + 0x14c]
mov dword [esi + 0x14], ecx
mov eax, 1
add esp, 0x158
pop esi
ret 0xc
Function at 0x52c278
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
test dword [0x7eda90], 0xffffff80
jne 0x52c2a0
test dword [0x7eda90], 0xffffffff
jne 0x52c2a0
call fcn.006a6b5c
jmp fcn.0052c278
push edi
push esi
push ebp
push ebx
sub esp, 0x10
mov edi, ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [ecx], eax
mov dword [edx], eax
xor esi, esi
mov dword [esp], eax
mov dword [esp + 0xc], edi
lea edx, [esp + 8]
xor eax, eax
push eax
push eax
push edx
mov ecx, dword [esp + 0x18]
push dword [ecx + 0x10]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x52c3c2
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x52c362
inc ecx
call fcn.004dbd48
mov ebp, eax
lea eax, [esp + 4]
push eax
push dword [esp + 0xc]
push ebp
mov edx, dword [esp + 0x18]
push dword [edx + 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x52c385
cmp dword [esp + 4], 0
je 0x52c362
mov edi, esi
mov eax, dword [esp]
mov ebx, eax
add eax, dword [esp + 8]
mov dword [esp], eax
lea ecx, [eax + 1]
call fcn.004dbd48
mov esi, eax
test edi, edi
je 0x52c33f
push ebx
push edi
push esi
call fcn.006a6d20
add esp, 0xc
add ebx, esi
push dword [esp + 8]
push ebp
push ebx
call fcn.006a6d20
add esp, 0xc
mov ecx, edi
call fcn.004db418
mov ecx, ebp
call fcn.004db418
jmp 0x52c2c8
mov eax, dword [esp]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [ecx], esi
mov dword [edx], eax
test esi, esi
je 0x52c379
mov byte [esi + eax], 0
xor eax, eax
add esp, 0x10
pop ebx
pop ebp
pop esi
pop edi
ret 8
mov edi, dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, ebp
call fcn.004db418
mov ecx, esi
call fcn.004db418
mov eax, dword [edi + 0x4a]
test eax, eax
je 0x52c3f8
mov edx, dword [eax]
push str.Failed_to_Read_nHTTP_Response_
push eax
call dword [edx + 0x48]
add esp, 8
add esp, 0x10
pop ebx
pop ebp
pop esi
pop edi
ret 8
mov edi, dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, esi
call fcn.004db418
mov eax, dword [edi + 0x4a]
test eax, eax
je 0x52c3f8
mov edx, dword [eax]
push str.No_HTTP_Response_
push eax
call dword [edx + 0x48]
add esp, 8
add esp, 0x10
pop ebx
pop ebp
pop esi
pop edi
ret 8
mov eax, 1
add esp, 0x10
pop ebx
pop ebp
pop esi
pop edi
ret 8

Function at 0x52c764
Capabilities:
Send data

Disassembly:
push ebp
push esi
mov ebp, ecx
lea eax, [esp]
push eax
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x52c7a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 4]
mov dword [edx + 4], eax
mov eax, dword [ebp + 0x4a]
test eax, eax
je 0x52c7ae
mov edx, dword [eax]
push str.HTTP_Data_nPosting_failure_
push eax
call dword [edx + 0x48]
add esp, 8
pop ecx
pop ebp
ret 8
xor eax, eax
pop ecx
pop ebp
ret 8
mov eax, 1
pop ecx
pop ebp
ret 8