joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4023a2
Capabilities:
Encrypt data using rc4 via systemfunction033

Disassembly:
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
push 0x10
pop eax
mov edi, ecx
mov dword [esp + 0x18], eax
xor ebp, ebp
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x20], eax
mov ebx, dword [edi + 4]
cmp dword [0x49b90c], ebp
je 0x4024d3
cmp dword [0x49b908], ebp
je 0x4024d3
cmp dword [edi], 0x14
jb 0x4024cc
test ebx, ebx
je 0x4024cc
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.cryptdll.dll_MD5Init]
push dword [0x49b908]
mov esi, dword [sym.imp.cryptdll.dll_MD5Update]
lea eax, [esp + 0x34]
push dword [0x49b90c]
push eax
call esi
push 0x10
push ebx
lea eax, [esp + 0x38]
push eax
call esi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.cryptdll.dll_MD5Final]
mov eax, dword [edi]
sub eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction033]
test eax, eax
js 0x4024c5
mov esi, dword [edi]
lea eax, [ebx + 0x14]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
push ecx
sub esi, 0x14
mov edx, eax
push esi
call fcn.00401106
add esp, 0xc
test eax, eax
je 0x4024be
mov eax, dword [esp + 0x10]
cmp eax, dword [ebx + 0x10]
jne 0x4024ab
mov ebx, dword [edi + 4]
push esi
call fcn.00401b70
mov dword [edi + 4], eax
test eax, eax
je 0x4024de
push esi
push dword [esp + 0x18]
push eax
call fcn.00462610
add esp, 0xc
mov dword [edi], esi
inc ebp
test ebx, ebx
je 0x4024de
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4024de
push dword [ebx + 0x10]
push eax
push str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___Checksums_dont_match__C:0x_08x___R:0x_08x__n
call fcn.004016fd
add esp, 0xc
jmp 0x4024de
push str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___Unable_to_calculate_CRC32_n
jmp 0x4024d8
push str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___RtlDecryptData2_n
jmp 0x4024d8
push str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_valid_data_n
jmp 0x4024d8
push str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_Session_Key_n
call fcn.004016fd
pop ecx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x8c
ret
Function at 0x4024eb
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor edi, edi
test edx, edx
mov eax, 0x49b908
push 0x10
cmovne eax, edx
mov edx, dword [ebx]
pop ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x90]
mov dword [esp + 0x28], ecx
lea ecx, [edx + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
cmp dword [eax + 4], edi
je 0x402633
cmp dword [eax], edi
je 0x402633
test edx, edx
je 0x40262c
cmp dword [ebx + 4], edi
je 0x40262c
push ecx
call fcn.00401b70
mov dword [esp + 0x10], eax
test eax, eax
je 0x40263e
push dword [ebx]
lea esi, [eax + 0x14]
mov ebp, eax
push dword [ebx + 4]
push esi
call fcn.00462610
add esp, 8
mov eax, ebp
add eax, 0x10
mov edx, esi
mov dword [esp + 0x20], eax
push eax
push dword [ebx]
call fcn.00401106
add esp, 0xc
test eax, eax
je 0x402618
push 0x10
push ebp
call dword [sym.imp.cryptdll.dll_CDGenerateRandomBits]
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.cryptdll.dll_MD5Init]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.cryptdll.dll_MD5Update]
push dword [eax]
push dword [eax + 4]
lea eax, [esp + 0x40]
push eax
call esi
push 0x10
push ebp
lea eax, [esp + 0x40]
push eax
call esi
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.cryptdll.dll_MD5Final]
mov esi, dword [esp + 0x18]
add esi, 0x14
lea eax, [esi - 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction032]
test eax, eax
js 0x402607
mov ebp, dword [ebx + 4]
inc edi
mov eax, dword [esp + 0x10]
mov dword [ebx + 4], eax
mov dword [ebx], esi
jmp 0x402612
push str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___RtlEncryptData2_n
call fcn.004016fd
pop ecx
test ebp, ebp
je 0x40263e
jmp 0x402623
push str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___Unable_to_calculate_CRC32_n
call fcn.004016fd
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40263e
push str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___No_valid_data_n
jmp 0x402638
push str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___No_Session_Key_n
call fcn.004016fd
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
Function at 0x402edd
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov eax, ecx
xor esi, esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], esi
push ecx
push esi
lea ecx, [ebp - 8]
mov dword [ebp - 4], esi
push ecx
push esi
push eax
push dword [ebp + 0x10]
mov edi, edx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x402f7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x402f7b
mov eax, dword [ebp - 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add eax, eax
push eax
push 0x40
call ebx
mov dword [edi], eax
test eax, eax
je 0x402f7a
mov eax, dword [ebp - 4]
add eax, eax
push eax
push 0x40
call ebx
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
test eax, eax
je 0x402f70
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push dword [edi]
push dword [ebp - 0x10]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test esi, esi
jne 0x402f7a
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi], eax
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x40a7af
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [ecx + 8]
mov ebp, edx
push edi
mov edi, dword [esp + 0x10]
xor edx, edx
test edi, edi
jle 0x40a7db
push ebx
mov ebx, dword [ecx]
mov al, byte [edx + ebp]
xor byte [ebx + esi], al
lea eax, [esi + 1]
xor esi, esi
cmp eax, dword [ecx + 4]
cmovl esi, eax
inc edx
cmp edx, edi
jl 0x40a7c4
pop ebx
add dword [ecx + 0xc], edi
pop edi
mov dword [ecx + 8], esi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
mov esi, dword [edi + 0x88]
test esi, esi
je 0x40dac6
mov eax, dword [esp + 0x14]
mov dword [eax], esi
mov eax, dword [esi + 0x10]
mov dword [edi + 0x88], eax
mov eax, dword [esi + 8]
and dword [esi + 0x10], 0
and dword [eax], 0
and dword [eax + 4], 0
jmp 0x40db28
movzx eax, word [edi + 0x8c]
cdq
add eax, 0x28
adc edx, 0
push edx
push eax
call fcn.00404db5
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [ecx], esi
test esi, esi
jne 0x40db11
mov eax, dword [edi + 0x98]
lea ecx, [ebp - 1]
push esi
cdq
push ecx
push edx
push eax
call fcn.00479140
mov ecx, dword [edi + 0x3c]
push edx
mov edx, dword [esp + 0x14]
push eax
call fcn.0040474b
pop ecx
pop ecx
push 7
pop eax
jmp 0x40db37
lea eax, [esi + 0x28]
mov dword [esi + 0x14], edi
mov dword [esi + 8], eax
push 0x20
pop eax
mov word [esi + 0x1c], ax
xor eax, eax
inc eax
mov word [esi + 0x1e], ax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
mov dword [esi + 0x18], ebp
inc dword [edi + 0x78]
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x412946
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
movzx eax, word [ecx + 0x12]
and dword [esp], 0
push ebx
push ebp
movzx ebp, byte [ecx + 9]
push esi
movzx esi, word [ecx + 0x18]
push edi
mov edi, dword [ecx + 0x38]
mov dword [esp + 0x14], edx
lea esi, [eax + esi*2]
mov dword [esp + 0x18], ecx
movzx ebx, byte [edi + ebp + 5]
movzx eax, byte [edi + ebp + 6]
shl ebx, 8
or ebx, eax
cmp esi, ebx
jbe 0x4129a0
test ebx, ebx
jne 0x41298f
mov eax, dword [ecx + 0x34]
mov ebx, 0x10000
cmp dword [eax + 0x24], ebx
je 0x4129a0
mov ecx, 0xfe0c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.0045db24
cmp byte [edi + ebp + 2], 0
jne 0x4129ae
cmp byte [edi + ebp + 1], 0
je 0x4129e7
lea eax, [esi + 2]
cmp eax, ebx
ja 0x4129e7
lea eax, [esp + 0x10]
push eax
call fcn.0041285f
pop ecx
test eax, eax
je 0x4129d7
mov ecx, dword [esp + 0x20]
sub eax, edi
mov dword [ecx], eax
cmp eax, esi
jg 0x412a36
mov ecx, 0xfe1c
jmp 0x412994
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x412a38
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [esi + 2]
add eax, edx
cmp eax, ebx
jle 0x412a21
mov eax, dword [ecx + 0x14]
sub eax, edx
push 4
lea edx, [eax - 2]
pop eax
cmp edx, eax
cmovg edx, eax
call fcn.004124d4
test eax, eax
jne 0x412a38
movzx ecx, byte [edi + ebp + 5]
movzx eax, byte [edi + ebp + 6]
mov edx, dword [esp + 0x14]
shl ecx, 8
or ecx, eax
dec ecx
movzx ebx, cx
inc ebx
sub ebx, edx
mov eax, ebx
mov byte [edi + ebp + 6], bl
sar eax, 8
mov byte [edi + ebp + 5], al
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x42ee64
Capabilities:
Reference sql statements

Disassembly:
push ecx
push ebx
push esi
push edi
push dword [esp + 0x14]
mov esi, edx
mov ebx, str.sqlite_master
push esi
push ebx
push esi
mov edi, ecx
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push edi
call fcn.004324ee
add esp, 0x18
cmp dword [esp + 0x14], 0
jne 0x42ee9d
push esi
push ebx
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push edi
call fcn.004324ee
add esp, 0x10
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x45e1dc
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
xor ecx, ecx
call fcn.0045e25d
push 0
push 0x45e251
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push dword [0x49bccc]
push 1
call fcn.00466ff2
push eax
call fcn.0046775a
pop ecx
pop ecx
push eax
call fcn.0046756b
pop ecx
pop ecx
push dword [0x49bcc4]
push 2
call fcn.00466ff2
push eax
call fcn.0046775a
pop ecx
pop ecx
push eax
call fcn.0046756b
pop ecx
pop ecx
push dword [0x49bcc8]
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
cmp esi, 0xc000004b
pop esi
push 0
jne 0x45e24a
call dword [sym.imp.KERNEL32.dll_ExitThread]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x45e36f
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
xor edi, edi
push eax
mov esi, edi
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebp, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov ebx, edi
mov dword [esp + 0x1c], ebx
test ebp, ebp
je 0x45e517
cmp dword [esp + 0x18], ebx
jle 0x45e517
push 0x4947e8
push dword [ebp]
call fcn.004615d5
mov esi, eax
mov dword [esp + 0x28], esi
pop ecx
pop ecx
test esi, esi
je 0x45e426
sub eax, dword [ebp]
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x45e42d
mov edi, dword [ebp]
xor edx, edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x45e3ec
sub esi, dword [ebp]
sub edi, ecx
mov eax, esi
sar edi, 1
and eax, 0xfffffffe
push eax
push dword [ebp]
push ebx
call fcn.00462610
mov ecx, dword [esp + 0x2c]
lea eax, [esi + 4]
sar eax, 1
add ecx, 4
add esp, 0xc
cmp eax, edi
sbb eax, eax
and eax, ecx
xor edi, edi
jmp 0x45e429
mov eax, dword [ebp]
mov dword [esp + 0x10], eax
xor ecx, ecx
mov dword [esp + 0x20], edi
inc ecx
movzx eax, di
cmp di, cx
jae 0x45e503
mov esi, eax
test ebx, ebx
je 0x45e465
mov eax, dword [esi*4 + 0x489c04]
push dword [eax]
push ebx
call fcn.00466d56
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
je 0x45e464
xor eax, eax
jmp 0x45e4f5
inc ecx
cmp dword [esp + 0x10], 0
mov eax, ecx
mov dword [esp + 0x2c], eax
je 0x45e4f6
xor ecx, ecx
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x14], ecx
jne 0x45e4f3
mov edi, dword [esp + 0x10]
mov ebx, ecx
mov ecx, dword [esi*4 + 0x489c04]
cmp bx, word [ecx + 0xc]
jae 0x45e4e7
movzx eax, bx
imul edx, eax, 0xc
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x28], edx
push dword [eax + edx + 4]
push edi
call fcn.00466d56
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x14], ecx
test eax, eax
jne 0x45e4e2
mov eax, dword [esi*4 + 0x489c04]
mov ecx, dword [eax + 0x10]
lea eax, [ebp + 4]
push eax
mov eax, dword [esp + 0x1c]
dec eax
push eax
mov eax, dword [esp + 0x30]
call dword [ecx + eax]
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
inc ebx
test ecx, ecx
je 0x45e488
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
inc ecx
inc edi
mov dword [esp + 0x20], edi
test eax, eax
je 0x45e434
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x45e510
push ebx
call esi
push ebp
call esi
mov esi, dword [esp + 0x24]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x46d6ca
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x46d709
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46d709
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46d709
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x46d709
cmp dword [ecx + 0x74], 0xe
jbe 0x46d709
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x470340
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47e2b4
push 0x47e2ac
push str.FlsAlloc
push 0x1f
call fcn.0047021e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x470374
push dword [ebp + 8]
mov ecx, esi
call dword [0x47b344]
call esi
jmp 0x47037a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4703be
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47e2c4
push 0x47e2bc
push str.FlsGetValue
push 0x21
call fcn.0047021e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4703f5
push dword [ebp + 8]
mov ecx, esi
call dword [0x47b344]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4703fd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47e2cc
push 0x47e2c4
push str.FlsSetValue
push 0x22
call fcn.0047021e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x470437
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x47b344]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x471cd2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x499014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x471d1d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00471e6d
test al, al
jne 0x471d17
sub edx, 2
cmp edx, edi
jne 0x471cfd
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x471d3f
lea eax, [edi + 2]
cmp edx, eax
je 0x471d3f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00471c1e
add esp, 0x10
jmp 0x471e39
push esi
lea ecx, [ebp - 0x255]
call fcn.00471e6d
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x471d82
push dword [ebp - 0x25c]
jmp 0x471d2f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x471dbf
cmp word [ebp - 0x226], 0
je 0x471de0
cmp word [ebp - 0x226], ax
jne 0x471dbf
cmp word [ebp - 0x224], 0
je 0x471de0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00471c1e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x471e2c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x471d99
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x471e14
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x471e39
push 0x471a4e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004765b0
add esp, 0x10
jmp 0x471e09
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460f82
leave
ret

Function at 0x4728f4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x472905
pop esi
ret
push ebx
push edi
push esi
call fcn.004728bd
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046e2b6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x47292d
push ebx
push esi
push edi
call fcn.00462610
add esp, 0xc
push 0
call fcn.0046e27c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x472cfd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00472942
Function at 0x5c3363
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d6fe8]
jne 0x5c336d
repz ret
jmp fcn.005cc63b

Function at 0x5cdf7f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.005c1426
and dword [ebp - 4], 0
cmp dword [0x6d8c64], 0
mov ebx, eax
jne 0x5ce030
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5ce0e1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x5ce0e1
push eax
call fcn.005c13b4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x6d8c64], eax
call esi
push eax
call fcn.005c13b4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x6d8c68], eax
call esi
push eax
call fcn.005c13b4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x6d8c6c], eax
call esi
push eax
call fcn.005c13b4
pop ecx
mov dword [0x6d8c74], eax
test eax, eax
je 0x5ce030
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005c13b4
pop ecx
mov dword [0x6d8c70], eax
mov eax, dword [0x6d8c70]
cmp eax, ebx
je 0x5ce088
cmp dword [0x6d8c74], ebx
je 0x5ce088
push eax
call fcn.005c142f
push dword [0x6d8c74]
mov esi, eax
call fcn.005c142f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5ce088
test edi, edi
je 0x5ce088
call esi
test eax, eax
je 0x5ce07f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5ce07f
test byte [ebp - 0xc], 1
jne 0x5ce088
or dword [ebp + 0x10], 0x200000
jmp 0x5ce0c1
mov eax, dword [0x6d8c68]
cmp eax, ebx
je 0x5ce0c1
push eax
call fcn.005c142f
pop ecx
test eax, eax
je 0x5ce0c1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5ce0c1
mov eax, dword [0x6d8c6c]
cmp eax, ebx
je 0x5ce0c1
push eax
call fcn.005c142f
pop ecx
test eax, eax
je 0x5ce0c1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6d8c64]
call fcn.005c142f
pop ecx
test eax, eax
je 0x5ce0e1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5ce0e3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5d1880
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x6d644c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov byte [0x6d6450], 0
mov dword [0x6d6440], 0xde7
mov dword [0x6d6444], 0x22fd
mov dword [0x6d6448], 0
mov dword [ebp - 0x1c], eax
jmp 0x5d1903
mov dword [0x6d6440], 0xbd0
mov dword [0x6d6448], 0
jmp 0x5d192b
mov dword [0x6d6440], 0xa6
mov dword [0x6d6444], 0x1ca3
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x6d6448]
add eax, 1
mov dword [0x6d6448], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x5d1903
jmp 0x5d18d1
mov eax, 0x100
mov dword [0x6d6454], 0
mov dword [0x6d6444], 0x1bb5
mov ecx, dword [0x6d644c]
mov edx, dword [0x6d6448]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x20], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x6d6454], edi
mov dword [0x6d6444], 0x938
mov eax, edi
cdq
mov edi, dword [ebp - 0x20]
idiv edi
mov dword [0x6d644c], edx
mov ecx, dword [0x6d6448]
mov bl, byte [esi + ecx]
mov byte [0x6d6450], bl
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x6d6450]
mov ecx, dword [0x6d644c]
mov byte [esi + ecx], bl
mov dword [0x6d6444], 0x42e
mov dword [0x6d6440], 0x178b
mov ecx, dword [0x6d6448]
add ecx, 1
mov dword [0x6d6448], ecx
cmp ecx, 0x100
jl 0x5d192b
jmp 0x5d18e7