joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415f61
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xbc4
mov eax, 0x45b017
call fcn.0043f0d3
mov esi, ecx
xor edi, edi
push 0xbb6
lea eax, [ebp - 0xbc6]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0xbd0], 0x3ffe
mov word [ebp - 0xbc8], di
call fcn.0043b7b0
add esp, 0xc
cmp dword [esi + 0x10], edi
mov esi, dword [esi + 4]
lea eax, [ebp - 0xbcc]
mov dword [ebp - 0xbcc], edi
push eax
je 0x415fb9
push 0xf013f
jmp 0x415fbe
push 0xf003f
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x41605b
push edi
push str.writeValue:__Key_found_..._:__d
call fcn.0040750a
push str.writeValue:__After_addRegistryKey_method_in_writeValue_method__
call fcn.0040750a
mov esi, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0xbd0]
push eax
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push dword [ebp - 0xbcc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416043
push str.value_is_found
call fcn.0040750a
pop ecx
lea eax, [ebp - 0xbc8]
push eax
push 0x468d64
push ebx
call fcn.0040384d
add esp, 0xc
push dword [ebp - 0xbcc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
jmp 0x41606e
push dword [ebp - 0xbcc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.00401109
xor al, al
jmp 0x416075
push eax
push str.writeValue:__Key_open_failure___d
call fcn.0040750a
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401109
mov al, 1
call fcn.0043f156
ret 8
Function at 0x416293
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45afe7
mov eax, dword fs:[0]
push eax
mov eax, 0x8bd0
call fcn.0043f990
mov eax, dword [0x4809a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0xbb6
xor ebx, ebx
lea eax, [ebp - 0xbc6]
push edi
inc ebx
push eax
mov dword [ebp - 0x8bd4], 0x3ffe
mov dword [ebp - 0x8bd8], 0x3fff
mov dword [ebp - 0x8bdc], ebx
mov word [ebp - 0xbc8], di
call fcn.0043b7b0
mov eax, dword [esi + 4]
add esp, 0xc
cmp dword [esi + 0x10], edi
push esi
je 0x41630f
push 0x101
jmp 0x416310
push ebx
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, edi
je 0x416339
push ebx
push dword [esi + 4]
push str.ReadDwordRegistryData:_Error_while_opening_registry_key__s_and_the_errorcode_is_:__d
call fcn.0040750a
add esp, 0xc
jmp 0x41646b
push 0x464fb4
lea ecx, [ebp - 0x8bcc]
call fcn.00402eb5
lea ecx, [esi + 0x18]
push 0x464fda
mov dword [ebp - 4], edi
call fcn.00402f3d
mov dword [esi + 0x14], edi
mov dword [ebp - 0x8bd0], edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x8bd8]
push eax
lea eax, [ebp - 0x8bc8]
push eax
push dword [ebp - 0x8bd0]
mov dword [ebp - 0x8bd8], 0x3fff
push dword [esi]
mov word [ebp - 0x8bc8], di
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x416455
lea eax, [ebp - 0x8bd4]
push eax
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x8bdc]
push eax
push edi
lea eax, [ebp - 0x8bc8]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x8bd4]
mov ebx, eax
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x8bc8]
push eax
push str.ReadURSInfoFromReg___s___s__Len:_d_n
call fcn.004075a0
add esp, 0x10
lea eax, [ebp - 0x8bc8]
push eax
lea ecx, [ebp - 0x8bcc]
call fcn.00403444
mov eax, dword [ebp - 0x8bcc]
cmp dword [eax - 0xc], 8
jle 0x416442
inc dword [esi + 0x14]
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x8bc8]
push eax
lea eax, [ebp - 0x8bcc]
push str._s_t_s
push eax
call fcn.0040384d
add esp, 0x10
lea eax, [ebp - 0x8bcc]
push eax
lea ecx, [esi + 0x18]
call fcn.004031c9
push 0x46ef14
lea ecx, [esi + 0x18]
call fcn.0040341f
inc dword [ebp - 0x8bd0]
cmp dword [ebp - 0x8bd0], 0x64
jb 0x416362
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x8bcc]
add ecx, 0xfffffff0
call fcn.00401109
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004386f5
leave
ret
Function at 0x416486
Capabilities:
Delete registry value

Disassembly:
push 0x10
mov eax, 0x45afb7
call fcn.0043f0d3
mov esi, ecx
lea edi, [esi + 4]
xor ebx, ebx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.0040315e
push 0x46835c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040341f
mov eax, dword [ebp + 8]
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
call fcn.0040364f
cmp dword [esi + 0x10], ebx
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
je 0x4164d7
push 0x102
jmp 0x4164d9
push 2
push ebx
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
je 0x416519
push dword [edi]
push esi
push 0x46ef18
call fcn.0040750a
add esp, 0xc
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401109
mov eax, esi
call fcn.0043f156
ret 4
push ebx
lea ecx, [ebp + 8]
call fcn.0040328d
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x416550
push dword [ebp + 8]
push esi
push str.Deleting_key:_:__d____s
call fcn.0040750a
add esp, 0xc
xor esi, esi
jmp 0x4164f9
xor esi, esi
inc esi
jmp 0x4164f9
Function at 0x4166c9
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
lea ebp, [esp - 0xf0]
sub esp, 0x170
mov eax, dword [0x4809a0]
xor eax, ebp
mov dword [ebp + 0xec], eax
push ebx
push esi
push edi
xor edi, edi
push 0x110
lea eax, [ebp - 0x68]
push edi
push eax
mov dword [ebp - 0x80], edi
xor ebx, ebx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x6c], 0x114
call fcn.0043b7b0
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4167c8
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4167c8
cmp dword [ebp - 0x68], 6
jb 0x416779
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x78]
push eax
push 4
lea eax, [ebp - 0x7c]
push eax
push 0x12
push dword [ebp - 0x74]
call esi
test eax, eax
je 0x4167c8
cmp dword [ebp - 0x7c], 3
jne 0x416779
lea eax, [ebp - 0x78]
push eax
push 4
lea eax, [ebp - 0x70]
push eax
push 0x13
push dword [ebp - 0x74]
call esi
test eax, eax
je 0x4167c8
cmp dword [ebp - 0x70], edi
jne 0x416791
lea eax, [ebp - 0x70]
push eax
push 1
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x4167c8
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0xa8]
push eax
push edi
push 0x1a
mov dword [ebp - 0x78], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x4167c8
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xa8]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4167d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp dword [ebp - 0x74], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4167e3
push dword [ebp - 0x74]
call esi
mov dword [ebp - 0x74], edi
cmp dword [ebp - 0x70], edi
je 0x4167f0
push dword [ebp - 0x70]
call esi
mov dword [ebp - 0x70], edi
cmp ebx, edi
je 0x416805
push 0x478f58
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], ebx
call fcn.0043f446
mov ecx, dword [ebp + 0xec]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004386f5
add ebp, 0xf0
leave
ret
Function at 0x416e1c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45aefa
mov eax, dword fs:[0]
push eax
mov eax, 0x139c
call fcn.0043f990
mov eax, dword [0x4809a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0x1386
lea eax, [ebp - 0x1396]
push edi
push eax
mov dword [ebp - 0x139c], 0x3ffe
mov dword [ebp - 0x13a0], 7
mov word [ebp - 0x1398], di
call fcn.0043b7b0
mov eax, dword [esi + 4]
add esp, 0xc
cmp dword [esi + 0x10], edi
push esi
je 0x416e8e
push 0x101
jmp 0x416e90
push 1
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x416eb9
push eax
push dword [esi + 4]
push str.ReadDwordRegistryData:_Error_while_opening_registry_key__s_and_the_errorcode_is_:__d
call fcn.0040750a
add esp, 0xc
xor eax, eax
jmp 0x416f3f
push 0x464fb4
lea ecx, [ebp - 0x13a4]
call fcn.00402eb5
lea eax, [ebp - 0x139c]
push eax
lea eax, [ebp - 0x1398]
push eax
lea eax, [ebp - 0x13a0]
push eax
mov dword [ebp - 4], edi
inc dword [esi + 0x14]
push edi
push dword [esi + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x139c]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041cc65
mov edi, eax
mov eax, dword [ebp - 0x139c]
pop ecx
push eax
mov dword [ebx], eax
lea eax, [ebp - 0x1398]
push eax
push edi
call fcn.0043b9c0
add esp, 0xc
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x13a4]
add ecx, 0xfffffff0
call fcn.00401109
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004386f5
leave
ret

Function at 0x41701b
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, eax
xor eax, eax
push eax
push eax
lea ecx, [ebp - 4]
push ecx
push 0x400
push dword [esi + 0x54]
push eax
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 0x50]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 4]
mov edi, eax
push dword [esi + 0x54]
push str.CustomURLProtocol::Failed_with_error__d:__s
push edi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, eax
shr ecx, 1
call fcn.00416f57
add esp, 0xc
push edi
add esi, 0x58
push esi
call fcn.004173b5
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push edi
call esi
pop edi
pop esi
leave
ret
Function at 0x4172ee
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 8
push ebx
lea ebx, [esi + 4]
jb 0x417304
mov eax, dword [ebx]
jmp 0x417306
mov eax, ebx
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov dword [esi + 0x54], eax
jne 0x4173a2
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.DefaultIcon
push dword [ebp - 4]
call edi
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x54], eax
je 0x4173a1
push str.ShellOpencommand
push dword [ebp - 4]
call edi
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x54], eax
je 0x4173a1
push str.ShellOpen
push dword [ebp - 4]
call edi
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x54], eax
je 0x4173a1
push str.Shell
push dword [ebp - 4]
call edi
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x54], eax
je 0x4173a1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x54], eax
je 0x4173a1
cmp dword [esi + 0x18], 8
jb 0x417396
mov ebx, dword [ebx]
push ebx
push SysReAllocString
call edi
mov dword [esi + 0x54], eax
pop edi
cmp dword [esi + 0x54], 0
pop ebx
je 0x4173b0
mov eax, esi
call fcn.0041701b
mov eax, dword [esi + 0x54]
leave
ret
Function at 0x4181ff
Capabilities:
Accept command line arguments

Disassembly:
push 0xc
mov eax, 0x45bcb4
call fcn.0043f06a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp dword [0x484070], 1
jle 0x418246
push eax
lea ecx, [ebp - 0x10]
call fcn.00402eb5
and dword [ebp - 4], 0
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.0040315e
call fcn.0041824c
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401109
call fcn.0043f142
ret

Function at 0x41c686
Capabilities:
Read file on windows

Disassembly:
push 8
mov eax, 0x45ad8d
call fcn.0043f06a
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
push 0x464fda
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], edi
call fcn.0041cbcb
mov byte [ebp - 4], 1
mov ebx, dword [ebp + 0xc]
cmp dword [ebx - 0xc], edi
jne 0x41c6ea
push str.Check_Arg_passed___Empty_Filename
call fcn.0040750a
mov dword [esp], str.FAILED
push dword [ebp + 8]
call fcn.0041cbcb
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401109
lea ecx, [ebx - 0x10]
call fcn.00401109
mov eax, dword [ebp + 8]
jmp 0x41c83c
cmp byte [ebp + 0x10], 0
push 0x40
je 0x41c6f7
mov eax, dword [esi + 0xc]
jmp 0x41c6fa
mov eax, dword [esi + 0x10]
push eax
push ebx
call fcn.0043a759
add esp, 0xc
cmp eax, edi
mov dword [ebp + 0x10], eax
jne 0x41c725
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.File_open_Error_:__d
call fcn.0040750a
pop ecx
pop ecx
push str.FAILED
jmp 0x41c6c7
push 2
push edi
push dword [ebp + 0x10]
call fcn.0043c382
add esp, 0xc
test eax, eax
je 0x41c755
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.File_seek_Error_:__d
call fcn.0040750a
push dword [ebp + 0x10]
call fcn.0043b31c
add esp, 0xc
jmp 0x41c71e
push dword [ebp + 0x10]
call fcn.0043c28d
pop ecx
push dword [ebp + 0x10]
mov dword [esi], eax
call fcn.0043bdb8
mov edi, dword [esi]
pop ecx
inc edi
push edi
lea ecx, [ebp - 0x10]
call fcn.00406067
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.00406091
push dword [ebp + 0x10]
push dword [esi]
mov esi, dword [ebp - 0x14]
push 1
push esi
call fcn.0043c0da
add esp, 0x10
test eax, eax
jne 0x41c7d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.File_read_error_:__d
call fcn.0040750a
cmp dword [ebp - 0x10], 0
pop ecx
pop ecx
jne 0x41c7b5
xor eax, eax
jmp 0x41c7be
push dword [ebp - 0x10]
call fcn.004399a0
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406091
push dword [ebp + 0x10]
call fcn.0043b31c
jmp 0x41c6c0
mov byte [esi + eax], 0
cmp dword [ebp - 0x10], 0
jne 0x41c7e2
xor eax, eax
jmp 0x41c7eb
push dword [ebp - 0x10]
call fcn.004399a0
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406091
push dword [ebp + 0x10]
call fcn.0043b31c
test eax, eax
pop ecx
je 0x41c812
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.File_close_error_:__d
jmp 0x41c717
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.004060b7
mov esi, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp - 0x10]
add eax, 0x10
add ecx, 0xfffffff0
mov dword [esi], eax
call fcn.00401109
lea ecx, [ebx - 0x10]
call fcn.00401109
mov eax, esi
call fcn.0043f142
ret 0xc
Function at 0x41f333
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41f379
call fcn.00429326
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41f379
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41f3bc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x41f3a5
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 0x41f3a5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41f3b9
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 0x4263f8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x426431
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041d31b
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041a6b8
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x427f0e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x427f51
call fcn.00429326
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x427f51
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x427f6c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00427ac8
test ebx, ebx
mov esi, eax
je 0x427f6a
test edi, edi
je 0x427f6a
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x42b29b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42b2c9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42b2e7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042b205
jmp 0x42b2e7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42b2e7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042b205
test edi, edi
mov eax, edi
jne 0x42b2d1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x483fc0]
test ecx, ecx
je 0x42b3aa
jmp 0x42b29a
ret 8
Function at 0x4386f5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4809a0]
jne 0x4386ff
repz ret
jmp fcn.0044137f

Function at 0x43a510
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x43a53d
call fcn.0043aa08
mov dword [eax], esi
call fcn.0043a9f5
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0043cef9
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43a55b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043aa1b
pop ecx
jmp 0x43a538
test byte [esp + 0xc], 0x80
je 0x43a567
and eax, 0xfffffffe
jmp 0x43a56a
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x43a54c
xor eax, eax
pop esi
ret
Function at 0x44c9b6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00440d66
xor ebx, ebx
cmp dword [0x484bf4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x44ca8b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x44c9f6
xor eax, eax
jmp 0x44cb4f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x44c9ef
push eax
call fcn.00440d03
mov dword [esp], 0x462cb0
push edi
mov dword [0x484bf4], eax
call esi
push eax
call fcn.00440d03
mov dword [esp], 0x462c9c
push edi
mov dword [0x484bf8], eax
call esi
push eax
call fcn.00440d03
mov dword [0x484bfc], eax
lea eax, [ebp - 8]
push eax
call fcn.004390bb
test eax, eax
pop ecx
pop ecx
je 0x44ca59
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043cdfd
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x44ca8b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00440d03
cmp eax, ebx
pop ecx
mov dword [0x484c04], eax
je 0x44ca8b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00440d03
pop ecx
mov dword [0x484c00], eax
mov eax, dword [0x484c00]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x44cb04
cmp dword [0x484c04], esi
je 0x44cb04
push eax
call fcn.00440d6f
pop ecx
call eax
cmp eax, ebx
je 0x44cad1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x484c04]
call fcn.00440d6f
pop ecx
call eax
test eax, eax
je 0x44cad1
test byte [ebp - 0x18], 1
jne 0x44cb04
lea eax, [ebp - 0xc]
push eax
call fcn.004390f2
test eax, eax
pop ecx
je 0x44caec
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043cdfd
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x44cafb
or dword [ebp + 0x10], 0x200000
jmp 0x44cb35
or dword [ebp + 0x10], 0x40000
jmp 0x44cb35
mov eax, dword [0x484bf8]
cmp eax, esi
je 0x44cb35
push eax
call fcn.00440d6f
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44cb35
mov eax, dword [0x484bfc]
cmp eax, esi
je 0x44cb35
push dword [ebp - 4]
push eax
call fcn.00440d6f
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x484bf4]
call fcn.00440d6f
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x455046
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4809a0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00454fdb
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0043b7b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x455095
cmp dword [ebp - 0x1c], 5
jb 0x4550ad
jmp 0x4550a9
cmp dword [ebp - 0x10], 1
jne 0x4550ad
cmp dword [ebp - 0x1c], 4
ja 0x4550a9
jne 0x4550ad
cmp dword [ebp - 0x18], 0
jbe 0x4550ad
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x464da4
call fcn.00454ecc
test eax, eax
jge 0x4550ce
mov byte [0x484e93], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004386f5
add ebp, 0x78
leave
ret