joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d340
Capabilities:
Get disk information

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push eax
lea ecx, [esp + 8]
push ecx
call fcn.0043cf50
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
mov eax, dword [esp + 4]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43d383
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
pop ebx
pop ecx
ret

Function at 0x43d760
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x48a7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bdbb0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0x2e
lea ecx, [esp + 0x20]
call fcn.0043f530
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x38], 0
call fcn.0043f330
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
movzx edx, word [eax + 4]
mov word [esi + 8], dx
movzx ecx, word [eax + 6]
mov word [esi + 0xa], cx
movzx edx, word [eax + 8]
mov word [esi + 0xc], dx
movzx ecx, word [eax + 0xa]
mov word [esi + 0xe], cx
movzx edx, word [eax + 0xc]
mov word [esi + 0x10], dx
movzx ecx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
movzx ecx, word [eax + 0x20]
movzx edx, word [eax + 0x22]
movzx ebx, word [eax + 0x1c]
movzx ebp, word [eax + 0x1e]
mov word [esi + 0x20], dx
mov dword [esp + 0x34], ecx
movzx ecx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x18]
mov dword [esi + 0x28], eax
call fcn.0043f410
mov ecx, dword [esi + 4]
cmp ecx, dword [0x4bc3ac]
jne 0x43d8d4
mov ecx, edi
call fcn.0043e360
movzx ebx, bx
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x1c], eax
call fcn.0043f440
mov eax, dword [esi + 0x3c]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
push ebx
push eax
mov eax, dword [edx + 0x34]
call eax
test bp, bp
je 0x43d88b
movzx ebx, bp
push 0
push ebx
lea ecx, [esi + 0x2c]
call fcn.0043f440
mov eax, dword [esi + 0x30]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
push ebx
push eax
mov eax, dword [edx + 0x34]
call eax
mov eax, dword [esp + 0x34]
test ax, ax
je 0x43d8b1
movzx ebx, ax
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.0043f440
mov ecx, dword [edi + 0x1c]
mov esi, dword [esi + 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
push ebx
push esi
call eax
mov ecx, edi
call fcn.0043e360
cmp eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
sete bl
mov dword [esp + 0x2c], 0xffffffff
call fcn.0043f560
mov al, bl
jmp 0x43d8e7
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0043f560
xor al, al
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x43d930
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x48a7a8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bdbb0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x34]
mov ebp, dword [esi + 0x40]
mov dword [esp + 0x14], eax
movzx eax, ax
movzx edi, bp
lea ebx, [edi + eax + 0x1e]
push 0
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], eax
call fcn.0043f530
mov eax, dword [esp + 0x20]
mov ecx, dword [0x4bc3b0]
mov dword [eax], ecx
movzx edx, word [esi + 0xa]
mov eax, dword [esp + 0x20]
mov word [eax + 4], dx
movzx ecx, word [esi + 0xc]
mov edx, dword [esp + 0x20]
mov word [edx + 6], cx
mov ax, word [esi + 0xe]
mov ecx, dword [esp + 0x20]
mov word [ecx + 8], ax
movzx edx, word [esi + 0x10]
mov eax, dword [esp + 0x20]
mov word [eax + 0xa], dx
movzx ecx, word [esi + 0x12]
mov edx, dword [esp + 0x20]
mov word [edx + 0xc], cx
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0xe], eax
mov edx, dword [esi + 0x18]
mov eax, dword [esp + 0x20]
mov dword [eax + 0x12], edx
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [edx + 0x16], ecx
mov eax, dword [esp + 0x20]
movzx edx, word [esp + 0x14]
mov word [eax + 0x1a], bp
mov ecx, dword [esp + 0x20]
mov word [ecx + 0x1c], dx
mov eax, dword [esi + 0x3c]
push edi
push eax
mov eax, dword [esp + 0x28]
add eax, 0x1e
push eax
mov dword [esp + 0x3c], 0
call fcn.004638d0
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push eax
lea eax, [edi + edx + 0x1e]
push eax
call fcn.004638d0
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x50]
add esp, 0x18
push 1
push ebx
push ecx
mov ecx, edi
call fcn.0043eeb0
lea ecx, [esi + 0x2c]
call fcn.0043f410
mov ecx, edi
call fcn.0043e360
mov ecx, edi
mov word [esi + 0x20], ax
call fcn.0043e390
sub eax, ebx
lea ecx, [esp + 0x1c]
mov dword [esi + 0x28], eax
mov dword [esp + 0x30], 0xffffffff
call fcn.0043f560
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x43e580
Capabilities:
Access peb ldr_data
Get disk size
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x48a8d8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
mov eax, dword [0x4bdbb0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ecx, dword [ecx + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [esp + 0xc]
push edx
call eax
mov eax, dword [eax]
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x30], 0
call fcn.0043cf50
mov eax, dword [eax]
add esp, 8
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
mov eax, dword [esp + 8]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43e60d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43e635
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x43e64c
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x14]
imul eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x24
ret
Function at 0x441c52
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x441c84
push dword [ebp + 8]
call edi
push eax
call fcn.004529c6
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x441caf
test byte [ebp - 4], 1
je 0x441caf
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x441caf
push dword [ebp + 8]
call edi
push eax
call fcn.004529c6
lea eax, [ebx + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x441d69
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.00441bb4
pop ecx
lea eax, [ebx + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x441ce5
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.00441bb4
pop ecx
lea eax, [ebp - 0x10]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebx]
or eax, dword [ebx + 4]
je 0x441cfb
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.00441bb4
pop ecx
pop ecx
lea esi, [ebp - 0x18]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x441d28
push dword [ebp + 8]
call edi
push eax
call fcn.004529c6
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x441d54
call edi
push ebx
mov dword [ebp - 8], eax
call esi
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.004529c6
push ebx
call esi
test eax, eax
jne 0x441d66
push dword [ebp + 8]
call edi
push eax
call fcn.004529c6
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x441d91
test byte [ebp - 4], 1
jne 0x441d91
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x441d91
push dword [ebp + 8]
call edi
push eax
call fcn.004529c6
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x447bdc
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 0x447c23
call fcn.0044c028
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x447c23
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x447c3f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00447754
mov esi, eax
test edi, edi
je 0x447c3d
test ebx, ebx
je 0x447c3d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x44935c
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x48b1dc
call fcn.00468d5d
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x449381
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4493c7
lea ecx, [ebp - 0x10]
call fcn.0042d680
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.00440d62
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00410980
mov eax, esi
call fcn.00468e35
ret 8

Function at 0x44b4f5
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 0x44b519
cmp dword [edi + 0x54], 0
jne 0x44b519
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0044c028
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.0044b4b6
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 0x450c1d
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 0x450c65
call fcn.0044c028
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x450c65
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x450ca8
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 0x450c91
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 0x450c91
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x450ca5
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 0x4644d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bdbb0]
jne 0x4644da
repz ret
jmp fcn.0046fdbc
Function at 0x476ea6
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.0046bcbd
and dword [ebp - 4], 0
cmp dword [0x4c701c], 0
mov ebx, eax
jne 0x476f57
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x477008
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x477008
push eax
call fcn.0046bc4b
mov dword [esp], 0x49eec8
push edi
mov dword [0x4c701c], eax
call esi
push eax
call fcn.0046bc4b
mov dword [esp], 0x49eeb4
push edi
mov dword [0x4c7020], eax
call esi
push eax
call fcn.0046bc4b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4c7024], eax
call esi
push eax
call fcn.0046bc4b
pop ecx
mov dword [0x4c702c], eax
test eax, eax
je 0x476f57
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046bc4b
pop ecx
mov dword [0x4c7028], eax
mov eax, dword [0x4c7028]
cmp eax, ebx
je 0x476faf
cmp dword [0x4c702c], ebx
je 0x476faf
push eax
call fcn.0046bcc6
push dword [0x4c702c]
mov esi, eax
call fcn.0046bcc6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x476faf
test edi, edi
je 0x476faf
call esi
test eax, eax
je 0x476fa6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x476fa6
test byte [ebp - 0xc], 1
jne 0x476faf
or dword [ebp + 0x10], 0x200000
jmp 0x476fe8
mov eax, dword [0x4c7020]
cmp eax, ebx
je 0x476fe8
push eax
call fcn.0046bcc6
pop ecx
test eax, eax
je 0x476fe8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x476fe8
mov eax, dword [0x4c7024]
cmp eax, ebx
je 0x476fe8
push eax
call fcn.0046bcc6
pop ecx
test eax, eax
je 0x476fe8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c701c]
call fcn.0046bcc6
pop ecx
test eax, eax
je 0x477008
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47700a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47fec0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x47fecf
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x4bf028]
test eax, eax
je 0x47fedd
call fcn.0047fe60
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x47ffdf
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x4c7088]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x4c7088]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x4c7088]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x4c7088]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x4c7088]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x4c7088]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x4c7088]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x4c7088]
xor eax, ecx
inc esi
dec edi
jne 0x47fef7
pop edi
test edx, edx
je 0x480001
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x4c7088]
xor eax, ecx
inc esi
dec edx
jne 0x47ffe3
pop ebx
pop esi
not eax
ret 0xc
Function at 0x22303078
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x22314203
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov dword [ebp - 0x3c], ecx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.Gtools.dll_class_std::basic_string_char__struct_Gchar_traits_char___class_GAllocator_char_____cdecl_getAppPath_void_]
add esp, 4
mov dword [ebp - 4], 0
push str.prestore.zip
lea ecx, [ebp - 0x1c]
call fcn.22307c60
push eax
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x30], esp
lea edx, [ebp - 0x34]
push edx
push 0x2231a4f0
call fcn.22307a90
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.Gtools.dll_class_std::basic_string_char__struct_Gchar_traits_char___class_GAllocator_char_____cdecl_buildString_class_std::basic_string_char__struct_Gchar_traits_char___class_GAllocator_char___]
add esp, 0x1c
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 1
push 0x2231a4f8
lea ecx, [ebp - 0x1c]
call fcn.22307b40
push str.store
lea ecx, [ebp - 0x1c]
call fcn.22307b40
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x38], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.22307a50
mov dword [ebp - 0x48], eax
call dword [sym.imp.Gtools.dll_public:_static_bool___cdecl_GDirList::makeDir_class_std::basic_string_char__struct_Gchar_traits_char___class_GAllocator_char___]
add esp, 0x10
lea ecx, [ebp - 0x2c]
call fcn.22307c60
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x22303150
push 1
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.Gtools.dll_public:_static_bool___cdecl_GZip::unzip_class_std::basic_string_char__struct_Gchar_traits_char___class_GAllocator_char___const___class_std::basic_string_char__struct_Gchar_traits_char___class_GAllocator_char___const___bool_]
add esp, 0xc
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.Gtools.dll_public:_static_bool___cdecl_GFile::deleteFile_class_std::basic_string_char__struct_Gchar_traits_char___class_GAllocator_char___const__]
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.22307ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.22307ac0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x2230a4d6
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
cmp dword [0x2231ac24], 0xddaaffee
jne 0x2230a58d
push 0x400
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x2230a58d
movsx ecx, byte [ebp - 0x3ff]
cmp ecx, 0x3a
jne 0x2230a58d
mov byte [ebp - 0x3fd], 0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x404], 0
push 0x40
lea edx, [ebp - 0x444]
push edx
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x448]
push ecx
lea edx, [ebp - 0x44c]
push edx
push 0x40
lea eax, [ebp - 0x48c]
push eax
lea ecx, [ebp - 0x400]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x2230a58d
mov edx, dword [ebp - 0x44c]
mov dword [0x2231ac24], edx
push 4
push 0x2231ac24
call fcn.2230a591
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x4035b7
Capabilities:
Terminate process

Disassembly:
jmp 0x45b324
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45b335
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405876
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4036d9
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a3db1
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a3dc2
pop esi
ret
push ebx
push edi
push esi
call fcn.004a3c98
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403f85
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a3dea
push ebx
push esi
push edi
call fcn.00405669
add esp, 0xc
push 0
call fcn.004061a4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405727
Capabilities:
Parse pe header

Disassembly:
jmp 0x44a525
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44a564
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44a564
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44a564
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44a564
cmp dword [ecx + 0x74], 0xe
jbe 0x44a564
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4481fb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.0040373d
mov eax, dword [eax + 0x14]
test eax, eax
je 0x44823e
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x44823e
sub eax, 1
je 0x448239
sub eax, 1
je 0x448235
xor eax, eax
leave
ret
push 3
jmp 0x448240
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x48eb8a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48ebc9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48ebc9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48ebc9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x48ebc9
cmp dword [ecx + 0x74], 0xe
jbe 0x48ebc9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x49dc43
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d7f
mov eax, dword [0x4d4040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405dc6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49dc85
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49dde1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405f0b
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4d7978]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00403256
mov ecx, dword [esi*4 + 0x4d7978]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x49ddda
cmp eax, dword [ecx + edi + 0x24]
jne 0x49ddda
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49ddda
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403256
add esp, 0x14
test edx, edx
jl 0x49ddda
jg 0x49dd50
test eax, eax
jb 0x49ddda
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49ddda
jl 0x49dd6a
cmp dword [ebp - 0x1008], eax
ja 0x49ddda
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49dd88
test ebx, ebx
je 0x49ddc1
cmp ecx, edi
jae 0x49ddc1
mov al, byte [ecx]
cmp al, 0xd
jne 0x49dda2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49ddae
cmp byte [ecx + 1], 0xa
jne 0x49ddae
inc ecx
jmp 0x49ddae
movzx eax, al
movsx eax, byte [eax + 0x4d4398]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49dd88
cmp edx, ebx
jne 0x49dd88
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49dddf
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040303a
leave
ret