joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403650
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca9c8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4f96c0]
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.004023e0
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.00402320
push 4
push str.___s
lea ecx, [ebp - 0x28]
call fcn.004023e0
push 0x40
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.004ad1e0
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 0x40371b
xor bl, bl
jmp 0x40375b
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 0x40374a
push eax
call esi
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x403754
push eax
call esi
cmp dword [ebp - 0x2c], 0
sete bl
cmp dword [ebp - 0x14], 0x10
jb 0x40376c
push dword [ebp - 0x28]
call fcn.004a8256
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.004a79be
mov esp, ebp
pop ebp
ret
Function at 0x403790
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4caa00
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4f96c0]
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 0x4037c7
mov eax, dword [esi]
jmp 0x4037c9
mov eax, esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push eax
call edi
test eax, eax
je 0x4037dd
mov al, 1
jmp 0x403982
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.004085c0
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.004a8564
add esp, 4
test eax, eax
jne 0x40383a
call fcn.004a7123
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 0x4038ca
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 0x4038ca
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004054d0
push 1
push ecx
push 0x4e7770
lea ecx, [ebp - 0x28]
call fcn.00405c10
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4038ac
push 1
push ecx
push 0x4e77f8
lea ecx, [ebp - 0x28]
call fcn.00405c10
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4038ca
cmp dword [ebp - 0x18], ecx
jb 0x403924
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 0x403860
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0xc
mov dword [ebp - 0x40], 0
test eax, eax
je 0x403953
push 0
lea eax, [ebp - 0x44]
push eax
push 1
push 0x4e77d0
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x403953
mov esi, dword [ebp - 0x2c]
dec esi
js 0x40394f
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.00405e00
mov ecx, eax
call fcn.004061c0
mov edx, eax
mov eax, dword [edx]
test eax, eax
jne 0x40392e
jmp 0x403930
push str.invalid_string_position
call fcn.004a7182
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 0x403945
mov eax, dword [eax]
lea ecx, [ebp - 0x48]
push ecx
push eax
call edi
dec esi
jns 0x403902
mov bl, 1
jmp 0x403955
xor bl, bl
lea ecx, [ebp - 0x3c]
call fcn.00405fa0
push dword [ebp - 0x3c]
call fcn.004a8256
add esp, 4
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x14], 8
jb 0x403980
push dword [ebp - 0x28]
call fcn.004a8256
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.004a79be
mov esp, ebp
pop ebp
ret
Function at 0x403d70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cab00
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4f96c0]
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 0x403da7
mov eax, dword [esi]
jmp 0x403da9
mov eax, esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push eax
call edi
test eax, eax
je 0x403dbd
mov al, 1
jmp 0x403f61
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.00401720
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.004a8564
add esp, 4
test eax, eax
jne 0x403e19
call fcn.004a7123
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 0x403ea9
jmp 0x403e40
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
jne 0x403ea9
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004055b0
push 1
push ecx
push 0x4e77cc
lea ecx, [ebp - 0x28]
call fcn.004058a0
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x403e8c
push 1
push ecx
push 0x4e7810
lea ecx, [ebp - 0x28]
call fcn.004058a0
mov ecx, eax
cmp ecx, 0xffffffff
je 0x403ea9
cmp dword [ebp - 0x18], ecx
jb 0x403f03
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 0x403e40
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0xc
mov dword [ebp - 0x40], 0
test eax, eax
je 0x403f32
push 0
lea eax, [ebp - 0x44]
push eax
push 1
push 0x4e77d0
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x403f32
mov esi, dword [ebp - 0x2c]
dec esi
js 0x403f2e
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.00405e00
mov ecx, eax
call fcn.004061c0
mov edx, eax
mov eax, dword [edx]
test eax, eax
jne 0x403f0d
jmp 0x403f0f
push str.invalid_string_position
call fcn.004a7182
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 0x403f24
mov eax, dword [eax]
lea ecx, [ebp - 0x48]
push ecx
push eax
call edi
dec esi
jns 0x403ee1
mov bl, 1
jmp 0x403f34
xor bl, bl
lea ecx, [ebp - 0x3c]
call fcn.00406040
push dword [ebp - 0x3c]
call fcn.004a8256
add esp, 4
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x14], 0x10
jb 0x403f5f
push dword [ebp - 0x28]
call fcn.004a8256
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.004a79be
mov esp, ebp
pop ebp
ret
Function at 0x403f80
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cab3b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4f96c0]
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.004ad1e0
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 0x40400a
xor ecx, ecx
jmp 0x404022
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404013
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00408930
push 0x4e7770
lea edx, [ebp - 0x230]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00406920
mov edi, eax
add esp, 4
cmp esi, edi
je 0x404086
cmp dword [esi + 0x14], 8
jb 0x40406b
push dword [esi]
call fcn.004a8256
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.00408440
cmp dword [ebp - 0x234], 8
jb 0x40409d
push dword [ebp - 0x248]
call fcn.004a8256
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 0x4040d1
push dword [ebp - 0x230]
call fcn.004a8256
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.004a79be
mov esp, ebp
pop ebp
ret
Function at 0x4040f0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cab80
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4f96c0]
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
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40412e
mov al, 1
jmp 0x4041ea
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404127
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
lea ecx, [ebp - 0x28]
call fcn.00408a30
push 1
push 0x4e7814
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00405a50
lea ecx, [ebp - 0x40]
call fcn.00404210
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00405980
cmp dword [ebp - 0x2c], 8
jb 0x40418e
push dword [ebp - 0x40]
call fcn.004a8256
add esp, 4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4041d5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4041d1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bl, 1
jmp 0x4041d7
xor bl, bl
cmp dword [ebp - 0x14], 8
jb 0x4041e8
push dword [ebp - 0x28]
call fcn.004a8256
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.004a79be
mov esp, ebp
pop ebp
ret
Function at 0x404370
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cabbb
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x4f96c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x488], edi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov dword [ebp - 4], eax
push 0x204
push eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
push eax
call fcn.004ad1e0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4043f0
mov eax, dword [edi]
jmp 0x4043f2
mov eax, edi
push eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004a8971
add esp, 0xc
lea eax, [ebp - 0x21c]
push str..
push 0x104
push eax
call fcn.004a88b9
add esp, 0xc
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404442
xor esi, esi
jmp 0x404530
cmp word [ebp - 0x458], 0x2e
je 0x40450e
mov ecx, dword [ebp - 0x488]
call fcn.00401710
push eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004a8971
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x4e7770
push 0x104
push eax
call fcn.004a88b9
add esp, 0xc
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004a88b9
add esp, 0xc
cmp word [ebp - 0x21c], 0
jne 0x4044b2
xor eax, eax
jmp 0x4044cf
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
jmp 0x4044c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4044c0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00408930
test byte [ebp - 0x484], 0x10
je 0x404500
push esi
mov edx, ebx
lea ecx, [ebp - 0x234]
call fcn.00404370
add esp, 4
mov ecx, ebx
jmp 0x404502
mov ecx, esi
lea eax, [ebp - 0x234]
push eax
call fcn.00405670
lea eax, [ebp - 0x484]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404442
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 1
cmp dword [ebp - 0x220], 8
jb 0x404547
push dword [ebp - 0x234]
call fcn.004a8256
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a79be
mov esp, ebp
pop ebp
ret
Function at 0x408b00
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x408b0b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00408b20
Function at 0x408fb0
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 0x40903c
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.004ad320
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 0x40900f
sub eax, esi
jmp 0x409011
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x409000
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 0x40902f
sub eax, esi
jmp 0x409031
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x409020
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x409170
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 0x409069
xor eax, eax
jmp 0x4090bc
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x409086
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.004031d0
jmp 0x40909e
cmp eax, 2
jne 0x4090a4
mov edx, dword [ebx]
test edx, edx
jne 0x409095
xor eax, eax
jmp 0x4090a1
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.00408b20
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call fcn.004ad320
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 0x4090e4
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 0x4090f8
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x408fc0
mov edx, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp edx, ecx
jae 0x409170
mov esi, dword [edi + 0x6c]
add esi, ebx
cmp edx, esi
jae 0x409140
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.004ad1e0
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 0x409170
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.004ad1e0
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409b00
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 0x409b19
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 0x409b54
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x409b50
lea ebx, [ebx]
cmp esi, edx
jae 0x409b54
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x409b40
cmp esi, edx
jb 0x409b5b
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 0x411fb0
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 0x411fe9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41202b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor esi, esi
cmp dword [ebp + 0x20], 8
jb 0x411ffc
push dword [ebp + 0xc]
call fcn.004a8256
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 0x412021
push dword [ebp + 0x24]
call fcn.004a8256
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 0x4e0ee8
cmovae ecx, dword [ebp + 0x24]
mov ebx, eax
push ecx
call fcn.004a79cd
mov edi, eax
add esp, 8
test edi, edi
je 0x41207f
push edi
push ebx
push 1
push dword [ebp - 4]
call fcn.004a83b4
cmp ebx, eax
mov ecx, 1
push edi
cmove esi, ecx
call fcn.004a84ed
add esp, 0x14
pop ebx
jmp 0x411feb
Function at 0x412090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb947
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x4f96c0]
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 0x4120fc
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 0x412124
xor ecx, ecx
jmp 0x412139
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412130
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x160]
call fcn.004018d0
lea eax, [esi + 0x38c]
mov dword [ebp - 4], 0
push eax
lea edx, [esi + 0x44c]
lea ecx, [ebp - 0x190]
call fcn.00415240
add esp, 4
push 0x4e77cc
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x148]
call fcn.004024d0
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x17c], 0x10
jb 0x4121a2
push dword [ebp - 0x190]
call fcn.004a8256
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x464]
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.00401720
push str..lnk
lea edx, [esi + 0x374]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x178]
call fcn.004063a0
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.00404570
add esp, 0x18
mov esi, eax
cmp dword [ebp - 0x164], 0x10
jb 0x412282
push dword [ebp - 0x178]
call fcn.004a8256
add esp, 4
cmp dword [ebp - 0x11c], 0x10
mov dword [ebp - 0x164], 0xf
mov dword [ebp - 0x168], 0
mov byte [ebp - 0x178], 0
jb 0x4122b4
push dword [ebp - 0x130]
call fcn.004a8256
add esp, 4
cmp dword [ebp - 0x134], 0x10
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
jb 0x4122e6
push dword [ebp - 0x148]
call fcn.004a8256
add esp, 4
cmp dword [ebp - 0x14c], 0x10
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
jb 0x412318
push dword [ebp - 0x160]
call fcn.004a8256
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.004a79be
mov esp, ebp
pop ebp
ret