joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401270
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x7fd208]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x40141d
cmp dword [0x7fd20c], 0
jne 0x401409
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.00403070
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x4012c0
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41e0d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x4012d0
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41e0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x401305
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00403070
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x401364
sub edx, esi
sar edx, 1
je 0x40141d
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x401380
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x40141d
xor eax, eax
push ebx
test edx, edx
je 0x4013b8
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x4013b8
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x4013a1
xor eax, eax
test edx, edx
je 0x4013d2
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x4013d2
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x4013c0
xor eax, eax
test edx, edx
je 0x4013ef
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x4013ef
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x4013e0
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x7fd208]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret
Function at 0x401ff0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x7fe188]
sub esp, 0x11c
test eax, eax
jne 0x4020ee
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.00403070
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x402040
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41e100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x402050
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41e104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x402085
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00402730
pop edi
pop esi
pop ebx
test eax, eax
je 0x4020e9
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4020e9
mov dword [0x7fe188], eax
add esp, 0x11c
ret
mov eax, dword [0x7fe188]
add esp, 0x11c
ret

Function at 0x402730
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x40278b
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x402750
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x40276c
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00402160
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x4027ad
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x40281f
mov esi, dword [ebx]
cmp esi, ebx
je 0x40281f
test esi, esi
je 0x40281f
cmp word [esi + 0x24], 2
jbe 0x402819
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x402819
cmp dword [esi + 0x18], 0
je 0x402819
test ebp, ebp
je 0x4027d5
cmp ebp, eax
jne 0x402819
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00402160
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x4027fa
cmp edx, dword [esi + 0x18]
jne 0x402819
cmp dword [esp + 0x14], eax
je 0x40282c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00401960
add esp, 8
test eax, eax
je 0x40282c
mov esi, dword [esi]
cmp esi, ebx
jne 0x4027b3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x4039c0
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x7fd348
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x403ae9
cmp dword fs:[0xc0], eax
je 0x4039eb
mov dword [0x7fd344], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x7fd22c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x7fd230], eax
movzx edx, word [esi + 0xac]
mov dword [0x7fd234], edx
mov eax, dword [esi + 0xb0]
mov dword [0x7fd238], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x403a4b
push 0x7f
push eax
push 0x7fd23c
call fcn.00402160
mov edx, dword [0x7fd234]
add esp, 0xc
jmp 0x403a53
xor eax, eax
mov word [0x7fd23c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x7fd33c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x7fd33e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x7fd340], ax
mov ecx, eax
mov byte [0x7fd342], 0
cmp byte [0x7ffe0268], 0
je 0x403a9a
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x7fd342], bl
cmp ebx, 1
pop ebx
jne 0x403ab4
and ecx, 0xffef
mov word [0x7fd340], cx
test edx, edx
jne 0x403ae9
call fcn.004039c0
cmp dword [0x7fd22c], 6
ja 0x403ae9
jb 0x403ad1
cmp dword [0x7fd230], 4
jae 0x403ae9
call fcn.004039c0
cmp dword [0x7fd22c], 0xa
jae 0x403ae9
mov dword [0x7fd234], 1
ret
Function at 0x4042e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x40432b
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x40431b
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x404301
jmp 0x404320
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x40437b
mov edi, edx
lea ecx, [edi + 2]
jmp 0x404340
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x404340
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x40435c
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00402160
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x40439d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x404410
mov esi, dword [ebx]
cmp esi, ebx
je 0x404410
test esi, esi
je 0x404410
cmp word [esi + 0x24], 2
jbe 0x40440a
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x40440a
cmp dword [esi + 0x18], 0
je 0x40440a
test ebp, ebp
je 0x4043c5
cmp ebp, eax
jne 0x40440a
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00402160
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4043ea
cmp eax, dword [esi + 0x18]
jne 0x40440a
cmp dword [esp + 0x10], 0
je 0x40441d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00401960
add esp, 8
test eax, eax
je 0x40441d
mov esi, dword [esi]
cmp esi, ebx
jne 0x4043a3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret

Function at 0x41d272
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x4010dc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437004]
jne 0x4010e6
repz ret
jmp fcn.00401547

Function at 0x404f0b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x437004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403bf9
and dword [ebp - 0x14], 0
cmp dword [0x439c78], 0
mov dword [ebp - 0x18], eax
jne 0x404fbe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405066
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405066
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x439c78], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x439c7c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x439c80], eax
call edi
push eax
call esi
mov dword [0x439c88], eax
test eax, eax
je 0x404fbe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x439c84], eax
mov eax, dword [0x439c84]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405017
cmp dword [0x439c88], ecx
je 0x405017
push eax
call esi
push dword [0x439c88]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405017
test ebx, ebx
je 0x405017
call edi
test eax, eax
je 0x40500e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40500e
test byte [ebp - 8], 1
jne 0x405017
or dword [ebp + 0x10], 0x200000
jmp 0x40504a
mov eax, dword [0x439c7c]
cmp eax, dword [ebp - 0x18]
je 0x40504a
push eax
call esi
test eax, eax
je 0x40504a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40504a
mov eax, dword [0x439c80]
cmp eax, dword [ebp - 0x18]
je 0x40504a
push eax
call esi
test eax, eax
je 0x40504a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x439c78]
call esi
test eax, eax
je 0x405066
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405068
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010dc
leave
ret
Function at 0x42b4c0
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
test edi, edi
jle 0x42b4d3
call fcn.0042b460
xor byte [edx + esi], al
inc edx
cmp edx, edi
jl 0x42b4c6
cmp edi, 0x2d
jne 0x42b4ec
mov dword [0x2bdf6d8], 0xa62e7790
mov dword [0x2bdf6dc], 0xffffffff
ret

Function at 0x42b4f0
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
mov eax, dword [0x437004]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x437dd0]
push esi
mov esi, dword [0x2bdd24c]
push edi
mov edi, dword [0x2bdf6cc]
call fcn.0042b490
cmp dword [0x2bdf6cc], 0x2f
jne 0x42b55d
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.0042b4c0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.004010dc
add esp, 0x24
ret
Function at 0x42b7d0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
jmp 0x42b7e8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1519a5
jge 0x42b829
mov dword [0x2bdf334], 0x8e46a6f0
cmp dword [0x2bdf6cc], 0x3dc
jne 0x42b827
xor ecx, ecx
mov word [ebp - 8], cx
xor edx, edx
mov word [ebp - 6], dx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
jmp 0x42b7df
mov dword [ebp - 0x10], 0
jmp 0x42b83b
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x12cad2a
jge 0x42b8d6
cmp dword [0x2bdf6cc], 0xa5f
jne 0x42b85c
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebp - 0x10], 0x84620b
jne 0x42b881
mov eax, dword [0x438bf0]
mov dword [0x2bdf6cc], eax
mov ecx, dword [0x2bdf6cc]
add ecx, 0xa231
mov dword [0x2bdf6cc], ecx
cmp dword [0x2bdf6cc], 0x141
jne 0x42b8d1
xor edx, edx
mov word [ebp - 0x24], dx
xor eax, eax
mov word [ebp - 0x22], ax
xor ecx, ecx
mov word [ebp - 0x20], cx
xor edx, edx
mov word [ebp - 0x1e], dx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
mov dword [0x43a1b8], 0xec58acac
mov dword [0x43a1bc], 0xffffffff
jmp 0x42b832
call fcn.0042b580
jmp dword [0x2bdd24c]
Function at 0x403734
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x417024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037cc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4037ac
xor eax, eax
push ebp
push 0x4037a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403804
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4037ac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x417024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x417024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404618
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41804c], 0
je 0x404679
cmp word [0x418328], 0xd7b2
jne 0x404641
cmp dword [0x418330], 0
jbe 0x404641
mov eax, 0x418324
call dword [0x418340]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4046a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x417030], 0
jne 0x404695
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40da63
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00404ac0
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x40da86
mov eax, edi
add eax, eax
call fcn.00402e24
mov esi, eax
jmp 0x40da88
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40dac1
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40daab
mov eax, esp
cmp esi, eax
je 0x40dace
mov eax, esi
call fcn.00402e40
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40db08
cmp bl, 0
je 0x40db04
cmp bl, 0x41
jl 0x40daff
cmp bl, 0x5a
jg 0x40daff
or bl, 0x20
xor al, bl
inc esi
jmp 0x40dae3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40da48

Function at 0x414f34
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x415009
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x415024
push ebx
push 0x415034
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405370
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403270
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f58
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x414fb4
mov al, 0x69
call fcn.00414bac
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00414f08
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x414fbd
call fcn.00414f08
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415010
lea eax, [ebp - 4]
call fcn.00404ebc
ret
Function at 0x10006807
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x10006816
pop dword [ebp - 0x24]
mov eax, 0x7c002a6c
sub eax, 0x6bffc256
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3c6ba
push 0
mov eax, 0xf0d13e88
add eax, 0x1f3022b8
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x2be8103d
sub ecx, 0x2be7be31
mov edi, eax
mov ebx, 0xf1a4b6f8
add ebx, 0x1e5d8d08
add ebx, dword [ebp - 0x24]
mov edx, 0x7d57516
sub dword [ebp - 0x10], 0x1f08893e
mov esi, dword [ebx]
xor dword [ebp - 0x14], 0x9ecf9809
sub esi, edx
add dword [ebp - 0x20], edx
mov dword [edi], esi
add dword [ebp - 8], 0xdf3be817
add edi, 0xd5533d71
add edi, 0x2aacc293
add ebx, 0x761e5bc2
sub ebx, 0x761e5bbe
loop 0x1000686f
add eax, 0x13b03
xor ebx, ebx
add ebx, eax
add eax, 0xc9bc6aa0
sub eax, 0xc9bc6a9b
mov ecx, 0x3e3bde04
add ecx, 0xd1c421fc
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x402ae0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x44e1ac], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x402b9a
xor ebx, ebx
nop dword [eax]
mov edx, ebx
mov eax, ebx
shr eax, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, eax
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [ebx*4 + 0x44e1a8], eax
inc ebx
cmp ebx, 0x100
jb 0x402b00
mov ebx, dword [ebp + 8]
not ebx
mov eax, ebx
test edi, edi
jle 0x402bc6
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x44e1a8]
sub edi, 1
jne 0x402ba5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x402bf8
nop dword [eax]
cmp cl, 0x23
jne 0x402bdf
cmp byte [esi], cl
jne 0x402bdf
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x44e1a8]
test cl, cl
jne 0x402bd0
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x402d40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x402d52
mov dword [edi], 0
mov edx, 0x43b528
call fcn.00402c00
mov esi, eax
test esi, esi
jne 0x402d66
pop edi
pop esi
pop ebp
ret
push ebx
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x402e1e
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x402e1e
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x402e1e
mov eax, dword [0x44e5b0]
test eax, eax
je 0x402db6
inc dword [eax + 0x394]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402e1e
push esi
push dword [ebp + 8]
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x402e05
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x44e5b0]
add esp, 4
test eax, eax
je 0x402df4
dec dword [eax + 0x394]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x402e17
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x4121e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [0x44e5b0]
mov eax, ecx
mov dword [ebp - 8], eax
mov dword [edi + 0x2c2c], 0
test eax, eax
je 0x4122d3
push esi
lea esi, [edi + 0x2c30]
mov dword [edi + 0x2c2c], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x412234
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00412fa0
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x412249
push 8
mov ecx, esi
call fcn.00412fa0
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push ebx
mov dword [ebp - 4], 0
mov byte [ecx + eax], 0
inc dword [esi]
cmp dword [edi + 0x2c3c], 0
jle 0x41228c
xor ebx, ebx
mov eax, dword [edi + 0x2c44]
add eax, ebx
push esi
push eax
push edi
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
add ebx, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [edi + 0x2c3c]
jl 0x412267
cmp dword [esi + 8], 0
je 0x412297
mov esi, dword [esi]
dec esi
jmp 0x412299
xor esi, esi
mov eax, dword [edi + 0x2c38]
mov ebx, 0x44e5ac
mov ecx, dword [ebp - 8]
test eax, eax
mov edx, 0x43b52c
cmovne ebx, eax
call fcn.00402c00
mov edi, eax
test edi, edi
je 0x4122d1
push edi
push esi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret