joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4434a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4434ab
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x443567
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8700]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8700]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8700]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8700]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8700]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8700]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8700]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8700]
sub edi, 1
jne 0x4434c0
pop edi
test esi, esi
je 0x44358a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8700]
sub esi, 1
jne 0x443570
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4435a0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x4f8700]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8700]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x444090
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov ebx, esi
mov dword [ebp - 8], esi
imul ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x4440d8
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4440ca
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp - 4]
call fcn.0047e830
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x444110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x44414b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x444146
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x444178
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x44415c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.0047e830
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x44418c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x444183
cmp byte [esi + 8], 0
je 0x444183
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x445890
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x445a3a
cmp dword [ebx + 4], 0xffffffff
jne 0x445a3a
push edi
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4458c7
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x445903
cmp eax, 0x2f
je 0x445903
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4458f0
mov eax, dword [0x4f4818]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
push esi
cmp edi, 1
jne 0x44592e
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x445949
pop esi
pop edi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x445946
cmp edi, 3
je 0x445946
pop esi
pop edi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor al, al
mov byte [ebp - 1], al
mov byte [ebp + 0x13], bl
cmp edi, 1
je 0x44598f
cmp edi, 2
jne 0x4459ab
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x445989
pop esi
pop edi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x445995
mov ebx, esi
mov byte [ebp + 0x13], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 1], al
push 0x20
call fcn.0047ceec
add esp, 4
mov esi, eax
cmp edi, 1
je 0x4459e6
cmp edi, 2
je 0x4459e6
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x445a17
mov al, byte [ebp + 0x13]
mov byte [esi + 0x10], al
mov al, byte [ebp - 1]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x445a17
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
mov ecx, esi
call fcn.00444510
mov ecx, dword [ebp - 8]
mov edx, 0x200
pop esi
pop edi
pop ebx
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x446240
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x446272
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x446272
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x44635c
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x446291
cmp dx, 0x5c
jne 0x446293
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x446285
cmp edi, ebx
je 0x4462de
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.0047e830
add esp, 0xc
cmp edi, 0x208
jae 0x44636c
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, esi
mov word [ebp + edi - 0x414], ax
call fcn.00446240
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x446303
lea ecx, [ebp - 0x20c]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4462f3
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x446305
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x446320
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x44635c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047cf2f
mov esp, ebp
pop ebp
ret
call fcn.0047d970
int3
Function at 0x456ef0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [edx + 0x14]
push ebx
movzx ebx, word [edx + 6]
add eax, 0x18
push esi
add eax, edx
xor esi, esi
push edi
mov edi, ecx
test ebx, ebx
je 0x456f28
nop dword [eax + eax]
mov edx, dword [eax + 0xc]
cmp edi, edx
jb 0x456f20
mov ecx, dword [eax + 8]
add ecx, edx
cmp edi, ecx
jb 0x456f2f
inc esi
add eax, 0x28
cmp esi, ebx
jb 0x456f10
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, dword [eax + 0x14]
sub eax, edx
add eax, edi
add eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x456f40
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, 0xffffffff
je 0x45702b
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
test eax, eax
je 0x457024
push esi
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x45701a
mov eax, 0x5a4d
cmp ax, word [esi]
jne 0x457013
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x457010
push dword [ebp + 0xc]
mov edx, edi
mov ecx, esi
call fcn.004573c0
add esp, 4
test al, al
je 0x456fd3
mov bl, 1
jmp 0x457010
mov ecx, dword [edi + 0x88]
test ecx, ecx
je 0x457010
push esi
mov edx, edi
call fcn.00456ef0
mov edx, dword [ebp + 0xc]
mov ecx, edi
add edx, 0x18
push edx
push 0x69
push 0x4fed44
push 0
push eax
push eax
mov edx, esi
call fcn.00457040
add esp, 0x1c
movzx ebx, bl
test al, al
mov ecx, 1
cmovne ebx, ecx
mov edi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4573c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, word [edx + 0x14]
push ebx
movzx ebx, word [edx + 6]
push esi
lea esi, [edx + 0x18]
mov dword [ebp - 0xc], ecx
add esi, eax
xor cl, cl
push edi
xor eax, eax
mov byte [ebp - 1], cl
xor edi, edi
test ebx, ebx
je 0x45741e
nop word [eax + eax]
push esi
push str..rsrc
call fcn.004af913
add esp, 8
test eax, eax
je 0x457413
inc edi
add esi, 0x28
cmp edi, ebx
jb 0x4573f0
mov cl, byte [ebp - 1]
xor esi, esi
xor eax, eax
jmp 0x457420
mov eax, dword [esi + 0x14]
mov esi, dword [esi + 8]
mov cl, byte [ebp - 1]
jmp 0x457420
xor esi, esi
mov ebx, dword [ebp - 0xc]
add ebx, eax
je 0x45751f
lea eax, [esi - 2]
push 2
add eax, ebx
push eax
push 0x4fed54
call fcn.004affe0
add esp, 0xc
test eax, eax
jne 0x457515
cmp dword [esi + ebx - 6], 1
jne 0x457515
mov eax, dword [esi + ebx - 0xe]
lea edi, [esi - 0xa]
mov ecx, dword [edi + ebx]
sub edi, 8
mov esi, dword [ebp + 8]
mov dword [ebp - 8], eax
mov edx, dword [edi + ebx]
sub edi, ecx
test byte [esi + 0x24], 1
mov dword [ebp - 0xc], edx
je 0x4574a3
add esi, 0x18
push esi
push ecx
mov ecx, esi
call fcn.00417a50
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, eax
je 0x45749d
sub eax, ecx
push eax
lea eax, [edi + ebx]
push eax
push ecx
call fcn.0047e830
add esp, 0xc
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
sub edi, eax
test byte [esi + 0x24], 4
je 0x4574dd
add esi, 0xc
push esi
push eax
mov ecx, esi
call fcn.00417a50
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, eax
je 0x4574da
sub eax, ecx
push eax
lea eax, [edi + ebx]
push eax
push ecx
call fcn.0047e830
mov esi, dword [ebp + 8]
mov al, 1
add esp, 0xc
mov byte [ebp - 1], al
jmp 0x4574e0
mov esi, dword [ebp + 8]
mov al, byte [ebp - 1]
test byte [esi + 0x24], 2
je 0x457521
push esi
push dword [ebp - 0xc]
mov ecx, esi
call fcn.00417a50
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, eax
je 0x457515
sub edi, dword [ebp - 0xc]
sub eax, ecx
push eax
add edi, ebx
push edi
push ecx
call fcn.0047e830
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, cl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45dc6f
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0x18
mov eax, 0x4deb24
call fcn.0047cf77
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp + 8]
push 0x1c
push esi
mov dword [ebp - 4], ebx
call fcn.004168f0
mov edi, str.SpreadsheetToolsempty.xls
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x14], 3
call fcn.0048a0cd
add esp, 0xc
mov ecx, esi
push eax
push edi
call fcn.00409280
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x45dcb9
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45dd7b
call fcn.00460d7e
mov edi, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push str.RT_ZIPPED_DATA
push 0x7f
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x45dd38
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x45dd38
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45dd38
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x45dd38
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
push edi
mov ecx, eax
call fcn.00417a50
push edi
push ebx
push dword [ebp - 0x24]
call fcn.0047e830
add esp, 0xc
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
je 0x45dd73
lea ecx, [ebp - 0xd]
call fcn.00429230
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 4], 2
jb 0x45dd56
mov eax, dword [esi]
push 0
push eax
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0xd]
sub eax, dword [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00429640
lea ecx, [ebp - 0xd]
call fcn.00429240
lea ecx, [ebp - 0x24]
call fcn.00407c60
mov eax, esi
call fcn.0047cf40
ret
Function at 0x45e11d
Capabilities:
Delete registry key

Disassembly:
push 0xa8
mov eax, 0x4debe2
call fcn.0047cfab
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x90]
xor ebx, ebx
inc ebx
call fcn.0042a7b0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x90]
call fcn.0042b1e0
test eax, eax
je 0x45e285
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], bl
push eax
lea ecx, [ebp - 0x28]
call fcn.004102d0
mov esi, str.ExcelResiliencyDisabledItems
push esi
call fcn.0048a0cd
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00409280
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0xb4]
push SysReAllocString
push eax
call fcn.0040ea80
mov eax, dword [ebp - 0xb4]
xor esi, esi
test eax, eax
cmovne esi, ebx
mov byte [ebp - 4], 2
je 0x45e1c1
push eax
call dword [ebp - 0xa8]
mov byte [ebp - 4], bl
test esi, esi
jne 0x45e229
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.004102d0
push str.ExcelResiliencyStartupItems
call fcn.0048a0cd
pop ecx
push eax
push str.ExcelResiliencyStartupItems
lea ecx, [ebp - 0x28]
call fcn.00409280
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0xb4]
push SysReAllocString
push eax
call fcn.0040ea80
mov eax, dword [ebp - 0xb4]
test eax, eax
cmovne esi, ebx
mov byte [ebp - 4], 3
je 0x45e222
push eax
call dword [ebp - 0xa8]
mov byte [ebp - 4], bl
test esi, esi
je 0x45e27d
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.004102d0
mov esi, str.ExcelResiliency
push esi
call fcn.0048a0cd
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00409280
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x45e27d
mov esi, str.Data_can_not_be_removed_from_Registry.
push esi
call fcn.0048a0cd
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00410170
xor ebx, ebx
lea ecx, [ebp - 0x28]
call fcn.00410420
lea ecx, [ebp - 0x90]
call fcn.0042ace0
mov eax, ebx
call fcn.0047cf55
ret
Function at 0x45e315
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x74
mov eax, 0x4dec4f
call fcn.0047cfab
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
call fcn.00460d7e
push 0x4e4554
mov esi, eax
push 0x7d
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x45e453
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x68], eax
test eax, eax
je 0x45e453
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45e453
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x45e453
lea ecx, [ebp - 0x80]
call fcn.0042fa40
mov esi, dword [ebp - 0x68]
mov dword [ebp - 4], ebx
test esi, esi
je 0x45e44b
lea eax, [ebp - 0x80]
push eax
push esi
mov ecx, eax
call fcn.00417a50
push esi
push edi
push dword [ebp - 0x80]
call fcn.0047e830
add esp, 0xc
lea ecx, [ebp - 0x4c]
call fcn.00433960
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x4c]
call fcn.00433cc0
test eax, eax
je 0x45e443
mov esi, dword [ebp - 0x6c]
lea ecx, [ebp - 0x80]
push esi
call fcn.004303f0
push esi
lea ecx, [ebp - 0x30]
call fcn.00401910
mov byte [ebp - 4], 2
cmp byte [esi + 4], bl
jne 0x45e439
push ebx
lea ecx, [ebp - 0x30]
call fcn.00403640
test al, al
jne 0x45e439
cmp dword [ebp - 0x18], ebx
je 0x45e43b
push dword [ebp - 0x70]
lea eax, [ebp - 0x64]
push eax
call fcn.00460c08
pop ecx
pop ecx
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x45e415
mov ecx, dword [ecx]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x1010
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.00460bb2
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.00410420
jmp 0x45e43b
mov bl, 1
lea ecx, [ebp - 0x30]
call fcn.00401970
lea ecx, [ebp - 0x4c]
call fcn.004339f0
lea ecx, [ebp - 0x80]
call fcn.0042fa60
mov al, bl
call fcn.0047cf55
ret
Function at 0x45eb64
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x468
mov eax, 0x4dee15
call fcn.0047cfab
mov esi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x474], esi
xor eax, eax
mov dword [ebp - 0x45c], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x45c], 1
call fcn.00460d7e
push 0x4e4554
mov ebx, eax
push 0x7d
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x460], eax
test eax, eax
je 0x45eca0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x45eca0
push dword [ebp - 0x460]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45eca0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x45eca0
lea ecx, [ebp - 0x470]
call fcn.0042fa40
mov dword [ebp - 4], 1
test edi, edi
je 0x45ec95
lea eax, [ebp - 0x470]
push eax
push edi
mov ecx, eax
call fcn.00417a50
push edi
push ebx
push dword [ebp - 0x470]
call fcn.0047e830
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00433960
lea eax, [ebp - 0x470]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2c]
call fcn.00433cc0
test eax, eax
je 0x45ec8d
lea ecx, [ebp - 0x458]
call fcn.0042c390
lea eax, [ebp - 0x458]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x470]
call fcn.004303f0
lea eax, [ebp - 0x450]
mov ecx, esi
push eax
call fcn.004102d0
lea ecx, [ebp - 0x458]
call fcn.0042cb80
lea ecx, [ebp - 0x2c]
call fcn.004339f0
lea ecx, [ebp - 0x470]
call fcn.0042fa60
mov eax, esi
call fcn.0047cf55
ret

Function at 0x45f201
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0x10]
push ebx
push esi
push dword [ebp + 0xc]
xor bl, bl
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x45f269
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45f268
test edi, edi
je 0x45f268
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x45f268
mov esi, dword [ebp + 0x14]
mov ecx, esi
push esi
push edi
call fcn.00417a50
push edi
push dword [ebp + 0x10]
push dword [esi]
call fcn.0047e830
add esp, 0xc
inc bl
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret

Function at 0x45f30a
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x45f31b
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45f338
cmp dword [esi + 0x14], 8
jb 0x45f32f
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
pop ebp
ret
Function at 0x460beb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x460bf9
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x4c6489
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c6070

Function at 0x4c6494
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c61fa

Function at 0x4cbb6a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cb522

Function at 0x4cbf04
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cbdd8
Function at 0x401c27
Capabilities:
Create process on windows

Disassembly:
sub esp, 0
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x404045
push 0
call dword [sym.imp.SHELL32.DLL_ShellExecuteA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
add esp, 0
ret 8

Function at 0x4024f1
Capabilities:
Terminate process

Disassembly:
sub esp, 0
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.004022bf
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x41b210
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040cbb0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41b2db
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41b2db
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41b28e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41b299
or bh, 8
and edi, 0x8000000
je 0x41b2b4
mov eax, dword [0x438dfc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41b2db
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret