joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e090
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x30008
call fcn.004d0b30
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x49e0aa
cmp word [esi], 0
jne 0x49e0af
mov esi, str.ERROR
xor eax, eax
lea edx, [esp + 0xc]
push edx
mov word [esp + 0x10014], ax
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
mov word [esp + 0x10], cx
mov ecx, dword [esp + 0x3001c]
push 0x8000
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp word [ebx], 0
je 0x49e12d
cmp word [edi], 0
jne 0x49e0ed
lea edi, [esp + 8]
lea edx, [esp + 0x10]
push edx
push 0xffff
lea eax, [esp + 0x10018]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [0x515e10]
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x1001c]
push eax
push ecx
call fcn.004aa2a0
pop edi
pop esi
add esp, 0x30008
ret 4
cmp word [edi], 0
je 0x49e14e
lea ecx, [esp + 0x10]
push ecx
push 0xffff
lea edx, [esp + 0x10018]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
jmp 0x49e166
lea eax, [esp + 0x10]
push eax
push 0xffff
lea ecx, [esp + 0x10018]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x49e108
lea eax, [esp + 0x10010]
cmp word [eax], 0
jne 0x49e186
cmp word [eax + 2], 0
je 0x49e108
mov edx, 0xa
mov word [eax], dx
add eax, 2
jmp 0x49e171

Function at 0x49e190
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0x258
push ebx
push ebp
push esi
mov esi, eax
mov ebp, 1
push edi
mov dword [esp + 0x10], ebp
test esi, esi
je 0x49e20c
cmp word [esi], 0
je 0x49e20c
push 4
push 0x509820
push esi
call fcn.004c6e79
add esp, 0xc
test eax, eax
mov eax, esi
jne 0x49e1c8
lea eax, [esi + 8]
mov ebx, 0x4efed4
call fcn.00409df0
test eax, eax
je 0x49e1fb
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x49e20c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
test al, al
jne 0x49e1ee
push 0
push 0
push 1
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x49e1ee
mov edx, dword [esp + 0x26c]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49e235
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, esi
sar eax, 1
mov esi, eax
mov ecx, 0x5d
push 0
mov word [edx + esi*2], cx
lea edx, [esp + 0x18]
push edx
push 4
push 0x50915c
push edi
lea ebx, [esi + esi + 2]
call ebp
test eax, eax
je 0x49e292
cmp dword [esp + 0x14], 4
jne 0x49e292
mov ecx, dword [esp + 0x26c]
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push ecx
push edi
call ebp
test eax, eax
je 0x49e292
cmp dword [esp + 0x14], ebx
je 0x49e29a
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x49e2a9
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x26c]
pop edi
xor edx, edx
mov word [eax + esi*2], dx
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x258
ret
Function at 0x49eb70
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
je 0x49ec37
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [0x51161c]
mov edx, dword [ecx + 0xd0]
lea eax, [esp + 0x14]
push eax
or edx, 0x20019
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x49ec44
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0049eb70
mov edx, dword [esp + 0x18]
add esp, 4
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x49ec44
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
jne 0x49ec44
lea ecx, [esp + 0x18]
push ecx
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
jne 0x49ebba
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x49ec60
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d75ee
push eax
mov dword fs:[0], esp
push ebp
mov ebp, dword [esp + 0x18]
push esi
test ebx, ebx
je 0x49ed86
test edi, edi
je 0x49ec8d
cmp word [edi], 0
jne 0x49ec95
test ebp, ebp
je 0x49ed86
mov ecx, dword [0x51161c]
mov edx, dword [ecx + 0xd0]
lea eax, [esp + 0x1c]
push eax
or edx, 0x2001f
push edx
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x49ed58
mov eax, dword [esp + 0x1c]
test ebp, ebp
jne 0x49ed6f
push eax
call fcn.0049eb70
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x49ed58
mov eax, 1
test byte [0x51a340], al
jne 0x49ed36
or dword [0x51a340], eax
push 0x509164
mov dword [esp + 0x14], esi
call fcn.0049fce0
add esp, 4
push eax
push str.36_3__a_
call fcn.0049fc00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x51a33c], eax
mov dword [esp + 0x10], 0xffffffff
jmp 0x49ed3b
mov eax, dword [0x51a33c]
mov edx, dword [0x51161c]
mov ecx, dword [edx + 0xd0]
test ecx, ecx
je 0x49ed65
test eax, eax
je 0x49ed65
push 0
push ecx
push edi
push ebx
call eax
mov esi, eax
cmp esi, 0xffffffff
jne 0x49ed8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x49ed8d
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x49ed56
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x1c]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x49ed58
mov esi, 0x57
mov eax, esi
mov edx, dword [0x51161c]
mov dword [edx + 0x30], eax
mov edx, dword [esp + 0x18]
test esi, esi
setne al
movzx ecx, al
push ecx
push edx
call fcn.0042efe0
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0xc
ret 8
Function at 0x4a06e0
Capabilities:
Clear file content

Disassembly:
mov eax, dword [esi + 0x2c]
push ebx
push ebp
xor ebp, ebp
push edi
cmp eax, ebp
je 0x4a0706
sub eax, dword [esi + 0x30]
mov edi, dword [esi]
sub eax, dword [esi + 8]
push 1
cdq
push edx
push eax
mov eax, dword [edi + 0x14]
mov ecx, esi
call eax
mov dword [esi + 0x2c], ebp
mov dword [esi + 8], ebp
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x4a0723
cmp dword [esi + 0x2c], ebp
jne 0x4a0723
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [esi + 0x30]
push eax
mov ecx, esi
call edx
mov dword [esi + 8], ebp
mov edx, dword [esi]
xor eax, eax
mov word [esi + 0x28], ax
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
push ebp
mov ebp, dword [esp + 0x18]
mov ebx, edx
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
mov edi, eax
mov eax, dword [esp + 0x14]
push ebp
push eax
mov ecx, esi
call edx
test al, al
je 0x4a0790
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4a0790
cmp ebp, ebx
jg 0x4a0770
jl 0x4a0768
cmp dword [esp + 0x10], edi
jae 0x4a0770
mov eax, dword [esp + 0x10]
mov ecx, ebp
jmp 0x4a0774
mov eax, edi
mov ecx, ebx
mov edx, dword [esi]
push 0
push ecx
push eax
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
pop edi
pop ebp
pop ebx
ret 8
pop edi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
ret 8
Function at 0x4a4250
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4a4257
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4a432d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5031e0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5031e0]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5031e0]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5031e0]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5031e0]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5031e0]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5031e0]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5031e0]
add ecx, 8
sub edx, 8
dec esi
jne 0x4a4270
pop edi
test edx, edx
je 0x4a434a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5031e0]
inc ecx
dec edx
jne 0x4a4331
not eax
pop esi
ret

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

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5031e0]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5031e0]
mov dword [edx + 8], ecx
ret

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

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x5031e0]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x5031e0]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x4a4aa0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x4a4ad2
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a4ac8
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x4a4ae5
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.004cd6c0
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x4a4b00
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x4a4b33
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a4b2d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x4a4b5f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x4a4b45
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.004cd6c0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x4a4b76
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x4a4b70
cmp byte [esi + 8], 0
je 0x4a4b70
or eax, 0xffffffff
add esp, 8
ret
Function at 0x4a4cb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x4a4cf5
cmp byte [esi + 1], 0
je 0x4a4cfd
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x4a4d12
cmp byte [esi + 1], 0
je 0x4a4d04
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x4a4d1b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x4a4cce
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x4a4d1b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x4a4d2f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.004c4f28
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4a4d4d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x4a4e5f
jmp 0x4a4d70
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x4a4d81
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x4a4d9a
mov ebp, 0x404
cmp byte [esi], 0
je 0x4a4dbf
cmp byte [esi + 1], 0
je 0x4a4e5f
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4a4dc2
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x4a4dea
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a4de4
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x4a4e10
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x4a4dfb
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.004cd6c0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x4a4e5f
lea eax, [ebp - 3]
test eax, eax
js 0x4a4e4a
dec eax
cmp byte [eax + ebx], 0x50
jne 0x4a4e3c
cmp byte [eax + ebx + 1], 0x4b
jne 0x4a4e3c
cmp byte [eax + ebx + 2], 5
jne 0x4a4e3c
cmp byte [eax + ebx + 3], 6
je 0x4a4e42
test eax, eax
jns 0x4a4e20
jmp 0x4a4e4a
add eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x4a4e5f
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x4a4d64
push ebx
call fcn.004c57e5
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x4a58e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x4a58f8
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x4a58ed
cmp dword [edi + 0x7c], ebx
je 0x4a5907
call fcn.004a5cc0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004a5650
add esp, 0xc
test eax, eax
je 0x4a592d
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.004c4f28
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x4a596f
push 0x4000
call fcn.004c4f28
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
cmp eax, ebx
jne 0x4a597b
push ebp
call fcn.004c57e5
add esp, 4
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
push esi
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x18], ebx
cmp eax, ebx
jne 0x4a59c4
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.004a4610
test eax, eax
jne 0x4a59c4
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x4a59ee
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x4a59f7
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
movzx eax, byte [ebp + 0x6c]
mov esi, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [ebp + 0x70]
mov dword [ebp + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
cmp esi, ebx
je 0x4a5a32
mov cl, byte [esi]
cmp cl, bl
je 0x4a5a32
call fcn.004a4350
inc esi
jne 0x4a5a24
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
pop esi
mov dword [edi + 0x7c], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x4a5e20
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x4a5ec6
cmp dword [ebx + 4], 0xffffffff
jne 0x4a5ec6
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a5e50
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp eax, 0x5c
je 0x4a5e87
cmp eax, 0x2f
je 0x4a5e87
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a5e74
mov eax, dword [0x4e7bb8]
mov dword [edi], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea esi, [esp + 0x1c]
call fcn.004a4a60
add esp, 8
test eax, eax
jne 0x4a5eab
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ecx
ret 8
call fcn.004a4e80
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop esi
pop ecx
ret 8
pop edi
mov eax, 0x1000000
pop esi
pop ecx
ret 8

Function at 0x4a7f70
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x258
push ebx
test esi, esi
je 0x4a7ff1
cmp word [esi], 0
je 0x4a7ff1
push 4
push 0x509820
push esi
call fcn.004c6e79
add esp, 0xc
test eax, eax
mov eax, esi
jne 0x4a7f9a
lea eax, [esi + 8]
mov ebx, 0x4efed4
call fcn.00409df0
test eax, eax
je 0x4a7fd4
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4a7ff1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x4a7fca
mov ecx, dword [esp + 8]
mov dword [edi], ecx
mov al, 1
pop ebx
add esp, 0x258
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test edi, edi
je 0x4a7fe1
mov dword [edi], eax
xor edx, edx
cmp eax, 0xffffffff
setne al
pop ebx
add esp, 0x258
ret
xor al, al
pop ebx
add esp, 0x258
ret

Function at 0x4a82f0
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp], eax
cmp eax, 0xffffffff
jne 0x4a8327
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4a8324
or eax, 0xffffffff
or edx, 0xffffffff
add esp, 0xc
ret
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
ret

Function at 0x4a8690
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004d0b30
push esi
push 0x7fff
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x4a86cf
lea edx, [esi + esi + 2]
push edx
lea eax, [esp + 8]
push eax
push edi
call fcn.004cd6c0
add esp, 0xc
mov eax, esi
pop esi
add esp, 0x10000
ret
xor ecx, ecx
mov word [edi], cx
pop esi
add esp, 0x10000
ret
Function at 0x4a86e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea ecx, [esp + 4]
push ecx
or eax, 1
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4a8707
xor eax, eax
mov word [esi], ax
add esp, 8
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push edi
lea ecx, [esp + 4]
push ecx
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 8]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x4a877e
mov eax, dword [esp]
test eax, eax
je 0x4a877e
shr eax, 1
dec eax
mov dword [esp], eax
cmp word [esi + eax*2], 0
jne 0x4a8766
test eax, eax
je 0x4a8785
cmp word [esi + eax*2 - 2], 0
jne 0x4a8785
dec eax
mov dword [esp], eax
jne 0x4a8754
add esp, 8
ret
inc eax
mov dword [esp], eax
cmp eax, 0x104
jae 0x4a877e
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [esp]
add esp, 8
ret
xor edx, edx
mov word [esi], dx
xor eax, eax
add esp, 8
ret
Function at 0x4a9010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x20]
push edi
xor edi, edi
mov dword [esp + 0x10], edi
cmp esi, edi
je 0x4a9037
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
jmp 0x4a903d
mov ebx, dword [0x515ed0]
cmp ebx, edi
je 0x4a919b
mov eax, ebp
cmp ebp, edi
jge 0x4a9052
neg eax
movzx eax, ax
jmp 0x4a9080
jne 0x4a9059
mov eax, 1
lea ecx, [esp + 0x14]
push ecx
push 0x4a8fe0
push 0xe
push ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0x516e74
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov eax, dword [esp + 0x1c]
cmp eax, 0x516e74
je 0x4a9178
push 0xe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4a9178
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x4a9178
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4a9178
cmp dword [esp + 0x2c], 0xffffffff
jne 0x4a90cd
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
cmp dword [esp + 0x2c], 0
jne 0x4a90e0
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x2c], eax
movzx eax, word [edi + 4]
lea esi, [edi + 6]
cmp eax, 1
jle 0x4a9126
lea edx, [esi + 0xe]
lea edi, [eax - 1]
mov al, byte [edx]
mov cl, byte [esi]
cmp al, cl
jbe 0x4a9108
movzx eax, cl
xor ecx, ecx
cmp eax, dword [esp + 0x2c]
setl cl
jmp 0x4a9114
movzx eax, al
xor ecx, ecx
cmp eax, dword [esp + 0x2c]
setge cl
mov eax, ecx
test eax, eax
je 0x4a911c
mov esi, edx
add edx, 0xe
dec edi
jne 0x4a90f2
mov ebp, dword [esp + 0x28]
movzx edx, word [esi + 0xc]
push 3
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4a9174
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a9174
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4a9174
push 0
push 0
push 0
push 0x30000
push 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x4a918c
test edi, edi
je 0x4a918c
mov dword [eax], ebx
jmp 0x4a9197
test esi, esi
je 0x4a9197
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x4a91d1
test ebp, ebp
jle 0x4a91b4
lea eax, [ebp - 1]
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
xor eax, eax
cmp ebp, 0xffffffff
setge al
dec eax
and eax, ebp
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret