joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e4f30
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x66533e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [esp + 0x50]
push 0
push 0
push 0
push 0
push 0
push 0
push 3
lea ecx, [esp + 0x50]
push ecx
push eax
call fcn.00620297
add esp, 0x24
test eax, eax
jne 0x5e5063
test byte [0x75c8c0], 1
jne 0x5e4fe1
or dword [0x75c8c0], 1
mov dword [esp + 0x48], eax
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x75c8bc], eax
test eax, eax
je 0x5e4fcf
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x75c8b8], eax
mov dword [0x75c8b4], 1
test eax, eax
jne 0x5e4fd9
mov dword [0x75c8b4], 0
mov dword [esp + 0x48], 0xffffffff
or esi, 0xffffffff
or edi, esi
cmp dword [0x75c8b4], 0
je 0x5e5017
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
call dword [0x75c8b8]
test eax, eax
je 0x5e504a
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
jmp 0x5e504a
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x5e504a
mov esi, dword [esp + 0x14]
imul esi, dword [esp + 0xc]
imul esi, dword [esp + 0x10]
xor edi, edi
cmp edi, dword [esp + 0x58]
jg 0x5e5063
jl 0x5e5058
cmp esi, dword [esp + 0x54]
ja 0x5e5063
and esi, edi
cmp esi, 0xffffffff
je 0x5e5063
xor al, al
jmp 0x5e5065
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x40
ret
Function at 0x5e6570
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19010]
mov eax, 0x19010
call fcn.0061ea30
push 0xffffffffffffffff
push 0x665478
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x755898]
xor eax, ebp
mov dword [ebp + 0x1900c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.005e4f20
mov ecx, esi
call fcn.005e6240
xor edi, edi
mov dword [ebp - 0x18], edi
xor eax, eax
cmp edi, dword [esi + 0xbc]
jge 0x5e66c5
mov dword [ebp], ebx
mov dword [ebp + 8], ebx
mov word [ebp + 4], ax
mov byte [ebp - 4], 1
add esi, 0xb8
push ebx
push edi
mov ecx, esi
call fcn.0043b8e0
push eax
push str._s.z
lea ecx, [ebp]
call fcn.004021b0
mov eax, dword [ebp]
cmp eax, ebx
jne 0x5e660e
lea eax, [ebp + 4]
push 0x6b719c
push eax
call fcn.005de370
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x5e672d
push 0x681c1c
push edi
mov ecx, esi
call fcn.0043b8e0
push eax
call fcn.0061ffcd
add esp, 8
mov esi, eax
test esi, esi
jne 0x5e6660
push ebx
call fcn.005de050
add esp, 4
mov eax, dword [ebp]
test eax, eax
jne 0x5e6726
lea eax, [ebp + 4]
jmp 0x5e6726
push esi
call fcn.0062559c
add esp, 4
test eax, eax
jne 0x5e6708
push esi
push 0x19000
push 1
lea ecx, [ebp + 0xc]
push ecx
call fcn.006222ec
mov edi, eax
push esi
call fcn.006255d0
add esp, 0x14
test eax, eax
je 0x5e66ea
push ebx
call fcn.005de050
add esp, 4
mov eax, dword [ebp]
test eax, eax
jne 0x5e66a4
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.0061fca7
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1900c]
xor ecx, ebp
call fcn.0061d2ff
add ebp, 0x19010
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x5e6700
push edi
lea edx, [ebp + 0xc]
push edx
push ebx
call fcn.005dde70
add esp, 0xc
cmp eax, edi
jne 0x5e6691
mov edi, dword [ebp - 0x18]
jmp 0x5e6660
push ebx
call fcn.005de050
push esi
call fcn.0061fca7
add esp, 8
push edi
mov ecx, dword [ebp - 0x14]
add ecx, 0xb8
call fcn.0043b8e0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
inc edi
xor ebx, ebx
mov esi, dword [ebp - 0x14]
jmp 0x5e65c8
Function at 0x5e6770
Capabilities:
Check if file exists
Delete file
Get file attributes
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19010]
mov eax, 0x19010
call fcn.0061ea30
push 0xffffffffffffffff
push 0x6654a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x755898]
xor eax, ebp
mov dword [ebp + 0x1900c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.005e6240
xor edi, edi
mov dword [ebp - 0x14], edi
xor eax, eax
cmp edi, dword [esi + 0xbc]
jge 0x5e687e
mov dword [ebp], ebx
mov dword [ebp + 8], ebx
mov word [ebp + 4], ax
mov byte [ebp - 4], 1
add esi, 0xb8
push ebx
push edi
mov ecx, esi
call fcn.0043b8e0
push eax
push str._s.z
lea ecx, [ebp]
call fcn.004021b0
mov eax, dword [ebp]
cmp eax, ebx
jne 0x5e6807
lea eax, [ebp + 4]
push 0x681c1c
push eax
call fcn.005de370
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x5e6848
call fcn.00622b14
push edi
mov ecx, esi
call fcn.0043b8e0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5e686d
mov byte [ebp - 4], bl
lea ecx, [ebp]
call fcn.00401210
inc edi
mov esi, dword [ebp - 0x18]
jmp 0x5e67c1
push 0x679450
push edi
mov ecx, esi
call fcn.0043b8e0
push eax
call fcn.0061ffcd
add esp, 8
mov edi, eax
test edi, edi
jne 0x5e68a3
push ebx
call fcn.005de050
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1900c]
xor ecx, ebp
call fcn.0061d2ff
add ebp, 0x19010
mov esp, ebp
pop ebp
ret
push ebx
call fcn.005ddfc0
add esp, 4
test eax, eax
jne 0x5e6969
push 0x19000
lea ecx, [ebp + 0xc]
push ecx
push ebx
call fcn.005de390
add esp, 0xc
mov esi, eax
cmp esi, 0xffffffff
jne 0x5e68ec
push edi
call fcn.0061fca7
push ebx
call fcn.005de050
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
or eax, esi
jmp 0x5e687e
test esi, esi
jle 0x5e68a3
push edi
push esi
push 1
lea edx, [ebp + 0xc]
push edx
call fcn.0061fe85
add esp, 0x10
cmp eax, esi
je 0x5e68a3
call fcn.00622b14
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x2800]
cdq
push edx
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0xb8
call fcn.0043b8e0
push eax
call fcn.005e4f30
add esp, 0xc
test al, al
mov esi, 0x755f
je 0x5e693e
mov esi, dword [ebp - 0x1c]
push ebx
call fcn.005de050
push edi
call fcn.0061fca7
add esp, 8
test esi, esi
jne 0x5e6956
mov esi, 1
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
mov eax, esi
jmp 0x5e687e
push ebx
call fcn.005de050
push edi
call fcn.0061fca7
add esp, 8
mov eax, dword [ebp]
test eax, eax
jne 0x5e6982
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00401210
mov edi, dword [ebp - 0x14]
inc edi
xor ebx, ebx
mov esi, dword [ebp - 0x18]
jmp 0x5e67c1
Function at 0x5e69f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x64ad78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2c]
push 0
mov esi, ecx
push edi
push 0x675ea0
lea ecx, [esi + 0xac]
call fcn.004021b0
cmp byte [esp + 0x30], 0
je 0x5e6a4b
mov ecx, esi
call fcn.005e6770
test eax, eax
jne 0x5e6aa3
xor eax, eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov word [esp + 0x10], ax
mov dword [esp + 0x24], eax
push eax
push edi
push str._s.pdb
lea ecx, [esp + 0x18]
call fcn.004021b0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5e6a82
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x30]
push ecx
push eax
lea ecx, [esi + 0x50]
call fcn.005e83d0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00401210
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x1c
ret 8

Function at 0x5e6b60
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x656dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
call fcn.005e4f20
mov ecx, esi
call fcn.005e6240
xor ebp, ebp
cmp dword [esi + 0xbc], ebp
jle 0x5e6c2e
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
mov eax, dword [esi + 0xc4]
mov ecx, dword [eax + edi]
add eax, edi
test ecx, ecx
jne 0x5e6bc8
lea ecx, [eax + 4]
push ecx
call ebx
xor edx, edx
xor eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], edx
mov word [esp + 0x18], ax
mov dword [esp + 0x2c], edx
mov eax, dword [esi + 0xc4]
mov ecx, dword [eax + edi]
add eax, edi
cmp ecx, edx
jne 0x5e6bf2
lea ecx, [eax + 4]
push edx
push ecx
push str._s.z
lea ecx, [esp + 0x20]
call fcn.004021b0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5e6c0e
lea eax, [esp + 0x18]
push eax
call ebx
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401210
inc ebp
add edi, 0xc
cmp ebp, dword [esi + 0xbc]
jl 0x5e6bb6
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x1c
ret
Function at 0x5e80e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x10]
push 2
lea eax, [esp + 0x14]
push eax
push 0
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esi + 8]
mov ebp, dword [esi + 0xc]
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x5e8149
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
add esp, 8
ret 8
mov eax, dword [esp + 0x24]
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov edx, ebp
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 8

Function at 0x5e8170
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov bl, byte [esp + 0x20]
push esi
mov esi, ecx
test bl, bl
je 0x5e8189
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x10]
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x5e81d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5e81d6
test bl, bl
je 0x5e81cc
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x14
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5e81be
test bl, bl
je 0x5e8203
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 0x14
Function at 0x5e8210
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 8
cmp eax, dword [esp + 0x14]
push esi
mov esi, ecx
jg 0x5e82b0
push ebx
push ebp
push edi
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x10]
mov ebp, dword [esp + 0x20]
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x5e827c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5e827c
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
or edx, eax
pop esi
add esp, 8
ret 0x14
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push 0
lea edx, [esp + 0x28]
push edx
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
je 0x5e8267
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov edx, ebp
pop ebp
mov eax, ebx
pop ebx
pop esi
add esp, 8
ret 0x14
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.005e80e0
pop esi
add esp, 8
ret 0x14

Function at 0x5e8310
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x2c]
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x5e8367
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5e8367
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 0x10
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
je 0x5e8357
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret 0x10
Function at 0x5e83d0
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.005e82d0
mov ebp, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
cmp byte [esp + 0x18], al
push 0
setne al
push 0
lea eax, [eax + eax + 2]
mov edi, eax
push edi
push 0
push 3
push 0xc0000000
push ebp
call ebx
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x5e841a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0
push 0
push edi
push 0
push 3
push 0xc0000000
push ebp
call ebx
mov dword [esi + 0x2c], eax
cmp eax, 0xffffffff
jne 0x5e844b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call fcn.005e82d0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
cmp byte [esp + 0x18], 0
je 0x5e84a1
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
cmp eax, 0xffffffff
jne 0x5e8482
cmp dword [esi + 0xc], 0
jne 0x5e8482
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x5e843b
mov eax, dword [esp + 0x18]
push 1
push 0
push 0
push eax
call fcn.00621c40
add dword [esi + 8], eax
pop edi
adc dword [esi + 0xc], edx
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
xor eax, eax
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
pop esi
pop ebp
pop ebx
ret 8
Function at 0x5f29ea
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x6668fd
call fcn.00625bf8
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x5f2a0f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x5f2a55
lea ecx, [ebp - 0x10]
call fcn.00402500
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005f1720
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004011f0
mov eax, esi
call fcn.00625cd0
ret 8

Function at 0x5f370a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.005f9c7a
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x5f3743
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.005f335b
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x5f37a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x5f37c5
cmp dword [edi + 0x54], 0
jne 0x5f37c5
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.005f9c7a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.005f3762
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5f928d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x5f92d4
call fcn.005f9c7a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x5f92d4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x5f92f0
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.005f8e07
mov esi, eax
test edi, edi
je 0x5f92ee
test ebx, ebx
je 0x5f92ee
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x6019b0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x755898]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x601a4e
push 0x70134c
push 4
push eax
call fcn.006278d2
push eax
call fcn.00401000
add esp, 0x10
push ebx
push edi
call fcn.00622b14
mov edi, dword [eax]
call fcn.00622b14
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00620276
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.00622b14
cmp dword [eax], ebx
je 0x601a65
call fcn.00622b14
push dword [eax]
call fcn.005f1b78
pop ecx
jmp 0x601a6c
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x6019f6
jmp 0x601af3
call fcn.00622b14
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x601aef
cmp dword [ebp - 0x11c], esi
jae 0x601aef
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.0061d9e0
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x601ade
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x601ade
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x601ade
push ebx
push ebx
push esi
jmp 0x601ae7
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x601af1
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0061d2ff
leave
ret

Function at 0x6030d9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x603121
call fcn.005f9c7a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x603121
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x603164
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x60314d
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x60314d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x603161
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x60671b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.005f9c7a
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x606748
xor eax, eax
jmp 0x6067ee
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x606741
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x606741
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005f1588
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x60679f
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x60678e
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00605485
push edi
mov ebx, eax
call fcn.005f15b7
pop ecx
test ebx, ebx
je 0x6067e1
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00605b30
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00605be4
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x607f8f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x607fa7
mov edi, dword [esi + 0xc]
jmp 0x607fe7
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x607fc0
call fcn.005f9f87
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x607fd5
call fcn.005f9f87
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x607fe7
call fcn.005f9f87
call fcn.005f9c7a
cmp dword [eax + 0x3c], 0
je 0x607ffc
push edi
mov ecx, ebx
call fcn.00606d91
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00607eb5
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x60801a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x608026
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8