joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e946
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 0x40eac4
cmp byte [eax], bl
je 0x40eac4
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x40eac4
cmp byte [edi], bl
je 0x40eac4
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call esi
push edi
mov dword [ebp - 0xc], eax
call esi
mov ecx, dword [ebp - 0xc]
cmp ecx, eax
jle 0x40e99b
push dword [ebp + 8]
jmp 0x40e99c
push edi
call esi
push eax
push edi
push dword [ebp + 8]
call fcn.00448060
add esp, 0xc
test eax, eax
jne 0x40e9b5
inc eax
jmp 0x40eac6
push dword [ebp + 8]
call fcn.0040d86d
push edi
mov dword [ebp - 4], eax
call fcn.0040d86d
cmp dword [ebp - 4], eax
jne 0x40eac4
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp + 8]
cmp dword [ebp - 0xc], ebx
je 0x40e9e3
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 0x40ea74
mov eax, dword [ebp - 4]
mov ecx, 0x1000
add eax, ecx
cmp dword [ebp - 0xc], ebx
jne 0x40ea3a
cmp eax, ecx
ja 0x40ea16
mov eax, ecx
push 1
push eax
call fcn.004462a8
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x40ea69
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 0x40ea62
cmp eax, ecx
ja 0x40ea40
mov eax, ecx
push 1
push eax
call fcn.004462a8
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40ea69
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 0x40ea74
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jl 0x40e9d8
mov esi, dword [ebp - 0x10]
cmp esi, ebx
je 0x40eaa5
cmp dword [ebp - 8], ebx
je 0x40eaa5
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call fcn.004468e5
add esp, 0xc
test eax, eax
jne 0x40eaa5
xor edi, edi
inc edi
jmp 0x40eaa7
xor edi, edi
cmp esi, ebx
je 0x40eab2
push esi
call fcn.00445e06
pop ecx
cmp dword [ebp - 8], ebx
je 0x40eac0
push dword [ebp - 8]
call fcn.00445e06
pop ecx
mov eax, edi
jmp 0x40eac6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40f973
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4705d0]
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.004464f0
add esp, 0xc
cmp edi, ebx
je 0x40fa8d
cmp byte [edi], bl
je 0x40fa8d
cmp dword [ebp - 0x80], ebx
je 0x40fa8d
cmp dword [ebp + 0xa4], 1
jb 0x40fa8d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cmp eax, esi
jle 0x40f9f1
mov eax, esi
jmp 0x40f9f9
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.0040c130
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
lea eax, [ebp - 0x78]
push eax
call fcn.0040f850
mov edi, eax
cmp edi, 0xffffffff
je 0x40fa88
cmp edi, ebx
je 0x40fa88
cmp dword [ebp + 0x9c], ebx
jge 0x40fa40
push 2
push ebx
push ebx
jmp 0x40fa61
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push edi
call esi
cmp eax, dword [ebp + 0x9c]
jae 0x40fa58
push ebx
push edi
call esi
jmp 0x40fa5e
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 0x40fa8f
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004464bf
add ebp, 0x90
leave
ret 0x10
Function at 0x40faa9
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x3d8]
sub esp, 0x458
mov eax, dword [0x4705d0]
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.004464f0
mov esi, 0x103
push esi
lea eax, [ebp + 0xc9]
push ebx
push eax
mov byte [ebp + 0xc8], bl
call fcn.004464f0
push esi
lea eax, [ebp + 0x2d1]
push ebx
push eax
mov byte [ebp + 0x2d0], bl
call fcn.004464f0
push esi
lea eax, [ebp + 0x1cd]
push ebx
push eax
mov byte [ebp + 0x1cc], bl
call fcn.004464f0
add esp, 0x30
cmp edi, ebx
je 0x40fcb2
cmp byte [edi], bl
je 0x40fcb2
push 0x2a
push edi
call fcn.00445cc0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
pop ecx
pop ecx
test eax, eax
jne 0x40fb78
push 0x3f
push edi
call fcn.00445cc0
pop ecx
pop ecx
test eax, eax
jne 0x40fb78
push eax
push edi
call fcn.0040cd63
test eax, eax
jne 0x40fb78
push edi
call ebx
cmp byte [eax + edi - 1], 0x5c
je 0x40fb78
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40fcb4
and dword [ebp - 0x7c], 0
push edi
call ebx
inc eax
cmp eax, esi
jle 0x40fb88
mov eax, esi
jmp 0x40fb8c
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.0040cd63
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
je 0x40fbd7
lea eax, [ebp + 0x1cc]
push eax
call ebx
lea ecx, [ebp + 0x1cc]
dec ecx
cmp byte [eax + ecx], 0x5c
jne 0x40fbd7
push str..
lea eax, [ebp + 0x1cc]
push eax
call edi
push 3
lea eax, [ebp + 0xc8]
push eax
lea eax, [ebp + 0x1cc]
push eax
call fcn.0040dac4
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 0x40fc9b
lea esi, [ebp + 0x2d0]
dec esi
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], 0x5c
je 0x40fc41
push 0x45a954
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.0040cd63
test eax, eax
jne 0x40fc86
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 0x40fca9
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40fc10
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x7c]
jmp 0x40fcb4
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.004464bf
add ebp, 0x3d8
leave
ret 4
Function at 0x40fcce
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x4705d0]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xac]
push ebx
push esi
mov esi, dword [ebp + 0xa4]
push edi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xb0]
mov edi, 0x103
xor ebx, ebx
push edi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x6b]
push ebx
push eax
mov byte [ebp - 0x6c], bl
call fcn.004464f0
add esp, 0xc
cmp esi, ebx
je 0x40fd31
cmp byte [esi], bl
je 0x40fd31
push esi
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40fd44
push edi
lea eax, [ebp - 0x6c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [ebp - 0x78]
cmp edi, ebx
je 0x40fd55
cmp dword [ebp + 0xb4], ebx
jle 0x40fd55
mov byte [edi], bl
cmp byte [ebp - 0x6c], bl
je 0x40fd69
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x74], eax
jmp 0x40fd6c
mov dword [ebp - 0x74], ebx
cmp dword [ebp - 0x74], ebx
jne 0x40fd9a
push ebx
push 0x102
lea eax, [ebp - 0x6c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
xor eax, eax
jmp 0x40fe7e
movzx eax, word [ebp + 0xa8]
push 0xa
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x70], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x40fe72
push esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x80], eax
cmp eax, ebx
je 0x40fe72
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x78], eax
cmp eax, ebx
je 0x40fe69
push esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x70], eax
cmp edi, ebx
je 0x40fe23
mov esi, dword [ebp + 0xb4]
mov ecx, esi
cmp esi, eax
jb 0x40fe00
mov ecx, eax
cmp ecx, ebx
jbe 0x40fe1a
cmp esi, eax
jae 0x40fe0a
mov eax, esi
push eax
push dword [ebp - 0x78]
push edi
call fcn.00445ea0
mov eax, dword [ebp - 0x70]
add esp, 0xc
cmp esi, eax
jae 0x40fe20
mov eax, esi
mov byte [eax + edi], bl
cmp dword [ebp - 0x7c], ebx
je 0x40fe69
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
push dword [ebp - 0x7c]
call fcn.0040f850
mov esi, eax
cmp esi, 0xffffffff
je 0x40fe66
push ebx
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x78]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, ebx
je 0x40fe69
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40fe69
mov dword [ebp - 0x70], ebx
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004464bf
add ebp, 0x9c
leave
ret 0x14
Function at 0x413c82
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x4705d0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push 0x98
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.004464f0
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 0x413cd4
xor eax, eax
inc eax
cmp dword [ebp - 0x20], 0
je 0x413ccf
cmp dword [ebp - 0x20], eax
jne 0x413cd4
cmp byte [ebp + 0x72], al
jne 0x413cd6
xor eax, eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.004464bf
add ebp, 0x78
leave
ret

Function at 0x413d35
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4705d0]
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.004464f0
push ebx
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.004464f0
add esp, 0x18
test esi, esi
jne 0x413d9d
xor eax, eax
jmp 0x413eb4
cmp al, 0x20
je 0x413d9c
cmp al, 9
je 0x413d9c
cmp al, 0xd
je 0x413d9c
cmp al, 0xa
jne 0x413da3
inc esi
mov al, byte [esi]
test al, al
jne 0x413d8c
mov al, byte [esi]
push edi
mov edi, esi
cmp al, 0x22
je 0x413db0
cmp al, 0x27
jne 0x413dcc
inc esi
mov edi, esi
jmp 0x413ddb
cmp al, 0x20
je 0x413de1
cmp al, 9
je 0x413de1
cmp al, 0xd
je 0x413de1
cmp al, 0xa
je 0x413de1
cmp al, 0x23
je 0x413de1
inc edi
mov al, byte [edi]
test al, al
jne 0x413db5
jmp 0x413de1
cmp al, 0x22
je 0x413de1
cmp al, 0x27
je 0x413de1
inc edi
mov al, byte [edi]
test al, al
jne 0x413dd2
mov eax, edi
sub eax, esi
inc eax
cmp eax, ebx
jle 0x413dec
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
mov ecx, eax
inc ecx
mov eax, 0xff
cmp ecx, eax
jg 0x413e16
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 0x413e5f
cmp al, 0x22
je 0x413e3c
cmp al, 0x27
je 0x413e3c
cmp al, 0x20
je 0x413e3c
cmp al, 9
jne 0x413e5f
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.00446570
add esp, 0xc
jmp 0x413e22
lea eax, [ebp - 0x104]
push eax
call esi
dec eax
xor esi, esi
jmp 0x413e8e
lea ecx, [ebp + eax - 0x104]
mov dl, byte [ecx]
cmp dl, 0x22
je 0x413e8a
cmp dl, 0x27
je 0x413e8a
cmp dl, 0x20
je 0x413e8a
cmp dl, 9
jne 0x413e92
mov byte [ecx], 0
dec eax
cmp eax, esi
jg 0x413e6d
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.004464bf
leave
ret
Function at 0x413ec2
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4705d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x413eed
push 0x45befc
push edi
call fcn.00445d80
pop ecx
pop ecx
jmp 0x413eef
xor eax, eax
test eax, eax
jne 0x413f30
test edi, edi
je 0x413f06
push 0x45af3c
push edi
call fcn.00445d80
pop ecx
pop ecx
jmp 0x413f08
xor eax, eax
test eax, eax
jne 0x413f30
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
call esi
test al, 0x10
jne 0x413f29
push edi
call esi
cmp eax, 0xffffffff
je 0x413f29
xor eax, eax
inc eax
jmp 0x413fb0
xor eax, eax
jmp 0x413fb0
and dword [ebp - 0x144], 0
push 0x13c
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.004464f0
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 0x413fa1
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x45b780
lea eax, [ebp - 0x118]
push eax
call edi
test eax, eax
je 0x413f8c
push 0x45bef8
lea eax, [ebp - 0x118]
push eax
call edi
test eax, eax
jne 0x413fa1
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x413f68
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.004464bf
leave
ret

Function at 0x413fbe
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4705d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x103
xor ebx, ebx
push edi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.004464f0
add esp, 0xc
cmp esi, ebx
je 0x413ffd
cmp byte [esi], bl
jne 0x414013
push edi
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp esi, ebx
je 0x41401b
cmp byte [esi], bl
jne 0x414021
lea esi, [ebp - 0x108]
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
inc eax
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004464bf
leave
ret
Function at 0x414063
Capabilities:
Parse credit card information

Disassembly:
mov al, byte [esp + 4]
cmp al, 0x29
jne 0x41406f
push 9
pop eax
ret
cmp al, 0x41
jl 0x41407b
cmp al, 0x5a
jle 0x414102
cmp al, 0x61
jl 0x414083
cmp al, 0x7a
jle 0x414102
cmp al, 0x3f
je 0x414102
cmp al, 0x82
jb 0x41408f
cmp al, 0xfd
jbe 0x414102
cmp al, 0x5f
je 0x4140fe
cmp al, 0x23
je 0x4140fe
cmp al, 0x60
je 0x4140fe
cmp al, 0x21
je 0x4140fe
cmp al, 0x5e
je 0x4140fa
cmp al, 0x25
je 0x4140f6
cmp al, 0x2a
je 0x4140f6
cmp al, 0x2f
je 0x4140f6
cmp al, 0x2b
je 0x4140f2
cmp al, 0x2d
je 0x4140f2
cmp al, 0x26
je 0x4140ee
cmp al, 0x7c
je 0x4140ee
cmp al, 0x7e
je 0x4140ee
cmp al, 0x3d
je 0x4140ea
cmp al, 0x24
je 0x4140ea
cmp al, 0x3e
je 0x4140ea
cmp al, 0x3c
je 0x4140ea
cmp al, 0x7b
je 0x4140ea
cmp al, 0x7d
je 0x4140ea
cmp al, 0x3a
je 0x4140e6
cmp al, 0x3b
je 0x4140e6
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 0x414bd9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4705d0]
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 0x414c35
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 0x414c4a
mov byte [ebp - 0x44], 0x2c
test esi, esi
je 0x414d9c
cmp byte [esi], 0
je 0x414d9c
mov edi, dword [ebp + 0xc]
and edi, 1
je 0x414c89
movsx eax, byte [ebp - 0x24]
push eax
push esi
call fcn.00445cc0
pop ecx
pop ecx
test eax, eax
jne 0x414c89
movsx eax, byte [ebp - 0x44]
push eax
push esi
call fcn.00445cc0
pop ecx
pop ecx
test eax, eax
je 0x414d9c
test edi, edi
je 0x414d05
xor edi, edi
cmp byte [esi], 0
je 0x414d05
mov cl, byte [esi + edi]
cmp cl, byte [ebp - 0x44]
jne 0x414ce1
test edi, edi
jle 0x414ce1
mov al, byte [esi + edi - 1]
cmp al, 0x30
jl 0x414ce1
cmp al, 0x39
jg 0x414ce1
lea ebx, [esi + edi + 1]
mov al, byte [ebx]
cmp al, 0x30
jl 0x414ce1
cmp al, 0x39
jg 0x414ce1
mov al, byte [esi + edi + 3]
cmp al, 0x30
jl 0x414ce1
cmp al, 0x39
jg 0x414ce1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [esi + edi]
push ebx
push eax
call fcn.00446570
add esp, 0xc
inc dword [ebp - 0x48]
jmp 0x414cff
cmp cl, byte [ebp - 0x24]
jne 0x414cfe
mov al, byte [esi + edi + 1]
cmp al, 0x30
jl 0x414cf2
cmp al, 0x39
jle 0x414cfa
test al, al
je 0x414cfa
cmp al, 0x29
jne 0x414cfe
mov byte [esi + edi], 0x2e
inc edi
cmp byte [esi + edi], 0
jne 0x414c94
test byte [ebp + 0xc], 2
je 0x414d2b
xor eax, eax
cmp byte [esi], al
je 0x414d2b
mov cl, byte [ebp - 0x24]
cmp cl, 0x2e
je 0x414d2b
cmp byte [esi + eax], 0x2e
je 0x414d28
inc eax
cmp byte [esi + eax], 0
jne 0x414d14
jmp 0x414d2b
mov byte [esi + eax], cl
test byte [ebp + 0xc], 4
je 0x414d97
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.00445d80
pop ecx
pop ecx
test eax, eax
je 0x414d48
sub eax, esi
dec eax
mov edi, eax
jmp 0x414d52
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
dec edi
xor eax, eax
test edi, edi
jle 0x414d97
lea ebx, [esi + edi]
cmp byte [ebx], 0
je 0x414d97
inc eax
cmp eax, 3
jl 0x414d91
mov al, byte [ebp - 0x44]
cmp byte [esi + edi - 1], al
je 0x414d8d
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [esi + edi + 1]
push ebx
push eax
call fcn.00446570
mov al, byte [ebp - 0x44]
add esp, 0xc
mov byte [ebx], al
jmp 0x414d8f
dec edi
dec ebx
xor eax, eax
dec edi
dec ebx
test edi, edi
jg 0x414d5b
mov eax, dword [ebp - 0x48]
jmp 0x414d9e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004464bf
leave
ret
Function at 0x41507a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
and dword [ebp - 0x400], 0
push 0x3fc
lea eax, [ebp - 0x3fc]
push 0
push eax
call fcn.004464f0
add esp, 0xc
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x4150b4
shr eax, 1
xor eax, 0xedb88320
jmp 0x4150b6
shr eax, 1
dec edx
jne 0x4150a7
mov dword [ebp + ecx*4 - 0x400], eax
inc ecx
cmp ecx, 0x100
jb 0x4150a2
xor ecx, ecx
or eax, 0xffffffff
cmp dword [ebp + 0xc], ecx
jbe 0x4150f4
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
mov edx, dword [ebp + edx*4 - 0x400]
shr eax, 8
inc ecx
xor eax, edx
cmp ecx, dword [ebp + 0xc]
jb 0x4150d3
not eax
leave
ret
Function at 0x41e88b
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 0x41e8a9
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 0x41e8df
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 0x41e8e1
xor eax, eax
pop esi
leave
ret

Function at 0x41e8e4
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 0x41e951
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x41e90f
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 0x41e951
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 0x41e953
xor eax, eax
pop esi
leave
ret

Function at 0x41e956
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 0x41e97e
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, 0x4597fe
test eax, eax
je 0x41e9cb
push dword [ebp + 0xc]
call esi
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x41e9b0
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 0x41e9dc
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