joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412d73
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x13c
mov ebp, dword [esp + 0x150]
mov edi, dword [esp + 0x154]
cmp ebp, edi
je 0x412f55
mov eax, dword [esp + 0x158]
mov dword [esp + 4], 0
xor esi, esi
mov dword [esp], edi
xor ebx, ebx
mov dword [esp + 8], eax
call fcn.004129e4
cmp byte [ebp + esi], 0
je 0x412f38
cmp ebx, dword [esp + 0x158]
jae 0x412f38
sub esi, ebx
lea ecx, [ebp + esi]
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x18]
lea edx, [ebx + eax]
lea eax, [ebp + edx]
mov dword [esp + 0x1c], eax
mov al, byte [ecx + ebx]
test al, al
je 0x412e02
cmp al, 0x25
je 0x412e02
cmp ebx, dword [esp + 0x158]
jae 0x412dfe
inc ebx
mov byte [edi + ebx - 1], al
jmp 0x412dd4
mov esi, edx
jmp 0x412db2
cmp al, 0x25
mov esi, edx
jne 0x412db2
lea eax, [esp + 0x30]
lea ecx, [edx + 1]
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0
mov dword [esp + 0x20], edx
mov dword [esp], eax
mov dword [esp + 0x28], ecx
call fcn.004129e4
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
lea eax, [edx + 0x101]
mov esi, edx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x30]
sub eax, edx
mov dword [esp + 0x24], eax
movsx eax, byte [ebp + ecx]
cmp al, 0x25
je 0x412e89
test al, al
je 0x412e89
cmp ecx, dword [esp + 0x20]
je 0x412db2
inc ecx
mov dword [esp], eax
mov dword [esp + 0x2c], edx
mov esi, ecx
mov dword [esp + 0x28], ecx
call fcn.0041284f
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov byte [edx + ecx - 2], al
mov edx, dword [esp + 0x2c]
jmp 0x412e4d
test al, al
jne 0x412ebb
lea esi, [edx + 1]
mov al, byte [ebp + esi]
test al, al
setne cl
cmp al, 0x25
setne dl
test cl, dl
je 0x412db2
cmp ebx, dword [esp + 0x158]
jae 0x412db2
inc ebx
inc esi
mov byte [edi + ebx - 1], al
jmp 0x412e90
cmp al, 0x25
jne 0x412db2
lea eax, [esp + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
test eax, eax
je 0x412ed7
sub eax, ebx
jmp 0x412f26
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [edi + ebx], al
mov eax, dword [esp + 0x18]
inc ebx
lea edx, [ebp + eax]
mov eax, dword [esp + 0x18]
lea esi, [ebx + eax]
mov al, byte [edx + ebx]
test al, al
setne cl
cmp al, 0x25
setne byte [esp + 0x1c]
test byte [esp + 0x1c], cl
je 0x412db2
cmp ebx, dword [esp + 0x158]
jae 0x412db2
inc ebx
mov byte [edi + ebx - 1], al
jmp 0x412ee9
test dl, dl
je 0x412f32
inc ebx
mov byte [edi + ebx - 1], dl
cmp ebx, dword [esp + 0x158]
mov dl, byte [eax + ebx]
jb 0x412f1d
inc esi
jmp 0x412db2
xor eax, eax
cmp eax, dword [esp + 0x158]
je 0x412f50
cmp byte [edi + eax], 0x2f
jne 0x412f4d
mov byte [edi + eax], 0x5c
inc eax
jmp 0x412f3a
mov byte [edi + eax - 1], 0
add esp, 0x13c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x413040
Capabilities:
Get hostname

Disassembly:
push edi
push esi
push ebx
sub esp, 0xb0
mov esi, dword [esp + 0xc4]
mov ebx, dword [esp + 0xc0]
lea edi, [esp + 0x30]
mov dword [esp + 4], 0
mov dword [esp + 8], esi
mov dword [esp], ebx
call fcn.004129e4
lea eax, [esp + 0x2c]
mov dword [esp], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GetComputerNameW
test eax, eax
push edx
push edx
je 0x4130ca
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call sub.KERNEL32.dll_WideCharToMultiByte
sub esp, 0x20
jmp 0x4130de
mov dword [esp + 8], esi
mov dword [esp + 4], str.localhost
mov dword [esp], ebx
call fcn.00412548
add esp, 0xb0
pop ebx
pop esi
pop edi
ret

Function at 0x4130e8
Capabilities:
Get session user name

Disassembly:
push edi
push esi
push ebx
sub esp, 0xb0
mov esi, dword [esp + 0xc4]
lea eax, [esp + 0x2c]
lea edi, [esp + 0x30]
mov ebx, dword [esp + 0xc0]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0x2c], esi
call sub.ADVAPI32.DLL_GetUserNameW
test eax, eax
push edx
push edx
je 0x41315e
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call sub.KERNEL32.dll_WideCharToMultiByte
sub esp, 0x20
jmp 0x413172
mov dword [esp + 8], esi
mov dword [esp + 4], str.Unknown
mov dword [esp], ebx
call fcn.00412548
add esp, 0xb0
pop ebx
pop esi
pop edi
ret

Function at 0x41317c
Capabilities:
Get graphical window text

Disassembly:
push edi
push esi
push ebx
sub esp, 0x430
mov ebx, dword [esp + 0x440]
mov esi, dword [esp + 0x444]
call sub.USER32.dll_GetForegroundWindow
test eax, eax
je 0x413200
lea edx, [esp + 0x24]
lea edi, [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 0x24], esi
mov dword [esp + 8], edx
mov dword [esp + 4], edi
call sub.USER32.dll_GetWindowTextW
sub esp, 0xc
test eax, eax
jle 0x413200
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x204
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call sub.KERNEL32.dll_WideCharToMultiByte
sub esp, 0x20
jmp 0x413214
mov dword [esp + 8], esi
mov dword [esp + 4], 0x42449e
mov dword [esp], ebx
call fcn.00412548
add esp, 0x430
pop ebx
pop esi
pop edi
ret
Function at 0x4132e6
Capabilities:
Check os version
Get system information on windows

Disassembly:
push esi
push ebx
sub esp, 0xe4
lea ebx, [esp + 0x44]
mov dword [esp + 8], 0x9c
mov dword [esp + 4], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp], ebx
call fcn.004129e4
mov dword [esp], ebx
mov dword [esp + 0x44], 0x9c
call sub.KERNEL32.dll_GetVersionExA
test eax, eax
push esi
mov esi, eax
je 0x41336e
mov dword [esp], str.Ed5LC542dMZ65dlXR8W
call fcn.004081aa
mov dword [esp], str.wd0RdiNh.Sii
mov ebx, eax
call fcn.004081aa
mov dword [esp], eax
call fcn.00407f7a
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00407f8e
test eax, eax
lea edx, [esp + 0x20]
je 0x413389
mov dword [esp], edx
call eax
jmp 0x413391
mov dword [esp], ebx
mov dword [esp + 0x44], 0x94
call sub.KERNEL32.dll_GetVersionExA
test eax, eax
push ebx
jne 0x4134c6
jmp 0x413331
mov dword [esp], edx
call sub.KERNEL32.dll_GetSystemInfo
test esi, esi
push ecx
je 0x4134c6
cmp dword [esp + 0x54], 2
jne 0x4134c6
cmp dword [esp + 0x48], 5
jne 0x41340d
mov edx, dword [esp + 0x4c]
mov eax, 0x501
cmp edx, 1
je 0x4134c8
cmp edx, 2
jne 0x41340d
cmp word [esp + 0xdc], 0x8000
mov eax, 3
je 0x4134c8
cmp byte [esp + 0xde], 1
jne 0x4133f3
cmp word [esp + 0x20], 9
mov eax, 2
je 0x4134c8
mov dword [esp], 0x59
call sub.USER32.dll_GetSystemMetrics
cmp eax, 1
push edx
sbb eax, eax
add eax, 5
jmp 0x4134c8
lea esi, [esp + 0x1c]
lea ebx, [esp + 0x18]
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0041328f
test al, al
je 0x413495
cmp dword [esp + 0x18], 6
jne 0x413495
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x41344e
xor eax, eax
cmp byte [esp + 0xde], 1
sete al
dec eax
and eax, 0xfffffa07
add eax, 0x600
jmp 0x4134c8
cmp eax, 1
jne 0x413465
xor eax, eax
cmp byte [esp + 0xde], 1
setne al
add eax, 8
jmp 0x4134c8
cmp eax, 2
jne 0x41347d
xor eax, eax
cmp byte [esp + 0xde], 1
setne al
lea eax, [eax + eax + 0xa]
jmp 0x4134c8
cmp eax, 3
jne 0x413495
xor eax, eax
cmp byte [esp + 0xde], 1
setne al
lea eax, [eax + eax*2 + 0xb]
jmp 0x4134c8
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0041328f
test al, al
je 0x4134c6
cmp dword [esp + 0x18], 0xa
jne 0x4134c6
cmp dword [esp + 0x1c], 0
jne 0x4134c6
xor eax, eax
cmp byte [esp + 0xde], 1
setne al
lea eax, [eax + eax + 0xd]
jmp 0x4134c8
xor eax, eax
add esp, 0xe4
pop ebx
pop esi
ret
Function at 0x413748
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x78c
lea eax, [esp + 0xfc]
mov dword [esp + 4], 0x40
lea ebx, [esp + 0x57c]
mov dword [esp], eax
call fcn.004130e8
lea eax, [esp + 0x13c]
mov dword [esp + 4], 0x40
mov dword [esp], eax
call fcn.00413040
lea eax, [esp + 0x37c]
mov dword [esp + 4], 0x200
mov dword [esp], eax
call fcn.0041359f
lea eax, [esp + 0x17c]
mov dword [esp + 4], 0x200
mov dword [esp], eax
call fcn.004134d1
lea eax, [esp + 0xa0]
mov dword [esp], eax
call fcn.004134fd
mov dword [esp + 4], 0x204
mov dword [esp], ebx
call fcn.00407c77
test al, al
jne 0x4137f0
mov dword [esp + 8], 0x204
mov dword [esp + 4], str.Unknown
mov dword [esp], ebx
call fcn.00412548
lea ebx, [esp + 0xbc]
lea esi, [esp + 0xdc]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x20
mov dword [esp], ebx
call fcn.00408218
mov dword [esp + 4], 0x20
mov dword [esp], esi
call fcn.004082c4
mov ecx, dword [0x422830]
mov dword [esp], 0x40
mov dword [esp + 0x9c], 0
mov dword [esp + 0x8c], ecx
call fcn.004082e8
mov byte [esp + 0x7f], al
call fcn.004101f1
mov dword [esp + 0x88], eax
call fcn.00408e66
mov dword [esp + 0x80], eax
call fcn.00408e53
mov dword [esp], str.PATH
mov dword [esp + 0x84], eax
call sub.msvcrt.dll_getenv
mov dword [esp], str.WINDIR
mov ebp, eax
call sub.msvcrt.dll_getenv
mov edi, eax
call fcn.004135f2
mov edx, dword [esp + 0x88]
movzx eax, al
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x64], 0x422400
lea ebx, [esp + 0x9c]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x68], ecx
movzx ecx, byte [esp + 0x7f]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x54], 0x4225c0
mov dword [esp + 0x48], 0x422600
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x57c]
lea eax, [esp + 0x37c]
mov dword [esp + 0x44], 0x422700
mov dword [esp + 0x40], esi
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0xac]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x13c]
mov dword [esp + 4], str._s_a_s_a_s_a_s_a_I64u_a_I64u_a_I64u_a_d_a_s_a_s_a_s_a_s_a_s_a_s_a_d_a_d_a_s_a_d_a_s_a_d_a_s_a_d_a
mov dword [esp], ebx
mov dword [esp + 0x10], eax
lea eax, [esp + 0xfc]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x17c]
mov dword [esp + 8], eax
call fcn.00412755
cmp eax, 0xffffffff
je 0x4139c4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 4], 0xba
mov dword [esp + 8], eax
mov eax, dword [esp + 0x7a0]
mov dword [esp], eax
call fcn.00405d7d
mov dword [esp], ebx
call fcn.00407f59
jmp 0x4139eb
mov eax, dword [esp + 0x7a0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xbb
mov dword [esp], eax
call fcn.00405d7d
add esp, 0x78c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4143f2
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x24
mov esi, dword [esp + 0x34]
movzx ecx, byte [esi]
mov dword [esp], ecx
mov byte [esp + 0x1f], cl
call fcn.00413a0f
test al, al
je 0x414446
mov eax, dword [esp + 0x38]
inc esi
mov dword [esp + 4], 1
mov dword [esp], esi
lea ebx, [eax - 1]
mov eax, dword [ecx*4 + 0x42b5e0]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
cmp ebx, eax
je 0x41446a
movzx eax, byte [esp + 0x1f]
mov dword [esp], eax
call fcn.00413a29
lea eax, [esp + 0x1f]
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0xad
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00405d7d
add esp, 0x24
pop ebx
pop esi
ret

Function at 0x414470
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push edi
push esi
push ebx
sub esp, 0x90
mov ebx, dword [esp + 0xa4]
mov dword [esp], ebx
call fcn.00406f1a
test al, al
je 0x41455c
mov dword [esp], ebx
call fcn.00407e8c
test al, al
je 0x41455c
lea esi, [esp + 0x4c]
lea edi, [esp + 0x3c]
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.004129e4
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.004129e4
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x41455c
call fcn.00408af3
lea eax, [esp + 0xa0]
mov dword [esp], eax
call fcn.00405999
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.KERNEL32.dll_ResumeThread
dec eax
push edx
jne 0x414557
mov dword [esp], 0
call sub.KERNEL32.dll_ExitProcess
call fcn.00408ab3
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x9e
mov dword [esp], eax
call fcn.00405d7d
add esp, 0x90
pop ebx
pop esi
pop edi
ret

Function at 0x4146e1
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
sub esp, 0x28
lea ebx, [esp + 0x14]
mov dword [esp + 4], 0x8000
mov dword [esp], ebx
call fcn.0041236c
mov dword [esp + 4], ebx
mov dword [esp], 0x4145f4
call sub.USER32.dll_EnumWindows
push eax
push eax
mov dword [esp], ebx
call fcn.00412540
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], 0xc1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00405d7d
mov dword [esp], ebx
call fcn.004123b1
add esp, 0x28
pop ebx
ret
Function at 0x41b06a
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x6c
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov ebp, dword [esp + 0x88]
test eax, eax
je 0x41b0a6
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x41b0a6
cmp edx, dword [eax + 0x10]
jae 0x41b0a6
cmp dword [eax + 0x14], 1
jne 0x41b0a6
mov ebx, dword [ecx + 0x10]
mov ebx, dword [ebx + edx*4]
add ebx, dword [ecx]
test ebx, ebx
je 0x41b1f6
test ebp, ebp
je 0x41b1f6
mov eax, dword [eax + 0x48]
mov dword [ebp], edx
lea esi, [esp + 0x3c]
mov ecx, 9
mov edi, esi
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edx*4]
mov dword [ebp + 4], eax
mov ax, word [ebx + 4]
mov word [ebp + 8], ax
mov ax, word [ebx + 6]
mov word [ebp + 0xa], ax
mov ax, word [ebx + 8]
mov word [ebp + 0xc], ax
mov ax, word [ebx + 0xa]
mov word [ebp + 0xe], ax
movzx eax, word [ebx + 0xe]
movzx edx, word [ebx + 0xc]
mov dword [esp + 0x2c], eax
mov word [esp + 0x10], ax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], esi
mov dword [esp + 0x5c], 0xffffffff
sar eax, 9
add eax, 0x50
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x2c]
sar eax, 5
and eax, 0xf
dec eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
and eax, 0x1f
mov dword [esp + 0x48], eax
mov eax, edx
sar eax, 0xb
mov dword [esp + 0x44], eax
mov eax, edx
add edx, edx
sar eax, 5
and edx, 0x3e
and eax, 0x3f
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
call sub.msvcrt.dll_mktime
mov dword [ebp + 0x10], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp + 0x14], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x18], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x20], eax
mov ax, word [ebx + 0x24]
mov word [ebp + 0x28], ax
mov eax, dword [ebx + 0x26]
mov dword [ebp + 0x2c], eax
mov eax, dword [ebx + 0x2a]
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x30], eax
movzx eax, word [ebx + 0x1c]
cmp eax, 0x103
jbe 0x41b1a9
mov eax, 0x103
lea edx, [ebp + 0x3c]
mov ecx, eax
lea esi, [ebx + 0x2e]
mov edi, edx
rep movsb byte es:[edi], byte [esi]
mov byte [ebp + eax + 0x3c], 0
movzx eax, word [ebx + 0x20]
cmp eax, 0xff
jbe 0x41b1ca
mov eax, 0xff
movzx ecx, word [ebx + 0x1e]
movzx esi, word [ebx + 0x1c]
lea edx, [ebp + 0x140]
mov dword [ebp + 0x38], eax
mov edi, edx
lea esi, [esi + ecx + 0x2e]
mov ecx, eax
add esi, ebx
rep movsb byte es:[edi], byte [esi]
mov byte [ebp + eax + 0x140], 0
mov eax, 1
jmp 0x41b1f8
xor eax, eax
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41ed42
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov eax, 0x1004c
push esi
push ebx
call fcn.0041f3f0
sub esp, eax
mov ebx, dword [esp + 0x10060]
mov ebp, dword [esp + 0x10064]
test ebx, ebx
jne 0x41ed6c
or eax, 0xffffffff
jmp 0x41ee16
lea esi, [esp + 0x40]
lea edx, [esp + 0x1c]
xor eax, eax
mov ecx, 0x4000
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, edx
mov ecx, 9
rep stosd dword es:[edi], eax
mov dword [esp + 4], edx
mov dword [esp], ebp
call sub.msvcrt.dll__stat
test eax, eax
jne 0x41ed64
mov ax, word [esp + 0x22]
test al, 0x80
jne 0x41eda8
or dword [ebx + 0x4e008], 1
shl eax, 0x10
or dword [ebx + 0x4e008], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x4e00c], eax
mov dword [esp], ebp
mov dword [esp + 4], 0x424983
call sub.msvcrt.dll_fopen
test eax, eax
mov ebp, eax
je 0x41ed64
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x10000
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fread
test eax, eax
je 0x41ee0a
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0041ec81
test eax, eax
jns 0x41edd1
or ebx, 0xffffffff
jmp 0x41ee0c
xor ebx, ebx
mov dword [esp], ebp
call sub.msvcrt.dll_fclose
mov eax, ebx
add esp, 0x1004c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x41fd20
Capabilities:
Encode data using add xor sub operations

Disassembly:
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
lea edi, [ebx + 0xe]
sub esp, 0x10
movzx eax, byte [eax + 0xf]
shl eax, 4
add eax, edx
mov edx, dword [eax]
mov dword [esp], edx
mov edx, dword [eax + 4]
mov dword [esp + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, esp
sub edi, 1
call fcn.0041fcd0
movzx eax, byte [edi + 1]
shl eax, 4
add eax, esi
mov edx, dword [eax]
xor dword [esp], edx
mov edx, dword [eax + 4]
xor dword [esp + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor dword [esp + 8], edx
xor dword [esp + 0xc], eax
cmp ebx, edi
jne 0x41fd50
mov eax, esp
call fcn.0041fcd0
movzx edx, byte [ebx]
mov eax, dword [esp]
shl edx, 4
add esi, edx
xor eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [esp + 4]
xor eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esp + 8]
xor eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0xc]
xor eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
Function at 0x41fe20
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x2c
mov dword [esp + 0x1c], ecx
mov ebp, dword [esp + 0x40]
cmp ecx, 0xf
jbe 0x41fea1
mov eax, ecx
sub eax, 0x10
and eax, 0xfffffff0
lea edi, [ebp + eax + 0x10]
mov dword [esp + 4], ebp
add ebp, 0x10
mov dword [esp + 8], 0x10
mov dword [esp], ebx
call fcn.00420420
mov edx, esi
mov eax, ebx
call fcn.0041fd20
cmp ebp, edi
jne 0x41fe44
and dword [esp + 0x1c], 0xf
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x41fe7d
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00420420
add esp, 0x2c
mov edx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0041fd20
mov edi, ebp
jmp 0x41fe6d

Function at 0x41ff50
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, 0x40
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x40]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [esp + 0xc], eax
add eax, 0x800
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], 0x10
mov dword [esp], eax
call dword [esp + 0x48]
mov dword [esp + 0x1c], 7
mov ecx, pe_nt_image_headers32
and ecx, 0xfffffffe
mov esi, edi
shl ecx, 4
add ecx, dword [esp + 0x40]
shl esi, 4
add esi, dword [esp + 0x40]
mov ebx, dword [ecx + 0xc]
mov edx, dword [ecx + 8]
mov eax, ebx
shr eax, 1
and eax, 0x7f7f7f7f
mov ebp, eax
mov eax, ebx
shl eax, 0xf
and eax, 0x80808000
or eax, ebp
mov ebp, edx
shr ebp, 0x11
and ebp, 0x80
or eax, ebp
mov ebp, edx
shl edx, 0xf
mov dword [esi + 0xc], eax
shr ebp, 1
mov eax, dword [ecx + 4]
and edx, 0x80808000
and ebp, 0x7f7f7f7f
or edx, ebp
mov ebp, eax
shr ebp, 0x11
and ebp, 0x80
or edx, ebp
mov dword [esi + 8], edx
mov edx, dword [ecx]
mov ecx, eax
shl eax, 0xf
shr ecx, 1
and eax, 0x80808000
and ecx, 0x7f7f7f7f
or eax, ecx
mov ecx, edx
shr ecx, 0x11
and ecx, 0x80
or eax, ecx
mov ecx, edi
mov dword [esi + 4], eax
mov eax, edx
shl edx, 0xf
shr eax, 1
and eax, 0x7f7f7f7f
and edx, 0x80808000
shl ebx, 7
sar ebx, 0x1f
or edx, eax
shr edi, 1
and ebx, 0xe1
xor ebx, edx
sub dword [esp + 0x1c], 1
mov dword [esi], ebx
jne 0x41ffa8
mov eax, dword [esp + 0x40]
mov ebp, 7
mov edi, 2
add eax, 0x10
mov dword [esp + 0x1c], eax
mov edx, edi
mov eax, dword [esp + 0x1c]
shl edx, 4
add edx, dword [esp + 0x40]
mov esi, edx
mov ecx, edx
mov ebx, dword [ecx]
xor ebx, dword [eax]
add eax, 0x10
add edx, 0x10
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
xor ebx, dword [eax - 0xc]
mov dword [edx + 4], ebx
mov ebx, dword [ecx + 8]
xor ebx, dword [eax - 8]
mov dword [edx + 8], ebx
mov ebx, dword [ecx + 0xc]
xor ebx, dword [eax - 4]
mov dword [edx + 0xc], ebx
cmp esi, eax
jne 0x42008f
add edi, edi
sub ebp, 1
jne 0x42007e
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x420700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, eax
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x420896
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x1c]
shl eax, 3
and edi, 0xfffffffc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
neg eax
lea eax, [eax*8 + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
lea esi, [eax*4]
mov eax, dword [esp + 0x40]
lea edx, [eax - 1]
lea eax, [edi + esi]
movzx eax, byte [eax + edx]
test edx, edx
je 0x42077a
mov ecx, dword [esp + 0x40]
lea edx, [edi + ecx - 2]
lea ecx, [edi + esi - 1]
add edx, esi
movzx ebx, byte [edx]
shl eax, 8
sub edx, 1
or eax, ebx
cmp ecx, edx
jne 0x42076b
movzx ecx, byte [esp + 0x10]
mov ebx, eax
shl ebx, cl
test byte [esp + 0x44], 1
jne 0x4207bc
sub dword [esp + 0x44], 1
mov eax, dword [esp + 0x44]
sub esi, 4
movzx ecx, byte [esp + 0x14]
mov eax, dword [edi + eax*4]
mov edx, eax
shr edx, cl
mov ecx, dword [esp + 0x18]
or ebx, edx
mov edx, dword [esp + 0x44]
xor ebx, dword [ecx + edx*4]
movzx ecx, byte [esp + 0x10]
mov dword [ebp + edx*4], ebx
mov ebx, eax
shl ebx, cl
cmp dword [esp + 0x44], 2
jbe 0x420832
mov edx, dword [esp + 0x44]
lea edi, [edi + esi - 4]
mov esi, dword [edi]
movzx ecx, byte [esp + 0x14]
sub edx, 2
sub edi, 8
mov ebx, esi
shr ebx, cl
movzx ecx, byte [esp + 0x10]
shl eax, cl
movzx ecx, byte [esp + 0x14]
or ebx, eax
mov eax, dword [esp + 0x18]
xor ebx, dword [eax + edx*4 + 4]
mov dword [ebp + edx*4 + 4], ebx
mov eax, dword [edi + 4]
mov ebx, eax
shr ebx, cl
movzx ecx, byte [esp + 0x10]
shl esi, cl
or ebx, esi
mov esi, dword [esp + 0x18]
xor ebx, dword [esi + edx*4]
mov dword [ebp + edx*4], ebx
cmp edx, 2
ja 0x4207cb
mov edi, dword [esp + 0x44]
lea edx, [edi - 3]
lea ecx, [edi - 2]
and edx, 0xfffffffe
sub ecx, edx
mov dword [esp + 0x44], ecx
movzx ecx, byte [esp + 0x10]
shl eax, cl
mov ebx, eax
cmp dword [esp + 0x44], 1
je 0x420856
mov dword [esp + 8], 0x6b
mov dword [esp + 4], str..._nettle_3.5.1_memxor3.c
mov dword [esp], str.n__1
call dword [sym.imp.msvcrt.dll__assert]
mov esi, dword [esp + 0x1c]
mov edx, 3
sub edx, dword [esp + 0x40]
movzx eax, byte [esi + edx]
je 0x420879
sub edx, 1
shl eax, 8
movzx ecx, byte [esi + edx]
or eax, ecx
test edx, edx
jne 0x420869
mov edi, dword [esp + 0x14]
mov ecx, edi
shl eax, cl
shr eax, cl
or ebx, eax
mov eax, dword [esp + 0x18]
xor ebx, dword [eax]
mov dword [ebp], ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x4d
mov dword [esp + 4], str..._nettle_3.5.1_memxor3.c
mov dword [esp], str.n___0
call dword [sym.imp.msvcrt.dll__assert]
jmp 0x42071d