joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56205d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x65d418], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov dword [0x65d41c], 0
mov dword [0x65d428], 0
mov dword [0x65d410], 0x1df9
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov edx, eax
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
je 0x5621f3
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x65d414], 0x535
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x65d418], edx
mov dword [0x65d410], 0x914
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x65d41c], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x65d420], cl
mov dword [0x65d414], 0x4f8
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x65d420]
mov edx, dword [0x65d41c]
mov byte [edi + edx], cl
mov dword [0x65d410], 0x1cff
mov edx, dword [0x65d418]
movzx edx, byte [edi + edx]
mov ebx, dword [0x65d41c]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x65d414], 0x2373
and ebx, 0xff
mov dword [0x65d428], ebx
mov dword [0x65d410], 0xf7d
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
mov ch, byte [edx + ebx]
mov byte [0x65d42d], ch
mov byte [0x65d42e], cl
xor ch, cl
mov byte [0x65d42c], ch
mov dword [0x65d410], 0x2532
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], ch
mov edx, dword [0x65d410]
add edx, 0xfffffdd7
mov dword [0x65d414], edx
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x38], ebx
je 0x5621f3
mov eax, dword [0x65d418]
mov ecx, dword [0x65d41c]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], edx
jmp 0x5620c4
mov dword [0x65d414], 0x13f8
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x562205
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x65d414]
add eax, 0xfffff879
mov dword [0x65d414], eax
call fcn.0040107a
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x56223a
mov eax, dword [esp + 0x24]
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x65d414], 0xf2f
mov dword [0x65d410], 0xf1d
mov dword [esp], eax
mov dword [esp + 0x20], ecx
call fcn.005619bb
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x84], 0x137400
mov ecx, dword [0x65d3fc]
mov dword [esp + 0x3c], ecx
mov ecx, dword [0x65d400]
mov dword [esp + 0x70], ecx
mov ecx, dword [0x65d404]
mov dword [esp + 0x68], ecx
mov ecx, dword [0x65d408]
mov dword [esp + 0x50], ecx
mov ecx, dword [0x65d40c]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x1c], eax
lea eax, [0x5614fd]
mov dword [0x65d414], 0xe69
mov dword [0x65d410], 0xfffff84c
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
jne 0x5622f7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp dword [eax + ecx], 0x4550
je 0x562313
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
and eax, 0xfffff000
mov dword [esp + 0x18], eax
jmp 0x5622cc
mov eax, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
mov dword [0x65d414], 0x19ce
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x80], edx
mov dword [0x65d410], 0xffffd23b
call fcn.00560c05
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x56239d
mov eax, dword [0x65d414]
add eax, 0xffffe6db
mov dword [0x65d410], eax
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0056154e
mov dword [0x65d414], 0x1db8
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [0x65d410], 0x11f7
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x24], eax
jmp 0x562232
Function at 0x401740
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d1b8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x49c4b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push 0xa
push str.regsvr32__
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00405ac0
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.00405bb0
push 4
push 0x487584
lea ecx, [ebp - 0x28]
call fcn.00405ac0
push 0x40
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.00463310
add esp, 0xc
mov dword [ebp - 0x88], 0x44
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x88]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
movdqu xmmword [ebp - 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40180b
xor bl, bl
jmp 0x40184b
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40183a
push eax
call esi
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x401844
push eax
call esi
cmp dword [ebp - 0x2c], 0
sete bl
cmp dword [ebp - 0x14], 0x10
jb 0x40185c
push dword [ebp - 0x28]
call fcn.0045eb11
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045eb02
mov esp, ebp
pop ebp
ret
Function at 0x401880
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d1f0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x49c4b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4018b7
mov eax, dword [esi]
jmp 0x4018b9
mov eax, esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push eax
call edi
test eax, eax
je 0x4018cd
mov al, 1
jmp 0x401a72
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00405fe0
mov dword [ebp - 4], 0
push 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.0045f314
add esp, 4
test eax, eax
jne 0x40192a
call fcn.0047b7c3
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x3c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x3c]
mov dword [eax], ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0
je 0x4019ba
lea esp, [esp]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
jne 0x4019ba
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403130
push 1
push ecx
push 0x487534
lea ecx, [ebp - 0x28]
call fcn.00403530
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x40199c
push 1
push ecx
push 0x4875bc
lea ecx, [ebp - 0x28]
call fcn.00403530
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4019ba
cmp dword [ebp - 0x18], ecx
jb 0x401a14
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
cmp dword [ebp - 0x18], edx
jne 0x401950
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0xc
mov dword [ebp - 0x40], 0
test eax, eax
je 0x401a43
push 0
lea eax, [ebp - 0x44]
push eax
push 1
push 0x487594
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x401a43
mov esi, dword [ebp - 0x2c]
dec esi
js 0x401a3f
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403720
mov ecx, eax
call fcn.00403a00
mov edx, eax
mov eax, dword [edx]
test eax, eax
jne 0x401a1e
jmp 0x401a20
push str.invalid_string_position
call fcn.0047b822
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x14], 8
jb 0x401a35
mov eax, dword [eax]
lea ecx, [ebp - 0x48]
push ecx
push eax
call edi
dec esi
jns 0x4019f2
mov bl, 1
jmp 0x401a45
xor bl, bl
lea ecx, [ebp - 0x3c]
call fcn.004038c0
push dword [ebp - 0x3c]
call fcn.0045eb11
add esp, 4
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x14], 8
jb 0x401a70
push dword [ebp - 0x28]
call fcn.0045eb11
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045eb02
mov esp, ebp
pop ebp
ret
Function at 0x401e60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d2f0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x49c4b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 0x10
jb 0x401e97
mov eax, dword [esi]
jmp 0x401e99
mov eax, esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push eax
call edi
test eax, eax
je 0x401ead
mov al, 1
jmp 0x402051
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004065c0
mov dword [ebp - 4], 0
push 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.0045f314
add esp, 4
test eax, eax
jne 0x401f09
call fcn.0047b7c3
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x3c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x3c]
mov dword [eax], ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0
je 0x401f99
jmp 0x401f30
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
jne 0x401f99
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403210
push 1
push ecx
push 0x487590
lea ecx, [ebp - 0x28]
call fcn.00403370
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x401f7c
push 1
push ecx
push 0x4875c8
lea ecx, [ebp - 0x28]
call fcn.00403370
mov ecx, eax
cmp ecx, 0xffffffff
je 0x401f99
cmp dword [ebp - 0x18], ecx
jb 0x401ff3
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
cmp dword [ebp - 0x18], 0
jne 0x401f30
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0xc
mov dword [ebp - 0x40], 0
test eax, eax
je 0x402022
push 0
lea eax, [ebp - 0x44]
push eax
push 1
push 0x487594
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x402022
mov esi, dword [ebp - 0x2c]
dec esi
js 0x40201e
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403720
mov ecx, eax
call fcn.00403a00
mov edx, eax
mov eax, dword [edx]
test eax, eax
jne 0x401ffd
jmp 0x401fff
push str.invalid_string_position
call fcn.0047b822
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x14], 0x10
jb 0x402014
mov eax, dword [eax]
lea ecx, [ebp - 0x48]
push ecx
push eax
call edi
dec esi
jns 0x401fd1
mov bl, 1
jmp 0x402024
xor bl, bl
lea ecx, [ebp - 0x3c]
call fcn.00403960
push dword [ebp - 0x3c]
call fcn.0045eb11
add esp, 4
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x14], 0x10
jb 0x40204f
push dword [ebp - 0x28]
call fcn.0045eb11
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045eb02
mov esp, ebp
pop ebp
ret
Function at 0x402070
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d32b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x49c4b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00463310
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x4020fa
xor ecx, ecx
jmp 0x402112
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402103
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00406350
push 0x487534
lea edx, [ebp - 0x230]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00404290
mov edi, eax
add esp, 4
cmp esi, edi
je 0x402176
cmp dword [esi + 0x14], 8
jb 0x40215b
push dword [esi]
call fcn.0045eb11
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.00405e60
cmp dword [ebp - 0x234], 8
jb 0x40218d
push dword [ebp - 0x248]
call fcn.0045eb11
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
jb 0x4021c1
push dword [ebp - 0x230]
call fcn.0045eb11
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045eb02
mov esp, ebp
pop ebp
ret
Function at 0x406be0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x406beb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00406c00
Function at 0x407090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
mov edi, edi
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp - 4], edx
cmp dword [edi + 0x6c], eax
jb 0x40711c
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.00463c10
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
mov edi, edi
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x4070ef
sub eax, esi
jmp 0x4070f1
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x4070e0
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x40710f
sub eax, esi
jmp 0x407111
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x407100
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x407250
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x407149
xor eax, eax
jmp 0x40719c
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x407166
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.004012c0
jmp 0x40717e
cmp eax, 2
jne 0x407184
mov edx, dword [ebx]
test edx, edx
jne 0x407175
xor eax, eax
jmp 0x407181
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.00406c00
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call fcn.00463c10
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x4071c4
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x4071d8
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4070a0
mov edx, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp edx, ecx
jae 0x407250
mov esi, dword [edi + 0x6c]
add esi, ebx
cmp edx, esi
jae 0x407220
sub ecx, esi
mov eax, 0x102
cmp ecx, eax
cmova ecx, eax
mov eax, dword [edi + 0x38]
push ecx
add eax, esi
mov dword [ebp - 8], ecx
push 0
push eax
call fcn.00463310
mov eax, dword [ebp - 8]
add esp, 0xc
add eax, esi
mov dword [edi + 0x16c0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x102]
cmp edx, eax
jae 0x407250
mov eax, dword [edi + 0x38]
sub esi, edx
sub ecx, edx
add esi, 0x102
cmp esi, ecx
cmova esi, ecx
add eax, edx
push esi
push 0
push eax
call fcn.00463310
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407be0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407bf9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407c34
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x407c30
lea ebx, [ebx]
cmp esi, edx
jae 0x407c34
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x407c20
cmp esi, edx
jb 0x407c3b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40eb00
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
push edi
cmovae eax, dword [ebp + 0xc]
push eax
push 0x84
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40eb39
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40eb7b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor esi, esi
cmp dword [ebp + 0x20], 8
jb 0x40eb4c
push dword [ebp + 0xc]
call fcn.0045eb11
add esp, 4
xor eax, eax
mov dword [ebp + 0x20], 7
cmp dword [ebp + 0x38], 8
mov dword [ebp + 0x1c], 0
mov word [ebp + 0xc], ax
jb 0x40eb71
push dword [ebp + 0x24]
call fcn.0045eb11
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x34
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp + 0x38], 8
lea ecx, [ebp + 0x24]
push 0x48ddd8
cmovae ecx, dword [ebp + 0x24]
mov ebx, eax
push ecx
call fcn.0046209a
mov edi, eax
add esp, 8
test edi, edi
je 0x40ebcf
push edi
push ebx
push 1
push dword [ebp - 4]
call fcn.00461190
cmp ebx, eax
mov ecx, 1
push edi
cmove esi, ecx
call fcn.004602b5
add esp, 0x14
pop ebx
jmp 0x40eb3b
Function at 0x40ebe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47dd97
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x49c4b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x194]
mov dword [ebp - 0x194], 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40ec4c
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x194]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 0x194]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp byte [ebp - 0x118], 0
mov dword [ebp - 0x14c], 0xf
mov dword [ebp - 0x150], 0
mov byte [ebp - 0x160], 0
jne 0x40ec74
xor ecx, ecx
jmp 0x40ec89
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ec80
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x160]
call fcn.00406930
lea eax, [esi + 0x388]
mov dword [ebp - 4], 0
push eax
lea edx, [esi + 0x448]
lea ecx, [ebp - 0x190]
call fcn.00411b20
add esp, 4
push 0x487590
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x148]
call fcn.00404130
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x17c], 0x10
jb 0x40ecf2
push dword [ebp - 0x190]
call fcn.0045eb11
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x460]
mov dword [ebp - 0x17c], 0xf
push eax
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x180], 0
mov byte [ebp - 0x190], 0
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
call fcn.004065c0
push str..lnk
lea edx, [esi + 0x370]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x178]
call fcn.00403c80
mov byte [ebp - 4], 5
lea esi, [ebp - 0x148]
cmp dword [ebp - 0x134], 0x10
lea eax, [ebp - 0x178]
lea edx, [ebp - 0x160]
cmovae esi, dword [ebp - 0x148]
lea ecx, [ebp - 0x130]
cmp dword [ebp - 0x164], 0x10
cmovae eax, dword [ebp - 0x178]
cmp dword [ebp - 0x14c], 0x10
cmovae edx, dword [ebp - 0x160]
cmp dword [ebp - 0x11c], 0x10
cmovae ecx, dword [ebp - 0x130]
sub esp, 0xc
push esi
push eax
call fcn.004021e0
add esp, 0x18
mov esi, eax
cmp dword [ebp - 0x164], 0x10
jb 0x40edd2
push dword [ebp - 0x178]
call fcn.0045eb11
add esp, 4
cmp dword [ebp - 0x11c], 0x10
mov dword [ebp - 0x164], 0xf
mov dword [ebp - 0x168], 0
mov byte [ebp - 0x178], 0
jb 0x40ee04
push dword [ebp - 0x130]
call fcn.0045eb11
add esp, 4
cmp dword [ebp - 0x134], 0x10
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
jb 0x40ee36
push dword [ebp - 0x148]
call fcn.0045eb11
add esp, 4
cmp dword [ebp - 0x14c], 0x10
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
jb 0x40ee68
push dword [ebp - 0x160]
call fcn.0045eb11
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045eb02
mov esp, ebp
pop ebp
ret