joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005aa0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x124
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x120], eax
call fcn.100094af
push eax
lea ecx, [esp + 4]
call fcn.1000a2b7
call fcn.1000c5d9
test eax, eax
jne 0x10005ad6
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
push ebx
push ebp
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ebx, eax
push 0x104
lea ecx, [esp + 0x2c]
add ebx, 0x10
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.RtlExUpd.dll
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.BANGOLUFSENICON
mov edi, eax
push 0xbcb
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test esi, esi
mov dword [esp + 0x20], eax
je 0x10005c5a
test ebp, ebp
je 0x10005c5a
cmp dword [esp + 0x1c], 0
je 0x10005c5a
test eax, eax
je 0x10005c5a
push 0x104
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.TempBANG_OLUFSEN.ico
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x40]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10005bce
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, dword [esp + 0x20]
je 0x10005c30
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x40]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10005c30
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x28]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x10005c30
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10004fe0
cmp dword [esp + 0x14], ebx
je 0x10005c90
mov eax, dword [esp + 0x10]
push eax
jmp 0x10005c89
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10004fe0
cmp dword [esp + 0x14], 0
je 0x10005c53
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10009a5a
mov eax, 1
jmp 0x10005c92
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10005c7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
je 0x10005c90
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10009a5a
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001524a
add esp, 0x124
ret
Function at 0x10005cb0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x124
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x120], eax
call fcn.100094af
push eax
lea ecx, [esp + 4]
call fcn.1000a2b7
call fcn.1000c5d9
test eax, eax
jne 0x10005ce6
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
push ebx
push ebp
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ebx, eax
push 0x104
lea ecx, [esp + 0x2c]
add ebx, 0x10
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.RtlExUpd.dll
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.BOPLAYICON
mov edi, eax
push 0xbcc
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test esi, esi
mov dword [esp + 0x20], eax
je 0x10005e6a
test ebp, ebp
je 0x10005e6a
cmp dword [esp + 0x1c], 0
je 0x10005e6a
test eax, eax
je 0x10005e6a
push 0x104
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.TempBOPlay.ico
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x40]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10005dde
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, dword [esp + 0x20]
je 0x10005e40
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x40]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10005e40
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x28]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x10005e40
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10004fe0
cmp dword [esp + 0x14], ebx
je 0x10005ea0
mov eax, dword [esp + 0x10]
push eax
jmp 0x10005e99
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
call fcn.10004fe0
cmp dword [esp + 0x14], 0
je 0x10005e63
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10009a5a
mov eax, 1
jmp 0x10005ea2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10005e8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
je 0x10005ea0
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.10009a5a
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001524a
add esp, 0x124
ret
Function at 0x10007040
Capabilities:
Set registry value

Disassembly:
sub esp, 0x1ac
mov eax, dword [0x10033a60]
xor eax, esp
mov dword [esp + 0x1a8], eax
call fcn.1000c5d9
test eax, eax
jne 0x10007067
push 0x80004005
call fcn.10001090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push esi
call eax
mov esi, eax
lea ecx, [esp + 0xc]
add esi, 0x10
push ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x1c], 2
je 0x100070c8
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100070b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.1001524a
add esp, 0x1ac
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0xb0]
push str._d._d
push eax
call fcn.10002470
lea eax, [esp + 0xb8]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100070f1
push edi
push 0x20
sub eax, edx
push str.SoftwareRealtekAudioInstaller
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.10006230
mov edi, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x10007153
mov ecx, dword [esp + 8]
lea edx, [esi + esi]
push edx
lea eax, [esp + 0xb0]
push eax
push 1
push 0
push str.OSVer
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x10007170
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1ac]
pop esi
xor ecx, esp
mov eax, 1
call fcn.1001524a
add esp, 0x1ac
ret
Function at 0x1000a7c5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x10033a60]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x1000a805
push 0x1002afa0
push 4
push eax
call fcn.10015639
push eax
call fcn.10001000
add esp, 0x10
jmp 0x1000a817
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1000a885
push edi
call fcn.10016dde
mov edi, dword [eax]
call fcn.10016dde
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.1001671b
add esp, 0x18
mov ebx, eax
call fcn.10016dde
cmp dword [eax], 0
je 0x1000a865
call fcn.10016dde
push dword [eax]
call fcn.100098ca
pop ecx
jmp 0x1000a86c
call fcn.10016dde
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x1000a885
cmp ebx, esi
jae 0x1000a885
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x1000a887
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1001524a
leave
ret
Function at 0x1001524a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10033a60]
jne 0x10015254
repz ret
jmp fcn.1001c74e

Function at 0x10018759
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]

Function at 0x10018fff
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
invalid
movsd dword es:[edi], dword [esi]

Function at 0x100193cd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add dword [eax], eax
add byte [ebp - 0x3337b], cl
call dword [eax - 1]
jne 0x100193e2
call dword [ebp - 0x538]
push 0xc6fffffc
test dword [edx + edi*8 - 0x7cfe0001], edi
mov ebp, 0xfffffc68
add byte [edi + edx - 0x7d], dh
mov ebp, 0xfffffc68
add byte [edi], cl
test ah, dl
add dword [eax], eax
add byte [ebx + 0xf010c7d], al
test dl, cl
add dword [eax], eax
add byte [ebx + 0xf080c7d], al
test dword [eax - 0x7fffffff], ecx
movsd dword es:[edi], dword [esi]
dec eax
stc
invalid
Function at 0x1001b977
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 + 0x10034348]
je 0x1001b992
inc edi
cmp edi, 0x17
jb 0x1001b983
cmp edi, 0x17
jae 0x1001bb12
push ebp
push 3
call fcn.10022be5
cmp eax, 1
pop ecx
je 0x1001bade
push 3
call fcn.10022be5
test eax, eax
pop ecx
jne 0x1001b9c6
cmp dword [0x10036dc8], 1
je 0x1001bade
cmp ebx, 0xfc
je 0x1001bb11
push 0x1002c7c8
mov ebx, 0x314
push ebx
mov ebp, 0x10036fd0
push ebp
call fcn.10015639
add esp, 0xc
test eax, eax
je 0x1001b9fc
push esi
push esi
push esi
push esi
push esi
call fcn.1001a981
add esp, 0x14
push 0x104
mov esi, 0x10036fe9
push esi
push 0
mov byte [0x100370ed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001ba40
push 0x1002c7b0
push 0x2fb
push esi
call fcn.10015639
add esp, 0xc
test eax, eax
je 0x1001ba40
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1001a981
add esp, 0x14
push esi
call fcn.10016cc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1001ba85
push esi
call fcn.10016cc0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100372e4
push 0x1002c7ac
sub ecx, eax
push ecx
push eax
call fcn.100158ec
add esp, 0x14
test eax, eax
je 0x1001ba85
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1001a981
add esp, 0x14
jmp 0x1001ba87
xor esi, esi
push 0x1002c7a8
push ebx
push ebp
call fcn.1001569e
add esp, 0xc
test eax, eax
je 0x1001baa7
push esi
push esi
push esi
push esi
push esi
call fcn.1001a981
add esp, 0x14
push dword [edi*8 + 0x1003434c]
push ebx
push ebp
call fcn.1001569e
add esp, 0xc
test eax, eax
je 0x1001bac9
push esi
push esi
push esi
push esi
push esi
call fcn.1001a981
add esp, 0x14
push 0x12010
push 0x1002c780
push ebp
call fcn.10022a28
add esp, 0xc
jmp 0x1001bb11
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1001bb11
cmp ebp, 0xffffffff
je 0x1001bb11
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1003434c]
push dword [esi]
call fcn.10016cc0
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 0x100289ae
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10033a60]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.10028943
mov eax, 0x10000000
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.100151d0
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 0x100289fd
cmp dword [ebp - 0x1c], 5
jb 0x10028a15
jmp 0x10028a11
cmp dword [ebp - 0x10], 1
jne 0x10028a15
cmp dword [ebp - 0x1c], 4
ja 0x10028a11
jne 0x10028a15
cmp dword [ebp - 0x18], 0
jbe 0x10028a15
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1002dac0
call fcn.10028817
test eax, eax
jge 0x10028a36
mov byte [0x10034fd4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1001524a
add ebp, 0x78
leave
ret
Function at 0x404350
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret

Function at 0x404370
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esp, ebp
pop ebp
ret

Function at 0x40795b
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 0x40797f
cmp dword [edi + 0x54], 0
jne 0x40797f
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004058cd
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.0040791c
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 0x40cf67
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 0x40cfae
call fcn.004058cd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40cfae
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40cfca
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040cadf
mov esi, eax
test edi, edi
je 0x40cfc8
test ebx, ebx
je 0x40cfc8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40d745
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4389fd
call fcn.004234bd
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40d76a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40d7b0
lea ecx, [ebp - 0x10]
call fcn.00402580
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.00404666
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402680
mov eax, esi
call fcn.00423595
ret 8
Function at 0x40e17a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x44c680]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x40e212
push 0x43cce4
push 4
push eax
call fcn.004223ab
push eax
call fcn.00401ae0
add esp, 0x10
push ebx
push edi
call fcn.00423694
mov edi, dword [eax]
call fcn.00423694
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00423631
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00423694
cmp dword [eax], ebx
je 0x40e229
call fcn.00423694
push dword [eax]
call fcn.0040473b
pop ecx
jmp 0x40e230
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x40e1bd
jmp 0x40e2b7
call fcn.00423694
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x40e2b3
cmp dword [ebp - 0x234], esi
jae 0x40e2b3
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.00422740
add esp, 0xc
push 0x43b8c0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x40e2a2
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40e2a2
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x40e2a2
push ebx
push ebx
push esi
jmp 0x40e2ab
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40e2b5
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00422032
leave
ret

Function at 0x40f441
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 0x40f489
call fcn.004058cd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40f489
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40f4cc
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 0x40f4b5
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 0x40f4b5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40f4c9
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 0x422032
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44c680]
jne 0x42203c
repz ret
jmp fcn.00427b01
Function at 0x42ea3d
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.00427465
and dword [ebp - 4], 0
cmp dword [0x450ad4], 0
mov ebx, eax
jne 0x42eaee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42eb9f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42eb9f
push eax
call fcn.004273f3
mov dword [esp], 0x43f630
push edi
mov dword [0x450ad4], eax
call esi
push eax
call fcn.004273f3
mov dword [esp], 0x43f61c
push edi
mov dword [0x450ad8], eax
call esi
push eax
call fcn.004273f3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x450adc], eax
call esi
push eax
call fcn.004273f3
pop ecx
mov dword [0x450ae4], eax
test eax, eax
je 0x42eaee
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004273f3
pop ecx
mov dword [0x450ae0], eax
mov eax, dword [0x450ae0]
cmp eax, ebx
je 0x42eb46
cmp dword [0x450ae4], ebx
je 0x42eb46
push eax
call fcn.0042746e
push dword [0x450ae4]
mov esi, eax
call fcn.0042746e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42eb46
test edi, edi
je 0x42eb46
call esi
test eax, eax
je 0x42eb3d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42eb3d
test byte [ebp - 0xc], 1
jne 0x42eb46
or dword [ebp + 0x10], 0x200000
jmp 0x42eb7f
mov eax, dword [0x450ad8]
cmp eax, ebx
je 0x42eb7f
push eax
call fcn.0042746e
pop ecx
test eax, eax
je 0x42eb7f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42eb7f
mov eax, dword [0x450adc]
cmp eax, ebx
je 0x42eb7f
push eax
call fcn.0042746e
pop ecx
test eax, eax
je 0x42eb7f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x450ad4]
call fcn.0042746e
pop ecx
test eax, eax
je 0x42eb9f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42eba1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4361b0
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439ec9
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x44c680]
xor eax, ebp
mov dword [ebp - 0x58], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x184], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0xd]
call fcn.00402100
mov byte [ebp - 4], 2
push 0x11c
push 0
lea eax, [ebp - 0x17c]
push eax
call fcn.00422740
add esp, 0xc
mov dword [ebp - 0x17c], 0x11c
lea ecx, [ebp - 0x17c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0
push 0x38
push 0
lea edx, [ebp - 0x4c]
push edx
call fcn.00422740
add esp, 0xc
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x178], 6
jb 0x436268
cmp dword [ebp + 0x18], 1
jne 0x436268
mov dword [ebp - 0x44], str.runas
jmp 0x43626f
mov dword [ebp - 0x44], str.open
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x4c], 0x40
push 0
lea ecx, [ebp + 8]
call fcn.00402950
mov dword [ebp - 0x40], eax
push 0
lea ecx, [ebp + 0xc]
call fcn.00402950
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4362ab
cmp dword [ebp - 0x30], 0x20
jg 0x4362b4
mov dword [ebp - 0x14], 0xffffffff
jmp 0x43630d
cmp dword [ebp + 0x14], 0
jne 0x4362c3
mov dword [ebp + 0x10], 0
jmp 0x43630d
cmp dword [ebp - 0x18], 0
je 0x43630d
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0x103
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0x103
jne 0x4362fc
push 0x1f4
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x4362d2
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x180], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd]
call fcn.00401f70
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004024e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004024e0
mov eax, dword [ebp - 0x180]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x58]
xor ecx, ebp
call fcn.00422032
mov esp, ebp
pop ebp
ret 0x14