joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48bb00
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a810
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
push esi
mov eax, dword [0x5ec3c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x28], 0
je 0x48bba6
call fcn.0044f060
push 3
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, eax
call fcn.0044f5c0
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], str.EventSender.cpp
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x10], 0xa2
call fcn.0041a580
mov edx, str.Event_Sender_already_initialized_for_Azure
lea ecx, [ebp - 0xb8]
call fcn.0041a5e0
lea ecx, [ebp - 0x60]
call fcn.0044dd10
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.004f317c
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x2c], 0
jne 0x48bcc7
push 0
push 0
push 0
push 0
push 0x5d5434
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x48bcc7
lea eax, [esi + 0x28c]
mov dword [esi + 0x50], 0x3c
mov dword [esi + 0x60], eax
lea ecx, [esi + 0x50]
lea eax, [esi + 0x8c]
mov dword [esi + 0x64], 0x100
mov dword [esi + 0x7c], eax
lea eax, [esi + 0x38]
mov dword [esi + 0x80], 0x100
cmp dword [eax + 0x14], 8
jb 0x48bc06
mov eax, dword [eax]
push ecx
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x48bc95
call fcn.0044f060
push 1
lea ecx, [ebp - 0x158]
push ecx
mov ecx, eax
call fcn.0044f5c0
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], str.EventSender.cpp
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x10], 0xb5
call fcn.0041a580
mov edx, str.WinHttpCrackUrl_failed_for_Azure:
lea ecx, [ebp - 0x158]
call fcn.0041a5e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x158]
call fcn.004301e0
lea ecx, [ebp - 0x100]
call fcn.0044dd10
mov dword [ebp - 4], 4
lea eax, [ebp - 0x100]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
jmp 0x48bd21
cmp word [esi + 0x68], 0
jne 0x48bcb1
cmp dword [esi + 0x5c], 2
mov eax, 0x50
mov ecx, 0x1bb
cmove eax, ecx
mov word [esi + 0x68], ax
mov byte [esi + 0x28], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0044f060
push 1
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, eax
call fcn.0044f5c0
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], str.EventSender.cpp
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x10], 0xa9
call fcn.0041a580
mov edx, str.Unable_to_open_HTTP_session_for_Azure
lea ecx, [ebp - 0xb8]
call fcn.0041a5e0
lea ecx, [ebp - 0x60]
call fcn.0044dd10
mov dword [ebp - 4], 3
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], vtable.std::ios_base.0
push eax
call fcn.004f317c
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x498600
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push ebx
push ebp
push esi
mov esi, 1
mov eax, esi
shl eax, cl
mov ecx, dword [esp + 0x20]
push edi
cmp ecx, eax
ja 0x498782
lea eax, [ecx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [0x5ffadc]
push eax
mov dword [esp + 0x1c], eax
lea ecx, [ecx + 1]
shl esi, cl
mov ecx, 0x5ffae4
lea eax, [esi + esi]
push eax
call fcn.0047f5a0
lea eax, [esi - 1]
mov dword [0x5ffaf4], esi
mov esi, dword [0x5ffadc]
mov dword [0x5ffaf0], eax
mov eax, dword [esp + 0x18]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x49875c
nop dword [eax]
cmp dword [esi + 0x1c], 8
lea ebp, [esi + 8]
mov edi, dword [edi]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x14], ebp
jb 0x498689
mov ecx, dword [ebp]
mov dword [esp + 0x14], ecx
lea ecx, [edx + edx]
mov ebx, 0x811c9dc5
xor edx, edx
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x4986b9
mov eax, dword [esp + 0x14]
mov ebp, ecx
movzx ecx, byte [edx + eax]
inc edx
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp edx, ebp
jb 0x4986a1
mov eax, dword [esp + 0x18]
lea ebp, [esi + 8]
and ebx, dword [0x5ffaf0]
mov ecx, dword [0x5ffae4]
lea ecx, [ecx + ebx*8]
mov dword [esp + 0x14], ecx
cmp dword [ecx], eax
jne 0x4986d7
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x498752
mov ebx, dword [ecx + 4]
lea eax, [ebx + 8]
push eax
push ebp
call fcn.004828f0
test al, al
jne 0x49870f
mov ebx, dword [ebx]
cmp ebx, esi
je 0x498706
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
mov dword [eax + 4], esi
jmp 0x49874e
mov eax, dword [esp + 0x14]
cmp dword [eax], ebx
je 0x498730
mov ebx, dword [ebx + 4]
lea eax, [ebx + 8]
push eax
push ebp
call fcn.004828f0
test al, al
je 0x498766
mov eax, dword [esp + 0x14]
cmp dword [eax], ebx
jne 0x498717
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
mov dword [eax], esi
mov eax, dword [esp + 0x18]
mov esi, edi
cmp edi, eax
jne 0x498670
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x49874e
push str.invalid_hash_bucket_count
call fcn.004f2ce7
int3
Function at 0x49fcc0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
xor esi, edi
rol esi, 4
bswap esi
cmp ecx, 0xc
jbe 0x49fd40
mov eax, dword [esp + 0xc]
add ecx, 0xfffffff4
push ebx
push ebp
mov ebp, dword [esp + 0x20]
add ecx, ebp
mov dword [esp + 0x1c], ecx
mov ebx, ecx
nop
add esi, dword [ebx + 4]
add edi, dword [ebx + 8]
mov edx, esi
add eax, dword [ebx]
xor edi, esi
rol edx, 0xe
mov ebx, ebp
sub edi, edx
add ebp, 0xc
mov ecx, edi
xor eax, edi
rol ecx, 0xb
sub eax, ecx
mov edx, eax
xor esi, eax
ror edx, 7
sub esi, edx
cmp ebx, dword [esp + 0x1c]
jb 0x49fcf0
mov ecx, esi
mov edx, esi
rol ecx, 0x10
xor edx, edi
sub edx, ecx
mov ecx, edx
xor eax, edx
rol ecx, 4
sub eax, ecx
pop ebp
mov ecx, eax
xor eax, esi
pop ebx
rol ecx, 0xe
pop edi
sub eax, ecx
pop esi
ret
pop edi
mov eax, esi
pop esi
ret

Function at 0x4a1a50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
movzx eax, byte [ebp + 0x24]
lea edx, [eax*4 + 0x14]
call fcn.0049d670
mov esi, eax
lea ecx, [ebp + 0x40]
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 8], ecx
mov word [esi + 5], 8
mov byte [esi + 7], 0
movzx ecx, byte [ebp + 0x25]
add ecx, 0x20
mov eax, ecx
shr eax, 3
and al, 0x20
sub cl, al
mov al, byte [ebp + 0x24]
mov byte [ebp + 0x25], cl
mov byte [esp + 0x18], al
movzx ecx, al
test al, al
je 0x4a1b01
push ebx
lea ebx, [esi + 0x14]
mov esi, ecx
mov ecx, dword [esp + 0x18]
mov edx, 0x18
call fcn.0049d670
lea ebx, [ebx + 4]
lea ecx, [eax + 8]
mov word [eax + 5], 0x105
mov dword [eax + 0x10], ecx
mov dword [eax + 0xc], 0xffffffff
mov ecx, dword [ebp + 0x14]
movzx edx, word [ecx + edi*2]
inc edi
mov ecx, edx
shl edx, 0x18
shr ecx, 0xe
xor edx, ebp
and cl, 1
mov dword [eax + 0x14], edx
mov byte [eax + 7], cl
mov dword [ebx - 4], eax
cmp edi, esi
jb 0x4a1ab2
mov esi, dword [esp + 0x10]
mov al, byte [esp + 0x1c]
pop ebx
mov byte [esi + 7], al
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x4a6810
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov eax, dword [0x5f4000]
push esi
mov esi, ecx
test eax, eax
jne 0x4a684a
push eax
push eax
push 0x590030
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
je 0x4a68df
push str.SystemFunction036
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5f4000], eax
test eax, eax
je 0x4a68df
push 0x20
push esi
call eax
test al, al
je 0x4a68df
mov ecx, dword [esi + 4]
mov eax, dword [esi]
test ecx, ecx
ja 0x4a6872
jb 0x4a6867
cmp eax, 2
jae 0x4a6872
add eax, 2
mov dword [esi], eax
adc ecx, 0
mov dword [esi + 4], ecx
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
test ecx, ecx
ja 0x4a688f
jb 0x4a6883
cmp eax, 0x40
jae 0x4a688f
add eax, 0x40
mov dword [esi + 8], eax
adc ecx, 0
mov dword [esi + 0xc], ecx
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
test ecx, ecx
ja 0x4a68b0
jb 0x4a68a2
cmp eax, 0x200
jae 0x4a68b0
add eax, 0x200
mov dword [esi + 0x10], eax
adc ecx, 0
mov dword [esi + 0x14], ecx
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
test ecx, ecx
ja 0x4a68d1
jb 0x4a68c3
cmp eax, 0x20000
jae 0x4a68d1
add eax, 0x20000
mov dword [esi + 0x18], eax
adc ecx, 0
mov dword [esi + 0x1c], ecx
mov ecx, esi
call fcn.004a68f0
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4a9bd0
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, 0xa
mov al, byte [esi]
test al, al
je 0x4a9c15
movsx ecx, al
inc esi
cmp ecx, 0x66
je 0x4a9bfd
cmp ecx, 0x69
je 0x4a9d58
cmp ecx, 0x6c
jne 0x4a9c0f
mov eax, dword [ebx + 8]
push ebx
mov dword [eax + 0xb18], ecx
call fcn.004a5360
add esp, 4
mov al, byte [esi]
test al, al
jne 0x4a9be6
mov esi, dword [0x5f4008]
test esi, esi
je 0x4a9ca5
cmp dword [ebx + 8], esi
jne 0x4a9dbb
push 0xffffffffffffffff
push dword [0x5f4054]
mov dword [0x5f4058], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x5f403c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and byte [esi + 0x55], 0x7f
push esi
call fcn.004a4810
push ebx
mov dword [esi + 0xb18], 0
call fcn.004a5360
mov ecx, dword [0x5f401c]
mov eax, dword [0x5f4018]
sub eax, ecx
sub dword [esi + 8], eax
push 0
push eax
mov eax, dword [esi]
push ecx
push dword [esi + 4]
call eax
add esp, 0x18
mov dword [0x5f4018], 0
mov dword [0x5f4014], 0
mov dword [0x5f4008], 0
cmp dword [0x5f4030], 0
mov eax, dword [ebx + 8]
mov dword [0x5f4008], eax
mov eax, dword [esp + 0x18]
mov dword [0x5f400c], eax
mov eax, dword [esp + 0x1c]
mov dword [0x5f4024], edi
mov dword [0x5f4010], eax
mov dword [0x5f4028], 0
mov dword [0x5f4020], ebx
mov dword [0x5f401c], 0
mov dword [0x5f4018], 0
mov dword [0x5f4014], 0
jne 0x4a9d89
push 0
push 0
push str.winmm.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [0x5f4030], eax
test eax, eax
je 0x4a9d89
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.timeBeginPeriod
push eax
call esi
push str.timeEndPeriod
push dword [0x5f4030]
mov dword [0x5f4034], eax
call esi
cmp dword [0x5f4034], 0
mov dword [0x5f4038], eax
je 0x4a9d4a
test eax, eax
jne 0x4a9d89
pop edi
pop esi
mov dword [0x5f4030], 0
pop ebx
ret
mov al, byte [esi]
xor edi, edi
cmp al, 0x30
jl 0x4a9d7f
cmp al, 0x39
ja 0x4a9d77
movzx eax, al
lea edi, [edi + edi*4]
inc esi
lea edi, [edi - 0x18]
lea edi, [eax + edi*2]
mov al, byte [esi]
cmp al, 0x30
jge 0x4a9d60
test edi, edi
jg 0x4a9c0f
mov edi, 1
jmp 0x4a9c0f
push 0x5f403c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0x5f4008
push 0x4a9e50
push 0
push 0
mov dword [0x5f4058], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5f4054], eax
pop edi
pop esi
pop ebx
ret
Function at 0x4aadc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x14]
mov eax, esi
sub eax, ebx
push edi
mov edi, dword [esp + 0x1c]
sub eax, 0x40
push edi
sar eax, 2
push eax
push ebx
call fcn.004aa2a0
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x4aae77
lea ebp, [ebx + 0x40]
sub esi, 4
cmp esi, ebp
jbe case.0x4aae48.19
mov eax, dword [esi]
mov ecx, eax
shr ecx, 8
movzx edx, al
movzx ebx, cl
mov cx, word [edx*2 + 0x591e90]
and cx, 7
cmp cx, 2
jne 0x4aae2f
cmp edi, ebx
jb 0x4aadf2
cmp edx, 0x2c
jne case.0x4aae48.19
shr eax, 0x10
cmp edi, eax
ja 0x4aadf2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cmp cx, 1
jne 0x4aadf2
cmp ebx, edi
jne 0x4aadf2
add edx, 0xffffffee
cmp edx, 0x27
ja case.0x4aae48.19
movzx ecx, byte [edx + 0x4aaf54]
jmp dword [ecx*4 + 0x4aaf40]
mov ecx, dword [esp + 0x14]
mov edi, eax
mov eax, esi
shr edi, 0x10
sub eax, ecx
sub eax, 0x40
push edi
sar eax, 2
push eax
push ecx
call fcn.004aa2a0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4aadf2
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov eax, str.local
pop ebx
ret
mov ecx, dword [esp + 0x14]
shr eax, 0x10
not eax
pop edi
mov ecx, dword [ecx + 0x10]
pop esi
pop ebp
pop ebx
mov ecx, dword [ecx + eax*4]
mov eax, dword [esp + 0x10]
add ecx, 0x14
mov dword [eax], ecx
mov eax, str.global
ret
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [esp + 0x14]
not edx
mov ecx, dword [ecx + 0x10]
mov edx, dword [ecx + edx*4]
mov ecx, dword [esp + 0x20]
add edx, 0x14
mov dword [ecx], edx
mov ecx, dword [esi - 4]
cmp cl, 0x12
jne 0x4aaef2
shr ecx, 8
movzx edx, cl
lea ecx, [ebx + 1]
cmp edx, ecx
jne 0x4aaef2
shr eax, 8
xor eax, dword [esi - 4]
test eax, 0xffff0000
jne 0x4aaef2
pop edi
pop esi
pop ebp
mov eax, str.method
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, str.field
pop ebx
ret
mov ecx, dword [esp + 0x14]
shr eax, 0x10
mov edx, dword [ecx + 0x38]
test edx, edx
jne 0x4aaf1f
mov eax, dword [esp + 0x20]
mov edx, 0x5c698b
pop edi
pop esi
pop ebp
mov dword [eax], edx
mov eax, str.upvalue
pop ebx
ret
test eax, eax
je 0x4aaf2f
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x4aaf23
sub eax, 1
jne 0x4aaf23
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [eax], edx
mov eax, str.upvalue
pop ebx
ret
Function at 0x4c23d0
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
or ecx, 0xffffffff
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov dword [esp + 0xc], ecx
test esi, esi
jne 0x4c2413
mov eax, dword [ebx]
test eax, eax
je 0x4c2402
mov edx, dword [esp + 0x24]
bsf ecx, eax
cmp ecx, edx
jb 0x4c240b
mov ecx, edx
shr eax, cl
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
shr eax, cl
sub edx, ecx
mov dword [ebx], eax
jmp 0x4c2417
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], edx
mov eax, 1
push ebp
cmp edx, 0x12
jbe 0x4c24b6
mov eax, dword [esp + 0x2c]
mov ebp, eax
shr ebp, 0x18
and al, 0x30
lea ecx, [ebp - 1]
mov dword [esp + 0x18], ecx
cmp al, 0x20
jne 0x4c245d
mov eax, 0x38e38e39
mov ebp, 0x3f
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov dword [esp + 0x14], ebp
jmp 0x4c24d0
bsr ecx, dword [ebx + esi*4]
imul eax, esi, 0x1d
sub eax, edx
add eax, ecx
mov ecx, 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x591e88]
cvttsd2si eax, xmm0
sub ecx, eax
mov eax, 0x38e38e39
sub ecx, ebp
imul ecx
mov eax, dword [esp + 0x18]
mov ecx, esi
sar edx, 1
mov ebp, edx
add edx, 0x3e
shr ebp, 0x1f
add ebp, edx
cdq
and edx, 7
mov dword [esp + 0x14], ebp
add eax, edx
sar eax, 3
sub ecx, eax
add ecx, 0x3d
mov dword [esp + 0x10], ecx
jmp 0x4c24d0
or ecx, 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], ecx
cmp edx, 9
jb 0x4c255e
nop
mov ecx, dword [ebx + esi*4]
mov edx, esi
mov eax, ecx
and ecx, 0x1ff
shr eax, 9
imul ebp, ecx, 0x1dcd65
mov dword [ebx + esi*4], eax
cmp esi, edi
je 0x4c2511
nop dword [eax]
dec edx
and edx, 0x3f
mov ecx, dword [ebx + edx*4]
mov eax, ecx
shr eax, 9
and ecx, 0x1ff
add eax, ebp
imul ebp, ecx, 0x1dcd65
mov dword [ebx + edx*4], eax
cmp edx, edi
jne 0x4c24f0
mov eax, dword [esp + 0x10]
cmp edi, dword [esp + 0x14]
je 0x4c2532
cmp edi, eax
je 0x4c2532
test ebp, ebp
je 0x4c252a
dec edi
and edi, 0x3f
mov dword [ebx + edi*4], ebp
cmp dword [ebx + esi*4], 0
jne 0x4c2545
jmp 0x4c253c
cmp dword [ebx + esi*4], 0
jne 0x4c2545
cmp esi, edi
je 0x4c25bb
dec esi
and esi, 0x3f
dec eax
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x24]
sub edx, 9
mov dword [esp + 0x24], edx
cmp edx, 9
jae 0x4c24d0
mov eax, 1
test edx, edx
je 0x4c25bb
mov ebp, dword [ebx + esi*4]
mov ecx, edx
shl eax, cl
dec eax
mov dword [esp + 0x14], eax
mov eax, 0x3b9aca00
sar eax, cl
mov dword [esp + 0x10], eax
mov eax, ebp
and ebp, dword [esp + 0x14]
imul ebp, dword [esp + 0x10]
shr eax, cl
mov dword [ebx + esi*4], eax
cmp esi, edi
je 0x4c25b0
mov ecx, dword [esp + 0x24]
dec esi
and esi, 0x3f
mov edx, dword [ebx + esi*4]
mov eax, edx
shr eax, cl
add eax, ebp
mov ebp, edx
and ebp, dword [esp + 0x14]
imul ebp, dword [esp + 0x10]
mov dword [ebx + esi*4], eax
cmp esi, edi
jne 0x4c2591
test ebp, ebp
je 0x4c25bb
dec edi
and edi, 0x3f
mov dword [ebx + edi*4], ebp
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4c3f50
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov edx, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov eax, dword [edx]
push esi
movzx esi, word [ebx + 6]
push edi
mov edi, dword [ebx + 0x20]
lea eax, [edi + eax*4]
mov dword [esp + 0x18], eax
mov eax, esi
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x1c]
lea ebp, [eax + ecx*4]
lea eax, [edx + 0xc]
mov dword [esp + 0x14], ebp
cmp eax, ebp
jne 0x4c3f8a
mov eax, dword [ebx + 0x18]
jmp 0x4c3f8c
mov eax, dword [eax]
cmp byte [ebx + 0x76], 0
lea eax, [edi + eax*4]
mov dword [esp + 0x24], eax
movzx eax, byte [edx + 0xa]
mov dword [esp + 0x10], eax
mov al, byte [edx + 8]
mov byte [esp + 0x30], al
movzx eax, al
mov dword [esp + 0x20], eax
jge 0x4c3fbb
mov ecx, dword [ebx + 0x18]
lea eax, [esi + 1]
mov word [ebx + 6], ax
jmp 0x4c3fc5
mov ecx, dword [ebp - 0xc]
sub ebp, 0xc
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x34]
mov byte [ebx + 0x76], 0
mov dword [ebp], ecx
mov ax, word [ebx + 8]
mov word [ebp + 4], ax
xor eax, eax
mov word [ebp + 6], ax
mov al, byte [esp + 0x30]
mov byte [ebp + 8], al
movzx eax, byte [edx + 9]
mov byte [ebp + 9], al
mov byte [ebp + 0xb], 0
xor ebp, ebp
mov eax, dword [ebx + 0x20]
lea edi, [eax + ecx*4]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], eax
cmp dword [esp + 0x10], eax
jbe 0x4c4074
nop word [eax + eax]
mov edx, dword [esp + 0x18]
mov ebx, dword [esi + eax*4]
mov esi, ebx
shr esi, 0x18
inc eax
mov edx, dword [edx + ebp*4]
mov edi, edx
shr edi, 0x18
cmp esi, edi
jae 0x4c402f
mov dword [esp + 0x30], eax
jmp 0x4c405a
cmovne eax, dword [esp + 0x30]
movzx esi, dx
mov dword [esp + 0x30], eax
cmp esi, 0x8000
jb 0x4c4057
mov eax, dword [esp + 0x38]
and edx, 0xfffb0000
movzx eax, word [eax + esi*2]
or edx, eax
mov eax, dword [esp + 0x30]
inc ebp
mov ebx, edx
lea edx, [ecx + 1]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
mov dword [edi + ecx*4], ebx
mov ecx, edx
cmp ebp, dword [esp + 0x10]
jb 0x4c4010
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x20]
lea edx, [esi + eax*4]
mov esi, dword [edx]
mov eax, esi
shr eax, 0x18
cmp eax, ebp
jae 0x4c4098
mov dword [edi + ecx*4], esi
lea edx, [edx + 4]
mov esi, dword [edx]
inc ecx
mov eax, esi
shr eax, 0x18
cmp eax, ebp
jb 0x4c4086
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
mov byte [eax + 0xa], cl
lea eax, [edi + ecx*4]
mov ecx, dword [esp + 0x10]
lea edx, [edx + ecx*4]
cmp edx, ebp
jae 0x4c40c3
mov ecx, dword [edx]
add edx, 4
mov dword [eax], ecx
add eax, 4
cmp edx, ebp
jb 0x4c40b5
sub eax, dword [ebx + 0x20]
pop edi
pop esi
sar eax, 2
pop ebp
mov dword [ebx + 0x18], eax
pop ebx
add esp, 0x18
ret
Function at 0x4c4990
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
movzx eax, word [ecx]
movzx ecx, word [ecx + 2]
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x18]
push edi
mov ebx, dword [esi + 8]
lea edi, [ebx - 1]
mov dword [esi + 8], edi
movzx ecx, word [ecx + eax*2]
movzx eax, word [ebp + eax*8 + 6]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
cmp edi, dword [esi + 0x114]
jb 0x4c49dd
mov ecx, esi
call fcn.004e00d0
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
mov edx, 0x6400
mov dword [esi + 8], ebx
mov ebx, dword [esp + 0x10]
mov word [eax + edi*8 + 4], dx
mov edx, dword [esp + 0x20]
mov word [eax + edi*8], dx
mov word [eax + edi*8 + 2], cx
movzx eax, word [ebp + ebx*8 + 6]
mov ebp, dword [esi + 8]
mov dword [esp + 0x18], eax
cmp ebp, dword [esi + 0x114]
jb 0x4c4a19
mov ecx, esi
call fcn.004e00d0
lea eax, [ebp + 1]
mov ecx, 0x6400
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
mov word [eax + ebp*8 + 4], cx
mov ecx, dword [esp + 0x18]
mov word [eax + ebp*8], di
mov word [eax + ebp*8 + 2], cx
mov eax, dword [esp + 0x1c]
movzx edi, word [eax + ebx*2]
mov ebx, dword [esi + 8]
cmp ebx, dword [esi + 0x114]
jb 0x4c4a53
mov ecx, esi
call fcn.004e00d0
lea eax, [ebx + 1]
mov ecx, 0x6400
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
mov word [eax + ebx*8 + 4], cx
mov word [eax + ebx*8], bp
mov word [eax + ebx*8 + 2], di
mov edi, dword [esi + 8]
cmp edi, dword [esi + 0x114]
jb 0x4c4a81
mov ecx, esi
call fcn.004e00d0
lea eax, [edi + 1]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
mov word [eax + edi*8], bx
movzx ebx, di
mov ebp, ebx
lea ecx, [eax + edi*8]
mov eax, 0x5f13
mov word [ecx + 4], ax
mov ax, word [esp + 0x28]
mov word [ecx + 2], ax
mov eax, dword [esp + 0x24]
mov word [eax + 6], bx
mov edi, dword [esi + 8]
cmp edi, dword [esi + 0x114]
jb 0x4c4ac2
mov ecx, esi
call fcn.004e00d0
lea ecx, [edi + 1]
mov eax, 0x1013
mov dword [esi + 8], ecx
mov ecx, dword [esi + 0x10]
mov word [ecx + edi*8 + 4], ax
mov eax, edi
mov word [ecx + edi*8], bx
mov word [ecx + edi*8 + 2], bp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4c5840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x68]
and eax, 0x10f0000
cmp eax, 0x10f0000
jne 0x4c595a
cmp word [esi + 0x1e8], 0
jne 0x4c5884
cmp word [esi + 0x1ea], 0
jne 0x4c5884
cmp word [esi + 0x1ec], 0
jne 0x4c5884
cmp word [esi + 0x1ee], 0
je 0x4c595a
cmp dword [esi + 0x11c], 0
push ebx
push edi
jne 0x4c58c9
movzx eax, word [esi + 6]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x1c]
movzx edi, byte [eax + ecx*4 - 2]
lea edx, [eax + ecx*4]
mov ecx, dword [edx - 0xc]
mov eax, dword [esi + 0x20]
lea ebx, [eax + ecx*4]
xor ecx, ecx
test edi, edi
je 0x4c58c9
movzx edx, word [ebx + ecx*4]
cmp edx, 0x8000
jb 0x4c58c4
mov eax, dword [esi + 0x10]
or byte [eax + edx*8 + 4], 0x20
inc ecx
cmp ecx, edi
jb 0x4c58b0
push esi
call fcn.004c5a40
add esp, 4
cmp dword [esi + 0x11c], 0
je 0x4c594f
push ebp
nop dword [eax]
mov eax, dword [esi + 0x10]
xor ebp, ebp
mov ecx, dword [esi + 8]
cmp byte [eax + ecx*8 - 3], 0x13
lea ecx, [eax + ecx*8]
lea eax, [ecx - 8]
jne 0x4c594e
mov edx, dword [esi + 0x10]
movzx ecx, word [eax]
mov bl, byte [edx + ecx*8 + 4]
lea edi, [edx + ecx*8]
movzx ecx, word [eax + 2]
mov bh, byte [edx + ecx*8 + 4]
lea edx, [edx + ecx*8]
mov cl, bl
xor cl, bh
test cl, 0x20
jne 0x4c5920
mov cx, word [edi + 6]
cmp cx, word [edx + 6]
je 0x4c5941
movzx edx, bl
or bl, 0x20
movzx ecx, bh
and edx, ecx
mov byte [edi + 4], bl
mov ecx, dword [esi + 0x10]
not edx
and edx, 0x20
or ebp, edx
movzx edx, word [eax + 2]
or byte [ecx + edx*8 + 4], 0x20
sub eax, 8
cmp byte [eax + 5], 0x13
je 0x4c58f5
test ebp, ebp
jne 0x4c58e0
pop ebp
push esi
call fcn.004c5cb0
add esp, 4
pop edi
pop ebx
pop esi
ret