joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1013061
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x10174d5
call fcn.01001350
mov esi, ecx
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov dword [ebp - 0x14], ebx
call sym.WMIADAP.exe_public:_void___thiscall_CHStringArray::SetSize_int__int_
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x10130de
cmp dword [ebp - 0x14], ebx
jbe 0x10130de
cmp dword [ebp - 0x18], 7
jne 0x10130de
add dword [ebp - 0x14], 2
push dword [ebp - 0x14]
call fcn.010013e0
mov edi, eax
pop ecx
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x10130de
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call sym.WMIADAP.exe_private:_unsigned_long_int___thiscall_CRegistry::GetCurrentRawKeyValue_struct_HKEY_____unsigned_short_int_const___void___unsigned_long_int___unsigned_long_int__
cmp eax, ebx
je 0x10130eb
push edi
call fcn.010013c0
pop ecx
mov eax, 0x80040153
call fcn.01001390
ret 0xc
cmp dword [ebp - 0x18], 7
jne 0x10130d7
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10130f6
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, ebx
je 0x1013128
mov ecx, dword [ebp + 0x10]
push edi
call sym.WMIADAP.exe_public:_int___thiscall_CHStringArray::Add_unsigned_short_int_const__
lea edi, [edi + esi*2 + 2]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
je 0x1013100
jmp 0x101311c
push dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
call fcn.010013c0
pop ecx
xor eax, eax
jmp 0x10130e3

Function at 0x101336b
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x101b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [eax + 0x10]
push esi
mov esi, dword [ebp + 8]
cmp ecx, dword [eax + 0x224]
jb 0x1013398
mov eax, 0x103
jmp 0x10133ce
mov eax, dword [eax + 4]
push edi
push 0x100
lea edx, [ebp - 0x204]
push edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, eax
mov ecx, esi
test edi, edi
jne 0x10133c6
lea eax, [ebp - 0x204]
push eax
call fcn.0100b1c6
jmp 0x10133cb
call sym.WMIADAP.exe_public:_void___thiscall_CHString::Empty_void_
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010020d4
leave
ret 4
Function at 0x10135e1
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x10175e5
call fcn.01001350
mov ebx, dword [ebp + 0x10]
xor edi, edi
xor esi, esi
cmp dword [ebx + 4], edi
jle 0x101362a
push edi
lea eax, [ebp + 0x10]
push eax
mov ecx, ebx
call sym.WMIADAP.exe_public:_class_CHString___thiscall_CHStringArray::GetAt_int_
and dword [ebp - 4], 0
lea ecx, [ebp + 0x10]
call sym.WMIADAP.exe_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
mov eax, dword [eax + 4]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
lea esi, [esi + eax*2 + 2]
call sym.WMIADAP.exe_public:_void___thiscall_CHString::destructor_void_
inc edi
cmp edi, dword [ebx + 4]
jl 0x10135f9
inc esi
inc esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010013e0
xor edi, edi
pop ecx
mov dword [ebp + 0x10], eax
cmp eax, edi
jne 0x101365d
push 0x1018e28
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
push eax
call sub.msvcrt.dll__CxxThrowException
lea ecx, [esi + esi]
push ecx
push edi
push eax
mov dword [ebp - 4], 1
call sub.msvcrt.dll_memset
add esp, 0xc
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebx + 4]
jge 0x10136ca
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call sym.WMIADAP.exe_public:_class_CHString___thiscall_CHStringArray::GetAt_int_
push 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sym.WMIADAP.exe_public:_unsigned_short_int____thiscall_CHString::GetBuffer_int_
push eax
mov eax, esi
sub eax, edi
push eax
mov eax, dword [ebp + 0x10]
lea eax, [eax + edi*2]
push eax
call fcn.010021cb
lea ecx, [ebp - 0x14]
call sym.WMIADAP.exe_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x14]
lea edi, [edi + eax + 1]
mov byte [ebp - 4], 1
call sym.WMIADAP.exe_public:_void___thiscall_CHString::destructor_void_
inc dword [ebp - 0x18]
jmp 0x1013676
push esi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x10]
mov esi, eax
call fcn.010013c0
pop ecx
mov eax, esi
call fcn.01001390
ret 0xc

Function at 0x101370a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
mov ecx, esi
call sym.WMIADAP.exe_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
mov eax, dword [eax + 4]
mov esi, dword [esi]
lea eax, [eax + eax + 2]
push eax
push esi
push 2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop ebp
ret 0xc
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x127e28d3
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5fe1641a
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x419008]
jne 0x40100a
repz ret
jmp fcn.004018ee

Function at 0x4055bb
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.004038eb
and dword [ebp - 4], 0
cmp dword [0x41abf8], 0
mov ebx, eax
jne 0x40566c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40571d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40571d
push eax
call fcn.00403879
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41abf8], eax
call esi
push eax
call fcn.00403879
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41abfc], eax
call esi
push eax
call fcn.00403879
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41ac00], eax
call esi
push eax
call fcn.00403879
pop ecx
mov dword [0x41ac08], eax
test eax, eax
je 0x40566c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403879
pop ecx
mov dword [0x41ac04], eax
mov eax, dword [0x41ac04]
cmp eax, ebx
je 0x4056c4
cmp dword [0x41ac08], ebx
je 0x4056c4
push eax
call fcn.004038f4
push dword [0x41ac08]
mov esi, eax
call fcn.004038f4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4056c4
test edi, edi
je 0x4056c4
call esi
test eax, eax
je 0x4056bb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4056bb
test byte [ebp - 0xc], 1
jne 0x4056c4
or dword [ebp + 0x10], 0x200000
jmp 0x4056fd
mov eax, dword [0x41abfc]
cmp eax, ebx
je 0x4056fd
push eax
call fcn.004038f4
pop ecx
test eax, eax
je 0x4056fd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4056fd
mov eax, dword [0x41ac00]
cmp eax, ebx
je 0x4056fd
push eax
call fcn.004038f4
pop ecx
test eax, eax
je 0x4056fd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41abf8]
call fcn.004038f4
pop ecx
test eax, eax
je 0x40571d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40571f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x415b10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x419008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x2b18ce4]
push ebx
push esi
mov esi, dword [0x2b18b2c]
mov ebx, eax
cmp eax, 0x5dd
jne 0x415b4a
push 0
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, dword [0x419c60]
call fcn.004159b0
cmp dword [0x2b18ce4], 0x2f
jne 0x415b65
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
call fcn.004159f0
add esp, 4
cmp dword [0x2b18ce4], 0x568
pop esi
pop ebx
jne 0x415b8c
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x402044
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x42f040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [0x486960]
xor ebx, ebx
push edi
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4020b4
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.00402bc8
lea ecx, [esp + 0x1c]
call fcn.00401e74
cmp eax, dword [esp + 0x10]
je 0x4020cb
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00403484
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x402084
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040833e
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00403e0f
push eax
call fcn.00404088
mov edx, dword [esp + 0x1c]
pop ecx
mov eax, dword [edx + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00403484
jmp 0x4020b6
Function at 0x419180
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418e22

Function at 0x41918b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418fb1

Function at 0x419585
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409270
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004164e5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4195c7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419723
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004235a0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x486558]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a755
mov ecx, dword [esi*4 + 0x486558]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41971c
cmp eax, dword [edi + ecx + 0x24]
jne 0x41971c
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41971c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a755
add esp, 0x14
test edx, edx
jl 0x41971c
jg 0x419692
test eax, eax
jb 0x41971c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41971c
jl 0x4196ac
cmp dword [ebp - 0x1008], eax
ja 0x41971c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4196ca
test ebx, ebx
je 0x419703
cmp ecx, edi
jae 0x419703
mov al, byte [ecx]
cmp al, 0xd
jne 0x4196e4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4196f0
cmp byte [ecx + 1], 0xa
jne 0x4196f0
inc ecx
jmp 0x4196f0
movzx eax, al
movsx eax, byte [eax + 0x42f300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4196ca
cmp edx, ebx
jne 0x4196ca
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419721
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040833e
leave
ret
Function at 0x419bf3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x486558]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419c33
cmp byte [ebx], 0xa
jne 0x419c33
or byte [eax + edi + 0x28], 4
jmp 0x419c38
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x419d36
mov al, byte [edx]
cmp al, 0x1a
je 0x419d18
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x419c67
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419c8c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x419c96
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x419c49
jmp 0x419d36
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419d13
cmp dword [ebp - 0xc], 0
je 0x419d13
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x486558]
test byte [eax + edi + 0x28], 0x48
je 0x419ced
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419cd8
mov byte [esi], dl
jmp 0x419ce9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x486558]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419d36
cmp byte [ebp - 1], 0xa
jne 0x419cfc
cmp esi, ebx
jne 0x419cfc
mov byte [esi], 0xa
jmp 0x419d35
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a773
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419d36
mov byte [esi], 0xd
jmp 0x419d35
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x486558]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419d32
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419d36
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419d3f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x486558]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419d82
cmp word [esi], dx
jne 0x419d82
or byte [edi + eax + 0x28], 4
jmp 0x419d87
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x419eda
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x419eba
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419dc9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419dff
cmp eax, edx
jae 0x419e0b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419da1
jmp 0x419eda
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419eb6
cmp dword [ebp - 0x14], 0
je 0x419eb6
mov eax, dword [ebx*4 + 0x486558]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419e8e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x419e57
mov word [esi], cx
jmp 0x419e8a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x486558]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x486558]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x486558]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419eda
pop ebx
cmp word [ebp - 4], bx
jne 0x419e9f
cmp esi, dword [ebp + 0xc]
jne 0x419e9f
mov word [esi], bx
jmp 0x419ed7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a773
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419eda
push 0xd
jmp 0x419ed3
mov ecx, dword [ebx*4 + 0x486558]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419ed1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419eda
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001c72
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x10011f0
call fcn.01001e50
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001cad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001cad
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001cc5
cmp eax, 0x20b
je 0x1001cb2
mov dword [ebp - 0x1c], edi
jmp 0x1001cd9
cmp dword [ecx + 0x84], 0xe
jbe 0x1001cad
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1001cd3
cmp dword [ecx + 0x74], 0xe
jbe 0x1001cad
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1003018], 0xffffffff
or dword [0x100301c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1003014]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1003010]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1003020], eax
call fcn.01001e4c
cmp dword [section..data], edi
jne 0x1001d34
push fcn.01001e4c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001e3a
push 0x1001144
push 0x1001140
call sub.msvcrt.dll__initterm
mov eax, dword [0x100300c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1003008]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x100113c
push 0x1001138
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01001c11
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1001dab
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1001de0
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01001e89
ret
Function at 0x401bee
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x42d040]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [esp + 0x28], ecx
xor ecx, ecx
push edi
mov dword [esp + 0x24], ebx
mov eax, ecx
mov byte [esp + ecx + 0x30], cl
cdq
idiv dword [ebp + 0xc]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x130], al
inc ecx
cmp ecx, 0x100
jl 0x401c1a
xor edi, edi
xor esi, esi
mov dl, byte [esp + esi + 0x30]
movzx eax, byte [esp + esi + 0x130]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x401c5e
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x30]
mov byte [esp + esi + 0x30], al
inc esi
mov byte [esp + edi + 0x30], dl
cmp esi, 0x100
jl 0x401c3b
and dword [esp + 0x10], 0
xor eax, eax
and dword [esp + 0x18], eax
mov esi, 0x3e8
xor edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
cmp eax, edi
je 0x401ca4
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x1c], eax
jmp 0x401cbb
lea ecx, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004049b3
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub esi, 1
jne 0x401c95
mov ebx, dword [esp + 0x18]
and dword [esp + 0x28], esi
mov dword [esp + 0x14], edi
cmp dword [ebx], esi
jle 0x401d56
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
inc edx
and edx, 0x800000ff
jns 0x401ced
dec edx
or edx, 0xffffff00
inc edx
mov cl, byte [esp + edx + 0x30]
mov eax, dword [esp + 0xc]
movzx esi, cl
add eax, esi
mov dword [esp + 0x10], edx
and eax, 0x800000ff
jns 0x401d0c
dec eax
or eax, 0xffffff00
inc eax
mov dword [esp + 0xc], eax
mov al, byte [esp + eax + 0x30]
mov byte [esp + edx + 0x30], al
mov eax, dword [esp + 0xc]
push 0
mov byte [esp + eax + 0x34], cl
mov eax, edi
xor eax, 4
push eax
call fcn.0040279b
push eax
call fcn.00403b15
mov edx, dword [esp + 0x14]
pop ecx
mov ecx, dword [esp + 0x2c]
movzx eax, byte [esp + edx + 0x30]
add eax, esi
movzx eax, al
mov al, byte [esp + eax + 0x30]
xor byte [ecx + edi], al
inc edi
cmp edi, dword [ebx]
jl 0x401cdc
mov edi, dword [esp + 0x14]
sub edi, ebx
and edi, 0xfffffffc
push edi
push ebx
call fcn.004044be
pop ecx
pop ecx
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406cb1
mov esp, ebp
pop ebp
ret