joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42478f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x4247a8
mov eax, dword [ebp - 4]
jmp 0x424882
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x42485d
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4a0278]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4a0278]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4a0278]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4a0278]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4a0278]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4a0278]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4a0278]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4a0278]
dec ebp
jne 0x4247c7
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x424879
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x4a0278]
dec ecx
jne 0x424867
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4248e1
Capabilities:
Hash data with md5

Disassembly:
push esi
xor ecx, ecx
push 0x40
lea esi, [eax + 0x58]
push ecx
push esi
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
call fcn.0045b9c0
add esp, 0xc
mov byte [esi], 0x80
pop esi
ret

Function at 0x424a93
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
xor esi, esi
cmp dword [edi + 0x58], esi
jne 0x424ac3
push 0x98
call fcn.0045acc3
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x424ab6
call fcn.004248e1
mov eax, ebx
jmp 0x424ab8
xor eax, eax
cmp eax, esi
mov dword [edi + 0x58], eax
jne 0x424ac3
xor eax, eax
jmp 0x424b39
push ebp
push 0x4a26e0
push dword [esp + 0x14]
call fcn.0045daf1
mov ebp, eax
cmp ebp, esi
pop ecx
pop ecx
jne 0x424ade
xor eax, eax
jmp 0x424b38
cmp dword [edi + 0x5c], esi
mov ebx, 0xff
jne 0x424af2
push ebx
call fcn.0045832c
pop ecx
mov dword [edi + 0x5c], eax
push ebp
push ebx
push 1
push dword [edi + 0x5c]
call fcn.0045dda0
add esp, 0x10
cmp eax, esi
je 0x424b23
push dword [edi + 0x5c]
mov esi, dword [edi + 0x58]
call fcn.00424919
push ebp
push ebx
push 1
push dword [edi + 0x5c]
call fcn.0045dda0
add esp, 0x10
test eax, eax
jne 0x424b05
push ebp
call fcn.0045de2d
mov eax, dword [edi + 0x58]
pop ecx
lea esi, [edi + 4]
push esi
call fcn.004249b0
mov eax, esi
pop ebp
pop esi
pop ebx
ret 4
Function at 0x424b3e
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push esi
push 0x58
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0045b9c0
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
lea esi, [esp + 0x18]
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.00424ba0
push dword [ebp + 8]
mov eax, esi
call fcn.00424c36
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42c0ce
Capabilities:
Get proxy

Disassembly:
mov eax, 0x493488
call fcn.00491844
sub esp, 0x428
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], 0x104
mov esi, 0x206
push esi
lea eax, [ebp - 0x22a]
push ebx
mov dword [ebp - 4], ebx
push eax
mov word [ebp - 0x22c], bx
call fcn.0045b9c0
push esi
lea eax, [ebp - 0x432]
push ebx
push eax
mov word [ebp - 0x434], bx
call fcn.0045b9c0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x18
lea eax, [ebp - 0x1c]
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
mov edi, SysReAllocString
push edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
call esi
cmp eax, ebx
jne 0x42c172
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
push str.ProxyEnable
lea eax, [ebp - 0x10]
push eax
call fcn.0042d761
cmp dword [ebp - 0x10], ebx
je 0x42c172
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
je 0x42c186
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], ebx
je 0x42c2b7
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push edi
mov dword [ebp - 0x10], ebx
call esi
cmp eax, ebx
jne 0x42c2b7
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push str.ProxyServer
lea eax, [ebp - 0x14]
push eax
lea esi, [ebp - 0x24]
lea edi, [ebp - 0x22c]
call fcn.0040a1b1
cmp eax, ebx
jne 0x42c2a9
cmp word [ebp - 0x22c], bx
je 0x42c2a9
mov eax, edi
push 0x104
push eax
call fcn.0045f13d
mov esi, dword [ebp + 8]
mov edi, str.socks
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [esi], 2
call fcn.0045b0f6
add esp, 0x10
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x42c22e
mov dword [esi], 3
push edi
call fcn.0045bd0b
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x434]
push eax
call fcn.0042d6c0
jmp 0x42c267
mov edi, str.http
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.0045b0f6
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp + 8], eax
mov dword [esi], 2
jne 0x42c213
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x434]
push 0x104
push eax
call fcn.0045abd1
add esp, 0xc
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0041fa93
mov esi, dword [ebp + 0x10]
push dword [ebp + 0xc]
mov ecx, esi
lea ebx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0042c2cb
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405ffd
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x42c2a9
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x10], ebx
je 0x42c2b7
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x42cb28
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x42cb40
mov eax, dword [esp + 4]
add eax, ecx
xor byte [eax], 0x88
inc ecx
cmp ecx, dword [esp + 8]
jl 0x42cb30
ret 8
Function at 0x42ef55
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x42efe3
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x42ef8c
cmp dword [ebp - 8], 2
jne 0x42efe2
push esi
mov esi, dword [ebp + 0xc]
call fcn.00416d0e
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.0041fce2
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x42efca
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x42efda
push eax
call fcn.0045bd0b
pop ecx
mov edx, esi
call fcn.0040d228
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x42f144
Capabilities:
Get disk information

Disassembly:
mov eax, 0x49344e
call fcn.00491844
sub esp, 0x2f4
push ebx
push esi
push edi
xor esi, esi
push 0xd2
lea eax, [ebp - 0xee]
push esi
push eax
mov word [ebp - 0xf0], si
call fcn.0045b9c0
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jne 0x42f18f
xor eax, eax
jmp 0x42f253
cdq
and edx, 3
add eax, edx
mov edi, eax
push 0x208
lea eax, [ebp - 0x2fe]
push esi
push eax
sar edi, 2
mov word [ebp - 0x300], si
call fcn.0045b9c0
mov word [ebp - 0xf8], si
mov esi, dword [ebp + 8]
add esp, 0xc
add esi, 4
lea ebx, [ebp - 0xf0]
call fcn.0042f4e9
test edi, edi
jle 0x42f250
mov dword [ebp - 0x10], edi
and word [ebx + 4], 0
push 0x104
lea eax, [ebp - 0x300]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x42f248
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0041fa93
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov edi, esi
call fcn.0042f48e
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405ffd
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.0041fa93
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.0042f48e
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405ffd
add ebx, 8
dec dword [ebp - 0x10]
jne 0x42f1d5
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x42fe82
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esi], eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42ff0b
push ebx
call fcn.0045832c
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42fefc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4a3068
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42fefc
cmp dword [ebp - 0xc], ebx
je 0x42fefc
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x42ff0b
push dword [ebp - 4]
call fcn.0045b76b
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x42ffdb
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4921e0
call fcn.00491844
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x4b9e00
mov dword [ebp - 0x10], edi
call fcn.00405fe2
push 0x206
lea eax, [ebp - 0x216]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x218], di
call fcn.0045b9c0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0041ffb0
push esi
call fcn.0042ff47
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x430129
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.0045b9c0
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x430182
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x430238
mov eax, dword [ebp - 0x94]
dec eax
je 0x430224
dec eax
jne 0x430238
mov eax, dword [ebp - 0xa0]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x4301d1
cmp dword [ebp - 0x9c], edx
jne 0x4301bb
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
add eax, 8
jmp 0x430220
cmp dword [ebp - 0x9c], edi
jne 0x430209
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x430220
cmp eax, 5
jne 0x4301fb
cmp dword [ebp - 0x9c], 2
jne 0x4301e2
push eax
jmp 0x430202
cmp dword [ebp - 0x9c], 1
jne 0x4301ef
mov edi, ecx
jmp 0x430238
cmp dword [ebp - 0x9c], edi
jne 0x430238
push 3
jmp 0x430202
cmp eax, 4
ja 0x430205
push 4
pop edi
jmp 0x430238
cmp eax, ecx
jb 0x430238
cmp dword [ebp - 0x9c], 2
jae 0x430216
cmp eax, ecx
jbe 0x430238
cmp byte [ebp + 0x76], dl
jne 0x430238
call fcn.0043005e
mov edi, eax
jmp 0x430238
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x430b32
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x430b57
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x430c18
push edi
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [ebp - 4], 0x490
call fcn.0045b9c0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x430bc7
lea eax, [ebp - 0x20c]
push 0x4a3224
push eax
call fcn.0045b92e
test eax, eax
pop ecx
pop ecx
je 0x430bbb
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x430b91
jmp 0x430bd0
mov edi, dword [ebp - 0x228]
and dword [ebp - 4], 0
jmp 0x430bd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x430bf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x430c17
push dword [ebp + 8]
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x430c11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push edi
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x430cfd
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test esi, esi
jne 0x430d0f
or eax, 0xffffffff
leave
ret
push 0x110
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0045b9c0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x430d52
cmp dword [ebp - 0x110], 5
jne 0x430d52
cmp dword [ebp - 0x10c], 0
je 0x430d5f
push esi
call fcn.00430c1b
test eax, eax
pop ecx
jne 0x430d5f
leave
ret
push esi
call fcn.00430b32
pop ecx
leave
ret

Function at 0x430d68
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x430e28
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 2
push dword [ebp + 8]
call esi
test eax, eax
jne 0x430dce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x430e27
push edi
push dword [ebp - 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push 2
push dword [ebp + 8]
call esi
test eax, eax
je 0x430e1b
cmp dword [edi], ebx
mov dword [ebp - 0x10], ebx
jbe 0x430e1b
lea esi, [edi + 4]
push dword [esi]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x430e17
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add esi, 8
cmp eax, dword [edi]
jb 0x430df9
jmp 0x430e1b
mov byte [ebp - 1], 1
cmp edi, ebx
je 0x430e26
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
cmp dword [ebp - 8], ebx
pop ebx
je 0x430e37
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, byte [ebp - 1]
leave
ret
Function at 0x430e3c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor edi, edi
push 1
push edi
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
jne 0x430eaa
push 0x110
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.0045b9c0
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x430ea4
cmp dword [ebp - 0x118], 6
jne 0x430ea4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x430edf
mov dword [esi], edi
xor eax, eax
jmp 0x430edf
mov ecx, dword [ebp - 8]
xor eax, eax
cmp dword [ebp - 4], edi
push ebx
mov ebx, 0x490
jbe 0x430ed6
lea edx, [ecx + 8]
cmp dword [edx], edi
je 0x430ecc
inc eax
add edx, 0xc
cmp eax, dword [ebp - 4]
jb 0x430ebd
jmp 0x430ed6
imul eax, eax, 0xc
mov eax, dword [eax + ecx]
mov dword [esi], eax
xor ebx, ebx
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, ebx
pop ebx
pop edi
leave
ret

Function at 0x4310ca
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4941e9
call fcn.00491844
sub esp, 0xc
push ebx
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
xor edi, edi
push eax
mov dword [ebp - 0x14], edi
call fcn.00431154
add esp, 0xc
mov dword [ebp - 4], edi
cmp dword [esi], edi
je 0x431131
mov eax, esi
push dword [eax]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041fc40
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
mov eax, dword [ebp - 0x18]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00405ffd
test bl, bl
jne 0x431138
inc edi
lea eax, [esi + edi*4]
cmp dword [eax], 0
jne 0x4310f9
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405ffd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4317db
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x494902
call fcn.00491844
sub esp, 0x10
mov eax, dword [0x4b9e00]
push ebx
push esi
mov esi, 0x4b9e00
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x4b9e00]
mov ecx, esi
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 1
mov eax, dword [0x4b9e00]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
call fcn.00431756
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
je 0x4318aa
lea eax, [ebp - 0x14]
push eax
call fcn.004317b7
pop ecx
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0041feaa
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405ffd
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], ebx
je 0x4318aa
push str.binTimwp.exe
lea eax, [ebp - 0x10]
push eax
call fcn.0042b78b
mov edi, dword [ebp - 0x10]
push ebx
push edi
call fcn.0045a81c
test eax, eax
pop ecx
pop ecx
jne 0x4318aa
cmp dword [ebp + 8], ebx
je 0x4318aa
push 1
push ebx
push dword [ebp + 8]
push edi
push str.open
push ebx
call esi
xor ecx, ecx
cmp eax, 0x20
setg cl
cmp ecx, ebx
mov dword [ebp - 0x10], ecx
jne 0x4318c4
push 1
push ebx
push ebx
push dword [ebp + 0xc]
push str.open
push ebx
call esi
xor ecx, ecx
cmp eax, 0x20
setg cl
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405ffd
lea eax, [edi - 0x10]
call fcn.00405ffd
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405ffd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x431d64
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and dword [esi], 0
sub esp, 0x144
push ebx
push edi
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IsWow64Process
push str.kernel32.dll
mov edi, eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x431da2
xor al, al
jmp 0x431db8
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push edi
call eax
test eax, eax
je 0x431d9e
cmp dword [ebp - 4], 0
setne al
push 0x118
mov byte [esi + 0x20], al
lea eax, [ebp - 0x140]
push 0
push eax
mov dword [ebp - 0x144], 0x11c
call fcn.0045b9c0
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x138]
push 5
pop edi
cmp eax, edi
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
jne 0x431e1b
test ecx, ecx
jle 0x431e42
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x431e42
push 6
pop edx
cmp eax, edx
jne 0x431e3e
sub ecx, 0
je 0x431e36
dec ecx
je 0x431e2e
mov dword [esi], edi
jmp 0x431e42
mov dword [esi], 4
jmp 0x431e42
mov dword [esi], 3
jmp 0x431e42
jle 0x431e42
mov dword [esi], edx
movzx eax, word [ebp - 0x30]
and dword [ebp - 0x28], 0
mov dword [esi + 0x10], eax
movzx eax, word [ebp - 0x2e]
push 8
pop ecx
mov dword [esi + 0x14], eax
push str.GetNativeSystemInfo
xor eax, eax
lea edi, [ebp - 0x24]
push str.kernel32.dll
rep stosd dword es:[edi], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
pop edi
pop ebx
jne 0x431e83
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x431e89
lea ecx, [ebp - 0x28]
push ecx
call eax
movzx eax, word [ebp - 0x28]
test eax, eax
je 0x431ead
cmp eax, 6
je 0x431ea4
cmp eax, 9
jne 0x431eb1
mov dword [esi + 0x18], 1
jmp 0x431eb1
mov dword [esi + 0x18], 2
jmp 0x431eb1
and dword [esi + 0x18], 0
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x1c], eax
mov eax, esi
leave
ret