joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e4df7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004d6c91
and dword [ebp - 4], 0
cmp dword [0x5358bc], 0
mov ebx, eax
jne 0x4e4ea8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4e4f59
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4e4f59
push eax
call fcn.004d6c1f
mov dword [esp], 0x50e290
push edi
mov dword [0x5358bc], eax
call esi
push eax
call fcn.004d6c1f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5358c0], eax
call esi
push eax
call fcn.004d6c1f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5358c4], eax
call esi
push eax
call fcn.004d6c1f
pop ecx
mov dword [0x5358cc], eax
test eax, eax
je 0x4e4ea8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004d6c1f
pop ecx
mov dword [0x5358c8], eax
mov eax, dword [0x5358c8]
cmp eax, ebx
je 0x4e4f00
cmp dword [0x5358cc], ebx
je 0x4e4f00
push eax
call fcn.004d6c9a
push dword [0x5358cc]
mov esi, eax
call fcn.004d6c9a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4e4f00
test edi, edi
je 0x4e4f00
call esi
test eax, eax
je 0x4e4ef7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4e4ef7
test byte [ebp - 0xc], 1
jne 0x4e4f00
or dword [ebp + 0x10], 0x200000
jmp 0x4e4f39
mov eax, dword [0x5358c0]
cmp eax, ebx
je 0x4e4f39
push eax
call fcn.004d6c9a
pop ecx
test eax, eax
je 0x4e4f39
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4e4f39
mov eax, dword [0x5358c4]
cmp eax, ebx
je 0x4e4f39
push eax
call fcn.004d6c9a
pop ecx
test eax, eax
je 0x4e4f39
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5358bc]
call fcn.004d6c9a
pop ecx
test eax, eax
je 0x4e4f59
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4e4f5b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ea710
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.004cf4e0
mov eax, dword [0x530790]
xor eax, esp
mov dword [esp + 0x2c10], eax
mov eax, dword [esp + 0x2c18]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x4ea87b
cmp dword [esp + 0x2c20], edi
je 0x4ea87b
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x10], edi
xor ebx, ebx
lea ebx, [ebx]
push ebx
push str..PhysicalDrive_d
lea eax, [esp + 0x30]
push 0x100
push eax
call fcn.00427890
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push edi
lea ecx, [esp + 0x40]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x4ea854
xor eax, eax
push 0x2710
lea edx, [esp + 0x514]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.004ccbe0
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x51c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4ea847
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.004ccbe0
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.004ebe30
mov edx, dword [esp + 0x2c48]
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x128]
push ecx
push edx
push eax
call fcn.00427860
test eax, eax
jne 0x4ea847
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x4ea85e
inc ebx
cmp ebx, 0x10
jl 0x4ea760
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.004cd040
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004cd040
add esp, 0x2c14
ret
Function at 0x4eab20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x530790]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x4ead21
cmp dword [esp + 0x2f8], 0
je 0x4ead21
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004ccbe0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x50e328
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4eace8
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4eacdb
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4eaca9
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4eac9e
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004ccbe0
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.004eaa10
add esp, 0x14
test eax, eax
je 0x4eac9e
cmp byte [esp + 0x24], 0
je 0x4eac62
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x4eac9e
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x4eac91
mov cl, byte [esi + eax]
test cl, cl
je 0x4eac91
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4eac76
jmp 0x4eac95
test edx, edx
jne 0x4eac96
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4eabc0
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x4ead21
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.00427860
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.004cd040
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004cd040
add esp, 0x2ec
ret
Function at 0x4eaf90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x530790]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x4eb10d
cmp ebp, 0x20
jb 0x4eb10d
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.004ccbe0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x50e398
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4eb10d
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4eb020
sub eax, edx
cmp eax, 0x40
jne 0x4eb10d
push ebx
lea edx, [eax + 0x40]
push esi
lea eax, [esp + 0x14]
lea esi, [esp + 0x114]
mov ecx, eax
sub esi, ecx
lea ecx, [edx - 0x60]
test ecx, ecx
je 0x4eb05e
mov cl, byte [esi + eax]
test cl, cl
je 0x4eb05e
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4eb046
jmp 0x4eb062
test edx, edx
jne 0x4eb063
dec eax
mov byte [eax], 0
lea eax, [esp + 0x94]
lea edx, [esp + 0x134]
mov ecx, eax
mov esi, 0x80
sub edx, ecx
lea ecx, [ecx]
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x4eb09b
mov cl, byte [edx + eax]
test cl, cl
je 0x4eb09b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x4eb080
jmp 0x4eb09f
test esi, esi
jne 0x4eb0a0
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.004ccbe0
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.004ea190
add esp, 0x10
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
pop ebx
test eax, eax
jne 0x4eb10d
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.00427860
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.004cd040
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004cd040
add esp, 0x50c
ret

Function at 0x4eb130
Capabilities:
Set registry value

Disassembly:
sub esp, 0x188
mov eax, dword [0x530790]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0xc]
push 0
push eax
mov esi, ecx
call fcn.004ccbe0
push 0x80
lea ebx, [esp + 0x18]
mov ecx, esi
call fcn.004ea190
lea eax, [esp + 0x98]
mov ecx, eax
add esp, 0x10
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4eb19b
mov cl, byte [esi + eax]
test cl, cl
je 0x4eb19b
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4eb180
jmp 0x4eb19f
test edx, edx
jne 0x4eb1a0
dec eax
lea edx, [esp + 8]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x90]
push eax
call fcn.004ea0a0
lea eax, [esp + 0x88]
pop esi
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4eb1c6
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
push 1
push 0x50e398
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.004cd040
add esp, 0x188
ret
Function at 0x421c20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x421c42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421c49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421c38
mov eax, 1
add ebx, ebx
jne 0x421c5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421c50
jne 0x421c6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421c50
xor ecx, ecx
sub eax, 3
jb 0x421c80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x421cf2
mov ebp, eax
add ebx, ebx
jne 0x421c8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421c98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x421cbc
inc ecx
add ebx, ebx
jne 0x421ca8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x421c9d
jne 0x421cb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421c9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x421cdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x421ccd
jmp 0x421c3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x421cdc
add edi, ecx
jmp 0x421c3e
pop esi
mov edi, esi
mov ecx, 0x844
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x421cfa
cmp byte [edi], 0xd
jne 0x421cfa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x421cff
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x421d77
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x228e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22998]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x421d2c
mov ecx, edi
jns 0x421d5b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2299c]
or eax, eax
je 0x421d71
mov dword [ebx], eax
add ebx, 4
jmp 0x421d49
call dword [esi + 0x229a0]
popal
jmp section.UPX0
Function at 0x4287df
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
cmp dword [0x45aa24], 0
je 0x428816
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call main
add esp, 4
jmp 0x42882f
call main
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call main
add esp, 4
jmp 0x42882f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42d8dd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x42d8ec
pop dword [ebp - 0x40]
mov eax, 0x42d8ec
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x4b8b9
push 0
mov eax, 0x84ebc906
sub eax, 0x84a5612e
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0xf51e1e9e
sub ecx, 0xf51ddf1e
mov edx, eax
mov ebx, 0xdbfef7b
sub ebx, 0xd770f7b
add ebx, dword [ebp - 0x40]
mov edi, 0xf1a7ef26
add edi, 0xd1cd08a5
xor dword [ebp - 0x3c], edx
mov esi, dword [ebx]
add esi, edi
sub dword [ebp - 0x20], 0x9b653f86
mov dword [edx], esi
sub dword [ebp - 0x18], 0xd7b5aee4
add edx, 0x64e849d
add edx, 0xf9b17b67
add ebx, 4
loop 0x42d946
add eax, 0x172cc4c6
sub eax, 0x172bd3f3
mov ebx, eax
add eax, 5
mov ecx, 0xe510a89a
sub ecx, 0xe4d0a89a
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x44c8c0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.kernel32.dll_MoveFileA]
test eax, eax
mov eax, 0
jne 0x44c8df
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x44c8f2
push eax
call fcn.0044d700
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x405b29
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x405b38
pop dword [ebp - 0x48]
mov eax, 0x21f43408
add eax, 0xde4c2730
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xf310c4d7
add dword [ebp - 0x58], 0x5b418074
mov dword [ebp - 0x54], 0xa3c460f9
add dword [ebp - 0x54], 0x8e6eeb4c
mov dword [ebp - 0x50], 0x3b80bf87
add dword [ebp - 0x50], 0x10cb84a7
mov dword [ebp - 0x4c], 0x57a0ee58
add dword [ebp - 0x4c], 0xa85f11a8
lea eax, [ebp - 0x58]
push eax
mov eax, 0xd91049c5
sub eax, 0xd8ce1951
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xf73ee2d4
sub dword [ebp - 0x58], 0x82cc797e
mov dword [ebp - 0x54], 0xf55bb070
add dword [ebp - 0x54], 0x4c10b105
mov dword [ebp - 0x50], 0xd9327fc3
add dword [ebp - 0x50], 0x8a3ceca9
mov dword [ebp - 0x4c], 0x102b3ebd
sub dword [ebp - 0x4c], 0x102b3ebd
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x399f6
push 0
call eax
mov ecx, 0x33e3
mov esi, eax
mov edx, 0xbcb61d51
add edx, 0x438d26af
add edx, dword [ebp - 0x48]
mov edi, 0x3e50fd78
add edi, 0xf84c2ad2
add dword [ebp - 0x28], ecx
mov ebx, dword [edx]
add dword [ebp - 0x30], 0xae42dc7b
sub ebx, edi
xor dword [ebp - 0x38], eax
mov dword [esi], ebx
mov dword [ebp - 0x20], 0x4a61632b
add esi, 0x1ea9c687
add esi, 0xe156397d
add edx, 0x8fc6d6a7
sub edx, 0x8fc6d6a3
loop 0x405c4f
add eax, 0x42e434a7
sub eax, 0x42e37248
xor ebx, ebx
add ebx, eax
add eax, 0xca94ecf3
sub eax, 0xca94ecee
mov ecx, 0x9ff625f5
add ecx, 0x6049da0b
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x10018be0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10018bf5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10018c34
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10018c30
lea ebx, [ebx]
cmp esi, edx
jae 0x10018c34
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x10018c20
cmp esi, edx
jb 0x10018c39
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x100191b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067148
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x100864b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
lea eax, [ebp + 8]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10015100
lea ecx, [ebp - 0x28]
call fcn.10019d30
mov esi, eax
add esp, 0x18
lea eax, [ebp + 8]
cmp eax, esi
je 0x10019241
cmp dword [ebp + 0x1c], 0x10
jb 0x10019226
push dword [ebp + 8]
call fcn.1002771b
add esp, 4
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
call fcn.10014360
cmp dword [ebp - 0x14], 0x10
jb 0x10019252
push dword [ebp - 0x28]
call fcn.1002771b
add esp, 4
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmovae eax, dword [ebp + 8]
push eax
call esi
test eax, eax
jne 0x1001927c
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call esi
test eax, eax
setne bl
cmp dword [ebp + 0x1c], 0x10
jb 0x100192a0
push dword [ebp + 8]
call fcn.1002771b
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10019980
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067280
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x100864b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp + 8]
mov dword [ebp - 0x14], 7
push eax
mov dword [ebp - 0x18], 0
call fcn.10014790
sub esp, 0x18
mov byte [ebp - 4], 1
mov esi, esp
xor eax, eax
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.10014790
mov ecx, esi
call fcn.1001c5d0
add esp, 0x18
call fcn.10019050
add esp, 0x18
mov bl, al
cmp dword [ebp - 0x14], 8
jb 0x10019a23
push dword [ebp - 0x28]
call fcn.1002771b
add esp, 4
test bl, bl
jne 0x10019a2b
mov bl, 1
jmp 0x10019a59
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0x80
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
cmp dword [ebp + 0x1c], 8
jb 0x10019a6a
push dword [ebp + 8]
call fcn.1002771b
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001b3a0
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100676f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100864b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
push eax
movzx eax, cx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x1001b4be
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x1001b4be
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001b4be
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1001b4be
cmp dword [ebp + 0x34], 0x10
lea ecx, [ebp + 0x20]
cmovae ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1001b45e
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.10015230
mov edx, 0x64
mov ecx, 0xbb8
call fcn.10019a80
add esp, 0x18
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push 0
cmovae eax, dword [ebp + 0x20]
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001b4be
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001b4be
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.10015230
call fcn.10019050
add esp, 0x18
test al, al
je 0x1001b4be
mov bl, 1
jmp 0x1001b4c0
xor bl, bl
cmp dword [ebp + 0x1c], 0x10
jb 0x1001b4d1
push dword [ebp + 8]
call fcn.1002771b
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
jb 0x1001b4f4
push dword [ebp + 0x20]
call fcn.1002771b
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100325a2
mov esp, ebp
pop ebp
ret
Function at 0x1001b520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 0x10
push ebx
push esi
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x24]
push eax
movzx eax, cx
push eax
push edi
mov dword [ebp - 8], edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x1001b59c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x1001b59c
cmp dword [ebp - 8], 0
jne 0x1001b56f
mov eax, dword [ebp - 4]
mov bl, 1
mov dword [eax], esi
jmp 0x1001b59e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001b59c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1001b59c
push esi
push eax
mov eax, dword [ebp - 4]
push dword [eax]
push dword [ebp - 8]
call fcn.10033542
add esp, 0x10
mov bl, 1
jmp 0x1001b59e
xor bl, bl
cmp dword [ebp + 0x1c], 0x10
jb 0x1001b5af
push dword [ebp + 8]
call fcn.1002771b
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001b980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067b3a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100864b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.1004fe8b
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x1001ba26
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.10041753
push 0x100846ec
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.10033a26
push edi
push esi
call fcn.1004ccfd
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100325a2
mov esp, ebp
pop ebp
ret 4