joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418370
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x4183b7
cmp byte [esi + 1], 0
je 0x4183bf
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x4183d1
cmp byte [esi + 1], 0
je 0x4183c5
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x4183d9
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x418391
xor eax, eax
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x4183d9
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x4183eb
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.0041c5ff
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x418405
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0
cmp edi, eax
jbe 0x418519
jmp 0x418429
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x418438
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x41844f
mov ebx, 0x404
cmp byte [esi], 0
je 0x418474
cmp byte [esi + 1], 0
je 0x418519
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x418477
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebx
je 0x4184a0
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41849b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x4184c9
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x4184b1
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.0041d910
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x418519
lea eax, [ebx - 3]
test eax, eax
jle 0x41850d
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x4184ff
cmp byte [eax + ecx + 1], 0x4b
jne 0x4184ff
cmp byte [eax + ecx + 2], 5
jne 0x4184ff
cmp byte [eax + ecx + 3], 6
je 0x418505
test eax, eax
jg 0x4184e0
jmp 0x41850d
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jne 0x418519
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x418420
mov eax, dword [ebp - 0x10]
push eax
call fcn.0041bdf1
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419e90
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x4433ec]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3f
lea eax, [ebp - 0x7b]
push 0
push eax
mov byte [ebp - 0x7c], 0
call fcn.004233e0
add esp, 0xc
xor eax, eax
jmp 0x419ec0
mov ecx, eax
shr ecx, 3
movsx edx, byte [ecx + str.Sta_Enctypt]
mov ecx, eax
and ecx, 7
shl edx, cl
inc eax
sar edx, 7
and dl, 1
mov byte [ebp + eax - 0x7d], dl
cmp eax, 0x40
jb 0x419ec0
push 0x37
lea eax, [ebp - 0x3b]
push 0
push eax
mov byte [ebp - 0x3c], 0
call fcn.004233e0
add esp, 0xc
xor eax, eax
lea esp, [esp]
movsx ecx, byte [eax + 0x43c4f0]
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x43c4f1]
mov byte [ebp + eax - 0x3c], dl
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x43c4f2]
mov byte [ebp + eax - 0x3b], dl
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x43c4f3]
mov byte [ebp + eax - 0x3a], dl
movzx edx, byte [ebp + ecx - 0x7d]
mov byte [ebp + eax - 0x39], dl
add eax, 4
cmp eax, 0x38
jl 0x419f00
lea edx, [ebp - 0x3c]
mov ecx, esi
call fcn.00419f60
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b429
mov esp, ebp
pop ebp
ret
Function at 0x419f60
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x4433ec]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push esi
push edi
lea ebx, [ecx + 1]
mov ecx, 7
mov esi, edx
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 0x1c]
mov ecx, 7
lea edi, [ebp - 0xac]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov byte [ebp - 0x3c], 0
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov word [ebp - 0x23], ax
mov byte [ebp - 0x21], al
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov dword [ebp - 0xb0], edi
jmp 0x419fe6
mov edi, dword [ebp - 0xb0]
movsx esi, byte [edi + 0x43c558]
mov eax, 0x1c
sub eax, esi
push eax
lea ecx, [ebp + esi - 0x90]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.0041d910
push esi
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x20]
push eax
sub ecx, esi
push ecx
call fcn.0041d910
movsx esi, byte [edi + 0x43c558]
mov edx, 0x1c
sub edx, esi
push edx
lea eax, [ebp + esi - 0xac]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.0041d910
push esi
lea edx, [ebp - 0xac]
lea eax, [ebp - 4]
push edx
sub eax, esi
push eax
call fcn.0041d910
push 0x37
lea ecx, [ebp - 0x73]
push 0
push ecx
call fcn.004233e0
mov ecx, 7
lea esi, [ebp - 0x3c]
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
mov ecx, 7
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x58]
add esp, 0x3c
rep movsd dword es:[edi], dword [esi]
xor eax, eax
jmp 0x41a080
movsx edx, byte [eax + 0x43c528]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax - 1], cl
movsx edx, byte [eax + 0x43c529]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax], cl
movsx edx, byte [eax + 0x43c52a]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 1], cl
movsx edx, byte [eax + 0x43c52b]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 2], cl
movsx edx, byte [eax + 0x43c52c]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 3], cl
movsx edx, byte [eax + 0x43c52d]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 4], cl
add eax, 6
cmp eax, 0x30
jl 0x41a080
mov eax, dword [ebp - 0xb0]
mov ecx, 7
lea esi, [ebp - 0x3c]
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
inc eax
mov ecx, 7
lea esi, [ebp - 0x20]
lea edi, [ebp - 0xac]
add ebx, 0x30
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xb0], eax
cmp eax, 0x10
jl 0x419fe0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b429
mov esp, ebp
pop ebp
ret
Function at 0x41a140
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x4433ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x3f
mov esi, ecx
lea ecx, [ebp - 0x43]
push ebx
push ecx
mov dword [ebp - 0xe8], eax
mov byte [ebp - 0x44], bl
call fcn.004233e0
push 0x3f
lea edx, [ebp - 0xe3]
push ebx
push edx
mov byte [ebp - 0xe4], bl
call fcn.004233e0
push 0x3f
lea eax, [ebp - 0x83]
push ebx
push eax
call fcn.004233e0
add esp, 0x24
xor eax, eax
jmp 0x41a1a0
mov ecx, eax
shr ecx, 3
movsx edx, byte [ecx + esi]
mov ecx, eax
and ecx, 7
shl edx, cl
inc eax
sar edx, 7
and dl, 1
mov byte [ebp + eax - 0x45], dl
cmp eax, 0x40
jb 0x41a1a0
lea eax, [ebp - 0xe4]
lea ecx, [ebp - 0x44]
call fcn.0041a520
mov ecx, 8
lea esi, [ebp - 0xe4]
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0xc4]
lea edi, [ebp - 0xa4]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov edx, dword [ebp - 0xe8]
lea eax, [ebp - 0xa4]
push eax
mov ecx, esi
lea ebx, [ebp - 0x24]
call fcn.0041a2c0
inc esi
cmp esi, 0x10
jl 0x41a1f3
mov ecx, 8
lea esi, [ebp - 0xa4]
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
mov esi, ebx
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
movsx ecx, byte [eax + 0x43c7f8]
movzx edx, byte [ebp + ecx - 0x85]
mov ecx, dword [ebp - 0xe8]
mov byte [ecx + eax + 0x600], dl
movsx edx, byte [eax + 0x43c7f9]
movzx edx, byte [ebp + edx - 0x85]
mov byte [ecx + eax + 0x601], dl
movsx edx, byte [eax + 0x43c7fa]
movzx edx, byte [ebp + edx - 0x85]
mov byte [ecx + eax + 0x602], dl
movsx edx, byte [eax + 0x43c7fb]
movzx edx, byte [ebp + edx - 0x85]
mov byte [ecx + eax + 0x603], dl
add eax, 4
cmp eax, 0x40
jl 0x41a231
mov eax, ecx
lea edi, [eax + 0x600]
lea esi, [eax + 0x680]
call fcn.0041a7a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b429
mov esp, ebp
pop ebp
ret 4
Function at 0x41a520
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, 0x43c568
mov edi, 0x43c569
mov edx, 0x43c56a
mov ebx, 0x43c56b
sub esi, eax
sub edi, eax
sub edx, eax
sub ebx, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0x10
nop
movsx ebx, byte [esi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax], bl
movsx ebx, byte [edi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 1], bl
movsx ebx, byte [edx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 2], bl
mov ebx, dword [ebp - 8]
movsx ebx, byte [ebx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 3], bl
add eax, 4
dec dword [ebp - 4]
jne 0x41a550
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41a5a0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, 0x43c5ab
sub ebx, eax
mov dword [ebp - 8], ebx
push esi
mov ebx, 0x43c5ac
sub ebx, eax
push edi
mov dword [ebp - 0xc], ebx
mov esi, 0x43c5a8
mov edi, 0x43c5a9
mov edx, 0x43c5aa
mov ebx, 0x43c5ad
sub esi, eax
sub edi, eax
sub edx, eax
sub ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 8
movsx ebx, byte [esi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax], bl
movsx ebx, byte [edi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 1], bl
movsx ebx, byte [edx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 2], bl
mov ebx, dword [ebp - 8]
movsx ebx, byte [ebx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 3], bl
mov ebx, dword [ebp - 0xc]
movsx ebx, byte [ebx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 4], bl
mov ebx, dword [ebp - 0x10]
movsx ebx, byte [ebx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 5], bl
add eax, 6
dec dword [ebp - 4]
jne 0x41a5e3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41a720
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, 0x43c7d8
mov edi, 0x43c7d9
mov edx, 0x43c7da
mov ebx, 0x43c7db
sub esi, eax
sub edi, eax
sub edx, eax
sub ebx, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 8
nop
movsx ebx, byte [esi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax], bl
movsx ebx, byte [edi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 1], bl
movsx ebx, byte [edx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 2], bl
mov ebx, dword [ebp - 8]
movsx ebx, byte [ebx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 3], bl
add eax, 4
dec dword [ebp - 4]
jne 0x41a750
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41b429
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4433ec]
jne 0x41b433
repz ret
jmp fcn.0042011e
Function at 0x42d2cd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4433ec]
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.00420283
and dword [ebp - 0x14], 0
cmp dword [0x445ee8], 0
mov dword [ebp - 0x18], eax
jne 0x42d380
push 0x43a3f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42d428
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43a3e8
push ebx
call edi
test eax, eax
je 0x42d428
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x43a3d8
push ebx
mov dword [0x445ee8], eax
call edi
push eax
call esi
push 0x43a3c4
push ebx
mov dword [0x445eec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x445ef0], eax
call edi
push eax
call esi
mov dword [0x445ef8], eax
test eax, eax
je 0x42d380
push 0x43a390
push ebx
call edi
push eax
call esi
mov dword [0x445ef4], eax
mov eax, dword [0x445ef4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42d3d9
cmp dword [0x445ef8], ecx
je 0x42d3d9
push eax
call esi
push dword [0x445ef8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42d3d9
test ebx, ebx
je 0x42d3d9
call edi
test eax, eax
je 0x42d3d0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42d3d0
test byte [ebp - 8], 1
jne 0x42d3d9
or dword [ebp + 0x10], 0x200000
jmp 0x42d40c
mov eax, dword [0x445eec]
cmp eax, dword [ebp - 0x18]
je 0x42d40c
push eax
call esi
test eax, eax
je 0x42d40c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42d40c
mov eax, dword [0x445ef0]
cmp eax, dword [ebp - 0x18]
je 0x42d40c
push eax
call esi
test eax, eax
je 0x42d40c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x445ee8]
call esi
test eax, eax
je 0x42d428
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42d42a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b429
leave
ret
Function at 0x404030
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, eax
test esi, esi
push edi
mov edi, ecx
jne 0x40403f
pop edi
pop esi
pop ecx
ret
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
xor ebx, ebx
lea esp, [esp]
cmp esi, 0x1000000
mov eax, 0x1000000
ja 0x40405f
mov eax, esi
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push edx
mov dword [esp + 0x24], 0
call ebp
mov ecx, dword [esp + 0x10]
add edi, ecx
sub esi, ecx
add ebx, ecx
test eax, eax
je 0x404089
test esi, esi
ja 0x404050
pop ebp
mov eax, ebx
pop ebx
pop edi
pop esi
pop ecx
ret

Function at 0x4041d0
Capabilities:
Check if file exists
Create directory
Get disk information
Get file attributes

Disassembly:
sub esp, 0x404
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, dword [esp + 0x40c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4042c5
push edi
push 0x1fe
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.00446fa0
add esp, 0xc
lea edi, [esp + 8]
mov edx, esi
call fcn.00404160
test eax, eax
pop edi
je 0x404270
lea ecx, [esp + 4]
push ecx
call fcn.004041d0
add esp, 4
test eax, eax
je 0x404258
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004414cc
add esp, 0x404
ret
xor eax, eax
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004414cc
add esp, 0x404
ret
push 0x1fe
lea edx, [esp + 0x20a]
push 0
push edx
mov word [esp + 0x210], 0
call fcn.00446fa0
push esi
push 0x461954
push 0x200
lea eax, [esp + 0x21c]
push 0x100
push eax
call fcn.004415ac
add esp, 0x20
lea ecx, [esp + 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x404258
test eax, eax
je 0x404258
mov ecx, dword [esp + 0x404]
pop esi
xor ecx, esp
mov eax, 1
call fcn.004414cc
add esp, 0x404
ret
Function at 0x404c80
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x410
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x41c]
push esi
push edi
push 0x461cc8
mov esi, ecx
push 0x7e3
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
push esi
push 0x461cd0
lea eax, [esp + 0x24]
push 0x200
push eax
call fcn.004414db
mov edx, dword [0x474bb0]
xor edi, edi
add esp, 0x14
cmp edx, edi
mov word [esp + 0x416], di
je 0x404d41
lea eax, [esp + 0x18]
lea ecx, [eax + 2]
mov dword [esp + 0x14], ecx
jmp 0x404d10
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404d10
sub eax, dword [esp + 0x14]
push edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x20]
push 1
push eax
call fcn.004422ed
mov ecx, dword [0x474bb0]
push ecx
call fcn.004428a9
add esp, 0x14
cmp ebx, edi
jne 0x404d4a
or eax, 0xffffffff
jmp 0x404dc1
push esi
push ebx
mov ecx, ebp
call fcn.004042e0
mov esi, eax
push esi
push str.ret___d__r_n
lea edx, [esp + 0x28]
push 0x200
push edx
call fcn.004414db
mov edx, dword [0x474bb0]
add esp, 0x18
cmp edx, edi
mov word [esp + 0x416], di
je 0x404db4
lea eax, [esp + 0x18]
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404d86
sub eax, ebx
sar eax, 1
push edx
add eax, eax
push eax
lea ecx, [esp + 0x20]
push 1
push ecx
call fcn.004422ed
mov edx, dword [0x474bb0]
push edx
call fcn.004428a9
add esp, 0x14
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004414cc
add esp, 0x410
ret
Function at 0x404de0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x410
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [esp + 0x414]
push ebx
push ebp
push esi
push edi
push 0x461cc8
mov esi, ecx
push 0x7ef
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
push esi
push 0x461d38
lea ecx, [esp + 0x24]
push 0x200
push ecx
call fcn.004414db
mov edx, dword [0x474bb0]
add esp, 0x14
test edx, edx
mov word [esp + 0x416], 0
je 0x404e9f
lea eax, [esp + 0x18]
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404e70
sub eax, edi
push edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x20]
push 1
push eax
call fcn.004422ed
mov ecx, dword [0x474bb0]
push ecx
call fcn.004428a9
add esp, 0x14
test ebx, ebx
jne 0x404ea8
or eax, 0xffffffff
jmp 0x404ec1
mov ecx, dword [esp + 0x14]
push esi
push ebx
call fcn.004042e0
add esp, 8
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004414cc
add esp, 0x410
ret
Function at 0x404ee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebp
push esi
mov esi, dword [ecx]
xor ebp, ebp
and esi, 7
cmp eax, 5
jae 0x404efd
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x14]
push ebx
lea ebx, [edx + eax - 4]
push edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
lea edi, [edx + ebp]
cmp edi, ebx
jae 0x404f2f
lea ebx, [ebx]
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x404f2f
add edi, 1
cmp edi, ebx
jb 0x404f20
mov ebp, edi
sub ebp, edx
mov eax, ebp
sub eax, dword [esp + 0x10]
cmp edi, ebx
jae 0x405038
cmp eax, 3
jbe 0x404f64
xor esi, esi
mov al, byte [edi + 4]
test al, al
mov dword [esp + 0x10], ebp
je 0x404fa1
cmp al, 0xff
je 0x404fa1
and esi, 3
add esi, esi
or esi, 1
add ebp, 1
jmp 0x404f13
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x404f48
movzx ecx, byte [esi + 0x462280]
mov eax, edi
sub eax, ecx
cmp byte [esi + 0x462278], 0
mov al, byte [eax + 4]
je 0x404f8d
test al, al
je 0x404f8d
cmp al, 0xff
jne 0x404f48
and esi, 3
add esi, esi
mov dword [esp + 0x10], ebp
or esi, 1
add ebp, 1
jmp 0x404f13
movzx ecx, byte [edi + 2]
xor edx, edx
mov dh, al
movzx eax, byte [edi + 1]
mov dl, byte [edi + 3]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
lea ebx, [ebx]
sub edx, ebp
sub edx, 5
test esi, esi
mov eax, edx
je 0x405009
movzx edx, byte [esi + 0x462280]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
test bl, bl
je 0x404fec
cmp bl, 0xff
jne 0x405005
mov ebx, dword [esp + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, eax
jmp 0x404fc0
mov ebx, dword [esp + 0x14]
mov ecx, eax
shr ecx, 0x18
and cl, 1
sub cl, 1
not cl
mov byte [edi + 4], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
mov byte [edi + 3], dl
mov edx, dword [esp + 0x1c]
mov byte [edi + 2], cl
mov byte [edi + 1], al
add ebp, 5
jmp 0x404f13
cmp eax, 3
pop edi
pop ebx
jbe 0x40504f
mov edx, dword [esp + 0x18]
xor esi, esi
mov dword [edx], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x18]
lea ecx, [eax - 1]
shl esi, cl
mov eax, ebp
and esi, 7
mov dword [edx], esi
pop esi
pop ebp
add esp, 8
ret

Function at 0x4052f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x476b40], ecx
add edx, 1
cmp edx, 0x100
jb 0x4052f2
ret
Function at 0x4053b0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
or eax, 0xffffffff
test ecx, ecx
push esi
mov esi, edx
jbe 0x4053df
lea ebx, [ebx]
movzx edx, byte [esi]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x476b40]
sub ecx, 1
add esi, 1
test ecx, ecx
ja 0x4053c0
pop esi
ret