joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4228f9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x44
mov eax, 0x4c82a0
call fcn.0044d7c5
xor ebx, ebx
push ebx
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
jmp 0x422926
call fcn.0041c8c5
cmp eax, ebx
jne 0x422933
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x210], ebx
je 0x422912
jmp 0x422a7a
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov eax, dword [esi + 0x214]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x4229bb
dec eax
cmp eax, 1
ja 0x422a23
push 0x502868
lea ecx, [ebp - 0x4c]
call fcn.0040fd3c
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [esi + 0x218]
push ecx
sub eax, 0x10
mov dword [ebp - 0x50], esp
mov edi, esp
push eax
mov byte [ebp - 4], 1
call fcn.0040f61d
add eax, 0x10
mov dword [edi], eax
pop ecx
lea eax, [ebp - 0x48]
push eax
call fcn.004224f9
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00411e51
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040fe1f
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.0040f083
jmp 0x422a23
push str.SOFTINFO
push 0x4d22a8
push dword [esi + 0x208]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x4c], eax
cmp eax, ebx
je 0x422a23
push eax
push dword [esi + 0x208]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x422a1a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x4c]
mov edi, eax
push dword [esi + 0x208]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp edi, ebx
je 0x422a1a
cmp eax, ebx
jbe 0x422a1a
push edi
call fcn.0044ca40
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.0041f011
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x1c]
inc eax
push eax
call fcn.0044a6f2
mov edi, eax
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push ebx
push edi
call fcn.0044d1b0
mov eax, dword [ebp - 0x2c]
add esp, 0x10
cmp dword [ebp - 0x18], 0x10
jae 0x422a4a
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
push eax
push edi
call fcn.0044cad0
add esp, 0xc
push edi
push dword [esi + 0x214]
push 0x7e8
push dword [esi + 0x20c]
call dword [sym.imp.USER32.dll_PostMessageW]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040fe1f
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
call fcn.0044d848
ret
Function at 0x423448
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push 0x29c
mov eax, 0x4c840a
call fcn.0044d7fb
mov esi, ecx
xor ebx, ebx
push 0x502868
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 0x29c], ebx
call fcn.0040fd3c
lea ecx, [esi + 0x90]
mov dword [ebp - 4], ebx
call fcn.00416f10
push eax
lea eax, [ebp - 0x290]
push 0x4d0844
push eax
call fcn.0041182d
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x28c], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x298], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x2a0], esi
cmp esi, ebx
je 0x423598
push 4
lea eax, [ebp - 0x2a8]
push eax
push 2
push esi
mov dword [ebp - 0x2a8], 0x7d0
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
push 0x102
push ebx
push ebx
push dword [ebp - 0x290]
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x294], eax
cmp eax, ebx
je 0x42358c
mov esi, 0x100000
push esi
call fcn.0044a6f2
pop ecx
push esi
mov edi, eax
push ebx
push edi
call fcn.0044d1b0
add esp, 0xc
lea eax, [ebp - 0x298]
push eax
push esi
push edi
push dword [ebp - 0x294]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x298]
cmp eax, ebx
jbe 0x423575
lea esi, [eax + 1]
push esi
mov dword [ebp - 0x28c], eax
call fcn.0044a6f2
pop ecx
push esi
push ebx
push eax
mov dword [ebp - 0x288], eax
call fcn.0044d1b0
push dword [ebp - 0x28c]
push edi
push dword [ebp - 0x288]
call fcn.0044cad0
add esp, 0x18
cmp edi, ebx
je 0x423580
push edi
call fcn.0044d8a0
pop ecx
push dword [ebp - 0x294]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x2a0]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x284]
mov dword [ebp - method.CTiXmlConfig.virtual_0], vtable.CTiXmlConfig.0
call fcn.0041d83e
mov byte [ebp - 4], 3
cmp dword [ebp - 0x288], ebx
je 0x4235ec
mov ecx, dword [ebp - 0x2a4]
lea eax, [ebp - 0x284]
push eax
push dword [ebp - 0x28c]
push dword [ebp - 0x288]
call fcn.004233e9
push dword [ebp - 0x288]
mov dword [ebp - 0x29c], eax
call fcn.0044d8a0
pop ecx
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], bl
call fcn.0041c91e
mov ecx, dword [ebp - 0x290]
add ecx, 0xfffffff0
call fcn.0040f083
mov eax, dword [ebp - 0x29c]
call fcn.0044d857
ret
Function at 0x423e0d
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
push str.Upload
mov edi, eax
call dword [sym.imp.WININET.dll_InternetOpenW]
push esi
push esi
push 3
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp + 8]
mov dword [ebp - 0x14], 0x4d2890
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.WININET.dll_InternetConnectW]
push 0x20200400
push esi
lea ecx, [ebp - 0x14]
push ecx
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
push 0x28
mov ebx, eax
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.0044d1b0
add esp, 0xc
push esi
push 8
push esi
lea eax, [ebp - 0x3c]
push eax
push ebx
mov dword [ebp - 0x3c], 0x28
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.WININET.dll_InternetWriteFile]
push esi
push esi
push esi
push ebx
mov edi, eax
call dword [sym.imp.WININET.dll_HttpEndRequestW]
push dword [ebp - 4]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4241ab
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x4241d1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4241d1
test al, 0x10
jne 0x4241d1
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x424392
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x502ae0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x424
lea eax, [ebp - 0x428]
push 0
push eax
mov edi, ecx
mov dword [ebp - 0x42c], 0x428
call fcn.0044d1b0
add esp, 0xc
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4243e1
xor eax, eax
jmp 0x42443d
lea eax, [ebp - 0x42c]
push eax
push ebx
call sub.KERNEL32.dll_Module32FirstW
jmp 0x42440e
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 0x418]
cmp eax, dword [ebp - 0x414]
jb 0x424414
lea eax, [ebp - 0x42c]
push eax
push ebx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x4243f0
jmp 0x42442d
lea eax, [ebp - 0x40c]
push eax
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x418]
mov dword [esi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 0x10]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044d74d
leave
ret 8
Function at 0x4253b1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2204
call fcn.0044db00
mov eax, dword [0x502ae0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x504df0]
lea eax, [ebp - 0x2204]
push eax
call fcn.0040f377
test al, al
je 0x4253f7
push 5
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x2204]
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d74d
leave
ret 0xc

Function at 0x4259d9
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x502ae0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push eax
push 2
mov word [esi], ax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
push 0x502868
lea ecx, [ebp - 0x234]
mov ebx, eax
call fcn.0040fd3c
test ebx, ebx
je 0x425a5a
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0044da2c
push 0x4d31dc
push esi
call fcn.0044da2c
add esp, 0x10
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x425a2e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.0040f083
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044d74d
leave
ret 4
Function at 0x42a11d
Capabilities:
Get file version info

Disassembly:
push 0x224
mov eax, 0x4c86bc
call fcn.0044d7c5
mov ebx, dword [ebp + 8]
xor esi, esi
push 0x502868
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x22c], esi
call fcn.0040fd3c
mov dword [ebp - 4], esi
lea eax, [ebp - 0x218]
cmp ebx, esi
jne 0x42a163
push 0x208
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x42a16b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x224], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x230], eax
cmp eax, esi
je 0x42a246
push eax
push 2
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x220], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, esi
je 0x42a246
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
push dword [ebp - 0x230]
mov dword [ebp - 0x22c], eax
push dword [ebp - 0x224]
lea eax, [ebp - 0x218]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x4d159c
push dword [ebp - 0x22c]
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 0x228], esi
je 0x42a246
mov eax, dword [ebp - 0x220]
cmp eax, esi
je 0x42a246
mov cx, word [eax + 0x12]
mov dx, word [eax + 0x10]
mov si, word [eax + 0x16]
movzx eax, word [eax + 0x14]
push eax
movzx eax, si
push eax
movzx eax, dx
push eax
movzx eax, cx
push eax
lea eax, [ebp - 0x21c]
push 0x4d1584
push eax
call fcn.0041182d
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [ebp - 0x21c]
add esi, 0xfffffff0
push esi
call fcn.0040f61d
add eax, 0x10
pop ecx
mov ecx, esi
mov dword [edi], eax
call fcn.0040f083
mov eax, edi
call fcn.0044d848
ret
Function at 0x42a26a
Capabilities:
Create directory

Disassembly:
push 0x14
mov eax, 0x4c86fc
call fcn.0044d75c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
jne 0x42a289
xor al, al
jmp 0x42a36a
add eax, 0xfffffff0
push eax
call fcn.0040f61d
lea esi, [eax + 0x10]
pop ecx
mov dword [ebp - 0x14], esi
mov eax, dword [esi - 0xc]
lea ecx, [eax - 1]
mov dword [ebp - 4], ebx
cmp ecx, ebx
jl 0x42a370
cmp ecx, eax
jg 0x42a370
cmp word [esi + ecx*2], 0x5c
je 0x42a2c6
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00417625
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push 0x502868
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040fd3c
mov eax, dword [esi - 0xc]
xor edi, edi
mov byte [ebp - 4], 2
mov byte [ebp + 0xb], bl
cmp eax, ebx
jle 0x42a322
cmp edi, ebx
jl 0x42a370
cmp edi, eax
jg 0x42a370
movzx eax, word [esi + edi*2]
cmp eax, 0x5c
je 0x42a304
push eax
jmp 0x42a312
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00411554
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00417625
mov eax, dword [esi - 0xc]
inc edi
cmp edi, eax
jl 0x42a2f0
xor edi, edi
cmp dword [ebp - 0x1c], ebx
jle 0x42a34c
cmp edi, ebx
jl 0x42a37a
cmp edi, dword [ebp - 0x1c]
jge 0x42a37a
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edi*4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne byte [ebp + 0xb]
inc edi
cmp edi, dword [ebp - 0x1c]
jl 0x42a329
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040f083
lea ecx, [ebp - 0x20]
call fcn.00410fec
lea ecx, [esi - 0x10]
call fcn.0040f083
mov al, byte [ebp + 0xb]
call fcn.0044d834
ret
push 0x80070057
call fcn.0040eea5
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x42a489
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.0044db00
mov eax, dword [0x502ae0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x2d10], ecx
call fcn.0040fc8e
xor edi, edi
xor esi, esi
push esi
lea eax, [ebp - 0x204]
push 0x4d15a0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
push edi
push 3
push edi
push 3
push edi
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42a4ef
inc esi
cmp esi, 4
jl 0x42a4b2
jmp 0x42a58c
mov esi, 0x2710
push esi
lea eax, [ebp - 0x2cfc]
push edi
push eax
mov dword [ebp - 0x2d0c], edi
call fcn.0044d1b0
push 0xc
lea eax, [ebp - 0x2d08]
push edi
push eax
call fcn.0044d1b0
push esi
lea eax, [ebp - 0x2cfc]
push edi
push eax
mov dword [ebp - 0x2d08], edi
mov dword [ebp - 0x2d04], edi
call fcn.0044d1b0
add esp, 0x24
push edi
lea eax, [ebp - 0x2d0c]
push eax
push esi
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42a58c
mov eax, dword [ebp - 0x2ce4]
push 1
lea esi, [ebp - 0x5ec]
lea ecx, [ebp - 0x2cfc]
call fcn.00423cc4
pop ecx
mov ecx, dword [ebp - 0x2d10]
mov eax, esi
push eax
call fcn.004111f9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044d74d
leave
ret

Function at 0x42ac91
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0x3c
mov eax, 0x4c87c3
call fcn.0044d7c5
xor ebx, ebx
mov esi, 0x502868
push esi
mov ecx, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x2c], ebx
call fcn.0040fd3c
mov eax, dword [0x4d3ecc]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4d3ed0]
mov dword [ebp - 4], ebx
inc ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 0x41
mov dword [ebp - 0x24], eax
pop eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
test byte [ebp - 0x24], bl
je 0x42ad71
mov ax, word [ebp - 0x1c]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x42ad71
push esi
lea ecx, [ebp - 0x28]
call fcn.0040fd3c
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x20]
push str._c:_I64d_I64d
push eax
call fcn.0041182d
mov eax, dword [edi]
add esp, 0x1c
cmp dword [eax - 0xc], 0
je 0x42ad54
push 0x4d047c
mov ecx, edi
call fcn.0041efeb
mov eax, dword [ebp - 0x28]
push dword [eax - 0xc]
mov ecx, edi
push eax
call fcn.0041ed16
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.0040f083
inc dword [ebp - 0x1c]
inc dword [ebp - 0x20]
shr dword [ebp - 0x24], 1
cmp word [ebp - 0x1c], 0x5a
jbe 0x42acde
mov eax, edi
call fcn.0044d848
ret
Function at 0x42d1d1
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x105c
call fcn.0044db00
mov eax, dword [0x502ae0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x1038], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
push ebx
mov dword [ebp - 0x104c], eax
mov dword [ebp - 0x1044], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42d21d
xor eax, eax
jmp 0x42d3ed
push esi
mov dword [ebp - 0x102c], edi
and dword [ebp - 0x102c], 0x10
mov eax, dword [ebp - 0x102c]
shl eax, 0x15
push eax
push 3
push esi
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42d216
lea eax, [ebp - 0x105c]
push eax
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x1054]
push eax
lea eax, [ebp - 0x105c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x103c]
push eax
lea eax, [ebp - 0x1040]
push eax
lea eax, [ebp - 0x1054]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push 0x24
lea eax, [ebp - 0x1028]
push esi
push eax
call fcn.0044d1b0
movzx eax, word [ebp - 0x1040]
movzx ecx, word [ebp - 0x103c]
or dword [ebp - 0x1008], edi
add esp, 0xc
push dword [ebp - 0x104c]
shl eax, 0x10
or eax, ecx
lea ecx, [ebp - 0x1048]
mov dword [ebp - 0x1010], eax
call fcn.0042b142
push 9
push 8
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x1028]
push eax
push dword [ebp - 0x1048]
push dword [ebp - 0x1038]
call fcn.00403510
add esp, 0x28
test eax, eax
jne 0x42d3c6
cmp dword [ebp - 0x102c], esi
jne 0x42d3c6
mov dword [ebp - 0x1034], esi
lea edi, [ebp - 0x1030]
stosd dword es:[edi], eax
lea eax, [ebp - 0x1034]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x42d3c6
cmp dword [ebp - 0x1030], esi
jl 0x42d3bc
mov eax, dword [ebp - 0x1034]
jg 0x42d341
cmp eax, esi
jbe 0x42d3bc
mov edi, 0x1000
cmp dword [ebp - 0x1030], esi
jl 0x42d356
jg 0x42d354
cmp eax, edi
jbe 0x42d356
mov eax, edi
push esi
lea ecx, [ebp - 0x102c]
push ecx
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
mov dword [ebp - 0x102c], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42d3c6
push dword [ebp - 0x102c]
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1038]
call fcn.00403670
add esp, 0xc
test eax, eax
js 0x42d3c6
mov eax, dword [ebp - 0x1034]
sub eax, dword [ebp - 0x102c]
sbb dword [ebp - 0x1030], esi
mov dword [ebp - 0x1034], eax
cmp dword [ebp - 0x1030], esi
jg 0x42d354
jl 0x42d3bc
cmp eax, esi
ja 0x42d346
mov dword [ebp - 0x1044], 1
push dword [ebp - 0x1038]
call fcn.00403fa0
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1048]
add ecx, 0xfffffff0
call fcn.0040f083
mov eax, dword [ebp - 0x1044]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044d74d
leave
ret
Function at 0x42ec3a
Capabilities:
Get geographical location

Disassembly:
push 0x68
mov eax, 0x4c8cd7
call fcn.0044d7c5
mov eax, dword [ebp + 8]
xor esi, esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], esi
call fcn.0041217e
push 0x18
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x5c], 1
call fcn.0044d1b0
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add esp, 0xc
push 0x13
pop ebx
push ebx
lea eax, [ebp - 0x38]
push eax
push 0xe
mov esi, 0x400
push esi
call edi
lea eax, [ebp - 0x38]
push ebx
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x4c]
push eax
push 0xf
push esi
call edi
lea eax, [ebp - 0x4c]
push ebx
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x24]
push eax
push 0x12
push esi
call edi
lea eax, [ebp - 0x24]
push eax
call fcn.0044daad
pop ecx
push ebx
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x24]
push eax
push 0x10
push esi
call edi
lea eax, [ebp - 0x24]
push eax
call fcn.0044daad
pop ecx
push ebx
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x24]
push eax
push 0x1010
push esi
call edi
lea eax, [ebp - 0x24]
push eax
call fcn.0044daad
mov edi, dword [ebp + 0xc]
pop ecx
mov dword [ebp - 0x60], eax
cmp edi, 0xffffffff
jne 0x42ed2e
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x54]
call fcn.0041217e
mov edi, dword [ebp - 0x50]
push 0
lea eax, [ebp - 0x38]
push eax
mov ecx, edi
call fcn.00410300
mov edx, dword [ebp - 0x54]
cmp eax, 0xffffffff
jne 0x42ed1c
xor edi, edi
jmp 0x42ed26
mov ecx, dword [edi]
mov edi, dword [ecx - 0xc]
sub edi, dword [edx - 0xc]
sub edi, eax
lea ecx, [edx - 0x10]
call fcn.0040f083
push dword [ebp - 0x58]
mov dword [ebp - 0x74], edi
call fcn.0044c78e
mov edi, eax
imul edi, edi, 3
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 0x64]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044a6f2
pop ecx
pop ecx
mov ebx, eax
sub edi, 0xffffff9d
push edi
push ebx
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x58]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
test eax, eax
je 0x42ed7b
mov ecx, dword [ebp - 0x50]
push ebx
call fcn.004116d4
test ebx, ebx
je 0x42ed86
push ebx
call fcn.0044d8a0
pop ecx
mov ecx, dword [ebp - 0x50]
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x54]
push eax
call fcn.00410d80
push 0x4d15f8
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.0040fd18
mov ecx, dword [ebp - 0x54]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.0040f083
inc bl
je 0x42eded
push dword [ebp - 0x50]
lea eax, [ebp - 0x54]
push 0x4d2240
push eax
call fcn.00429e17
add esp, 0xc
mov ecx, dword [ebp - 0x50]
push eax
mov dword [ebp - 4], 2
call fcn.004115eb
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff0
call fcn.0040f083
mov eax, dword [ebp - 0x50]
call fcn.0044d848
ret
Function at 0x42f047
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x81c
mov eax, 0x4c8d89
call fcn.0044d7c5
mov eax, ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x818]
push edx
mov edx, dword [eax + 4]
or edx, 0x20019
push edx
mov dword [ebp - 0x828], ecx
mov ecx, dword [eax + 0x10]
xor ebx, ebx
push ebx
push ecx
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42f090
xor eax, eax
call fcn.0044d848
ret 4
push 0x502868
lea ecx, [ebp - 0x824]
mov dword [ebp - 0x814], ebx
call fcn.0040fd3c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x810]
push eax
mov dword [ebp - 4], ebx
push ebx
jmp 0x42f11b
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x820]
call fcn.0041217e
mov ecx, dword [ebp - 0x828]
lea eax, [ebp - 0x820]
push eax
mov byte [ebp - 4], 1
call fcn.00411554
mov ecx, dword [ebp - 0x820]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.0040f083
inc dword [ebp - 0x814]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x814]
push dword [ebp - 0x818]
mov dword [ebp - 0x81c], 0x80
call esi
test eax, eax
je 0x42f0c4
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x42f156
mov ecx, dword [ebp - 0x824]
add ecx, 0xfffffff0
call fcn.0040f083
mov eax, ebx
jmp 0x42f088
xor ebx, ebx
inc ebx
jmp 0x42f141

Function at 0x42f15b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x502ae0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0044d1b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.0041217e
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044d74d
leave
ret 4