joyce8/EMBER2024-capa huggingface dataset:
Function at 0x838000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x838131
push esi
call fcn.0083b145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0082a080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x838131
push 0
push ebp
call fcn.0082a3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0082a260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x83808b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0082a2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x838121
push 0x850918
push edi
call fcn.008393f0
push eax
push ebx
push esi
call fcn.00837f60
push 0x8508f8
push edi
call fcn.008393f0
push eax
push ebx
push esi
call fcn.00837f60
push 0x8508d8
push edi
call fcn.008393f0
push eax
push ebx
push esi
call fcn.00837f60
push 0x8508c0
push edi
call fcn.008393f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00837f60
push 0x8508a0
push edi
call fcn.008393f0
push eax
push ebx
push esi
call fcn.00837f60
push 0x850888
push edi
call fcn.008393f0
push eax
push ebx
push esi
call fcn.00837f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x8391b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00839140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00839140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00839140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00839140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x839bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x839c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x84b87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x839c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x839c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x403e59
pop dword [ebp - 0x44]
mov eax, 0x403e59
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xaf0e8d22
add dword [ebp - 0x54], 0x9f43b829
mov dword [ebp - 0x50], 0xc48e7424
add dword [ebp - 0x50], 0x6da4d821
mov dword [ebp - 0x4c], 0x376874a2
add dword [ebp - 0x4c], 0x14e3cf8c
mov dword [ebp - 0x48], 0x6335853
add dword [ebp - 0x48], 0xf9cca7ad
lea eax, [ebp - 0x54]
push eax
mov eax, 0xe05a45a8
add eax, 0x1fe63ae4
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x98807b09
sub dword [ebp - 0x54], 0x240e11b3
mov dword [ebp - 0x50], 0xcd11d4fe
sub dword [ebp - 0x50], 0x8ba57389
mov dword [ebp - 0x4c], 0x33982038
add dword [ebp - 0x4c], 0x2fd74c34
mov dword [ebp - 0x48], 0xe2806c6b
sub dword [ebp - 0x48], 0xe2806c6b
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x63dc1a8
add eax, 0xfa02bf2c
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3792d
push 0
call eax
mov ecx, 0xfce1c691
sub ecx, 0xfce17b43
xor esi, esi
add esi, eax
mov edi, 0x411000
add edi, dword [ebp - 0x44]
mov ebx, 0x74670696
mov dword [ebp - 0x14], 0x52953bbf
mov edx, dword [edi]
add dword [ebp - 0x38], 0x77de3466
xor edx, ebx
add dword [ebp - 0x34], ecx
mov dword [esi], edx
add dword [ebp - 0x3c], ebx
add esi, 4
add edi, 4
loop 0x403f6c
add eax, 0x26630183
add eax, 0xd99e1e88
xor ebx, ebx
add ebx, eax
add eax, 0xff2c2dc
sub eax, 0xff2c2d7
mov ecx, 0x9762612e
add ecx, 0x68dd9ed2
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x40814e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
call 0x40814e
add byte [ebx], bh
inc edi
dec edx
dec edx
cmp byte [edx], bh
inc edx
cmp dword [eax], edi
cmp al, byte [ebx + 0x515a04c4]
or ecx, 0x75a1
pop ecx
cmp dword [ebp - 0x15e0], 0

Function at 0x408161
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jne 0x408172
mov dword [ebp - 0x758], 0
jmp 0x408419
mov edx, dword [ebp - 0x15e0]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xcb4], ecx
call dword [eax + 0x50]
add esp, 4
xor eax, 0x14967
pop eax
push ecx
push edx
add esp, 4
or ecx, 0x1576f
xor ecx, 0x175af
pop ecx
push ecx
call 0x4081b2
add byte [eax + 0x48], cl
dec edx
cmp eax, 0x354c484a
add esp, 4
pop ecx
cmp dword [ebp - 0xcb4], 0
jne 0x4081ce
mov dword [ebp - 0x758], 0
jmp 0x408419
mov edx, dword [ebp - 0xcb4]
mov dword [ebp - 0x504], edx
push ebx
push ecx
add esp, 4
call 0x4081ee
add byte [edx], dh
cmp eax, 0x4b4c3445
push eax
inc esp
cmp eax, dword [ebx - 0x147efb3c]
push ecx
scasd eax, dword es:[edi]
add byte [eax], al
and ebx, 0x167d2
pop ebx
push edi
or edi, 0x9b1c
xor edi, 0x998f
pop edi
lea eax, [ebp - 0x1778]
mov dword [ebp - 0xcb0], eax
mov ecx, dword [ebp - 0x504]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xcac], edx
xor eax, eax
mov word [ebp - 0x230], ax
xor ecx, ecx
mov word [ebp - 0x44], cx
push ecx
jmp 0x40823e
add ecx, 0x2c34
sub ecx, 0x1060
pop ecx
push esi
or esi, 0xbfee
jmp 0x40825b
add esi, 0xa231
sub esi, 0x14540
pop esi
mov edx, dword [ebp - 0xcac]
mov ax, word [edx]
mov word [ebp - 0x1046], ax
mov ecx, dword [ebp - 0xcac]
add ecx, 2
mov dword [ebp - 0xcac], ecx
mov dx, word [ebp - 0x1046]
mov word [ebp - 0x230], dx
mov eax, dword [ebp - 0xcb0]
mov cx, word [eax]
mov word [ebp - 0x1048], cx
mov edx, dword [ebp - 0xcb0]
invalid
Function at 0x4081b2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jne 0x408172
mov dword [ebp - 0x758], 0
jmp 0x408419
mov edx, dword [ebp - 0x15e0]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xcb4], ecx
call dword [eax + 0x50]
add esp, 4
xor eax, 0x14967
pop eax
push ecx
push edx
add esp, 4
or ecx, 0x1576f
xor ecx, 0x175af
pop ecx
push ecx
call 0x4081b2
add byte [eax + 0x48], cl
dec edx
cmp eax, 0x354c484a
add esp, 4
pop ecx
cmp dword [ebp - 0xcb4], 0
jne 0x4081ce
mov dword [ebp - 0x758], 0
jmp 0x408419
mov edx, dword [ebp - 0xcb4]
mov dword [ebp - 0x504], edx
push ebx
push ecx
add esp, 4
call 0x4081ee
add byte [edx], dh
cmp eax, 0x4b4c3445
push eax
inc esp
cmp eax, dword [ebx - 0x147efb3c]
push ecx
scasd eax, dword es:[edi]
add byte [eax], al
and ebx, 0x167d2
pop ebx
push edi
or edi, 0x9b1c
xor edi, 0x998f
pop edi
lea eax, [ebp - 0x1778]
mov dword [ebp - 0xcb0], eax
mov ecx, dword [ebp - 0x504]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xcac], edx
xor eax, eax
mov word [ebp - 0x230], ax
xor ecx, ecx
mov word [ebp - 0x44], cx
push ecx
jmp 0x40823e
add ecx, 0x2c34
sub ecx, 0x1060
pop ecx
push esi
or esi, 0xbfee
jmp 0x40825b
add esi, 0xa231
sub esi, 0x14540
pop esi
mov edx, dword [ebp - 0xcac]
mov ax, word [edx]
mov word [ebp - 0x1046], ax
mov ecx, dword [ebp - 0xcac]
add ecx, 2
mov dword [ebp - 0xcac], ecx
mov dx, word [ebp - 0x1046]
mov word [ebp - 0x230], dx
mov eax, dword [ebp - 0xcb0]
mov cx, word [eax]
mov word [ebp - 0x1048], cx
mov edx, dword [ebp - 0xcb0]
invalid

Function at 0x4081ee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jne 0x408172
mov dword [ebp - 0x758], 0
jmp 0x408419
mov edx, dword [ebp - 0x15e0]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xcb4], ecx
call dword [eax + 0x50]
add esp, 4
xor eax, 0x14967
pop eax
push ecx
push edx
add esp, 4
or ecx, 0x1576f
xor ecx, 0x175af
pop ecx
push ecx
call 0x4081b2
add byte [eax + 0x48], cl
dec edx
cmp eax, 0x354c484a
add esp, 4
pop ecx
cmp dword [ebp - 0xcb4], 0
jne 0x4081ce
mov dword [ebp - 0x758], 0
jmp 0x408419
mov edx, dword [ebp - 0xcb4]
mov dword [ebp - 0x504], edx
push ebx
push ecx
add esp, 4
call 0x4081ee
add byte [edx], dh
cmp eax, 0x4b4c3445
push eax
inc esp
cmp eax, dword [ebx - 0x147efb3c]
push ecx
scasd eax, dword es:[edi]
add byte [eax], al
and ebx, 0x167d2
pop ebx
push edi
or edi, 0x9b1c
xor edi, 0x998f
pop edi
lea eax, [ebp - 0x1778]
mov dword [ebp - 0xcb0], eax
mov ecx, dword [ebp - 0x504]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xcac], edx
xor eax, eax
mov word [ebp - 0x230], ax
xor ecx, ecx
mov word [ebp - 0x44], cx
push ecx
jmp 0x40823e
add ecx, 0x2c34
sub ecx, 0x1060
pop ecx
push esi
or esi, 0xbfee
jmp 0x40825b
add esi, 0xa231
sub esi, 0x14540
pop esi
mov edx, dword [ebp - 0xcac]
mov ax, word [edx]
mov word [ebp - 0x1046], ax
mov ecx, dword [ebp - 0xcac]
add ecx, 2
mov dword [ebp - 0xcac], ecx
mov dx, word [ebp - 0x1046]
mov word [ebp - 0x230], dx
mov eax, dword [ebp - 0xcb0]
mov cx, word [eax]
mov word [ebp - 0x1048], cx
mov edx, dword [ebp - 0xcb0]
invalid
Function at 0x425c4b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4e01d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x4e656c], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
jne 0x425c88
lea eax, [ebp - 0x1c]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov ax, word [ebp - 0x14]
mov word [0x4e656c], ax
movzx esi, word [0x4e656c]
xor eax, eax
and dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], eax
cmp byte [edi], 1
mov ebx, edi
jbe 0x425d40
inc ebx
cmp byte [ebx], 1
ja 0x425ca5
mov dword [ebp - 0x38], ebx
cmp ebx, edi
je 0x425d40
test eax, eax
jne 0x425cd6
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x24], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
cmp word [0x4e6568], si
je 0x425cee
push esi
push eax
mov word [0x4e6568], si
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, ebx
sub eax, edi
je 0x425d40
mov esi, dword [ebp - 0x24]
mov ebx, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov ecx, 0x2000
cmp eax, ecx
lea eax, [ebp - 0x34]
push 0
push eax
cmovg ebx, ecx
cmp dword [ebp - 0x2c], 0
push ebx
push edi
push esi
je 0x425d23
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [ebp - 0x30]
jmp 0x425d2c
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x28]
add edi, ebx
sub eax, ebx
mov ebx, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
jne 0x425cff
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x38]
cmp byte [ebx], 0
je 0x425d92
movzx eax, byte [ebx + 1]
sub eax, 1
js 0x425d92
cmp eax, 0x20
jge 0x425d66
and esi, 0xfff0
or si, word [eax*2 + 0x4c9c74]
movzx esi, si
jmp 0x425d84
cmp eax, 0x40
jge 0x425d7b
and esi, 0xff0f
or si, word [eax*2 + 0x4c9c94]
jmp 0x425d61
jne 0x425d87
movzx esi, word [0x4e656c]
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x24]
lea edi, [ebx + 2]
jmp 0x425c9a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db84
leave
ret

Function at 0x43d26f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0044ae3e
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x43d2ae
sub eax, 1
je 0x43d2a9
sub eax, 1
je 0x43d2a5
xor eax, eax
leave
ret
push 3
jmp 0x43d2b0
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x43ebfb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43ec3a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43ec3a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43ec3a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43ec3a
cmp dword [ecx + 0x74], 0xe
jbe 0x43ec3a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x456663
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4cede8
push 0x4cede0
push str.FlsAlloc
push 0x1f
call fcn.004564ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x456697
push dword [ebp + 8]
mov ecx, esi
call dword [0x46b2fc]
call esi
jmp 0x45669d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4566e1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4cedf8
push 0x4cedf0
push str.FlsGetValue
push 0x21
call fcn.004564ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x456718
push dword [ebp + 8]
mov ecx, esi
call dword [0x46b2fc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x456720
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4cee00
push 0x4cedf8
push str.FlsSetValue
push 0x22
call fcn.004564ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45675a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x46b2fc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10005b9b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10005baa
pop dword [ebp - 0x4c]
mov eax, 0x10005baa
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x3ede3300
sub dword [ebp - 0x5c], 0xf08bedb5
mov dword [ebp - 0x58], 0x9bd597bb
add dword [ebp - 0x58], 0x965db48a
mov dword [ebp - 0x54], 0x364d5b18
sub dword [ebp - 0x54], 0xea0116ea
mov dword [ebp - 0x50], 0x39d4d0b0
add dword [ebp - 0x50], 0xc62b2f50
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xb9b498d1
sub eax, 0xa9b3d8ad
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x24f901e7
sub dword [ebp - 0x5c], 0xb0869891
mov dword [ebp - 0x58], 0xd89a7a59
add dword [ebp - 0x58], 0x68d1e71c
mov dword [ebp - 0x54], 0x86458224
sub dword [ebp - 0x54], 0x22d615b8
mov dword [ebp - 0x50], 0x15852613
add dword [ebp - 0x50], 0xea7ad9ed
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x389ab
push 0
call eax
mov ecx, 0xdea93c5
add ecx, 0xf215b69e
xor esi, esi
add esi, eax
mov edi, 0xa716429e
add edi, 0x68ee3162
add edi, dword [ebp - 0x4c]
mov ebx, 0x7b2129c0
add ebx, 0x375fbf22
add dword [ebp - 0x24], 0x840c0f3e
mov edx, dword [edi]
xor edx, ebx
add dword [ebp - 0x28], 0x409f53bd
mov dword [esi], edx
sub dword [ebp - 0x28], ebx
add esi, 0xc43d0496
add esi, 0x3bc2fb6e
add edi, 0xc01532a1
add edi, 0x3feacd63
loop 0x10005cc4
add eax, 0x11c5f
xor ebx, ebx
add ebx, eax
add eax, 0x7d230d28
add eax, 0x82dcf2dd
mov ecx, 0x52139ff0
sub ecx, 0x42139ff0
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x1000815f
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0x178
mov eax, 0x1000b9d1
call fcn.10009e1c
cmp byte [0x10044502], 0
mov edi, dword [ebp + 8]
jne 0x100082df
lea eax, [ebp - 0x15c]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREApple_Computer__Inc.QuickTime
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000820f
lea eax, [ebp - 0x160]
mov dword [ebp - 0x160], 4
push eax
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x16c]
push eax
push ebx
push str.Version
push dword [ebp - 0x15c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x15c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1000820f
mov ecx, dword [ebp - 0x164]
mov eax, ecx
shr eax, 0x18
shr ecx, 0x10
mov byte [0x1004450b], al
mov byte [0x1004450a], cl
mov word [0x10044508], bx
mov dword [0x10044504], ebx
jmp 0x100082d8
push 0x104
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
push ebx
push 0x1000cb50
lea eax, [ebp - 0x128]
push pe_nt_image_headers32
push eax
call fcn.10005b9b
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
add esp, 0x18
test eax, eax
jne 0x100082ce
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x184]
call fcn.10005b9b
lea ecx, [ebp - 0x184]
call fcn.10005b9b
mov esi, edx
mov ebx, eax
mov ecx, esi
mov edx, ebx
shr ecx, 0x10
mov eax, esi
and cl, 0xf
mov byte [0x1004450b], cl
mov ecx, esi
shrd edx, ecx, 0x1c
mov ecx, ebx
shrd ecx, eax, 0x10
shrd ebx, esi, 0x1c
xor dl, cl
xor eax, eax
and dl, 0xf
mov word [0x10044508], ax
xor dl, bl
mov dword [0x10044504], eax
mov byte [0x1004450a], dl
lea ecx, [ebp - 0x184]
mov dword [ebp - 4], eax
mov dword [ebp - method.CFileVersion.virtual_0], vtable.CFileVersion.0
call fcn.10007d4b
or dword [ebp - 4], 0xffffffff
jmp 0x100082d8
mov dword [0x10044504], 0xa
mov byte [0x10044502], 1
cmp dword [0x10044504], 0
jne 0x100082fe
push 4
push 0x10044508
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
call fcn.10009dc6
ret
push 0x10042998
lea eax, [ebp - 0x168]
mov dword [ebp - 0x168], 0xa
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x402e96
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx + 0x10]
push edi
cmp esi, 0x40
jb 0x402ef4
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402ef4
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp esi, eax
jb 0x402ef4
cmp dword [edx + ecx], 0x4550
jne 0x402ef4
movzx eax, word [edx + ecx + 4]
mov edi, 0x14c
cmp ax, di
je 0x402edf
mov edi, 0x8664
cmp ax, di
je 0x402ef4
lea eax, [ecx + 0x98]
add eax, edx
mov ecx, dword [eax]
test ecx, ecx
je 0x402ef4
add ecx, 0xc
cmp esi, ecx
jae 0x402ef6
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x403c6f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x14], edx
push 0
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x403ca9
push 0x4298d8
call fcn.00401006
pop ecx
xor al, al
jmp 0x403d30
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [ebx + ebx]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push ebx
xor ebx, ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x403cee
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x429950
call fcn.00401006
pop ecx
xor al, al
jmp 0x403d2e
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ebx
push eax
push 0x4299b4
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0xc]
push eax
push 0x4299b8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040842b
leave
ret

Function at 0x403d3d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x42d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x40
xor edi, edi
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x44]
mov esi, ecx
push edi
push eax
call fcn.0040a3f0
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403d8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403db6
push 0xffffffffffffffff
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x58]
call esi
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040842b
leave
ret
Function at 0x406f0e
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x42d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x208
mov edi, ecx
push esi
push 0
push edi
call fcn.0040a3f0
push esi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0040a3f0
add esp, 0x18
lea eax, [ebp - 0x414]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
test eax, eax
jne 0x406f87
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, 0xa1234568
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push str._sbtl_temp__x_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
push eax
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040842b
leave
ret

Function at 0x416748
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004163c1