joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001fc2
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0xc], ebx
je 0x10020a0
push edi
call dword [0xa751119c]
test al, al
je 0x10020a0
mov eax, dword [edi + 0x3c]
add eax, edi
cmp word [edi], 0x5a4d
jne 0x10020a0
cmp dword [eax], 0x4550
jne 0x10020a0
mov esi, dword [eax + 0x78]
add esi, edi
cmp dword [eax + 0x7c], ebx
je 0x10020a0
cmp dword [esi + 0x18], ebx
je 0x10020a0
cmp dword [esi + 0x14], ebx
je 0x10020a0
mov ebx, dword [esi + 0x1c]
mov eax, dword [esi + 0x24]
add eax, dword [ebp + 8]
add ebx, edi
mov edi, dword [esi + 0x20]
add edi, dword [ebp + 8]
push ebx
mov dword [ebp - 8], eax
call dword [0xa751119c]
test al, al
je 0x10020a0
push edi
call dword [0xa751119c]
test al, al
je 0x10020a0
push dword [ebp - 8]
call dword [0xa751119c]
test al, al
je 0x10020a0
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 0
jbe 0x1002089
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
add eax, dword [ebp + 8]
push dword [ebp + 0xc]
push eax
call dword [0xa7511078]
test eax, eax
pop ecx
pop ecx
je 0x100208e
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x18]
jb 0x1002065
mov eax, dword [ebp - 0xc]
jmp 0x10020a2
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov eax, dword [ebx + eax*4]
add eax, dword [ebp + 8]
jmp 0x10020a2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10023b8
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
mov eax, dword [ebp + 8]
je 0x10023d2
mov cl, byte [ebp + 0x10]
xor byte [eax], cl
inc eax
inc cl
dec edx
jne 0x10023ca
mov eax, dword [ebp + 8]
pop ebp
ret 0xc
Function at 0x1004082
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0xa7513a64]
push ebx
push esi
push edi
mov edi, 0xa7513a60
sub edi, 0x12a60
lea eax, [ecx + ecx*2]
shl eax, 2
push 0
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], eax
pop edx
je 0x10040ce
movzx esi, byte [edx - 0x58aedda0]
mov ebx, dword [ebp - 4]
shr ebx, 0x1b
xor esi, ebx
mov ebx, dword [ebp - 4]
shl ebx, 5
xor esi, ebx
inc edx
cmp edx, eax
mov dword [ebp - 4], esi
jb 0x10040af
cmp dword [ebp - 4], 0xd71bf652
je 0x1004106
cmp byte [0xa75186fb], 0
jne 0x10040f6
push 0x436e4dc9
push 0x576e4278
call fcn.01003a6e
mov byte [0xa75186fb], 1
push 0x3e8
call fcn.010012e6
mov ecx, dword [0xa7513a64]
and dword [ebp - 0xc], 0
test ecx, ecx
jbe 0x1004193
mov esi, 0xa7512264
mov eax, dword [esi - 4]
mov edx, dword [esi]
and dword [ebp - 8], 0
add eax, edi
test edx, edx
mov dword [ebp - 4], edx
jbe 0x100414e
mov edi, dword [ebp - 8]
movzx edi, byte [eax + edi]
mov ebx, dword [ebp - 4]
shr ebx, 0x1b
xor edi, ebx
mov ebx, dword [ebp - 4]
shl ebx, 5
xor edi, ebx
inc dword [ebp - 8]
cmp dword [ebp - 8], edx
mov dword [ebp - 4], edi
jb 0x1004129
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 4]
je 0x1004188
cmp byte [0xa75186fc], 0
jne 0x1004188
push dword [ebp - 0xc]
push 0x436e4dca
push 0x576e4278
call fcn.01003a8c
push 0x3e8
mov byte [0xa75186fc], 1
call fcn.010012e6
mov ecx, dword [0xa7513a64]
inc dword [ebp - 0xc]
add esi, 0xc
cmp dword [ebp - 0xc], ecx
jb 0x1004117
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10049cc
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4

Function at 0x10054ce
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x100
mov dword [ebp - 4], ecx
xor esi, esi
mov edx, edi
mov ebx, eax
mov dword [edx], ecx
inc ecx
add edx, 4
dec ebx
jne 0x10054ea
mov ecx, edi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [esi + eax]
add al, byte [ecx]
mov edx, dword [ecx]
add al, byte [ebp - 4]
and eax, 0xff
mov dword [ebp - 4], eax
movzx eax, ax
lea eax, [edi + eax*4]
mov ebx, dword [eax]
mov dword [ecx], ebx
mov dword [eax], edx
lea eax, [esi + 1]
xor edx, edx
div dword [ebp + 0x10]
add ecx, 4
dec dword [ebp + 8]
mov esi, edx
jne 0x10054f8
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1005924
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [0xa751119c]
test al, al
je 0x1005951
mov eax, dword [esi + 0x3c]
add eax, esi
cmp word [esi], 0x5a4d
jne 0x1005951
cmp dword [eax], 0x4550
jne 0x1005951
mov eax, dword [eax + 8]
jmp 0x1005953
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x1007476
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0xa7513fb0]
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x3c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
add ebx, edi
cmp word [edi], 0x5a4d
mov dword [ebp - 0x14], eax
jne 0x100759f
cmp dword [ebx], 0x4550
jne 0x100759f
push dword [ebx + 0x78]
push edi
call fcn.01002354
mov esi, eax
xor eax, eax
add esi, edi
cmp dword [ebx + 0x7c], eax
je 0x100759f
cmp dword [esi + 0x18], eax
je 0x100759f
cmp dword [esi + 0x14], eax
je 0x100759f
push dword [esi + 0x1c]
push edi
call fcn.01002354
push dword [esi + 0x20]
add eax, edi
push edi
mov dword [ebp - 0x10], eax
call fcn.01002354
push dword [esi + 0x24]
mov ebx, eax
push edi
add ebx, edi
call fcn.01002354
push dword [ebp - 0x10]
add eax, edi
mov dword [ebp - 0xc], eax
call dword [0xa751119c]
test al, al
je 0x100759f
push ebx
call dword [0xa751119c]
test al, al
je 0x100759f
push dword [ebp - 0xc]
call dword [0xa751119c]
test al, al
je 0x100759f
cmp byte [ebp + 0x14], 0
je 0x1007542
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call fcn.010023b8
and dword [ebp - 8], 0
cmp dword [esi + 0x18], 0
jbe 0x100759a
push dword [ebp - 0x14]
mov eax, dword [ebp - 8]
push dword [ebx + eax*4]
push edi
call fcn.01002354
add eax, edi
push eax
call dword [0xa7511078]
test eax, eax
pop ecx
pop ecx
je 0x1007577
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x18]
jb 0x100754c
jmp 0x100759a
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2]
mov ecx, dword [ebp - 0x10]
push dword [ecx + eax*4]
push edi
call fcn.01002354
add eax, edi
cmp byte [eax], 0xb8
jne 0x100759a
mov eax, dword [eax + 1]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
jmp 0x10075a1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100f6a2
leave
ret 0x10

Function at 0x1009518
Capabilities:
Encode data using xor
Hash data using jshash

Disassembly:
mov edi, edi
push esi
mov esi, dword [0xa7515dc0]
push edi
mov edi, 0xa7515dc0
cmp esi, edi
je 0x1009583
push ebx
mov eax, 0x4e67c6a7
xor ecx, ecx
movsx edx, byte [esi + ecx - 0x34]
mov ebx, eax
shl ebx, 5
add edx, ebx
mov ebx, eax
shr ebx, 2
add edx, ebx
xor eax, edx
inc ecx
cmp ecx, 0xc
jb 0x1009533
cmp eax, dword [esi - 0x28]
je 0x100957c
cmp byte [0xa7515e25], 0
jne 0x1009572
push 0x436e4dc6
push 0x576e4278
call fcn.01003a6e
mov byte [0xa7515e25], 1
push 0x3e8
call fcn.010012e6
mov esi, dword [esi]
cmp esi, edi
jne 0x100952c
pop ebx
pop edi
pop esi
ret
Function at 0x100958c
Capabilities:
Encode data using xor
Hash data using jshash

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov byte [ebp - 1], 0
call dword [0xa7511014]
cmp al, 2
mov edi, 0xa7515dd0
mov ecx, edi
jb 0x10095b4
call dword [0xa7511084]
mov byte [ebp - 1], 1
jmp 0x10095bd
call dword [0xa751100c]
mov byte [ebp - 2], al
push esi
mov esi, dword [0xa7515dc8]
cmp esi, 0xa7515dc8
je 0x100961e
push ebx
mov eax, 0x4e67c6a7
xor ecx, ecx
movsx edx, byte [esi + ecx - 0x34]
mov ebx, eax
shl ebx, 5
add edx, ebx
mov ebx, eax
shr ebx, 2
add edx, ebx
xor eax, edx
inc ecx
cmp ecx, 0xc
jb 0x10095d4
cmp eax, dword [esi - 0x28]
je 0x1009613
cmp byte [0xa7515e26], 0
jne 0x1009613
push 0x436e4dc5
push 0x576e4278
call fcn.01003a6e
mov byte [0xa7515e26], 1
mov esi, dword [esi]
cmp esi, 0xa7515dc8
jne 0x10095cd
pop ebx
cmp byte [ebp - 1], 0
pop esi
mov ecx, edi
je 0x100962f
call dword [0xa7511080]
jmp 0x1009638
mov dl, byte [ebp - 2]
call dword [0xa7511010]
pop edi
leave
ret

Function at 0x100a1d6
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0xa7513fb0]
and dword [ebp - 0x5c], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x15
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov edi, dword [0xa751119c]
push esi
call edi
test al, al
je 0x100a269
push ebx
call edi
test al, al
je 0x100a269
mov eax, dword [esi + 0x3c]
add eax, esi
cmp word [esi], 0x5a4d
jne 0x100a269
cmp dword [eax], 0x4550
jne 0x100a269
push 0x38
lea esi, [eax + 0x18]
pop ecx
lea eax, [ebp - 0x5c]
lea edi, [ebp - 0x13c]
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x120], 0
push eax
call fcn.010049cc
push 0xe0
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.01009f7c
lea eax, [ebp - 0x5c]
push eax
push ebx
call fcn.0100a024
mov al, 1
jmp 0x100a26b
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100f6a2
leave
ret 0xc
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
xor ebx, ebx
push str.RunProgram_start
mov dword [ebp - 4], ebx
call fcn.00403cd9
mov esi, dword [ebp + 0xc]
pop ecx
cmp byte [esi + 0x52c], bl
lea eax, [esi + 0x52c]
je 0x40102d
mov dword [ebp - 4], eax
lea edi, [esi + 0x428]
push eax
push edi
push str.Running_program__s_in_directory__s
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x2a], bx
mov dword [ebp - 0x28], ebx
call fcn.00403cd9
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 4]
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401084
push dword [ebp + 8]
push esi
call fcn.00403ed4
pop ecx
jmp 0x4010b7
push str.Waiting_for_program_to_finish
call fcn.00403cd9
pop ecx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 8], 0x103
je 0x40108f
push str.RunProgram_end
call fcn.00403cd9
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40123f
Capabilities:
Persist via winlogon helper dll registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push str.UserIsLoggedOn_start
call fcn.00403cd9
lea eax, [ebp - 0x104]
mov dword [esp], 0x104
push eax
push str.Shell
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push 0x80000002
call fcn.0040638c
add esp, 0x14
test al, al
jne 0x40128e
push str.Cannot_read_HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows_NTCurrentVersionWinlogonShell
call fcn.00403cd9
mov dword [esp], str.UserIsLoggedOn_end__assume_user_is_logged_on
jmp 0x4012bb
lea eax, [ebp - 0x104]
push eax
push str.Check_for_program__s
call fcn.00403cd9
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
push 0x401227
call fcn.00405ccf
test eax, eax
jne 0x4012c6
push str.UserIsLoggedOn_end__user_is_logged_on
call fcn.00403cd9
pop ecx
push 1
pop eax
leave
ret
push str.UserIsLoggedOn_end__user_is_NOT_logged_on
call fcn.00403cd9
pop ecx
xor eax, eax
leave
ret
Function at 0x409f47
Capabilities:
Create service
Persist via run registry key
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
push str.CreatePoweroffService_start
call fcn.00403cd9
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
push ebx
push dword [ebp + 8]
call fcn.00409cd3
add esp, 0x10
test eax, eax
je 0x40a096
push ebx
mov esi, 0x80000002
push str.SYSTEMCurrentControlSetServicesP0WER0FFParameters
push esi
call fcn.0040a791
add esp, 0xc
cmp dword [ebx + 0x750], 1
jne 0x409fce
push str.Creating_WIN98_service
call fcn.00403cd9
lea eax, [ebp - 0x104]
push eax
push str.P0WER0FF
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunServices
push esi
call fcn.004062c5
add esp, 0x14
test al, al
je 0x409feb
push 0x41b1f0
push dword [ebp + 8]
push ebx
jmp 0x40a083
push str.Creating_real_NT_service
call fcn.00403cd9
pop ecx
xor esi, esi
push 2
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, esi
jne 0x409ffa
push dword [ebp + 8]
push ebx
call fcn.00403ed4
pop ecx
jmp 0x40a095
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x104]
push esi
push eax
push 1
push 2
push 0x110
mov eax, str.P0WER0FF
push 0xf0010
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
cmp ebx, esi
jne 0x40a03e
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00403ed4
pop ecx
pop ecx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40a096
push str.Starting_service
call fcn.00403cd9
pop ecx
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x40a071
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00403ed4
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ecx
pop ecx
push ebx
call esi
push edi
call esi
jmp 0x40a096
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x41b1a8
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00403df2
add esp, 0xc
push str.CreatePoweroffService_end
call fcn.00403cd9
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a09b
Capabilities:
Delete service
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push str.RemovePoweroffService_start
call fcn.00403cd9
mov ebx, dword [ebp + 0xc]
pop ecx
cmp dword [ebx + 0x750], 1
jne 0x40a0e9
push str.Deleting_WIN98_service
call fcn.00403cd9
mov dword [esp], str.P0WER0FF
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunServices
push 0x80000002
call fcn.004064b6
add esp, 0xc
test al, al
je 0x40a10a
push 0x41b2c0
jmp 0x40a169
push str.Deleting_NT_service
call fcn.00403cd9
mov dword [esp], 0x40000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40a117
push dword [ebp + 8]
push ebx
call fcn.00403ed4
pop ecx
pop ecx
jmp 0x40a191
push 0x10000
push str.P0WER0FF
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40a142
push dword [ebp + 8]
push ebx
call fcn.00403ed4
pop ecx
pop ecx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40a191
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40a158
push dword [ebp + 8]
push ebx
call fcn.00403ed4
pop ecx
pop ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push 0x41b294
push dword [ebp + 8]
push ebx
call fcn.00403df2
add esp, 0xc
push str.SYSTEMCurrentControlSetServicesP0WER0FFParameters
push 0x80000002
call fcn.00406503
push str.RemovePoweroffService_end
call fcn.00403cd9
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40a460
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push str.IsPoweroffServiceRunning_start
call fcn.00403cd9
mov eax, dword [ebp + 0xc]
pop ecx
cmp dword [eax + 0x750], 1
je 0x40a4e9
push 0x80000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x40a4e9
push 4
push str.P0WER0FF
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40a4b1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40a4e9
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x40a4ce
call esi
push edi
call esi
jmp 0x40a4e9
call esi
push edi
call esi
cmp dword [ebp - 0x18], 4
jne 0x40a4de
push 1
pop eax
jmp 0x40a4eb
push str.IsPoweroffServiceRunning_stop
call fcn.00403cd9
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40bef0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4472e8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x45c384]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
push 0x44bb60
lea ecx, [esp + 0x18]
call fcn.00402a50
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x2c], 0
call fcn.00408a00
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, esi
call fcn.00408a00
push 0x44ba0c
lea ecx, [esp + 0x14]
call fcn.00402a50
lea edx, [esp + 0x10]
push edx
mov ecx, esi
mov byte [esp + 0x2c], 1
call fcn.00408a00
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bf8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00417a20
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bfa4
push 0x80004005
call fcn.00401e90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x30], edi
push 0xe009
mov byte [esp + 0x2c], 2
call fcn.00417990
test eax, eax
je 0x40c01b
push 0xe009
push eax
lea ecx, [esp + 0x38]
call fcn.00402490
mov edi, dword [esp + 0x30]
test eax, eax
je 0x40c01b
cmp dword [edi - 0xc], 0
je 0x40c01b
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], esp
mov ebp, esp
push eax
call fcn.00402210
add eax, 0x10
mov dword [ebp], eax
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x44bb58
mov byte [esp + 0x34], 3
call fcn.00402a50
mov ecx, esi
mov byte [esp + 0x30], 2
call fcn.0040ac40
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0
push ecx
mov ecx, esi
call fcn.0040be90
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x44bb50
mov byte [esp + 0x34], 4
call fcn.00402a50
mov ecx, esi
mov byte [esp + 0x30], 2
call fcn.0040ac40
mov esi, eax
lea eax, [edi - 0x10]
mov byte [esp + 0x28], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c071
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c099
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 4
Function at 0x48f100
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a48a8]
xor edx, edx
cmp eax, edx
jne 0x48f126
xor eax, eax
mov byte [eax + 0x4a47a8], al
inc eax
cmp eax, 0x100
jl 0x48f10e
mov dword [0x4a48a8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a47a8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x48f1b7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x48f18a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x48f158
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x48f230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x48f283
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x48f26a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x493520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x493741
cmp eax, 8
jg 0x493741
cmp dword [esp + 0x8c], 2
jl 0x493741
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x493741
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x493741
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4935a7
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x49372a
mov ebp, dword [fcn.00476430]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x4935d9
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x493711
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x4935f9
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [fcn.00476440]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x493638
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [fcn.0047643c]
lea ecx, [esp + 0x28]
push ecx
call dword [fcn.004763fc]
test eax, eax
jne 0x4936f8
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.00492b30
cmp eax, 1
jne 0x493722
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.004933e0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x4935ed
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x49372a
jmp 0x4935c4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.00492730
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c