joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410410
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4506ef
mov eax, dword fs:[0]
push eax
sub esp, 0xbdc
mov eax, dword [0x469788]
xor eax, esp
mov dword [esp + 0xbd8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x469788]
xor eax, esp
push eax
lea eax, [esp + 0xbf0]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
xor ebx, ebx
push 0x4564c9
lea ecx, [esp + 0x18]
mov dword [esp + 0xbfc], ebx
call fcn.0040f500
mov eax, dword [esp + 0xc04]
push 0x456530
push eax
mov byte [esp + 0xc00], 1
call fcn.00439b60
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4105aa
push 2
push ebx
push esi
call fcn.00438fed
push esi
call fcn.0043991f
mov ebp, eax
add esp, 0x10
cmp ebp, ebx
jne 0x4104b3
push esi
call fcn.00439706
add esp, 4
jmp 0x4105aa
cdq
and edx, 0x7ff
add eax, edx
mov edi, eax
sar edi, 0xb
and ebp, 0x800007ff
jns 0x4104d1
dec ebp
or ebp, 0xfffff800
inc ebp
push esi
call fcn.0043acc8
add esp, 4
cmp edi, ebx
jle 0x410536
mov edi, edi
push esi
push 1
lea ecx, [esp + 0x3c]
push 0x800
push ecx
call fcn.00439312
add esp, 0x10
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x838], bl
call fcn.0040f5b0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xbfc], 2
call fcn.0040f900
lea ecx, [esp + 0x24]
mov byte [esp + 0xbf8], 1
call fcn.0040f230
sub edi, 1
jne 0x4104e0
push esi
push 1
lea ecx, [esp + 0x3c]
push ebp
push ecx
call fcn.00439312
add esp, 0x10
mov byte [esp + ebp + 0x34], bl
cmp ebp, ebx
je 0x410584
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x28]
call fcn.0040f5b0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xbfc], 3
call fcn.0040f900
lea ecx, [esp + 0x24]
mov byte [esp + 0xbf8], 1
call fcn.0040f230
push esi
call fcn.00439706
add esp, 4
push ebx
sub esp, 0xc
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call fcn.0040f440
mov ecx, dword [esp + 0x30]
call fcn.00410260
lea ecx, [esp + 0x14]
mov byte [esp + 0xbf8], bl
call fcn.0040f230
lea ecx, [esp + 0xc00]
mov dword [esp + 0xbf8], 0xffffffff
call fcn.0040f230
mov ecx, dword [esp + 0xbf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xbd8]
xor ecx, esp
call fcn.00438ae6
add esp, 0xbe8
ret 0xc
Function at 0x416b10
Capabilities:
Check os version

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x416bcc
push 0x94
mov edi, 1
call fcn.0043a097
mov esi, eax
add esp, 4
test esi, esi
je 0x416c3f
push 0x94
push 0
push esi
call fcn.00439f40
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x416b75
push esi
lea edi, [eax + 1]
call fcn.00439fba
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x416bac
cmp dword [esi + 8], 0
jne 0x416b91
push esi
lea edi, [eax + 1]
call fcn.00439fba
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x416bac
cmp dword [esi + 8], edi
jne 0x416bac
push esi
lea edi, [eax + 2]
call fcn.00439fba
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 6
jne 0x416c36
cmp dword [esi + 8], 0
jne 0x416c36
push esi
lea edi, [eax + 2]
call fcn.00439fba
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp al, 4
jae 0x416bd5
pop edi
xor eax, eax
pop esi
ret
push 0x94
mov edi, 2
call fcn.0043a097
mov esi, eax
add esp, 4
test esi, esi
je 0x416c3f
push 0x94
push 0
push esi
call fcn.00439f40
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x416c36
cmp dword [esi + 8], 0xa
jne 0x416c29
push esi
lea edi, [eax - 1]
call fcn.00439fba
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 4
jne 0x416c36
cmp dword [esi + 8], 0x5a
jne 0x416c36
mov edi, eax
push esi
call fcn.00439fba
add esp, 4
mov eax, edi
pop edi
pop esi
ret
Function at 0x417390
Capabilities:
Create process on windows
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4516fb
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x469788]
xor eax, esp
mov dword [esp + 0x258], eax
push esi
mov eax, dword [0x469788]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
sub esp, 0xc
lea eax, [esp + 0x280]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x27c], 0
call fcn.0040f440
lea esi, [esp + 0x28]
call fcn.00416de0
mov eax, dword [eax + 4]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, esi
call fcn.0040f230
mov eax, dword [esp + 0x278]
lea edx, [esp + 0x6c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x417413
push 0x44
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.00439f40
mov dx, word [esp + 0x28c]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0x20
push 1
push 0
mov word [esp + 0x74], dx
push 0
lea edx, [esp + 0x8c]
push edx
push 0
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x7c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4174a5
push eax
push str.Error
push str.Create_process_failed
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x274]
mov dword [esp + 0x26c], 0xffffffff
call fcn.0040f230
mov eax, 0xbeb95
jmp 0x4174df
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [esp + 8]
lea ecx, [esp + 0x274]
mov dword [esp + 0x26c], 0xffffffff
call fcn.0040f230
mov eax, esi
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00438ae6
add esp, 0x268
ret
Function at 0x42212f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x422176
call fcn.00428ee9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x422176
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x422192
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00421ca9
mov esi, eax
test edi, edi
je 0x422190
test ebx, ebx
je 0x422190
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4229ac
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4524e2
call fcn.0043b159
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4229d1
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x422a17
lea ecx, [ebp - 0x10]
call fcn.00408800
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00422199
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00408620
mov eax, esi
call fcn.0043b231
ret 8

Function at 0x423766
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x42378a
cmp dword [edi + 0x54], 0
jne 0x42378a
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00428ee9
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00423727
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x427c1a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x427c62
call fcn.00428ee9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x427c62
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x427ca5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x427c8e
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 0x427c8e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x427ca2
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 0x438ae6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x469788]
jne 0x438af0
repz ret
jmp fcn.0043e9d5
Function at 0x44a5b1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043f806
and dword [ebp - 4], 0
cmp dword [0x46d614], 0
mov ebx, eax
jne 0x44a662
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44a713
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45b650
push edi
call esi
test eax, eax
je 0x44a713
push eax
call fcn.0043f794
mov dword [esp], 0x45b640
push edi
mov dword [0x46d614], eax
call esi
push eax
call fcn.0043f794
mov dword [esp], 0x45b62c
push edi
mov dword [0x46d618], eax
call esi
push eax
call fcn.0043f794
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46d61c], eax
call esi
push eax
call fcn.0043f794
pop ecx
mov dword [0x46d624], eax
test eax, eax
je 0x44a662
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043f794
pop ecx
mov dword [0x46d620], eax
mov eax, dword [0x46d620]
cmp eax, ebx
je 0x44a6ba
cmp dword [0x46d624], ebx
je 0x44a6ba
push eax
call fcn.0043f80f
push dword [0x46d624]
mov esi, eax
call fcn.0043f80f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44a6ba
test edi, edi
je 0x44a6ba
call esi
test eax, eax
je 0x44a6b1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44a6b1
test byte [ebp - 0xc], 1
jne 0x44a6ba
or dword [ebp + 0x10], 0x200000
jmp 0x44a6f3
mov eax, dword [0x46d618]
cmp eax, ebx
je 0x44a6f3
push eax
call fcn.0043f80f
pop ecx
test eax, eax
je 0x44a6f3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44a6f3
mov eax, dword [0x46d61c]
cmp eax, ebx
je 0x44a6f3
push eax
call fcn.0043f80f
pop ecx
test eax, eax
je 0x44a6f3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46d614]
call fcn.0043f80f
pop ecx
test eax, eax
je 0x44a713
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44a715
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402433
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jne 0x4024c6
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402474
mov eax, 0x4792d5
push eax
push 1
mov ebx, 0x25c
call fcn.00455a50
add esp, 0x10
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x20
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc4
call fcn.00455a60
add esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x4024d0
mov eax, 0
jmp 0x4024d0
mov esp, ebp
pop ebp
ret 4

Function at 0x402508
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push reloc.WS2_32.dll_getsockname
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.00455a80
add esp, 0x10
mov dword [ebp - 8], eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
jne 0x402584
cmp dword [ebp - 4], 0
je 0x40257f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
jmp 0x40258c
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
cmp dword [ebp - 4], 0
mov eax, 0
setne al
jmp 0x40259d
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4025a3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push 3
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4025e0
mov eax, 0x4792d5
push eax
push 3
mov ebx, 0x270
call fcn.00455b60
add esp, 0x28
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402723
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x278
call fcn.00455c40
add esp, 0x10
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402631
mov eax, 0x4792d5
push eax
push 1
mov ebx, 0x244
call fcn.00455850
add esp, 0x10
call fcn.00401750
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402661
mov eax, 0x4792d5
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x402675
mov eax, 0x4792d5
push eax
push 2
mov ebx, 0x23c
call fcn.00455860
add esp, 0x1c
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402698
push ebx
call fcn.00450b6d
add esp, 4
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00455340
add esp, 0x10
mov dword [ebp - 8], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00455340
add esp, 0x10
mov dword [ebp - 0xc], eax
push 5
push dword [ebp - 0xc]
push dword [ebp - 8]
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40270e
push ebx
call fcn.00450b6d
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40271e
push ebx
call fcn.00450b6d
add esp, 4
jmp 0x402813
push dword [ebp + 8]
call fcn.00402433
and eax, 1
xor eax, 1
test eax, eax
je 0x40278d
call fcn.00401750
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402756
mov eax, 0x4792d5
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40276a
mov eax, 0x4792d5
push eax
push 2
mov ebx, 0x23c
call fcn.00455860
add esp, 0x1c
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40278d
push ebx
call fcn.00450b6d
add esp, 4
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00455340
add esp, 0x10
mov dword [ebp - 8], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00455340
add esp, 0x10
mov dword [ebp - 0xc], eax
push 5
push dword [ebp - 0xc]
push dword [ebp - 8]
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402803
push ebx
call fcn.00450b6d
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x402813
push ebx
call fcn.00450b6d
add esp, 4
push 0x66fd11
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x90]
mov esp, ebp
pop ebp
ret 4
Function at 0x406d38
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
push 8
call fcn.00450b67
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00450b67
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x10], 0
push 0x10
call fcn.00450b67
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
nop
nop
mov dword [ebp - 0x18], eax
push 0x80000301
push 0
push 8
push 0x80000301
push 0
push 0x20
push 2
mov ebx, 0xc8
call fcn.004552e0
add esp, 0x1c
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop
nop
nop
nop
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00455340
add esp, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp - 8]
push str.SeDebugPrivilege
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
nop
nop
nop
nop
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x406e5c
push ebx
call fcn.00450b6d
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov eax, 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push 0x1c
push dword [ebp - 0xc]
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop
nop
nop
nop
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
mov eax, dword [ebp - 0x10]
jmp 0x406ef3
push eax
mov ebx, dword [ebp - 8]
push ebx
call fcn.00450b6d
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00450b6d
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00450b6d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x40c7ef
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push 0
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
nop
nop
nop
nop
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
mov eax, 0
sete al
jmp 0x40c82f
mov esp, ebp
pop ebp
ret 8
Function at 0x40f956
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push dword [ebp + 8]
push dword [0x66fd2d]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
nop
nop
nop
nop
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40f9a5
mov eax, 0x47938d
jmp 0x40fa64
push dword [ebp + 8]
push dword [0x66fd2d]
call dword [sym.imp.KERNEL32.dll_LoadResource]
nop
nop
nop
nop
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f9cf
mov eax, 0x47938d
jmp 0x40fa64
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LockResource]
nop
nop
nop
nop
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40f9f3
mov eax, 0x47938d
jmp 0x40fa64
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x1bc
call fcn.00455c70
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40fa26
push ebx
call fcn.00450b6d
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40fa3a
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
nop
nop
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40fa5f
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00450b67
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40fa64
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40fa75
push ebx
call fcn.00450b6d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x412e2b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ebx, dword [0x66fd15]
mov dword [ebp - 4], ebx
push 0x4792d5
mov ebx, dword [ebp - 4]
push dword [ebx]
call fcn.00401bf1
add esp, 8
cmp eax, 0
je 0x412ee7
mov ebx, dword [0x66fd15]
mov dword [ebp - 4], ebx
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00455340
add esp, 0x10
mov dword [ebp - 8], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00455340
add esp, 0x10
mov dword [ebp - 0xc], eax
push 1
push dword [ebp - 0xc]
push dword [ebp - 8]
mov ebx, dword [ebp - 4]
push dword [ebx]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x412ed7
push ebx
call fcn.00450b6d
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x412ee7
push ebx
call fcn.00450b6d
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x41fd90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
nop
nop
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
mov eax, 0
setne al
jmp 0x41fdbf
mov esp, ebp
pop ebp
ret 4

Function at 0x41fdc5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
nop
nop
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
mov eax, 0
setne al
jmp 0x41fdf4
mov esp, ebp
pop ebp
ret 4

Function at 0x41fdfa
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [0x66fe25], 0
jle 0x41fe32
cmp dword [0x66fe11], 0
jle 0x41fe32
mov eax, 1
jmp 0x41fe34
xor eax, eax
test eax, eax
je 0x41fedd
push 1
push dword [0x66fe25]
call fcn.0041fee3
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jne 0x41fec4
push 0x66fe21
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
lea eax, [ebp - 8]
push eax
call fcn.00407453
push eax
push dword [0x66fe11]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41feb0
push dword [0x66fe11]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
mov dword [0x66fe11], 0
mov dword [0x66fe25], 0
push 0x66fe21
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
jmp 0x41fedd
cmp dword [ebp - 4], 0
jne 0x41fedd
push 0x66feb9
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x420e25
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x184
call fcn.00455300
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x420e6a
push ebx
call fcn.00450b6d
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0040c6e5
push eax
push 0x200
push 0xd
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
nop
nop
nop
nop
mov eax, dword [ebp - 4]
test eax, eax
je 0x420eab
push eax
mov ebx, eax
call fcn.0040106a
inc eax
push eax
call fcn.00450b67
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x420eb0
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x420ec1
push ebx
call fcn.00450b6d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4