joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431201
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x1c
mov eax, 0x5152ee
call fcn.0047211e
mov ebx, ecx
mov eax, dword [ebx]
call dword [eax + 8]
cmp dword [0x57606c], 2
mov dword [ebp - 0x10], eax
je 0x431225
call fcn.004328b7
mov eax, dword [0x576070]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x43127e
push 8
call fcn.004388b9
mov edi, eax
pop ecx
mov dword [ebp - 0x18], edi
xor eax, eax
mov dword [ebp - 4], eax
test edi, edi
je 0x43125c
mov dword [edi], eax
mov dword [edi + 4], eax
call fcn.00432a3b
mov dword [edi], eax
jmp 0x43125e
mov edi, eax
or dword [ebp - 4], 0xffffffff
cmp dword [0x57606c], 2
je 0x431270
call fcn.004328b7
mov eax, dword [0x576070]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0043245f
mov eax, dword [edi]
cmp dword [ebp - 0x14], eax
je 0x431298
xor al, al
jmp 0x4312c6
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
call fcn.00432b72
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00432b9e
push esi
call dword [sym.imp.USER32.dll_SetCapture]
mov al, 1
call fcn.004720e7
ret

Function at 0x4312cc
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x57606c], 2
push edi
mov edi, ecx
je 0x4312e5
xor al, al
jmp 0x43137a
mov eax, dword [0x576070]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x43131e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov dword [ebp - 4], eax
mov ecx, esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0043245f
mov eax, dword [ebp - 8]
cmp eax, dword [esi]
je 0x43131e
cmp dword [eax + 0x14], edi
je 0x431322
xor al, al
jmp 0x431379
push eax
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.004324a2
cmp dword [esi + 4], 0
jne 0x431362
mov ecx, esi
call fcn.00432704
push 8
push esi
call fcn.004718aa
cmp dword [0x57606c], 2
pop ecx
pop ecx
je 0x431353
call fcn.004328b7
mov eax, dword [0x576070]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp byte [ebp + 8], 0
je 0x43136d
xor eax, eax
inc eax
jmp 0x431379
call dword [sym.imp.USER32.dll_ReleaseCapture]
neg eax
sbb eax, eax
neg eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x431381
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [0x57606c], 2
mov dword [ebp - 4], ecx
je 0x431396
xor eax, eax
jmp 0x4313c8
mov eax, dword [0x576070]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4313c0
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 8]
push eax
call fcn.0043245f
mov eax, dword [ebp - 8]
cmp eax, dword [esi]
jne 0x4313c4
xor eax, eax
jmp 0x4313c7
mov eax, dword [eax + 0x14]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4328b7
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 1
push 0x57606c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x432907
push esi
push 4
call fcn.004388b9
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x4328ea
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
jmp 0x4328ec
xor esi, esi
mov dword [0x576070], esi
mov dword [0x57606c], 2
pop esi
jmp 0x432910
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x57606c], 2
jne 0x4328ff
mov esp, ebp
pop ebp
ret

Function at 0x432914
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 1
push 0x576064
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x432964
push esi
push 4
call fcn.004388b9
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x432947
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
jmp 0x432949
xor esi, esi
mov dword [0x576068], esi
mov dword [0x576064], 2
pop esi
jmp 0x43296d
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x576064], 2
jne 0x43295c
mov esp, ebp
pop ebp
ret

Function at 0x434f8a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.00435306
test al, al
jne 0x434f9e
mov ecx, esi
pop esi
jmp fcn.00430d36
pop esi
ret

Function at 0x435b1c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x56d06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x5c
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call fcn.004e9ab0
add esp, 0xc
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push esi
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0x118
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.004e9ab0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x11c], 6
jne 0x435b92
cmp byte [ebp - 6], cl
jne 0x435b9f
mov bl, cl
cmp dword [ebp - 0x11c], 6
movzx ebx, bl
cmova ebx, ecx
mov ecx, str.Tahoma
test bl, bl
mov eax, 0x5573d8
cmove eax, ecx
push eax
lea eax, [esi + 0x1c]
push 0x20
push eax
call fcn.004fa20e
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
pop ebx
call fcn.00471876
mov esp, ebp
pop ebp
ret
Function at 0x4369c2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push 0x55696c
mov esi, edx
mov dword [ebp - 4], ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x436a64
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x436a64
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x436a64
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x436a5d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x436a56
push ebx
push edi
push eax
call fcn.004ea050
and dword [ebp + 8], 0
lea eax, [ebp + 8]
add esp, 0xc
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x436a4f
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004362b2
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x436a6b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x436afd
push ebx
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jle 0x436afc
mov eax, dword [edi + 0x10]
mov dword [ebp - 8], 0xff
push esi
and dword [ebp - 4], 0
test eax, eax
jle 0x436af5
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
imul ecx, dword [ebp - 4]
imul eax, ebx
cdq
and edx, 7
lea esi, [edx + eax]
xor edx, edx
sar esi, 3
add esi, ecx
add esi, dword [edi + 8]
movzx ecx, byte [esi + 3]
movzx eax, byte [esi]
imul eax, ecx
div dword [ebp - 8]
xor edx, edx
mov byte [esi], al
movzx eax, byte [esi + 1]
imul eax, ecx
div dword [ebp - 8]
xor edx, edx
mov byte [esi + 1], al
movzx eax, byte [esi + 2]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 4]
inc ecx
mov byte [esi + 2], al
mov eax, dword [edi + 0x10]
mov dword [ebp - 4], ecx
cmp ecx, eax
jl 0x436a98
inc ebx
cmp ebx, dword [edi + 0xc]
jl 0x436a90
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x437382
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x28], ebx
je case.default.0x4373e6
mov edx, dword [ebp + 0x10]
movzx eax, dx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
shr edx, 0x10
mov dword [ebp - 4], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.00437492
mov edi, eax
test edi, edi
jne 0x4373d5
push esi
push 0x4376d8
call dword [sym.imp.USER32.dll_EnumWindows]
jmp case.default.0x4373e6
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [edi - 1]
cmp eax, 7
ja case.default.0x4373e6
jmp dword [eax*4 + 0x437472]
push dword [esi + 0x98]
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
cmp edi, 2
setne al
add eax, 0xf001
jmp 0x437454
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf006
cmp edi, 1
lea ecx, [eax - 3]
jmp 0x437451
push dword [esi + 0xa0]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf008
cmp edi, 5
lea ecx, [eax - 4]
jmp 0x437451
push dword [esi + 0xa4]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf007
cmp edi, 6
lea ecx, [eax - 2]
cmove eax, ecx
push ebx
push eax
push 0x112
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4388e2
Capabilities:
Check if file exists

Disassembly:
push 0x8c
mov eax, 0x5159b5
call fcn.00472152
mov esi, ecx
test esi, esi
je 0x438a51
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x438a51
xor ebx, ebx
mov dword [ebp - 0x20], 0xaac56b
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], 0x11d0cd44
mov dword [ebp - 0x18], 0xc000c28c
mov dword [ebp - 0x14], 0xee95c24f
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 7
call fcn.0041e220
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.0043a2a5
pop ecx
test al, al
je 0x438a45
push 0x557a0c
lea ecx, [ebp - 0x50]
call fcn.00419a80
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.0043a156
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.0041e2c0
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x43899d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x438a3e
push str.WinVerifyTrust
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x4389b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x438a33
xor eax, eax
lea edi, [ebp - 0x68]
stosd dword es:[edi], eax
push 0x30
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x64], esi
pop esi
push esi
push ebx
push eax
mov dword [ebp - 0x68], 0x10
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
call fcn.004e9ab0
add esp, 0xc
mov dword [ebp - 0x98], esi
lea eax, [ebp - 0x68]
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x8c], 2
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x88], ebx
push eax
push ebx
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], 0x100
mov dword [ebp - 0x6c], ebx
call dword [ebp - 0x54]
mov esi, eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
test esi, esi
sete bl
lea ecx, [ebp - 0x38]
call fcn.0041e2c0
mov eax, ebx
jmp 0x438a53
xor eax, eax
call fcn.004720fc
ret
Function at 0x4392b8
Capabilities:
Check if file exists
Get file version info

Disassembly:
push 0x280
mov eax, 0x515a63
call fcn.00472152
mov dword [ebp - 0x284], edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x288], eax
test esi, esi
je 0x4394d3
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4394d3
lea eax, [ebp - 0x268]
xor ebx, ebx
push eax
push esi
mov dword [ebp - 0x268], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x4394d3
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x270], ebx
lea eax, [ebp - 0x25d]
mov dword [ebp - 4], ebx
push eax
lea eax, [edi + 1]
mov byte [ebp - 0x25d], bl
push eax
lea ecx, [ebp - 0x278]
call fcn.00439985
push dword [ebp - 0x278]
push edi
push dword [ebp - 0x268]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4394c4
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], ebx
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x278]
mov dword [ebp - 0x27c], ebx
call esi
test eax, eax
je 0x4394c4
mov ecx, dword [ebp - 0x26c]
push 0x557b5c
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_ls
mov eax, 0x104
push eax
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00439a6a
add esp, 0x1c
mov dword [ebp - 0x264], ebx
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x278]
call esi
test eax, eax
je 0x4394c4
cmp dword [ebp - 0x264], ebx
je 0x4394c4
push dword [ebp - 0x264]
lea ecx, [ebp - 0x244]
call fcn.00419a80
inc ebx
lea ecx, [ebp - 0x244]
push 0x557bb8
mov byte [ebp - 4], bl
call fcn.00419a30
xor eax, eax
mov word [ebp - 0x20], ax
mov esi, eax
mov dword [ebp - 0x1e], eax
mov edi, eax
mov word [ebp - 0x1a], ax
push esi
push 0x557bb8
lea ecx, [ebp - 0x244]
call fcn.00419960
mov dword [ebp - 0x280], eax
cmp eax, 0xffffffff
je 0x4394b7
sub eax, esi
lea ecx, [ebp - 0x244]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.004399ff
cmp dword [eax + 0x14], 8
jb 0x439467
mov eax, dword [eax]
push eax
call fcn.004ee70d
pop ecx
lea ecx, [ebp - 0x25c]
mov word [ebp + edi*2 - 0x20], ax
call fcn.0041e2c0
mov esi, dword [ebp - 0x280]
inc esi
inc edi
cmp edi, 4
jl 0x43942d
movzx ecx, word [ebp - 0x20]
movzx eax, word [ebp - 0x1e]
shl ecx, 0x10
or ecx, eax
mov eax, dword [ebp - 0x284]
mov dword [eax], ecx
movzx ecx, word [ebp - 0x1a]
movzx eax, word [ebp - 0x18]
shl ecx, 0x10
or ecx, eax
mov eax, dword [ebp - 0x288]
mov dword [eax], ecx
jmp 0x4394b9
xor ebx, ebx
lea ecx, [ebp - 0x244]
call fcn.0041e2c0
lea ecx, [ebp - 0x278]
call fcn.00435fa9
mov eax, ebx
jmp 0x4394d5
xor eax, eax
call fcn.004720fc
ret
Function at 0x4394db
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x56d06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x56eb2c]
push esi
xor esi, esi
push edi
mov edi, 0xfffffc18
cmp eax, 0xffffffff
jne 0x439656
push 0x110
lea eax, [ebp - 0x324]
mov dword [0x56eb2c], edi
push esi
push eax
mov dword [ebp - 0x328], 0x114
call fcn.004e9ab0
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43964c
cmp dword [ebp - 0x318], 2
jne 0x43964c
cmp dword [ebp - 0x324], 5
jne 0x4395e1
mov eax, dword [ebp - 0x320]
test eax, eax
jne 0x43956e
inc eax
mov dword [0x56eb2c], eax
jmp 0x4396fd
cmp eax, 1
jne 0x4395d2
push 0x7f
lea eax, [ebp - 0x314]
push eax
push 0x557bbc
call fcn.004fa343
add esp, 0xc
test eax, eax
jne 0x439592
push 3
pop eax
jmp 0x439564
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_2
call fcn.004fa343
add esp, 0xc
test eax, eax
jne 0x4395b0
push 4
jmp 0x43958f
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_3
call fcn.004fa343
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
jmp 0x439564
cmp eax, 2
jne 0x43964c
push 6
pop eax
mov dword [0x56eb2c], eax
jmp 0x439651
cmp dword [ebp - 0x324], 6
jne 0x43964c
cmp dword [ebp - 0x320], esi
jne 0x439638
push 0x7f
lea eax, [ebp - 0x314]
push eax
push 0x557bbc
call fcn.004fa343
add esp, 0xc
test eax, eax
jne 0x439613
push 8
jmp 0x43958f
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_2
call fcn.004fa343
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 9
jmp 0x439564
cmp dword [ebp - 0x320], 1
mov eax, dword [0x56eb2c]
push 0xa
pop ecx
cmove eax, ecx
jmp 0x4395da
mov eax, dword [0x56eb2c]
cmp eax, 0xffffffff
je 0x43965e
cmp eax, edi
jne 0x4396fd
push 0x208
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004e9ab0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.kernel32.dll
lea eax, [ebp - 0x210]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x330]
mov dword [ebp - 0x32c], esi
push eax
lea edx, [ebp - 0x32c]
mov dword [ebp - 0x330], esi
lea ecx, [ebp - 0x210]
call fcn.004392b8
pop ecx
test eax, eax
je 0x4396f8
mov eax, dword [ebp - 0x32c]
cmp eax, 0x60002
jne 0x4396d5
push 0xb
jmp 0x43958f
cmp eax, 0x60003
jne 0x4396e3
push 0xc
jmp 0x43958f
cmp eax, 0xa0000
je 0x4396f1
cmp eax, 0x60004
jne 0x4396f8
push 0xd
jmp 0x43958f
mov eax, dword [0x56eb2c]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00471876
mov esp, ebp
pop ebp
ret
Function at 0x43970d
Capabilities:
Check os version

Disassembly:
push 0x12c
mov eax, 0x515ab8
call fcn.00472152
mov esi, ecx
mov dword [ebp - 0x12c], esi
xor edi, edi
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x130], edi
mov dword [esi + 0x10], edi
push edi
mov dword [esi + 0x14], 7
call fcn.0041e220
xor ebx, ebx
mov dword [ebp - 4], edi
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x114
inc ebx
push eax
mov dword [ebp - 0x130], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x439901
sub eax, ebx
je 0x4398a7
sub eax, ebx
je 0x439789
push str.Unknown
jmp 0x439906
mov eax, dword [ebp - 0x124]
cmp eax, 5
jne 0x4397f7
mov eax, dword [ebp - 0x120]
cmp eax, 2
jne 0x4397bc
push str.Windows_2003
mov ecx, esi
call fcn.004199e0
mov eax, dword [ebp - 0x124]
cmp eax, 5
jne 0x4397f7
mov eax, dword [ebp - 0x120]
cmp eax, ebx
jne 0x4397dd
push str.Windows_XP
mov ecx, esi
call fcn.004199e0
mov eax, dword [ebp - 0x124]
cmp eax, 5
jne 0x4397f7
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x43990d
push str.Windows_2000
mov ecx, esi
call fcn.004199e0
mov eax, dword [ebp - 0x124]
cmp eax, 4
ja 0x43980e
push str.Windows_NT
mov ecx, esi
call fcn.004199e0
mov eax, dword [ebp - 0x124]
push 6
pop edi
cmp eax, edi
jne 0x43989b
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x43983f
push str.Windows_Vista
mov ecx, esi
call fcn.004199e0
mov eax, dword [ebp - 0x124]
cmp eax, edi
jne 0x43989b
mov eax, dword [ebp - 0x120]
cmp eax, ebx
jne 0x43985f
push str.Windows_7
mov ecx, esi
call fcn.004199e0
mov eax, dword [ebp - 0x124]
cmp eax, edi
jne 0x43989b
mov eax, dword [ebp - 0x120]
cmp eax, 2
jne 0x439880
push str.Windows_8
mov ecx, esi
call fcn.004199e0
mov eax, dword [ebp - 0x124]
cmp eax, edi
jne 0x43989b
mov eax, dword [ebp - 0x120]
cmp eax, 3
jne 0x43990d
push str.Windows_8.1
mov ecx, esi
call fcn.004199e0
mov eax, dword [ebp - 0x124]
cmp eax, 0xa
jne 0x43990d
push str.Windows_10
jmp 0x439906
cmp dword [ebp - 0x124], 4
jne 0x43990d
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x4398d5
push str.Windows_95
mov ecx, esi
call fcn.004199e0
cmp dword [ebp - 0x124], 4
jne 0x43990d
mov eax, dword [ebp - 0x120]
cmp eax, 0xa
jne 0x4398f5
push str.Windows_98
mov ecx, esi
call fcn.004199e0
cmp dword [ebp - 0x124], 4
jne 0x43990d
mov eax, dword [ebp - 0x120]
cmp eax, 0x5a
jne 0x43990d
push str.Windows_ME
jmp 0x439906
push str.Windows_Win32s
mov ecx, esi
call fcn.004199e0
lea ecx, [ebp - 0x12c]
call fcn.0042af50
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x12c]
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
push dword [ebp - 0x124]
push str.__build_d._d._d_
push eax
call fcn.0042c060
add esp, 0x14
cmp word [ebp - 0x114], 0
je 0x439965
push 0x557da8
mov ecx, esi
call fcn.00419a30
lea eax, [ebp - 0x114]
mov ecx, esi
push eax
call fcn.00419a30
push dword [ebp - 0x12c]
mov ecx, esi
call fcn.00419a30
lea ecx, [ebp - 0x12c]
call fcn.0042af30
mov eax, esi
call fcn.004720fc
ret
Function at 0x439a91
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x56d06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0x10
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x439ad1
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x78
neg eax
sbb eax, eax
inc eax
jmp 0x439b3e
lea eax, [ebp - 0x34]
xor esi, esi
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x439af4
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x439b3e
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x34]
xor edi, edi
mov dword [ebp - 0x10], eax
inc edi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], edi
push eax
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push esi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x28]
test eax, eax
cmovne esi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00471876
mov esp, ebp
pop ebp
ret

Function at 0x439b4e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
test esi, esi
jne 0x439b69
xor eax, eax
jmp 0x439c16
cmp byte [0x577904], 0
jne 0x439b7e
call fcn.00439a91
mov byte [0x577904], 1
push esi
push 0
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x439baa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push ecx
push ebx
push esi
push eax
push 0xc
pop edx
call fcn.00443c70
add esp, 0x14
jmp 0x439b62
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x439bdc
cmp dword [esp + 0x10], 0x103
je 0x439bdc
push ecx
push ecx
push ebx
push esi
push dword [esp + 0x20]
push 0xf
pop edx
call fcn.00443c70
add esp, 0x14
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x439c03
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push ecx
push ebx
push esi
push eax
push 0xd
pop edx
call fcn.00443c70
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret