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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0x10], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [edi]
call esi
test eax, eax
jne 0x41088c
mov eax, dword [ebp - 4]
add eax, 2
push eax
call fcn.0041874e
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [edi]
call esi
test eax, eax
jne 0x410883
xor esi, esi
inc esi
cmp dword [ebp - 8], esi
jne 0x410883
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405b2b
mov dword [ebp - 0x10], esi
push dword [ebp - 0xc]
call fcn.0041a129
pop ecx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop esi
leave
ret

Function at 0x410949
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0x20019
xor ebx, ebx
call fcn.0041089a
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x4109d6
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push ebx
push dword [ebp + 8]
push eax
call esi
test eax, eax
jne 0x4109cc
mov eax, dword [ebp - 4]
add eax, 2
push edi
push eax
call fcn.0041874e
pop ecx
mov ecx, dword [ebp - 4]
mov edi, eax
cmp ecx, ebx
je 0x41099c
mov byte [eax], bl
inc eax
dec ecx
jne 0x410996
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x4109c4
cmp dword [ebp - 8], 1
jne 0x4109c4
push edi
push dword [ebp + 0xc]
call fcn.00405b2b
xor ebx, ebx
inc ebx
push edi
call fcn.0041a129
pop ecx
pop edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x4109db
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExtSettingsD4027C7F_154A_4066_A1AD_4243D8127440
push SysReAllocString
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x410a09
xor eax, eax
jmp 0x410a61
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
mov edi, str.Flags
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x410a53
cmp dword [ebp - 0xc], 4
jne 0x410a53
cmp dword [ebp - 8], 4
jne 0x410a53
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x410a53
mov dword [ebp - 0x10], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410b02
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4431c0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push ebx
mov ebx, dword [ebp + 0x19c]
push esi
mov esi, dword [ebp + 0x198]
push edi
xor edi, edi
mov dword [ebp - 0x80], esi
cmp ebx, edi
je 0x410bb0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x410bb0
lea eax, [ebp - 0x78]
push eax
push 0x10008
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x410bb5
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x410b99
cmp esi, edi
jne 0x410ba5
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call fcn.00410b02
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
je 0x410b58
jmp 0x410ba5
push ebx
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410bb5
mov esi, 0x3f2
mov ecx, dword [ebp + 0x18c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004195bf
add ebp, 0x190
leave
ret
Function at 0x411c7b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4431c0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x8c], 0
push esi
push edi
lea eax, [ebp - 0x94]
mov edi, ecx
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x411d73
lea eax, [esi + 1]
push eax
call fcn.0041874e
pop ecx
push eax
push esi
push dword [ebp - 0x94]
mov dword [ebp - 0x90], eax
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x411d61
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
push 0x43ad38
push dword [ebp - 0x90]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x411d61
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x411d61
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x86]
push eax
call fcn.0041c7e0
movzx eax, word [esi + 0xc]
add esp, 0xc
push eax
movzx eax, word [esi + 0xe]
push eax
movzx eax, word [esi + 8]
push eax
movzx eax, word [esi + 0xa]
push eax
push 0x43d5b4
push 0x3f
pop ecx
lea edi, [ebp - 0x88]
call fcn.00401164
add esp, 0x14
mov eax, ebx
call fcn.00405797
mov eax, edi
push eax
push ebx
call fcn.00405b2b
mov dword [ebp - 0x8c], 1
push dword [ebp - 0x90]
call fcn.0041a129
mov eax, dword [ebp - 0x8c]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004195bf
leave
ret
Function at 0x41431f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x101c8]
mov eax, 0x10248
call fcn.0042bb20
mov eax, dword [0x4431c0]
xor eax, ebp
mov dword [ebp + 0x101c4], eax
mov eax, dword [ebp + 0x101d0]
push edi
mov dword [ebp - 0x50], ecx
lea ecx, [ebp - 0x48]
push ecx
push 0x20019
xor edi, edi
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings5.0User_AgentPost_Platform
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414443
push 0x206
mov word [ebp + 0xffbc], ax
lea eax, [ebp + 0xffbe]
push edi
push eax
call fcn.0041c7e0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x5c]
push eax
push edi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp + 0xffbc]
push eax
push dword [ebp - 0x48]
mov dword [ebp - 0x58], 0x104
mov dword [ebp - 0x5c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x4c], edi
je 0x414443
push ebx
xor ebx, ebx
cmp dword [ebp - 0x4c], edi
jbe 0x414442
xor eax, eax
mov word [ebp - 0x44], ax
mov word [ebp + 0x7fbc], ax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x60]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x7fbc]
push eax
push ebx
push dword [ebp - 0x48]
mov dword [ebp - 0x54], 0x3fff
mov dword [ebp - 0x64], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x41443c
cmp dword [ebp - 0x60], 1
jne 0x41443c
cmp word [ebp + 0x7fbc], di
je 0x41443c
push 0x43a6e8
push dword [ebp - 0x50]
call fcn.0040576e
lea eax, [ebp + 0x7fbc]
push eax
push dword [ebp - 0x50]
call fcn.0040576e
inc ebx
cmp ebx, dword [ebp - 0x4c]
jb 0x4143d0
pop ebx
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x101c4]
xor ecx, ebp
pop edi
call fcn.004195bf
add ebp, 0x101c8
leave
ret
Function at 0x416245
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x4162ca
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0041c470
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x41628d
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4162af
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x416325
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.00415f93
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
pop ecx
pop ecx
cmp esi, 3
jb 0x416311
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x416325
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x41624e
pop esi
pop ebx
leave
ret

Function at 0x4195bf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4431c0]
jne 0x4195c9
repz ret
jmp fcn.0041fa7c
Function at 0x42c7c8
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.00420d9a
and dword [ebp - 4], 0
cmp dword [0x4458a8], 0
mov ebx, eax
jne 0x42c879
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42c92a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4387a0
push edi
call esi
test eax, eax
je 0x42c92a
push eax
call fcn.00420d28
mov dword [esp], 0x438790
push edi
mov dword [0x4458a8], eax
call esi
push eax
call fcn.00420d28
mov dword [esp], 0x43877c
push edi
mov dword [0x4458ac], eax
call esi
push eax
call fcn.00420d28
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4458b0], eax
call esi
push eax
call fcn.00420d28
pop ecx
mov dword [0x4458b8], eax
test eax, eax
je 0x42c879
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00420d28
pop ecx
mov dword [0x4458b4], eax
mov eax, dword [0x4458b4]
cmp eax, ebx
je 0x42c8d1
cmp dword [0x4458b8], ebx
je 0x42c8d1
push eax
call fcn.00420da3
push dword [0x4458b8]
mov esi, eax
call fcn.00420da3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42c8d1
test edi, edi
je 0x42c8d1
call esi
test eax, eax
je 0x42c8c8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42c8c8
test byte [ebp - 0xc], 1
jne 0x42c8d1
or dword [ebp + 0x10], 0x200000
jmp 0x42c90a
mov eax, dword [0x4458ac]
cmp eax, ebx
je 0x42c90a
push eax
call fcn.00420da3
pop ecx
test eax, eax
je 0x42c90a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42c90a
mov eax, dword [0x4458b0]
cmp eax, ebx
je 0x42c90a
push eax
call fcn.00420da3
pop ecx
test eax, eax
je 0x42c90a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4458a8]
call fcn.00420da3
pop ecx
test eax, eax
je 0x42c92a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42c92c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f36
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov bl, 1
mov byte [esp + 0x1e], 0xbb
mov dword [esp + 0x18], 0xfb15e3
mov byte [0x42755d], 0x64
mov bh, byte [esp + 0x1e]
sub bl, bh
mov byte [esp + 0x17], bl
mov bl, byte [esp + 0x17]
mov dword [0x427558], ecx
mov dword [0x427554], edx
mov dword [esp + 0x10], 0x71e225dc
cmp bl, 0x32
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
jbe 0x403fbf
mov word [esp + 0x1c], 0x41
mov eax, dword [esp + 0xc]
cmp eax, 0
je 0x403fed
mov byte [esp + 0x1f], 0x53
mov eax, dword [esp + 8]
mov cl, byte [eax]
mov edx, dword [esp + 4]
mov byte [edx], cl
mov esi, dword [esp + 0xc]
cmp esi, 1
je 0x403fed
jmp 0x403fff
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
xor ecx, 0xfb15e2
mov edx, dword [0x427558]
mov esi, dword [0x427554]
mov bl, byte [edx + eax]
mov byte [esi + eax], bl
add eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0xc]
cmp eax, ecx
jne 0x403fbf
mov byte [0x42755e], 0x64
mov eax, dword [esp + 4]
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x18]
add eax, 0xff04ea1e
mov dword [esp + 0x10], eax
jmp 0x403fbf
Function at 0x404493
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
push esi
and esp, 0xfffffff8
sub esp, 0xd8
lea eax, [esp + 0x34]
lea ecx, [esp + 0x60]
mov dword [esp + 0xd0], 0x1618fedc
mov edx, eax
mov dword [esp], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
call fcn.00404bb5
lea ecx, [0x404812]
mov edx, dword [esp + 0x58]
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0xd0]
add edx, 0xe9e8b124
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
jmp 0x404507
mov eax, dword [esp + 0x1c]
lea esp, [ebp - 0xc]
pop esi
pop ebx
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
je 0x404642
jmp 0x4045b7
lea eax, [esp + 0x60]
mov ecx, eax
add ecx, 0x50
mov edx, dword [esp + 0x18]
mov dword [esp + 0xb0], edx
mov esi, eax
add esi, 0x28
mov edi, dword [esp + 0x14]
mov ebx, dword [edi + 0x50]
mov dword [esp + 0x88], ebx
mov ebx, dword [0x427540]
mov dword [esp + 0x64], ebx
mov ebx, dword [0x427544]
mov dword [esp + 0xb4], ebx
mov ebx, eax
mov edx, dword [0x427548]
mov dword [esp + 0x60], edx
mov edx, dword [0x42754c]
mov dword [esp + 0xbc], edx
mov edx, dword [0x427550]
mov dword [esp + 0xa4], edx
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
call fcn.004042cb
mov eax, 0xfffffffe
cmp dword [0x42757c], 0
mov dword [esp + 0x1c], eax
je 0x4044fb
jmp 0x4045e8
mov eax, dword [esp + 0xd0]
xor eax, 0xe9e70edc
mov ecx, dword [esp + 0x18]
add ecx, eax
xor eax, eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc0], eax
and ecx, 0xfffff000
mov dword [esp + 0x20], ecx
jmp 0x404507
lea eax, [esp + 0x60]
xor ecx, ecx
mov edx, dword [esp + 0x10]
mov esi, dword [edx]
mov edi, dword [esi + 0x3c]
mov ebx, esi
add ebx, edi
mov esi, dword [esi + edi]
xor edi, edi
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], edi
cmp esi, 0x4550
cmove ecx, ebx
mov ecx, dword [ecx + 0x50]
mov esi, dword [esp + 8]
mov dword [esi], ecx
mov ecx, dword [0x427548]
mov edi, dword [esp + 0xc]
mov dword [edi], ecx
mov dword [esp], eax
call fcn.004010ee
mov eax, 1
mov dword [esp + 0x1c], eax
jmp 0x4044fb
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov edx, dword [esp + 0x18]
cmp dword [edx + ecx], 0x4550
mov dword [esp + 0x14], eax
je 0x40451f
jmp 0x4045b7
Function at 0x404a5f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 0x521eb749
mov dword [ebp - 0x18], eax
call fcn.004052d3
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov esi, ecx
cmove esi, edi
mov esi, dword [esi + 0x78]
mov edi, edx
add edi, esi
mov ebx, dword [eax + esi + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, edx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x1c]
add eax, dword [ecx + esi + 0x20]
cmp ebx, 0
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
je 0x404b3d
jmp 0x404b7c
mov al, byte [ebp - 0x35]
test al, 1
jne 0x404b8f
jmp 0x404b00
mov eax, dword [ebp - 0x3c]
mov cl, byte [ebp - 0x13]
mov byte [ebp - 0x13], cl
mov edx, dword [ebp - 0x40]
mov cl, byte [edx + eax]
mov esi, dword [ebp - 0x18]
mov ch, byte [esi + eax]
cmp cl, ch
sete bl
cmp cl, 0
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x35], bl
mov byte [ebp - 0x45], ch
je 0x404ac9
jmp 0x404b48
xor eax, eax
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov edx, dword [ebp - 0x50]
add edx, 2
mov esi, dword [ebp - 0x2c]
cmp ecx, esi
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x34], eax
jae 0x404b3d
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x30]
add esi, dword [edi + ecx*4]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edx
jmp 0x404ad6
mov eax, dword [ebp - 0x34]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov al, byte [ebp - 0x45]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x10]
xor edx, 0x521eb748
mov esi, dword [ebp - 0x44]
add esi, edx
cmp esi, 0x20
setb ah
mov ch, byte [ebp - 0x35]
and ch, cl
and ch, ah
test ch, 1
mov dword [ebp - 0x3c], esi
jne 0x404ad6
jmp 0x404ac9
xor eax, eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
add ecx, dword [edx + 0x24]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ecx
jmp 0x404b1e
mov al, byte [ebp - 0x13]
mov ecx, dword [ebp - 0x50]
mov dx, word [ecx]
and al, byte [ebp - 0x13]
movzx esi, dx
mov byte [ebp - 0x13], al
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
add edi, dword [ebx + 0x1c]
mov eax, dword [ebp - 0x28]
add eax, dword [edi + esi*4]
mov dword [ebp - 0x34], eax
jmp 0x404b3d
Function at 0x4052d3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xb0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x74]
mov byte [esp + 0xab], 0x54
mov dword [esp + 0x94], 0x53207cb0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
jmp 0x4053d5
xor eax, eax
mov ecx, 0x15c6d0e2
mov dl, byte [esp + 0xab]
mov dword [esp + 0x9c], 0x6746d52d
xor dl, 0x30
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0x15c6d0e2
movzx esi, dl
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
call fcn.004010bf
xor eax, eax
mov ecx, dword [esp + 0x9c]
xor ecx, 0xffffffff
mov dword [esp + 0x9c], ecx
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x24]
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], 0x63fabfe1
cmp dword [esp + 0x70], 0x2bdfe828
jbe 0x405310
mov eax, dword [esp + 0x68]
mov ecx, eax
movsd xmm0, qword [esp + eax + 0x74]
punpcklbw xmm1, xmm0
psraw xmm1, 8
movdqu xmmword [esp + ecx*2 + 0x28], xmm1
mov eax, dword [esp + 0x68]
add eax, 8
mov dword [esp + 0x24], eax
cmp eax, 0x20
jne 0x405370
xor eax, eax
lea ecx, [esp + 0x28]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 0x10], eax
call fcn.0040400e
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x6c]
mov cl, byte [eax + 0x424f7a]
mov edx, dword [esp + 0x94]
mov ch, byte [eax + 0x424fda]
xor edx, 0x53207cb1
sub cl, ch
mov byte [esp + eax + 0x74], cl
mov esi, dword [esp + 0x9c]
add esi, dword [esp + 0x9c]
mov dword [esp + 0x9c], esi
add eax, edx
mov dword [esp + 0x6c], eax
cmp eax, 0xb
jne 0x4053d5
mov eax, dword [esp + 0x94]
mov cl, byte [esp + 0x9b]
add cl, 0xa4
mov byte [esp + 0x9b], cl
add eax, 0xacdf8350
mov dword [esp + 0x24], eax
jmp 0x405370
Function at 0x1004605f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100870c0]
jne 0x10046069
repz ret
jmp fcn.1004ef8a

Function at 0x1004eda7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10087268]
je 0x1004edc2
inc edi
cmp edi, 0x17
jb 0x1004edb3
cmp edi, 0x17
jae 0x1004ef42
push ebp
push 3
call fcn.10055799
cmp eax, 1
pop ecx
je 0x1004ef0e
push 3
call fcn.10055799
test eax, eax
pop ecx
jne 0x1004edf6
cmp dword [0x1008894c], 1
je 0x1004ef0e
cmp ebx, 0xfc
je 0x1004ef41
push 0x1000ae6c
mov ebx, 0x314
push ebx
mov ebp, 0x10088b00
push ebp
call fcn.1004bc25
add esp, 0xc
test eax, eax
je 0x1004ee2c
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push 0x104
mov esi, 0x10088b19
push esi
push 0
mov byte [0x10088c1d], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1004ee70
push 0x1000ae54
push 0x2fb
push esi
call fcn.1004bc25
add esp, 0xc
test eax, eax
je 0x1004ee70
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1004fb11
add esp, 0x14
push esi
call fcn.10055430
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1004eeb5
push esi
call fcn.10055430
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10088e14
push 0x1000a540
sub ecx, eax
push ecx
push eax
call fcn.1006a01e
add esp, 0x14
test eax, eax
je 0x1004eeb5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
jmp 0x1004eeb7
xor esi, esi
push 0x1000ae50
push ebx
push ebp
call fcn.1004bbb4
add esp, 0xc
test eax, eax
je 0x1004eed7
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push dword [edi*8 + 0x1008726c]
push ebx
push ebp
call fcn.1004bbb4
add esp, 0xc
test eax, eax
je 0x1004eef9
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push 0x12010
push 0x1000ae28
push ebp
call fcn.1006a01e
add esp, 0xc
jmp 0x1004ef41
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1004ef41
cmp ebp, 0xffffffff
je 0x1004ef41
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1008726c]
push dword [esi]
call fcn.10055430
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.kernel32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1006a01e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1006a02d
pop dword [ebp - 0x4c]
mov eax, 0x1f841ee5
sub eax, 0xf7d7eb8
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x59940
push 0
mov eax, 0xd483e01c
add eax, 0x3b7c3108
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x46f8
mov ebx, eax
mov edx, 0x9fdc7f4d
sub edx, 0x8fd2734d
add edx, dword [ebp - 0x4c]
mov edi, 0x1e75e7ae
sub edi, 0x6958e327
mov dword [ebp - 0x2c], 0x3e51fad5
mov esi, dword [edx]
sub esi, edi
xor dword [ebp - 0x10], ebx
mov dword [ebx], esi
add ebx, 0x6be2dede
add ebx, 0x941d2126
add edx, 0x44b04448
sub edx, 0x44b04444
loop 0x1006a086
add eax, 0x10eb3
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe668b988
add ecx, 0x29974678
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret