joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fa1e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
cmp eax, ebx
je 0x40fb9a
cmp byte [eax], bl
je 0x40fb9a
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x40fb9a
cmp byte [edi], bl
je 0x40fb9a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call esi
push edi
mov dword [ebp - 0xc], eax
call esi
cmp dword [ebp - 0xc], eax
jle 0x40fa71
push dword [ebp + 8]
jmp 0x40fa72
push edi
call esi
push eax
push edi
push dword [ebp + 8]
call fcn.00449ba0
add esp, 0xc
test eax, eax
jne 0x40fa8b
inc eax
jmp 0x40fb9c
push dword [ebp + 8]
call fcn.0040e912
push edi
mov dword [ebp - 4], eax
call fcn.0040e912
cmp dword [ebp - 4], eax
jne 0x40fb9a
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp + 8]
cmp dword [ebp - 0xc], ebx
je 0x40fab9
mov eax, dword [ebp + 0xc]
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40fb4a
mov eax, dword [ebp - 4]
mov ecx, 0x1000
add eax, ecx
cmp dword [ebp - 0xc], ebx
jne 0x40fb10
cmp eax, ecx
ja 0x40faec
mov eax, ecx
push 1
push eax
call fcn.00447e84
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x40fb3f
push ebx
push ebx
push ebx
push esi
call edi
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0x10]
jmp 0x40fb38
cmp eax, ecx
ja 0x40fb16
mov eax, ecx
push 1
push eax
call fcn.00447e84
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40fb3f
push ebx
push ebx
push ebx
push esi
call edi
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, ebx
je 0x40fb4a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jl 0x40faae
mov esi, dword [ebp - 0x10]
cmp esi, ebx
je 0x40fb7b
cmp dword [ebp - 8], ebx
je 0x40fb7b
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call fcn.0044855d
add esp, 0xc
test eax, eax
jne 0x40fb7b
xor edi, edi
inc edi
jmp 0x40fb7d
xor edi, edi
cmp esi, ebx
je 0x40fb88
push esi
call fcn.00447ab6
pop ecx
cmp dword [ebp - 8], ebx
je 0x40fb96
push dword [ebp - 8]
call fcn.00447ab6
pop ecx
mov eax, edi
jmp 0x40fb9c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x410a5b
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4755d0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x98]
xor ebx, ebx
mov esi, 0x103
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x77]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x78], bl
call fcn.00448090
add esp, 0xc
cmp edi, ebx
je 0x410b75
cmp byte [edi], bl
je 0x410b75
cmp dword [ebp - 0x80], ebx
je 0x410b75
cmp dword [ebp + 0xa4], 1
jb 0x410b75
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cmp eax, esi
jle 0x410ad9
mov eax, esi
jmp 0x410ae1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x78]
push eax
call fcn.0040d1b6
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
lea eax, [ebp - 0x78]
push eax
call fcn.00410914
mov edi, eax
cmp edi, 0xffffffff
je 0x410b70
cmp edi, ebx
je 0x410b70
cmp dword [ebp + 0x9c], ebx
jge 0x410b28
push 2
push ebx
push ebx
jmp 0x410b49
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push edi
call esi
cmp eax, dword [ebp + 0x9c]
jae 0x410b40
push ebx
push edi
call esi
jmp 0x410b46
mov eax, dword [ebp + 0x9c]
push ebx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xa4]
push ebx
lea ecx, [ebp - 0x7c]
push ecx
push eax
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x7c]
jmp 0x410b77
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448080
add ebp, 0x90
leave
ret 0x10
Function at 0x410b91
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x3d8]
sub esp, 0x458
mov eax, dword [0x4755d0]
xor eax, ebp
mov dword [ebp + 0x3d4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3e0]
xor ebx, ebx
push 0x13c
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x78], ebx
call fcn.00448090
mov esi, 0x103
push esi
lea eax, [ebp + 0xc9]
push ebx
push eax
mov byte [ebp + 0xc8], bl
call fcn.00448090
push esi
lea eax, [ebp + 0x2d1]
push ebx
push eax
mov byte [ebp + 0x2d0], bl
call fcn.00448090
push esi
lea eax, [ebp + 0x1cd]
push ebx
push eax
mov byte [ebp + 0x1cc], bl
call fcn.00448090
add esp, 0x30
cmp edi, ebx
je 0x410d96
cmp byte [edi], bl
je 0x410d96
push 0x2a
push edi
call fcn.00447970
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
pop ecx
pop ecx
test eax, eax
jne 0x410c60
push 0x3f
push edi
call fcn.00447970
pop ecx
pop ecx
test eax, eax
jne 0x410c60
push eax
push edi
call fcn.0040dde2
test eax, eax
jne 0x410c60
push edi
call ebx
cmp byte [eax + edi - 1], 0x5c
je 0x410c60
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x410d98
and dword [ebp - 0x7c], 0
push edi
call ebx
inc eax
cmp eax, esi
jle 0x410c70
mov eax, esi
jmp 0x410c74
push edi
call ebx
inc eax
push eax
push edi
lea eax, [ebp + 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0
lea eax, [ebp + 0x1cc]
push eax
call fcn.0040dde2
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
je 0x410cbb
lea eax, [ebp + 0x1cc]
push eax
call ebx
lea ecx, [ebp + 0x1cc]
cmp byte [eax + ecx - 1], 0x5c
jne 0x410cbb
push str..
mov eax, ecx
push eax
call edi
push 3
lea eax, [ebp + 0xc8]
push eax
lea eax, [ebp + 0x1cc]
push eax
call fcn.0040eb69
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
je 0x410d7f
lea esi, [ebp + 0x2d0]
lea eax, [ebp + 0xc8]
push eax
lea eax, [ebp + 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0x2d0]
push eax
call ebx
cmp byte [eax + esi - 1], 0x5c
je 0x410d25
push 0x45c800
lea eax, [ebp + 0x2d0]
push eax
call edi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x2d0]
push eax
call edi
push 0
lea eax, [ebp + 0x2d0]
push eax
call fcn.0040dde2
test eax, eax
jne 0x410d6a
inc dword [ebp - 0x7c]
push 0x80
lea eax, [ebp + 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp + 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x410d8d
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410cf3
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x7c]
jmp 0x410d98
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [ebp + 0x3d4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448080
add ebp, 0x3d8
leave
ret 4
Function at 0x4111de
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x411201
mov eax, reloc.ODBC32.dll_SQLAllocConnect
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41123f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret
xor eax, eax
leave
ret
Function at 0x41505a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x4755d0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push 0x98
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00448090
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x24], 6
jne 0x4150ac
xor eax, eax
inc eax
cmp dword [ebp - 0x20], 0
je 0x4150a7
cmp dword [ebp - 0x20], eax
jne 0x4150ac
cmp byte [ebp + 0x72], al
jne 0x4150ae
xor eax, eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.00448080
add ebp, 0x78
leave
ret

Function at 0x415135
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4755d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0xff
push ebx
lea eax, [ebp - 0x203]
push 0
push eax
mov byte [ebp - 0x204], 0
call fcn.00448090
push ebx
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.00448090
add esp, 0x18
test esi, esi
jne 0x41519d
xor eax, eax
jmp 0x4152b4
cmp al, 0x20
je 0x41519c
cmp al, 9
je 0x41519c
cmp al, 0xd
je 0x41519c
cmp al, 0xa
jne 0x4151a3
inc esi
mov al, byte [esi]
test al, al
jne 0x41518c
mov al, byte [esi]
push edi
mov edi, esi
cmp al, 0x22
je 0x4151b0
cmp al, 0x27
jne 0x4151cc
inc esi
mov edi, esi
jmp 0x4151db
cmp al, 0x20
je 0x4151e1
cmp al, 9
je 0x4151e1
cmp al, 0xd
je 0x4151e1
cmp al, 0xa
je 0x4151e1
cmp al, 0x23
je 0x4151e1
inc edi
mov al, byte [edi]
test al, al
jne 0x4151b5
jmp 0x4151e1
cmp al, 0x22
je 0x4151e1
cmp al, 0x27
je 0x4151e1
inc edi
mov al, byte [edi]
test al, al
jne 0x4151d2
mov eax, edi
sub eax, esi
inc eax
cmp eax, ebx
jle 0x4151ec
mov eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push eax
push esi
lea eax, [ebp - 0x204]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
lea ecx, [eax + 1]
mov eax, 0xff
cmp ecx, eax
jg 0x415216
push edi
call esi
inc eax
push eax
push edi
lea eax, [ebp - 0x104]
push eax
call ebx
pop edi
mov al, byte [ebp - 0x104]
test al, al
je 0x41525f
cmp al, 0x22
je 0x41523c
cmp al, 0x27
je 0x41523c
cmp al, 0x20
je 0x41523c
cmp al, 9
jne 0x41525f
lea eax, [ebp - 0x103]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x103]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00448130
add esp, 0xc
jmp 0x415222
lea eax, [ebp - 0x104]
push eax
call esi
dec eax
xor esi, esi
jmp 0x41528e
lea ecx, [ebp + eax - 0x104]
mov dl, byte [ecx]
cmp dl, 0x22
je 0x41528a
cmp dl, 0x27
je 0x41528a
cmp dl, 0x20
je 0x41528a
cmp dl, 9
jne 0x415292
mov byte [ecx], 0
dec eax
cmp eax, esi
jg 0x41526d
push 1
push esi
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00448080
leave
ret
Function at 0x4152c2
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4755d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4152ed
push 0x45f088
push edi
call fcn.00447a30
pop ecx
pop ecx
jmp 0x4152ef
xor eax, eax
test eax, eax
jne 0x415330
test edi, edi
je 0x415306
push 0x45f084
push edi
call fcn.00447a30
pop ecx
pop ecx
jmp 0x415308
xor eax, eax
test eax, eax
jne 0x415330
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
call esi
test al, 0x10
jne 0x415329
push edi
call esi
cmp eax, 0xffffffff
je 0x415329
xor eax, eax
inc eax
jmp 0x4153b0
xor eax, eax
jmp 0x4153b0
and dword [ebp - 0x144], 0
push 0x13c
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.00448090
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4153a1
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x45e8e0
lea eax, [ebp - 0x118]
push eax
call edi
test eax, eax
je 0x41538c
push 0x45f080
lea eax, [ebp - 0x118]
push eax
call edi
test eax, eax
jne 0x4153a1
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x415368
or esi, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp esi, 0xffffffff
setne al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00448080
leave
ret

Function at 0x4153be
Capabilities:
Parse credit card information

Disassembly:
mov al, byte [esp + 4]
cmp al, 0x29
jne 0x4153ca
push 9
pop eax
ret
cmp al, 0x41
jl 0x4153d6
cmp al, 0x5a
jle 0x41545d
cmp al, 0x61
jl 0x4153de
cmp al, 0x7a
jle 0x41545d
cmp al, 0x3f
je 0x41545d
cmp al, 0x82
jb 0x4153ea
cmp al, 0xfd
jbe 0x41545d
cmp al, 0x5f
je 0x415459
cmp al, 0x23
je 0x415459
cmp al, 0x60
je 0x415459
cmp al, 0x21
je 0x415459
cmp al, 0x5e
je 0x415455
cmp al, 0x25
je 0x415451
cmp al, 0x2a
je 0x415451
cmp al, 0x2f
je 0x415451
cmp al, 0x2b
je 0x41544d
cmp al, 0x2d
je 0x41544d
cmp al, 0x26
je 0x415449
cmp al, 0x7c
je 0x415449
cmp al, 0x7e
je 0x415449
cmp al, 0x3d
je 0x415445
cmp al, 0x24
je 0x415445
cmp al, 0x3e
je 0x415445
cmp al, 0x3c
je 0x415445
cmp al, 0x7b
je 0x415445
cmp al, 0x7d
je 0x415445
cmp al, 0x3a
je 0x415441
cmp al, 0x3b
je 0x415441
xor eax, eax
ret
xor eax, eax
inc eax
ret
push 2
pop eax
ret
push 3
pop eax
ret
push 4
pop eax
ret
push 5
pop eax
ret
push 6
pop eax
ret
push 7
pop eax
ret
push 8
pop eax
ret
Function at 0x415f03
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4755d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x44], 0
lea edi, [ebp - 0x43]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [ebp + 8]
and dword [ebp - 0x48], 0
stosb byte es:[edi], al
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x24], 0
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x1f
lea eax, [ebp - 0x24]
push eax
push 0xe
mov ebx, 0x400
push ebx
call edi
cmp byte [ebp - 0x24], 0
jne 0x415f5f
mov byte [ebp - 0x24], 0x2e
push 0x1f
lea eax, [ebp - 0x44]
push eax
push 0xf
push ebx
call edi
cmp byte [ebp - 0x44], 0
jne 0x415f74
mov byte [ebp - 0x44], 0x2c
test esi, esi
je 0x4160c3
cmp byte [esi], 0
je 0x4160c3
mov edi, dword [ebp + 0xc]
and edi, 1
je 0x415fb3
movsx eax, byte [ebp - 0x24]
push eax
push esi
call fcn.00447970
pop ecx
pop ecx
test eax, eax
jne 0x415fb3
movsx eax, byte [ebp - 0x44]
push eax
push esi
call fcn.00447970
pop ecx
pop ecx
test eax, eax
je 0x4160c3
test edi, edi
je 0x41602f
xor edi, edi
cmp byte [esi], 0
je 0x41602f
mov cl, byte [esi + edi]
cmp cl, byte [ebp - 0x44]
jne 0x41600b
test edi, edi
jle 0x41600b
mov al, byte [esi + edi - 1]
cmp al, 0x30
jl 0x41600b
cmp al, 0x39
jg 0x41600b
lea ebx, [esi + edi + 1]
mov al, byte [ebx]
cmp al, 0x30
jl 0x41600b
cmp al, 0x39
jg 0x41600b
mov al, byte [esi + edi + 3]
cmp al, 0x30
jl 0x41600b
cmp al, 0x39
jg 0x41600b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [esi + edi]
push ebx
push eax
call fcn.00448130
add esp, 0xc
inc dword [ebp - 0x48]
jmp 0x416029
cmp cl, byte [ebp - 0x24]
jne 0x416028
mov al, byte [esi + edi + 1]
cmp al, 0x30
jl 0x41601c
cmp al, 0x39
jle 0x416024
test al, al
je 0x416024
cmp al, 0x29
jne 0x416028
mov byte [esi + edi], 0x2e
inc edi
cmp byte [esi + edi], 0
jne 0x415fbe
test byte [ebp + 0xc], 2
je 0x416055
xor eax, eax
cmp byte [esi], al
je 0x416055
mov cl, byte [ebp - 0x24]
cmp cl, 0x2e
je 0x416055
cmp byte [esi + eax], 0x2e
je 0x416052
inc eax
cmp byte [esi + eax], 0
jne 0x41603e
jmp 0x416055
mov byte [esi + eax], cl
test byte [ebp + 0xc], 4
je 0x4160be
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.00447a30
pop ecx
pop ecx
test eax, eax
je 0x41606f
sub eax, esi
jmp 0x416076
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax - 1]
xor eax, eax
test edi, edi
jle 0x4160be
lea ebx, [esi + edi]
cmp byte [ebx], 0
je 0x4160be
inc eax
cmp eax, 3
jl 0x4160b8
mov al, byte [ebp - 0x44]
cmp byte [esi + edi - 1], al
je 0x4160b4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [esi + edi + 1]
push ebx
push eax
call fcn.00448130
mov al, byte [ebp - 0x44]
add esp, 0xc
mov byte [ebx], al
jmp 0x4160b6
dec edi
dec ebx
xor eax, eax
dec edi
dec ebx
test edi, edi
jg 0x416082
mov eax, dword [ebp - 0x48]
jmp 0x4160c5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448080
leave
ret
Function at 0x4163b5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4755d0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x404], 0
push 0x3fc
lea eax, [ebp - 0x400]
push 0
push eax
call fcn.00448090
add esp, 0xc
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x4163f9
shr eax, 1
xor eax, 0xedb88320
jmp 0x4163fb
shr eax, 1
dec edx
jne 0x4163ec
mov dword [ebp + ecx*4 - 0x404], eax
inc ecx
cmp ecx, 0x100
jb 0x4163e7
xor ecx, ecx
or eax, 0xffffffff
cmp dword [ebp + 0xc], ecx
jbe 0x416439
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
mov edx, dword [ebp + edx*4 - 0x404]
shr eax, 8
inc ecx
xor eax, edx
cmp ecx, dword [ebp + 0xc]
jb 0x416418
mov ecx, dword [ebp - 4]
xor ecx, ebp
not eax
call fcn.00448080
leave
ret
Function at 0x4200ff
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], 4
cmp eax, esi
jne 0x42011d
mov eax, reloc.ODBC32.dll_SQLAllocConnect
lea ecx, [ebp - 4]
push ecx
push 1
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x420153
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
jmp 0x420155
xor eax, eax
pop esi
leave
ret

Function at 0x420158
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
xor eax, eax
push esi
mov esi, dword [ebp + 0x14]
inc eax
mov dword [ebp - 8], 0xff
mov dword [ebp - 0xc], eax
test esi, esi
je 0x4201c5
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x420183
mov ecx, reloc.ODBC32.dll_SQLAllocConnect
lea edx, [ebp - 4]
push edx
push eax
push 0
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4201c5
mov byte [esi], al
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x4201c7
xor eax, eax
pop esi
leave
ret

Function at 0x4201ca
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 4], ebx
call esi
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x4201f2
mov eax, reloc.ODBC32.dll_SQLAllocConnect
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, 0x45c970
test eax, eax
je 0x42023f
push dword [ebp + 0xc]
call esi
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x420224
mov eax, reloc.ODBC32.dll_SQLAllocConnect
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push ebx
push 0x2001f
push ebx
push edi
push ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push dword [ebp + 0x14]
call esi
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x14], ebx
je 0x420250
mov edi, dword [ebp + 0x14]
push eax
push edi
push 2
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424fe3
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x29c]
sub esp, 0x31c
mov eax, dword [0x4755d0]
xor eax, ebp
mov dword [ebp + 0x298], eax
mov eax, dword [ebp + 0x2a4]
push ebx
push esi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x2ac]
push edi
mov edi, dword [ebp + 0x2a8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x2b4]
mov esi, 0x103
xor ebx, ebx
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x195]
push ebx
push eax
mov byte [ebp + 0x194], bl
call fcn.00448090
push esi
lea eax, [ebp - 0x73]
push ebx
push eax
mov byte [ebp - 0x74], bl
call fcn.00448090
add esp, 0x18
cmp dword [ebp - 0x80], 7
ja 0x4251d3
mov eax, dword [ebp - 0x7c]
imul edi, edi, 0x3d5
add edi, dword [ebp - 0x80]
lea eax, [eax*4 + 0x478a70]
mov dword [ebp - 0x7c], eax
mov eax, dword [eax]
lea edi, [edi*4 + 0xf2c]
cmp dword [edi + eax], ebx
je 0x4251d3
cmp dword [ebp + 0x2b0], 1
jne 0x4251c1
push esi
lea eax, [ebp + 0x91]
push ebx
push eax
mov byte [ebp + 0x90], bl
call fcn.00448090
add esp, 0xc
lea eax, [ebp + 0x90]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax + 0x8f], 0x5c
je 0x4250db
push 0x45c800
lea eax, [ebp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0x194]
push eax
push ebx
push 0x461740
lea eax, [ebp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 2
push str..TMP
lea eax, [ebp + 0x194]
push eax
call fcn.004417cc
push 0xc
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call fcn.0040eb69
push 0x45e96c
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp - 0x78], ebx
je 0x42515b
lea eax, [ebp + 0x194]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0x194]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [ebp - 0x7c]
mov eax, dword [esi]
push ebx
push ebx
push ebx
push dword [ebp - 0x78]
push dword [eax + edi]
lea eax, [ebp + 0x194]
push eax
call fcn.00410db2
cmp byte [0x47b0e0], 2
jb 0x4251d3
cmp eax, ebx
mov eax, str.Extracted
jne 0x4251a2
mov eax, str.FAILURE_extracting
push dword [ebp - 0x78]
mov ecx, dword [esi]
push dword [ecx + edi]
lea ecx, [ebp + 0x194]
push ecx
push eax
push str._____s_embedded_package_file_from__s___d_______s
call fcn.00421b06
add esp, 0x14
jmp 0x4251d3
cmp dword [ebp + 0x2b0], 2
jne 0x4251d3
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp + 0x298]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448080
add ebp, 0x29c
leave
ret 0x14