joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401419
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x40146f
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x401485
push 0x80004005
call fcn.0040119a
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401488
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x401b56
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x34], eax
jne 0x401b72
xor al, al
jmp 0x401b8c
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x401b22
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret

Function at 0x401c25
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x416450]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.004013e4
mov edi, eax
cmp edi, esi
je 0x401c8d
lea ecx, [ebp - 0x70]
call fcn.0040137f
mov eax, edi
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405c36
add ebp, 0x198
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x401ca5
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00401c25
cmp eax, esi
jne 0x401cd8
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x401c95
lea ecx, [ebp - 0x70]
call fcn.0040137f
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.0040137f
mov eax, esi
jmp 0x401c73
Function at 0x40505e
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 4
mov eax, 0x4101fe
call fcn.004063d0
xor edi, edi
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov eax, dword [0x41605c]
mov dword [esi], eax
push 0x104
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.00402a76
push eax
push edi
push edi
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004037ea
push 0x411b88
mov ecx, esi
call fcn.00405037
mov eax, esi
call fcn.0040646f
ret

Function at 0x405110
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 4
mov eax, 0x410266
call fcn.004063d0
xor edi, edi
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov eax, dword [0x41605c]
mov dword [esi], eax
push 0x104
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.00402a76
push eax
push edi
push edi
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004037ea
push str.Internet_Exploreriexplore.exe
mov ecx, esi
call fcn.00405037
mov eax, esi
call fcn.0040646f
ret

Function at 0x40516a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x416450]
xor eax, ebp
mov dword [ebp + 0x94], eax
push esi
lea eax, [ebp - 0x80]
push eax
xor esi, esi
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x70], 2
jne 0x4051a6
cmp dword [ebp - 0x7c], 6
jb 0x4051a6
inc esi
mov ecx, dword [ebp + 0x94]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00405c36
add ebp, 0x98
leave
ret
Function at 0x4051be
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x416450]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x63
lea eax, [ebp - 0x67]
push ebx
push eax
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], ebx
xor esi, esi
mov byte [ebp - 0x68], bl
call fcn.00406820
lea eax, [ebp - 0x68]
add esp, 0xc
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
push 8
mov byte [ebp - 0x70], bl
mov byte [ebp - 0x6f], bl
mov byte [ebp - 0x6e], bl
mov byte [ebp - 0x6d], bl
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4052ca
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
push ebx
push 2
push dword [ebp - 0x80]
call edi
test eax, eax
jne 0x40524e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4052c9
push dword [ebp - 0x74]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
push esi
push 2
push dword [ebp - 0x80]
call edi
test eax, eax
je 0x4052c9
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4052c9
xor edi, edi
cmp dword [esi], ebx
jbe 0x4052c9
lea eax, [esi + 4]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
push dword [eax]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4052b8
add dword [ebp - 0x7c], 8
inc edi
cmp edi, dword [esi]
jb 0x40529b
jmp 0x4052c9
test byte [esi + edi*8 + 8], 4
je 0x4052c9
mov dword [ebp - 0x84], 1
pop edi
cmp dword [ebp - 0x78], ebx
je 0x4052d8
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp esi, ebx
je 0x4052e3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x84]
pop esi
xor ecx, ebp
pop ebx
call fcn.00405c36
leave
ret

Function at 0x4052f7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
or esi, 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40534e
mov eax, dword [ebp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x405319
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x405345
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x40552d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x416450]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004054c2
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.00406820
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 0x40557c
cmp dword [ebp - 0x1c], 5
jb 0x405594
jmp 0x405590
cmp dword [ebp - 0x10], 1
jne 0x405594
cmp dword [ebp - 0x1c], 4
ja 0x405590
jne 0x405594
cmp dword [ebp - 0x18], 0
jbe 0x405594
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x411c30
call fcn.00401250
test eax, eax
jge 0x4055b5
mov byte [0x417440], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00405c36
add ebp, 0x78
leave
ret

Function at 0x405c36
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x416450]
jne 0x405c40
repz ret
jmp fcn.0040879b
Function at 0x40805a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4165d0]
je 0x408075
inc edi
cmp edi, 0x17
jb 0x408066
cmp edi, 0x17
jae 0x4081f5
push ebp
push 3
call fcn.0040ce40
cmp eax, 1
pop ecx
je 0x4081c1
push 3
call fcn.0040ce40
test eax, eax
pop ecx
jne 0x4080a9
cmp dword [0x4164a0], 1
je 0x4081c1
cmp ebx, 0xfc
je 0x4081f4
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x417738
push ebp
call fcn.0040cddb
add esp, 0xc
test eax, eax
je 0x4080df
push esi
push esi
push esi
push esi
push esi
call fcn.004082e8
add esp, 0x14
push 0x104
mov esi, 0x417751
push esi
push 0
mov byte [0x417855], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408123
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040cddb
add esp, 0xc
test eax, eax
je 0x408123
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004082e8
add esp, 0x14
push esi
call fcn.0040cd50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x408168
push esi
call fcn.0040cd50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x417a4c
push 0x41222c
sub ecx, eax
push ecx
push eax
call fcn.0040cc95
add esp, 0x14
test eax, eax
je 0x408168
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004082e8
add esp, 0x14
jmp 0x40816a
xor esi, esi
push 0x412228
push ebx
push ebp
call fcn.0040cc24
add esp, 0xc
test eax, eax
je 0x40818a
push esi
push esi
push esi
push esi
push esi
call fcn.004082e8
add esp, 0x14
push dword [edi*8 + 0x4165d4]
push ebx
push ebp
call fcn.0040cc24
add esp, 0xc
test eax, eax
je 0x4081ac
push esi
push esi
push esi
push esi
push esi
call fcn.004082e8
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040ca67
add esp, 0xc
jmp 0x4081f4
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4081f4
cmp ebp, 0xffffffff
je 0x4081f4
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4165d4]
push dword [esi]
call fcn.0040cd50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40ca67
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00409e51
xor ebx, ebx
cmp dword [0x418018], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40cb3d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40cc1d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40cc1d
push eax
call fcn.00409de3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x418018], eax
call esi
push eax
call fcn.00409de3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41801c], eax
call esi
push eax
call fcn.00409de3
mov dword [0x418020], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00407de7
test eax, eax
pop ecx
pop ecx
je 0x40cb0b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004082e8
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40cb3d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00409de3
cmp eax, ebx
pop ecx
mov dword [0x418028], eax
je 0x40cb3d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00409de3
pop ecx
mov dword [0x418024], eax
mov eax, dword [0x418024]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40cbc2
cmp dword [0x418028], ecx
je 0x40cbc2
push eax
call fcn.00409e5a
push dword [0x418028]
mov esi, eax
call fcn.00409e5a
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40cbc2
cmp edi, ebx
je 0x40cbc2
call esi
cmp eax, ebx
je 0x40cb8f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40cb8f
test byte [ebp - 0x18], 1
jne 0x40cbc2
lea eax, [ebp - 0x10]
push eax
call fcn.00407e1e
test eax, eax
pop ecx
je 0x40cbaa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004082e8
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40cbb9
or dword [ebp + 0x10], 0x200000
jmp 0x40cbfd
or dword [ebp + 0x10], 0x40000
jmp 0x40cbfd
mov eax, dword [0x41801c]
cmp eax, dword [ebp - 8]
je 0x40cbfd
push eax
call fcn.00409e5a
cmp eax, ebx
pop ecx
je 0x40cbfd
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40cbfd
mov eax, dword [0x418020]
cmp eax, dword [ebp - 8]
je 0x40cbfd
push eax
call fcn.00409e5a
cmp eax, ebx
pop ecx
je 0x40cbfd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x418018]
call fcn.00409e5a
cmp eax, ebx
pop ecx
je 0x40cc1d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cc1f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
sub esp, 0x224
mov eax, dword [0x425ca0]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [esp + 0x228]
mov ecx, dword [esp + 0x230]
push 0x104
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
call dword [0x4270d0]
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401042
push ebx
sub eax, edx
sar eax, 1
push ebp
lea ecx, [eax - 1]
xor ebx, ebx
cmp ecx, ebx
push esi
push edi
jl 0x40108f
mov eax, 0x5c
cmp word [esp + ecx*2 + 0x24], ax
je 0x401071
sub ecx, 1
jns 0x401063
jmp 0x40108f
add ecx, ecx
mov eax, str.PotPlayer.dll
mov edx, ecx
sub edx, eax
lea edx, [esp + edx + 0x26]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x401080
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push 8
call fcn.00401906
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4010bd
lea edx, [esp + 0x24]
push edx
call dword [0x427118]
cmp eax, ebx
mov dword [esi], eax
setne al
mov byte [esi + 4], al
jmp 0x4010bf
xor esi, esi
mov eax, dword [esi]
mov edi, dword [0x4270e0]
cmp eax, ebx
je 0x4010d9
push str.PreprocessCmdLineExW
push eax
call edi
mov dword [esp + 0x18], eax
jmp 0x4010dd
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x18], ebx
mov eax, dword [esi]
setne cl
and byte [esi + 4], cl
cmp eax, ebx
je 0x4010fb
push str.UninitPotPlayer
push eax
call edi
mov dword [esp + 0x10], eax
jmp 0x4010ff
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x10], ebx
mov eax, dword [esi]
setne dl
and byte [esi + 4], dl
cmp eax, ebx
je 0x40111d
push str.CreatePotPlayerExW
push eax
call edi
mov dword [esp + 0x14], eax
jmp 0x401121
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x14], ebx
setne al
and byte [esi + 4], al
mov eax, dword [esi]
cmp eax, ebx
je 0x40113d
push str.DestroyPotPlayer
push eax
call edi
mov ebp, eax
jmp 0x40113f
xor ebp, ebp
mov eax, dword [esi]
cmp ebp, ebx
setne cl
and byte [esi + 4], cl
cmp eax, ebx
je 0x401157
push str.RunPotPlayer
push eax
call edi
mov ebx, eax
mov eax, dword [esi]
test ebx, ebx
setne dl
and byte [esi + 4], dl
test eax, eax
je 0x401171
push str.SetPotPlayRegKeyW
push eax
call edi
mov edi, eax
jmp 0x401173
xor edi, edi
test edi, edi
setne al
and byte [esi + 4], al
je 0x4011de
mov ecx, dword [esp + 0x244]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push 1
push ecx
push edx
push eax
call dword [esp + 0x28]
add esp, 0x10
test eax, eax
je 0x4011d8
push str.PotPlayerMini
push 0
call edi
push 0x4003
push 0
push 0
call dword [esp + 0x28]
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4011d8
call ebx
push edi
call ebp
add esp, 4
call dword [esp + 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4011f2
call dword [esp + 0x10]
jmp 0x4011f2
push 0
push str.Error
push 0x41e390
push 0
call dword [0x4271d0]
mov eax, dword [esi]
test eax, eax
je 0x4011ff
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call fcn.00401935
mov ecx, dword [esp + 0x234]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040bd65
add esp, 0x224
ret 0x10
Function at 0x40bd65
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425ca0]
jne 0x40bd6f
repz ret
jmp fcn.0040f00b
Function at 0x406290
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42ccdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4043d4
call fcn.00406fac
push 4
mov dword [esp + 0x18], 0
call fcn.00408221
mov edi, eax
add esp, 4
test edi, edi
je 0x406304
push ebx
call fcn.00406da7
mov dword [edi], eax
call fcn.00406b66
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406f6d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4062f8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406f95
pop ebx
jmp 0x406306
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40889b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4305e8]
jne 0x4088a5
repz ret
jmp fcn.0040dd4c
Function at 0x411e33
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4305e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c1e9
and dword [ebp - 0x14], 0
cmp dword [0x435a98], 0
mov dword [ebp - 0x18], eax
jne 0x411ee6
push 0x403884
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411f8e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403878
push ebx
call edi
test eax, eax
je 0x411f8e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403868
push ebx
mov dword [0x435a98], eax
call edi
push eax
call esi
push 0x403854
push ebx
mov dword [0x435a9c], eax
call edi
push eax
call esi
push 0x403838
push ebx
mov dword [0x435aa0], eax
call edi
push eax
call esi
mov dword [0x435aa8], eax
test eax, eax
je 0x411ee6
push 0x403820
push ebx
call edi
push eax
call esi
mov dword [0x435aa4], eax
mov eax, dword [0x435aa4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411f3f
cmp dword [0x435aa8], ecx
je 0x411f3f
push eax
call esi
push dword [0x435aa8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411f3f
test ebx, ebx
je 0x411f3f
call edi
test eax, eax
je 0x411f36
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411f36
test byte [ebp - 8], 1
jne 0x411f3f
or dword [ebp + 0x10], 0x200000
jmp 0x411f72
mov eax, dword [0x435a9c]
cmp eax, dword [ebp - 0x18]
je 0x411f72
push eax
call esi
test eax, eax
je 0x411f72
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411f72
mov eax, dword [0x435aa0]
cmp eax, dword [ebp - 0x18]
je 0x411f72
push eax
call esi
test eax, eax
je 0x411f72
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x435a98]
call esi
test eax, eax
je 0x411f8e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411f90
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040889b
leave
ret

Function at 0x42a2d0
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc08
cmp dword [0x7b983c], 0x37
jne 0x42a34d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommState]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea edx, [esp + 0x40c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov eax, dword [0x7ba830]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x7b97a4]
mov byte [eax + esi], dl
add esp, 0xc08
ret
Function at 0x4010c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010d7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401108
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401104
cmp esi, eax
jae 0x401108
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4010f4
cmp esi, eax
jb 0x40110e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4011a0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebp
push esi
push 0x410f48
xor ebp, ebp
push 0x86
push ebp
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebp
je 0x40122f
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
je 0x401228
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
je 0x401220
mov eax, dword [esp + 0x18]
push ebp
push ebp
push 2
push ebp
push ebp
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebp
je 0x401220
push ebp
lea ecx, [esp + 0x14]
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
lea eax, [ebp + 1]
pop ebp
pop ecx
ret
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
pop esi
mov eax, ebp
pop ebp
pop ecx
ret

Function at 0x401240
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x41313c]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x11c
call esi
test eax, eax
jne 0x401297
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x114
call esi
test eax, eax
jne 0x401297
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004038ac
add esp, 0x120
ret
mov ecx, dword [esp + 0x120]
xor eax, eax
cmp dword [esp + 8], 6
pop esi
sete al
xor ecx, esp
call fcn.004038ac
add esp, 0x120
ret