joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
call fcn.0044aea3
push 0x45cb84
push dword [ebp + 8]
call dword [sym.imp.MSVCR90.dll__wfopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x44b90e
and dword [ebp - 4], 0
push edi
push esi
push 1
lea eax, [ebp - 4]
push 2
push eax
call dword [sym.imp.MSVCR90.dll_fread]
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
cmp edi, 1
pop edi
jne 0x44b90a
mov eax, 0xfeff
cmp word [ebp - 4], ax
je 0x44b8fe
cmp word [ebp - 4], 0x5b
je 0x44b8fe
cmp word [ebp - 4], 0x7f
jbe 0x44b8fe
push dword [ebp + 8]
mov ecx, ebx
call fcn.0044b13e
jmp 0x44b910
push dword [ebp + 8]
mov ecx, ebx
call fcn.0044b4c4
jmp 0x44b910
mov al, 1
jmp 0x44b910
xor al, al
pop esi
pop ebx
leave
ret 4

Function at 0x44bbca
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x46b114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10
pop edi
xor ebx, ebx
push edi
lea eax, [ebp - 0x24]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
call sub.MSVCR90.dll_memset
push edi
lea eax, [ebp - 0x14]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0x18
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x10]
mov dword [ebp - 0x28], edi
call sub.WS2_32.dll_getpeername
test eax, eax
jne 0x44bc2e
push dword [ebp - 0x12]
call sub.WS2_32.dll_ntohs
movzx eax, ax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x10]
mov dword [ebp - 0x28], edi
call sub.WS2_32.dll_getsockname
test eax, eax
jne 0x44bc55
push dword [ebp - 0x22]
call sub.WS2_32.dll_ntohs
mov edi, dword [ebp - 0x20]
movzx ebx, ax
jmp 0x44bc57
mov edi, ebx
push dword [esi + 0x478]
mov ecx, esi
mov dword [esi + 4], 3
call fcn.0044ba81
push dword [ebp - 0x30]
mov ecx, dword [esi + 8]
push dword [ebp - 0x2c]
mov eax, dword [ecx]
push ebx
push edi
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004390e8
leave
ret

Function at 0x44bd9b
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x46b114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
mov esi, ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 2
pop eax
mov word [ebp - 0x14], ax
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x10], eax
movzx eax, word [esi + 0x6c]
push eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x10]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x44be04
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x44be04
push 1
push eax
mov ecx, esi
call fcn.0044bc8a
jmp 0x44be0b
mov dword [esi + 4], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004390e8
leave
ret
Function at 0x44be18
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
test eax, eax
je 0x44beb2
push ebx
lea ebx, [esi + 0x14]
push edi
mov ecx, dword [esi + 0x30]
sub eax, ecx
cmp eax, 0x2000
jb 0x44be3c
mov eax, 0x2000
cmp dword [ebx + 0x18], 0x10
jb 0x44be47
mov edx, dword [ebx + 4]
jmp 0x44be4a
lea edx, [ebx + 4]
push 0
push eax
add ecx, edx
push ecx
push dword [esi + 0x10]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x44be8a
add dword [esi + 0x30], eax
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x28]
cmp edi, eax
jne 0x44be2b
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push dword [eax]
mov ecx, ebx
push 0
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
mov ecx, dword [esi + 8]
and dword [esi + 0x30], 0
mov eax, dword [ecx]
push edi
call dword [eax + 8]
jmp 0x44beb0
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x44bea6
push dword [esi + 0x28]
mov ecx, dword [esi + 8]
push dword [esi + 0x30]
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x44beb0
push 0
push eax
mov ecx, esi
call fcn.0044bc8a
pop edi
pop ebx
pop esi
ret
Function at 0x44beb4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x9f8c]
mov eax, 0xa00c
call fcn.00439740
mov eax, dword [0x46b114]
xor eax, ebp
mov dword [ebp + 0x9f88], eax
push ebx
push esi
push 0
push 0xa000
lea eax, [ebp - 0x78]
mov esi, ecx
push eax
push dword [esi + 0x10]
call sub.WS2_32.dll_recv
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44bf10
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x44bf97
push 0
push eax
mov ecx, esi
call fcn.0044bc8a
jmp 0x44bf97
mov ecx, esi
test ebx, ebx
jne 0x44bf25
call fcn.0044bb46
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x44bf97
push edi
push dword [esi + 0x478]
call fcn.0044ba81
push ebx
lea eax, [ebp - 0x78]
lea edi, [esi + 0x34]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
cmp dword [edi + 0x18], 0x10
mov eax, dword [esi + 0x48]
mov dword [ebp - 0x7c], eax
jb 0x44bf52
mov ecx, dword [edi + 4]
jmp 0x44bf55
lea ecx, [edi + 4]
lea ebx, [ebp - 0x7c]
push ebx
mov dword [ebp - 0x80], ecx
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
push eax
push dword [ebp - 0x80]
call dword [edx + 0x10]
test eax, eax
jne 0x44bf96
push esi
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x44bf96
cmp dword [esi + 0x10], 0xffffffff
je 0x44bf96
cmp dword [esi + 4], 3
jne 0x44bf96
mov eax, dword [ebp - 0x7c]
cmp dword [esi + 0x48], eax
jb 0x44bf96
push eax
push 0
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
pop edi
mov ecx, dword [ebp + 0x9f88]
pop esi
xor ecx, ebp
pop ebx
call fcn.004390e8
add ebp, 0x9f8c
leave
ret
Function at 0x44c0a6
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x68], 0x10
jb 0x44bd5a
mov eax, dword [esi + 0x54]
jmp 0x44bd5d
lea eax, [esi + 0x54]
push 0x400
lea ecx, [esi + 0x74]
push ecx
push eax
mov eax, dword [esi + 0xc]
push 0x402
push dword [eax + 4]
call sub.WS2_32.dll_WSAAsyncGetHostByName
mov dword [esi + 0x474], eax
test eax, eax
jne 0x44bd92
call sub.WS2_32.dll_WSAGetLastError
push 1
push eax
mov ecx, esi
call fcn.0044bc8a
pop esi
ret
mov dword [esi + 4], 1
pop esi
ret
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x44c114
push eax
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x44c0d3
call sub.WS2_32.dll_WSAGetLastError
push 1
push eax
mov ecx, esi
call fcn.0044bc8a
pop esi
ret
mov ecx, dword [esi + 0xc]
push 0x3f
push 0x401
push dword [ecx + 4]
push eax
call sub.WS2_32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
je 0x44c0c2
cmp dword [esi + 0x68], 0x10
jb 0x44c0f6
mov eax, dword [esi + 0x54]
jmp 0x44c0f9
lea eax, [esi + 0x54]
push eax
call sub.WS2_32.dll_inet_addr
mov dword [esi + 0x70], eax
mov ecx, esi
pop esi
cmp eax, 0xffffffff
jne 0x44c10f
jmp 0x44bd4c
jmp fcn.0044bd9b
cmp eax, 3
jne 0x44c0d1
pop esi
jmp fcn.0044be18
Function at 0x40cd10
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x40cda2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x40cd94
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x40cd8c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x40cd55
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x40ce50
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.00411086
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x40ceba
push esi
lea edi, [eax + 0x400]
call fcn.0041107b
push edi
call fcn.00411086
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x40ce8a
push esi
xor edi, edi
call dword [0x4288790]
add esp, 4
test eax, eax
je 0x40ced6
push eax
push esi
call fcn.00410260
add esp, 8
mov edi, eax
push esi
call fcn.0041107b
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40d4d0
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40d4dd
xor eax, eax
pop esi
ret
push esi
call dword [0x4288790]
add esp, 4
test eax, eax
jne 0x40d4ed
pop esi
ret
cmp eax, 1
jne 0x40d4fb
cmp byte [esi], 0x5c
jne 0x40d4fb
xor eax, eax
pop esi
ret
push esi
call fcn.0040d280
add esp, 4
test eax, eax
je 0x40d50f
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret

Function at 0x40d840
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.0040c760
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x40d897
push ebx
push edi
call fcn.0040c870
push esi
mov ebx, esi
call fcn.0040c760
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x40d86e
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x40e3a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x1c]
push ebp
push esi
push edi
push eax
call fcn.00410400
mov edi, dword [esp + 0x38]
xor esi, esi
push edi
mov ebp, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], esi
call dword [0x4288790]
add esp, 8
cmp ebp, esi
je 0x40e480
cmp eax, esi
je 0x40e480
inc eax
push ebx
push eax
call fcn.00411086
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004110a0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40e416
mov byte [esi], 0
inc esi
lea eax, [esp + 0x18]
push eax
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40e46e
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
push 0
mov edi, 4
push esi
push ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e463
cmp dword [esp + 0x14], edi
jne 0x40e463
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0041107b
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
pop ebx
jne 0x40e48c
mov eax, dword [esp + 0x48]
test eax, eax
mov eax, dword [esp + 0x40]
jne 0x40e490
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x40e4a0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
ja 0x40e521
je 0x40e512
cmp eax, 0x80000101
ja 0x40e50b
je 0x40e512
cmp eax, 0x80000004
je 0x40e4ec
cmp eax, 0x80000005
jne 0x40e536
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 3
test eax, eax
je 0x40e583
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x40e583
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 1
push eax
call dword [0x4288790]
mov ebp, dword [esp + 0x44]
mov ebx, eax
add esp, 4
inc ebx
jmp 0x40e583
cmp eax, 0x80000201
jne 0x40e536
mov ebx, 4
lea ebp, [esp + 0x40]
mov dword [esp + 8], ebx
jmp 0x40e583
cmp eax, 0x80000401
je 0x40e56e
cmp eax, 0x80000501
je 0x40e556
cmp eax, 0x80000601
je 0x40e53e
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
call fcn.004110c8
mov dword [esp + 0xc], eax
jmp 0x40e57f
fld dword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
call fcn.004110c8
mov dword [esp + 0xc], eax
jmp 0x40e57f
mov ecx, dword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
lea ebp, [esp + 0xc]
mov edx, dword [esp + 0x28]
push esi
push edx
call fcn.00410400
mov esi, eax
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 0
call dword [0x4288790]
add esp, 8
test esi, esi
je 0x40e65c
test eax, eax
je 0x40e65c
inc eax
push edi
push eax
call fcn.00411086
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004110a0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40e5fe
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40e652
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40e647
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0041107b
add esp, 4
pop edi
mov eax, dword [esp + 0x18]
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x40e880
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x40e8c1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x40e8c1.2
jmp dword [eax*4 + 0x40e94c]
mov word [esp + 0x48], di
jmp 0x40e8fa
mov word [esp + 0x48], 2
jmp 0x40e8fa
mov word [esp + 0x48], 3
jmp 0x40e8fa
mov word [esp + 0x48], 4
jmp 0x40e8fa
mov word [esp + 0x48], 7
jmp 0x40e8fa
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x40e944
cmp dword [esp + 0x70], edi
je 0x40e930
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x40eaf0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x40eb0e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x40eb03
pop esi
ret

Function at 0x40f9d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x40f9f1
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x40fa4b
inc edi
cmp edi, esi
jl 0x40f9e5
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x40fa80
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x40fa3a
cmp byte [eax], bl
je 0x40fa55
cmp byte [eax + 1], bl
je 0x40fa5e
cmp byte [eax + 2], bl
je 0x40fa68
cmp byte [eax + 3], bl
je 0x40fa74
add eax, 4
cmp eax, edi
jb 0x40fa11
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x410a50
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3c]
test esi, esi
push edi
jne 0x410a6c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x410a88
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x2c], ecx
je 0x410ac1
mov dx, word [eax]
mov ax, word [eax + 4]
mov word [esp + 0x40], dx
mov word [esp + 0x42], ax
mov ecx, dword [esp + 0x40]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x410ac1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x14]
cmp eax, 1
je 0x410ad2
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
and edx, 0xffff
and eax, 0xffff
push edx
push eax
call fcn.00410960
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
add esp, 8
push eax
push edi
call ebx
test eax, eax
jne 0x410b05
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push esi
call fcn.00410980
mov esi, eax
add esp, 4
test esi, esi
je 0x410b23
push esi
call fcn.00411e32
push esi
call fcn.0041147c
add esp, 8
cmp dword [esp + 0x34], 1
jne 0x410b3e
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x410b3e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0x2c]
push ecx
push edi
call ebx
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x18
ret

Function at 0x416739
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x416759
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041651a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41677c
test byte [esp + 8], 2
je 0x41677c
call fcn.0041658d
mov dword [eax], 0xd
call fcn.00416596
mov dword [eax], 5
jmp 0x416755
xor eax, eax
ret
Function at 0x40132e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x1f
jmp 0x401348
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x401474
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
shl eax, cl
and eax, dword [ebp + 8]
je 0x401365
mov byte [ebp - 1], 1
jmp 0x401369
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov byte [ebp - 3], al
mov dword [ebp - 0x18], 0x425
cmp dword [ebp - 0x18], 0x2392
jle 0x4013c0
std
pop es
mov byte [esi + 0x68b69a8c], 0xbb
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
shl eax, cl
and eax, dword [ebp + 0xc]
je 0x4013d3
mov byte [ebp - 2], 1
jmp 0x4013d7
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 4], al
movzx eax, byte [ebp - 3]
movzx ecx, byte [ebp - 4]
and eax, ecx
je 0x4013ef
and dword [ebp - 0x14], 0
jmp 0x4013fc
movzx eax, byte [ebp - 3]
movzx ecx, byte [ebp - 4]
or eax, ecx
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 0x14]
mov byte [ebp - 5], al
mov dword [ebp - 0x1c], 0x98d
cmp dword [ebp - 0x1c], 0x1fb0
jle 0x40145d
mov eax, dword [ebp - 0x10]
shl eax, 1
mov dword [ebp - 0x10], eax
movzx eax, byte [ebp - 5]
or eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
jmp 0x401341
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x41d610
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov esi, dword [esp + 0x18]
test esi, esi
je 0x41d6b5
mov eax, dword [esi]
xor edx, edx
mov byte [eax + 0x16], 0
mov eax, dword [esi]
mov byte [eax + 0x17], 0
mov eax, dword [esi]
mov byte [eax + 0x18], 0
mov eax, dword [esi]
mov byte [eax + 0x19], 0
xor eax, eax
mov ebp, dword [esi + 4]
mov edi, dword [esi]
test ebp, ebp
jle 0x41d668
xor ecx, ecx
mov ebx, eax
shr eax, 0x18
mov cl, byte [edi + edx]
xor ecx, eax
inc edx
shl ebx, 8
mov eax, dword [ecx*4 + 0x58f080]
xor eax, ebx
cmp edx, ebp
jne 0x41d646
mov edx, eax
shr edx, 0x18
mov ecx, dword [esi + 0xc]
mov dword [esp], ecx
test ecx, ecx
jle 0x41d69b
mov ebp, dword [esi + 8]
xor edx, edx
xor ecx, ecx
mov ebx, eax
shr eax, 0x18
mov cl, byte [ebp + edx]
xor ecx, eax
inc edx
shl ebx, 8
mov eax, dword [ecx*4 + 0x58f080]
xor eax, ebx
cmp edx, dword [esp]
jne 0x41d677
mov edx, eax
shr edx, 0x18
mov byte [edi + 0x16], al
mov ebx, eax
shr ebx, 8
mov ecx, dword [esi]
shr eax, 0x10
mov byte [ecx + 0x17], bl
mov ecx, dword [esi]
mov byte [ecx + 0x18], al
mov eax, dword [esi]
mov byte [eax + 0x19], dl
pop eax
pop ebx
pop esi
pop edi
pop ebp
ret