joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1018b1df
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov dword [0x102b5168], 0x870
call fcn.10001070
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
jne 0x1018b340
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x102b516c], 0xa27
mov dword [0x102b5168], 0x18d4
mov dword [esp], eax
mov dword [esp + 0x20], ecx
call fcn.1018a813
lea ecx, [0x1018a3e0]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x44], 0x11a400
mov edx, dword [0x102b5154]
mov dword [esp + 0x90], edx
mov edx, dword [0x102b5158]
mov dword [esp + 0x48], edx
mov edx, dword [0x102b515c]
mov dword [esp + 0x78], edx
mov edx, dword [0x102b5160]
mov dword [esp + 0x94], edx
mov edx, dword [0x102b5164]
mov dword [esp + 0x68], edx
mov dword [0x102b5168], 0x352
mov dword [0x102b516c], 0x139f
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
jne 0x1018b2c0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x10], ecx
je 0x1018b2d4
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x18], eax
jmp 0x1018b29d
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov dword [0x102b516c], 0x2416
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x64], edx
mov dword [0x102b5168], 0x64f
call fcn.1018aaff
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x1018b338
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10189cd2
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x41b7a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41b7cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b7cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401e1e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x4a4fec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x4800b8
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], eax
mov eax, 0x47fd28
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
movzx eax, byte [ebp + 8]
push eax
push 0x4a93b8
push 0x47fce4
lea eax, [ebp - 0xcc]
push 0x18
push eax
mov dword [ebp - 0xcc], 0x4800ac
mov dword [ebp - 0xc8], 0x480094
mov dword [ebp - 0xc4], 0x48008c
mov dword [ebp - 0xc0], 0x480078
mov dword [ebp - 0xbc], 0x480070
mov dword [ebp - 0xb8], 0x48005c
mov dword [ebp - 0xb4], 0x480054
mov dword [ebp - 0xb0], 0x48003c
mov dword [ebp - 0xac], 0x480038
mov dword [ebp - 0xa8], 0x480028
mov dword [ebp - 0xa4], 0x48001c
mov dword [ebp - 0xa0], 0x480004
mov dword [ebp - 0x9c], 0x47fff8
mov dword [ebp - 0x98], 0x47ffe0
mov dword [ebp - 0x94], 0x47ffd4
mov dword [ebp - 0x90], 0x47ffb8
mov dword [ebp - 0x8c], 0x47ffac
mov dword [ebp - 0x88], 0x47ff94
mov dword [ebp - 0x84], 0x47ff84
mov dword [ebp - 0x80], 0x47ff68
mov dword [ebp - 0x7c], 0x47ff54
mov dword [ebp - 0x78], 0x47ff3c
mov dword [ebp - 0x74], 0x47ff2c
mov dword [ebp - 0x70], 0x47ff10
mov dword [ebp - 0x6c], 0x47ff00
mov dword [ebp - 0x68], 0x47fee4
mov dword [ebp - 0x64], 0x47fed0
mov dword [ebp - 0x60], 0x47feb0
mov dword [ebp - 0x5c], 0x47fea4
mov dword [ebp - 0x58], 0x47fe8c
mov dword [ebp - 0x54], 0x47fe74
mov dword [ebp - 0x50], 0x47fe50
mov dword [ebp - 0x4c], 0x47fe40
mov dword [ebp - 0x44], 0x47fe2c
mov dword [ebp - 0x3c], 0x47fe20
mov dword [ebp - 0x38], 0x47fe08
mov dword [ebp - 0x34], 0x47fdf8
mov dword [ebp - 0x30], 0x47fddc
mov dword [ebp - 0x2c], 0x47fdcc
mov dword [ebp - 0x28], 0x47fdb0
mov dword [ebp - 0x24], 0x47fda4
mov dword [ebp - 0x20], 0x47fd8c
mov dword [ebp - 0x1c], 0x47fd80
mov dword [ebp - 0x18], 0x47fd68
mov dword [ebp - 0x14], 0x47fd5c
mov dword [ebp - 0x10], 0x47fd44
call fcn.00401da4
mov ecx, dword [ebp - 4]
add esp, 0x14
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0043cac0
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d7a
nop
nop
sub eax, 0x403d20
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0xc1e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c1e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc1e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc1e06a
add dl, dl
jne 0xc1e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc1e0dc
xor eax, eax
add dl, dl
jne 0xc1e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc1e17d
add dl, dl
jne 0xc1e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc1e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc1e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc1e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc1e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc1e075
mov eax, 1
add dl, dl
jne 0xc1e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc1e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc1e0e1
sub eax, ebx
mov ebx, 1
jne 0xc1e128
mov ecx, 1
add dl, dl
jne 0xc1e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc1e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc1e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc1e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc1e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc1e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc1e136
cmp eax, 0x7d00
jae 0xc1e16d
cmp eax, 0x500
jb 0xc1e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc1e075
cmp eax, 0x7f
ja 0xc1e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc1e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc1e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc1e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x32e7677a
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x51350fe
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401a80
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x406480
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4064a1
mov eax, 0xff
call fcn.00401a80
xor byte [esi], al
inc esi
dec ebx
jne 0x406491
pop esi
pop ebx
ret

Function at 0x40c030
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ea
push ebx
call edi
push 0x3eb
push ebx
mov esi, eax
call edi
test esi, esi
mov edi, eax
je 0x40c12a
test edi, edi
je 0x40c12a
push ebp
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x28]
test eax, eax
push 0
je 0x40c0a8
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push esi
call ebp
push 0
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
call esi
push 1
push edi
call ebp
push 5
push edi
call esi
mov ecx, dword [esp + 0x14]
mov edx, dword [0x45d9b8]
lea eax, [edx + ecx]
jmp 0x40c0d1
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push edi
call ebp
push 0
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call edi
push 1
push esi
call ebp
push 5
push esi
call edi
mov ecx, dword [esp + 0x14]
mov eax, dword [0x45d9b4]
add eax, ecx
mov edx, dword [esp + 0x18]
push 1
mov dword [esp + 0x20], eax
sub eax, ecx
push eax
mov eax, dword [esp + 0x18]
sub edx, eax
push edx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esp + 0x28]
test eax, eax
pop ebp
je 0x40c10b
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e9
push ebx
call esi
test eax, eax
jne 0x40c123
jmp 0x40c111
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push ebx
call esi
test eax, eax
jne 0x40c123
push 2
push ebx
call esi
test eax, eax
je 0x40c12a
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4116e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4116f7
mov eax, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41170d
cmp eax, 5
je 0x41170d
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41171d
xor eax, eax
pop esi
ret
and eax, 0xff
shr eax, 4
and eax, 1
pop esi
ret

Function at 0x411890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov dword [ebp - 0xc], ecx
xor eax, eax
push esi
push edi
mov ebx, edx
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea eax, [edi + edi + 4]
add eax, 3
and eax, 0xfffffffc
mov dword [ebp - 8], ebx
call fcn.0040df70
mov ecx, esp
xor esi, esi
test edi, edi
mov byte [ecx], 0xd
mov byte [ecx + 1], 0xa
mov eax, 2
mov byte [ebp - 1], 0
jbe 0x4118ff
jmp 0x4118db
mov ebx, dword [ebp - 8]
mov dl, byte [esi + ebx]
cmp dl, 0xa
jne 0x4118ee
cmp byte [ebp - 1], 0xd
je 0x4118ee
mov byte [eax + ecx], 0xd
inc eax
mov byte [eax + ecx], dl
inc eax
inc esi
cmp esi, edi
mov byte [ebp - 1], dl
jb 0x4118d8
cmp dl, 0xa
je 0x411909
mov byte [eax + ecx], 0xd
inc eax
mov byte [eax + ecx], 0xa
inc eax
push 0
lea edx, [ebp - 0x10]
push edx
push eax
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412120
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
mov eax, dword [0x45ea40]
test eax, eax
jne 0x412152
push 0x45ea44
push 0
push str.Debug_Memory
push str.Internal
mov dword [0x45ea40], 1
call fcn.004186f0
mov eax, dword [0x45ea44]
test eax, eax
je 0x4121fd
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41218b
cmp byte [eax], 0
je 0x41218b
push eax
mov eax, dword [ebp + 8]
push eax
push str._s___s_
lea ecx, [ebp - 0x100]
push pe_nt_image_headers32
push ecx
call fcn.00410450
add esp, 0x14
jmp 0x4121a8
mov edx, dword [ebp + 8]
push edx
push 0x457304
lea eax, [ebp - 0x100]
push pe_nt_image_headers32
push eax
call fcn.00410450
add esp, 0x10
mov eax, dword [0x45eb7c]
test eax, eax
jne 0x4121d0
push 1
push 1
push 0
push 0xfffffffffffffffd
lea ecx, [ebp - 0x100]
push ecx
push 0x8510007f
call fcn.00410d60
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x100]
push edx
push str.Storm_Error_:_handle_never_released_____s_n
lea eax, [ebp - 0x1c8]
push 0xc8
push eax
call fcn.00410450
add esp, 0x10
lea ecx, [ebp - 0x1c8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret 8

Function at 0x412e80
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x45ea7c]
test eax, eax
jne 0x412ec2
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x45ea4c
push 0
push 0
push 0x412ed0
push 0
push 0
mov dword [0x45ea88], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 1
push eax
mov dword [0x45ea7c], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
ret
Function at 0x413e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
shr edx, 2
push esi
mov esi, edx
dec edx
test esi, esi
mov eax, 0xeeeeeeee
je 0x413e94
push ebx
push edi
lea edi, [edx + 1]
mov edx, dword [ebp + 8]
mov ebx, dword [0x45eacc]
mov esi, edx
and esi, 0xff
add eax, dword [ebx + esi*4 + 0x1000]
mov ebx, dword [ecx]
lea esi, [eax + edx]
xor ebx, esi
mov dword [ecx], ebx
mov esi, ebx
mov ebx, eax
shl ebx, 5
add esi, ebx
lea eax, [eax + esi + 3]
mov esi, edx
xor esi, 0x7ff
shl esi, 0x15
add esi, 0x11111111
shr edx, 0xb
add ecx, 4
or edx, esi
dec edi
jne 0x413e4b
pop edi
pop ebx
pop esi
pop ebp
ret 4

Function at 0x414040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 0
push 0x20000000
push 3
push 0
push 1
push 0x80000000
push edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x414073
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push 0
mov esi, edi
and esi, 0xfff
push 0x796
lea ebx, [esi + eax + 0xfff]
push str.E:ProjectsLegacyStormSourceSFile.cpp
and ebx, 0xfffff000
push ebx
mov dword [ebp - 0xc], 0
call fcn.0040ff20
push 0
push 0
sub edi, esi
push edi
mov edi, dword [ebp - 4]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4140ff
push 0
lea ecx, [ebp - 0x10]
push ecx
push ebx
mov ebx, dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414102
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, ecx
shr ecx, 2
add esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 4]
mov dword [eax], ecx
mov dword [ebp - 0xc], 1
jmp 0x414102
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x414118
push 0
push 0x7a8
push str.E:ProjectsLegacyStormSourceSFile.cpp
push ebx
call fcn.00410070
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415520
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
mov dword [ebp - 4], edx
mov ebx, 0x7fed7fed
mov esi, 0xeeeeeeee
je 0x415584
mov al, byte [edi]
test al, al
je 0x415584
movsx eax, al
push eax
inc edi
call dword [sym.imp.MSVCRT.dll_toupper]
and eax, 0xff
add esp, 4
cmp eax, 0x2f
jne 0x41555d
mov eax, 0x5c
mov ecx, dword [ebp - 4]
shl ecx, 8
lea edx, [esi + ebx]
mov ebx, dword [0x45eacc]
add ecx, eax
mov ebx, dword [ebx + ecx*4]
mov ecx, esi
shl ecx, 5
add eax, ecx
xor ebx, edx
add esi, eax
test edi, edi
lea esi, [esi + ebx + 3]
jne 0x41553a
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416540
Capabilities:
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
not eax
shr eax, 4
and eax, 1
ret
Function at 0x4184d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45eb98]
test eax, eax
push esi
mov esi, ecx
jne 0x418523
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4185ab
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
push edx
mov edx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x41859d
push 0
push 0
push 0x7fffffff
push edx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00418f20
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x20c]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4185ab
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
push 0
push 0
push 0x7fffffff
push ecx
push 0x104
lea edx, [ebp - 0x20c]
push edx
mov dword [esi], eax
call fcn.00418f20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push esi
push eax
mov eax, dword [ebp - 4]
push ecx
push 0
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x418800
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov edi, edx
push eax
mov edx, ebx
call fcn.00418350
mov eax, dword [0x45eb98]
test eax, eax
jne 0x418863
lea ecx, [ebp - 4]
push ecx
mov ecx, ebx
and cl, 4
lea edx, [ebp + 8]
push edx
push 0
neg cl
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
sbb ecx, ecx
neg ecx
add ecx, 0x80000001
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x4188b8
push 0
push 0
push 0x7fffffff
lea edx, [ebp - 0x108]
push edx
push 0x104
lea eax, [ebp - 0x310]
push eax
call fcn.00418f20
lea ecx, [ebp - 4]
push ecx
mov ecx, ebx
and cl, 4
lea edx, [ebp + 8]
push edx
push 0
neg cl
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x310]
push eax
sbb ecx, ecx
neg ecx
add ecx, 0x80000001
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x418960
mov eax, dword [0x45eb98]
test eax, eax
jne 0x4188e5
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push esi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x41891f
push 0
push 0
push 0x7fffffff
push edi
push 0x104
lea eax, [ebp - 0x310]
push eax
call fcn.00418f20
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
mov edx, dword [ebp + 8]
push eax
push 0
lea ecx, [ebp - 0x310]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x41895a
test bl, 8
je 0x418940
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov esi, eax
test esi, esi
jne 0x41895a
mov ecx, dword [ebp + 8]
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x41895a
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 8]
push edx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4190e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x100]
push pe_nt_image_headers32
push edx
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret