joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410080
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x4d9be4]
mov ebx, dword [eax*4 + 0x4d9be0]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x4da214]
mov dword [eax*4 + 0x4d9be0], edx
cmp eax, 0xe2
jl 0x410088
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x4d9be4]
mov ebx, dword [eax*4 + 0x4d9be0]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x4d9854]
mov dword [eax*4 + 0x4d9be0], edx
cmp eax, 0x26e
jl 0x4100d8
mov edx, dword [0x4d9be0]
mov ecx, dword [0x4da59c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x4da210]
mov dword [0x4da59c], eax
mov dword [0x44fe40], 0
pop ebx
ret

Function at 0x410160
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, dword [0x44fe40]
add dword [0x44fe40], 1
mov eax, dword [0x4d8780]
cmp eax, dword [0x44f590]
jne 0x410183
cmp ebx, 0x271
jb 0x4101a4
mov eax, dword [0x4d8780]
call fcn.00410040
not dword [0x4d8780]
mov eax, dword [0x4d8780]
mov dword [0x44f590], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x4101c0
call fcn.00410080
xor ebx, ebx
mov dword [0x44fe40], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x4d9be0]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret

Function at 0x411c90
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x44f2f0]
cmp ax, 0xcb
je 0x411d9c
cmp ax, 0xcc
je 0x411d9c
lea esi, [esi]
mov edx, dword [0x4da7e0]
test edx, edx
je 0x411cc5
mov eax, dword [0x4da690]
call edx
mov ebx, eax
jmp 0x411cca
mov ebx, 0x4da694
cmp word [0x4da680], 0
jle 0x411cf0
mov eax, 0x4da660
call fcn.00411f50
mov eax, ebx
call fcn.00411850
mov eax, ebx
call fcn.004118c0
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x411d12
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x411d0d
mov edx, edi
mov eax, ebx
call fcn.00410cc0
jmp 0x411d10
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x411cf8
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x4da680], 0
jle 0x411d9c
mov edx, 0x4da5a0
mov eax, ebx
call fcn.00410e00
mov edi, eax
test edi, edi
je 0x411d6c
mov eax, dword [0x4da634]
mov dword [edi + 0xc], eax
cmp dword [0x4da634], 0
je 0x411d60
mov eax, dword [0x4da634]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x4da634], eax
nop
sub word [0x4da680], 1
cmp word [0x4da680], 0
sete bl
mov eax, 0x4da660
call fcn.00411f70
test bl, bl
je 0x411d9c
mov eax, 0x4da660
call fcn.00411f40
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x413d00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00413ce0
push ebp
push 0x4150d0
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x413e2a
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040cb50
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x413d8f
mov edx, 0x4d9a60
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x413de1
call sub.kernel32.dll_GetLastError
call fcn.00405d30
lea eax, [ebp - 0x10]
call fcn.0040b960
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.0040be00
mov edx, dword [ebp - 0x14]
mov ecx, 0x4c68a4
lea eax, [ebp - 0x10]
call fcn.0040bc90
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040c540
jmp 0x413e78
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x413dfa
cmp eax, ecx
je 0x413e04
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0040cb50
cmp byte [0x44f560], 0
jne 0x413e78
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040d0a0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040c580
lea esi, [esi]
jmp 0x413e78
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040cb50
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x413e4e
mov eax, 0x4d9a60
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x44f560], 0
jne 0x413e78
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040d0a0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040c580
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00413ce0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414250
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x4d99c0], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.00414430
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x4d99c0]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.004052d0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x44f360], eax
mov ebx, eax
jmp 0x4143f3
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x4142d8
cmp byte [ebx], 0
je 0x4143fc
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x414353
mov al, byte [ebx]
cmp al, 1
jb 0x414348
sub al, 0x20
jbe 0x414318
sub al, 2
je 0x41432c
jmp 0x414348
mov al, byte [ebp - 0x114]
test al, al
je 0x414358
add dword [ebp - 0x110], 1
jmp 0x414350
cmp byte [ebx + 1], 0x22
je 0x414343
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x414350
add ebx, 1
jmp 0x414350
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x414308
test dword [ebp - 0x10c], 0xffffffff
je 0x4143ec
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00414430
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x4d99c0]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x4143e3
mov al, byte [ebx]
cmp al, 1
jb 0x4143d8
sub al, 0x20
jbe 0x4143a8
sub al, 2
je 0x4143bc
jmp 0x4143d8
mov al, byte [ebp - 0x114]
test al, al
je 0x4143e8
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x4143e0
cmp byte [ebx + 1], 0x22
je 0x4143d3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x4143e0
add ebx, 1
jmp 0x4143e0
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x414398
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x4142db
mov ebx, dword [ebp - 0x10c]
mov dword [0x4d99b0], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x4d99c0
call fcn.00411ad0
mov eax, dword [0x4d99c0]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423040
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x26c]
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov bl, cl
mov edx, 0x4ca578
lea eax, [ebp - 0x268]
call fcn.0040f930
xor eax, eax
push fcn.00423020
push ebp
push 0x4150d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x423083
mov eax, 0x4d9a60
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x4230cb
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x42309f
clc
jmp 0x4230a6
bt dword [0x4c9bc0], eax
jb 0x4230bf
mov eax, ebp
call fcn.00423170
test al, al
je 0x4230bf
mov byte [ebp - 0x26c], 1
jmp 0x423150
mov byte [ebp - 0x26c], 0
jmp 0x423150
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x450880]
sete byte [ebp - 0x26c]
mov al, bl
and al, byte [ebp - 0x26c]
je 0x423150
and esi, 0x400
je 0x423150
lea ebx, [ebp - 0x268]
mov edx, 0x4ca578
mov eax, ebx
call fcn.0040f9f0
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.00422ce0
test eax, eax
je 0x423124
sub eax, 1
je 0x42313c
jmp 0x423148
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.00423040
mov byte [ebp - 0x26c], al
jmp 0x423150
mov byte [ebp - 0x26c], 1
jmp 0x423150
mov byte [ebp - 0x26c], 0
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00423020
mov al, byte [ebp - 0x26c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4233a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edx
test eax, eax
jne 0x4233ae
mov eax, 0x4d9a60
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x4233bc
xor ebx, ebx
jmp 0x4233c3
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4233f0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x34]
push ebx
push esi
push edi
test al, al
jne 0x423408
mov byte [ebp - 4], 0x5c
mov byte [ebp - 3], 0
jmp 0x42341f
and eax, 0xff
add eax, 0x40
mov byte [ebp - 4], al
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
cmp dword [0x4dafa0], 0
je 0x42345b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
call dword [0x4dafa0]
test eax, eax
je 0x42344d
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x24]
jmp 0x4234a6
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
jmp 0x4234a6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x42349a
mov eax, dword [ebp - 8]
mul dword [ebp - 0x10]
mov ebx, eax
mov eax, dword [ebp - 0xc]
xor esi, esi
mov ecx, ebx
imul ecx, esi
imul edx, eax
add ecx, edx
mul ebx
add edx, ecx
mov dword [ebp - 0x34], eax
mov edi, edx
jmp 0x4234a6
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
mov edx, edi
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4234c0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x34]
push ebx
push esi
push edi
test al, al
jne 0x4234d8
mov byte [ebp - 4], 0x5c
mov byte [ebp - 3], 0
jmp 0x4234ef
and eax, 0xff
add eax, 0x40
mov byte [ebp - 4], al
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
cmp dword [0x4dafa0], 0
je 0x42352b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
call dword [0x4dafa0]
test eax, eax
je 0x42351d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x1c]
jmp 0x423576
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
jmp 0x423576
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x42356a
mov eax, dword [ebp - 8]
mul dword [ebp - 0x14]
mov ebx, eax
mov eax, dword [ebp - 0xc]
xor esi, esi
mov ecx, ebx
imul ecx, esi
imul edx, eax
add ecx, edx
mul ebx
add edx, ecx
mov dword [ebp - 0x34], eax
mov edi, edx
jmp 0x423576
mov dword [ebp - 0x34], 0xffffffff
mov edi, 0xffffffff
mov edx, edi
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4235c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.004235b0
push ebp
push 0x4150d0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x423630
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040cb50
cmp ebx, 1
jle 0x423620
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.0040c420
jmp 0x42363b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040a250
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004235b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x423a40
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00423a30
push ebp
push 0x4150d0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x4daf3c]
xor edx, edx
call fcn.0040a250
mov dword [ebx*4 + 0x4daf5c], 0xffffffff
cmp ebx, 7
jl 0x423a68
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x423af4
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.0040ac40
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.00419fe0
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x423af4
push 4
push ebx
push esi
mov eax, 0x423910
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x4239a0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00423a30
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x424140
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor edx, edx
push fcn.00424110
push ebp
push 0x4150d0
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.00419bb0
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.0040a250
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.0040b7e0
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.0040a250
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov ebx, eax
jmp 0x42424c
lea ecx, [ebp - 8]
mov eax, ebx
xor dx, dx
call fcn.0040aba0
mov eax, dword [ebp - 8]
test eax, eax
je 0x4241d7
mov eax, dword [eax - 4]
mov edi, eax
lea eax, [ebp - 8]
xor cl, cl
mov dx, 1
call fcn.0040b7e0
mov edx, dword [ebp - 8]
mov ecx, 1
mov al, 0x3d
call fcn.0040b180
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi - 1]
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.0040b020
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00419bb0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.0040adc0
test eax, eax
jne 0x424244
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x424233
mov eax, dword [eax - 4]
sub eax, esi
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.0040b020
jmp 0x424255
lea eax, [ebx + edi]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x4241c0
push dword [ebp - 0x1c]
call sub.kernel32.dll_FreeEnvironmentStringsA
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00424110
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4242a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x4dafa0], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x4dae00], eax
mov eax, dword [ebp - 0x90]
mov dword [0x4dae10], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x4dae20], eax
mov eax, dword [ebp - 0x88]
mov dword [0x4dae30], eax
mov edx, 0x4dae41
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.004052d0
lea eax, [ebp - 0x80]
call fcn.004061d0
mov byte [0x4dae40], al
mov eax, str.kernel32
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x4dafb0], eax
test eax, eax
je 0x424340
mov eax, str.GetDiskFreeSpaceExA
push eax
push dword [0x4dafb0]
call sub.kernel32.dll_GetProcAddress
mov dword [0x4dafa0], eax
nop
cmp dword [0x4dae10], 6
jae 0x424354
mov dword [0x450140], 0
nop
cmp dword [0x4dae10], 6
jb 0x424370
cmp dword [0x4dae20], 1
jb 0x424370
mov dword [0x450150], 2
mov esp, ebp
pop ebp
ret
Function at 0x426110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00426100
push ebp
push 0x4150d0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x426220
mov al, byte [ebp - 0x110]
test al, al
je 0x4261e9
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00406780
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.0040aad0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040b7e0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x4cac80
call fcn.00421d80
mov edx, 0x42617a
mov ecx, ebp
call fcn.00414f90
jmp 0x426220
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x4cac80
call fcn.00421d80
mov edx, 0x4261e9
mov ecx, ebp
call fcn.00414f90
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4262e4
mov al, byte [ebp - 0x110]
test al, al
je 0x4262ad
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00406780
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.0040aad0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040b7e0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x4cac80
call fcn.00421d80
mov edx, 0x42623e
mov ecx, ebp
call fcn.00414f90
jmp 0x4262e4
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x4cac80
call fcn.00421d80
mov edx, 0x4262ad
mov ecx, ebp
call fcn.00414f90
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.00425800
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00426100
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4377b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x43785a
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x437876
mov dword [ebp - 0x20], 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x437876
sub dx, 0x20
je 0x437850
sub dx, 0x80
je 0x437850
sub dx, 0x1f62
jb 0x437876
sub dx, 1
jbe 0x437850
sub dx, 6
je 0x437850
sub dx, 0x26
jne 0x437876
nop
jmp 0x437850
cmp eax, dword [ebp - 0x20]
jg 0x4377f8
lea esi, [esi]
jmp 0x437876
cmp dword [ebp - 0x1c], 2
jne 0x43786a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x437876
mov al, byte [ebp - 0xc]
call fcn.0040c880
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x4378f4
sub ax, 0x21
je 0x437908
sub ax, 0x17
je 0x437914
sub ax, 0x222
je 0x437920
sub ax, 0x392
je 0x437928
sub ax, 1
je 0x437930
sub ax, 0x1996
je 0x437938
sub ax, 1
je 0x437940
sub ax, 6
je 0x437948
sub ax, 0xb
je 0x437958
sub ax, 0x1b
je 0x437950
sub ax, 0x367
je 0x437960
jmp 0x437968
mov ax, word [ebp - 0x24]
call fcn.0040c8f0
mov byte [ebp - 0x10], al
jmp 0x437970
mov byte [ebp - 0x10], 0x20
jmp 0x437970
mov byte [ebp - 0x10], 0x2e
jmp 0x437970
mov byte [ebp - 0x10], 0x27
jmp 0x437970
mov byte [ebp - 0x10], 0x2c
jmp 0x437970
mov byte [ebp - 0x10], 0x27
jmp 0x437970
mov byte [ebp - 0x10], 0x20
jmp 0x437970
mov byte [ebp - 0x10], 0x20
jmp 0x437970
mov byte [ebp - 0x10], 0x20
jmp 0x437970
mov byte [ebp - 0x10], 0x20
jmp 0x437970
mov byte [ebp - 0x10], 0x2d
jmp 0x437970
mov byte [ebp - 0x10], 0x27
jmp 0x437970
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x44d0d0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret
Function at 0x100040e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1007d060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
xor eax, eax
mov esi, ecx
push 0x40e
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push edi
push eax
mov dword [esi], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call fcn.10033520
add esp, 0xc
push edi
push 0x1a
lea eax, [ebp - 0x418]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str...LocalTemp
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x418]
call fcn.10004098
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10031cf1
leave
ret

Function at 0x10004160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1007d060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push edi
push 0x40e
push eax
mov dword [esi], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x416]
xor ecx, ecx
push eax
mov word [ebp - 0x418], cx
call fcn.10033520
add esp, 0xc
push 0x208
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Installer_PatchCache_Managed
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x418]
call fcn.10004098
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10031cf1
leave
ret

Function at 0x100041e1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1007d060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
xor eax, eax
mov esi, ecx
push 0x40e
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push edi
push eax
mov dword [esi], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call fcn.10033520
add esp, 0xc
push edi
push 0x1a
lea eax, [ebp - 0x418]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str...LocalMicrosoftTerminal_Server_ClientCache
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edi, [ebp - 0x418]
call fcn.10004098
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10031cf1
leave
ret