joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407765
Capabilities:
Identify system language via api

Disassembly:
push 0x10
mov eax, 0x42f851
call fcn.004191c6
mov ebx, ecx
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
call fcn.004090b0
push eax
lea ecx, [ebp - 0x14]
call fcn.0040123f
xor esi, esi
inc esi
mov dword [ebp - 4], esi
call fcn.004090b0
push eax
lea ecx, [ebp - 0x10]
call fcn.0040123f
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0040136b
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov esi, eax
shr ax, 0xa
movzx edi, ax
mov eax, dword [ebp + 0xc]
and esi, 0x3ff
sub eax, 0x83
je 0x4077e2
dec eax
je 0x4077db
dec eax
jne 0x4077ef
push str.REBOOT
jmp 0x4077e7
push str.NOTHING_TO_INSTALL
jmp 0x4077e7
push str.CRITERIA_FAILED
lea ecx, [ebp - 0x14]
call fcn.0040168b
movzx eax, si
dec eax
cmp eax, 0x26
ja case.0x4077fc.3
jmp dword [eax*4 + 0x40799d]
push str.Arabic
jmp 0x407914
push str.Bulgarian
jmp 0x407914
cmp di, 2
je 0x40782d
cmp di, 3
je 0x40782d
push str.ChineseTraditional
jmp 0x407914
push str.ChineseSimplified
jmp 0x407914
push str.Croatian
jmp 0x407914
push str.Czech
jmp 0x407914
push str.Danish
jmp 0x407914
push str.Dutch
jmp 0x407914
push str.Estonian
jmp 0x407914
push str.Finnish
jmp 0x407914
push str.French
jmp 0x407914
push str.German
jmp 0x407914
push str.Greek
jmp 0x407914
push str.Hebrew
jmp 0x407914
push str.Hungarian
jmp 0x407914
push str.Italian
jmp 0x407914
push str.Japanese
jmp 0x407914
push str.Korean
jmp 0x407914
push str.Latvian
jmp 0x407914
push str.Lithuanian
jmp 0x407914
push str.Norwegian
jmp 0x407914
push str.Polish
jmp 0x407914
push str.Portuguese
jmp 0x407914
push str.Romanian
jmp 0x407914
push str.Russian
jmp 0x407914
push str.Slovak
jmp 0x407914
push str.Slovenian
jmp 0x407914
push str.Spanish
jmp 0x407914
push str.Swedish
jmp 0x407914
push str.Turkish
jmp 0x407914
push str.Ukrainian
jmp 0x407914
push str.English
lea ecx, [ebp - 0x10]
call fcn.0040168b
lea esi, [ebx + 0xd0]
mov eax, dword [esi]
xor edi, edi
cmp dword [eax - 0xc], edi
jne 0x407932
mov ecx, ebx
call fcn.00407417
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
je 0x407969
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.00406bdf
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 3
call fcn.0040163e
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.0040110f
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jne 0x40797d
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004015fe
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040110f
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040110f
mov eax, esi
call fcn.00419265
ret 8
Function at 0x407de6
Capabilities:
Delete file
Identify system language via api
Shutdown system

Disassembly:
push 0x20
mov eax, 0x42f8e8
call fcn.004191c6
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0xfc], ebx
jne 0x407e3c
cmp dword [esi + 0xf8], ebx
je 0x407e37
push 0x85
lea eax, [ebp - 0x1c]
push eax
call fcn.00407765
mov eax, dword [eax]
push ebx
push 0x10024
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
call fcn.004067ca
add esp, 0xc
cmp eax, 6
jne 0x407e3c
mov byte [ebp - 0xd], bl
jmp 0x407e40
mov byte [ebp - 0xd], 1
test byte [ebp - 0x14], 1
je 0x407e51
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040110f
cmp byte [ebp - 0xd], bl
jne 0x407eed
lea edi, [esi + 0xd0]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x407e75
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.00401264
lea eax, [ebp - 0x18]
push eax
mov dword [esi + 0xb0], ebx
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
je 0x407ecd
lea eax, [ebp - 0x28]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 2
je 0x407ecd
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x18]
call edi
mov esi, eax
push 1
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
cmp esi, ebx
je 0x407eed
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x20], ebx
call edi
call fcn.00419265
ret
Function at 0x409f40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x42fba4
call fcn.004191f9
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00414a27
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x409f8b
call fcn.00414a27
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x409f9c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x409fa9
or eax, 0xffffffff
jmp 0x40a105
mov ecx, esi
call fcn.00409a92
mov dword [ebp - 0x14], eax
call fcn.0040c830
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x40a027
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x40a027
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40a027
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00409943
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x40a027
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x40a027
mov ecx, ebx
call fcn.0040fa00
test eax, eax
je 0x40a027
push 0
mov ecx, ebx
call fcn.0040fa1b
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040e13d
push dword [ebp - 0x14]
call fcn.0040c788
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00409d48
xor edi, edi
cmp eax, edi
je 0x40a084
test byte [esi + 0x3c], 0x10
je 0x40a06e
push 4
pop edi
mov ecx, esi
call fcn.0040f96d
test ax, 0x100
je 0x40a064
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040c31e
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x40a084
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040fa5d
or dword [ebp - 4], 0xffffffff
jmp 0x40a0af
cmp dword [ebp - 0x28], edi
je 0x40a0bd
push 1
mov ecx, ebx
call fcn.0040fa1b
cmp dword [ebp - 0x2c], edi
je 0x40a0cd
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x40a0e6
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x40a0e6
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00409acc
cmp dword [esi + 0x58], edi
je 0x40a102
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00419265
ret
Function at 0x40f257
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 0x40f29a
call fcn.00414a27
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40f29a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40f2b5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040ee11
test ebx, ebx
mov esi, eax
je 0x40f2b3
test edi, edi
je 0x40f2b3
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x410dcf
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x43eff4]
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 - 0xc]
jne 0x410e0c
push 0x435760
push 4
push eax
call fcn.00419c70
push eax
call fcn.00401025
add esp, 0x10
jmp 0x410e1e
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x410e89
push edi
call fcn.00419d52
mov edi, dword [eax]
call fcn.00419d52
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00419cf8
add esp, 0x18
mov ebx, eax
call fcn.00419d52
cmp dword [eax], 0
je 0x410e69
call fcn.00419d52
push dword [eax]
call fcn.00408fef
pop ecx
jmp 0x410e70
call fcn.00419d52
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x410e89
cmp ebx, esi
jae 0x410e89
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x410e8b
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004191b7
leave
ret
Function at 0x412515
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x41251e
xor eax, eax
jmp 0x412587
cmp dword [esp + 8], 0
jne 0x41252a
call fcn.00408ded
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0041c9f0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x412565
push dword [esi + 0x10]
call fcn.0041c6f6
test eax, eax
pop ecx
jne 0x412565
mov esi, dword [esi + 0xc]
call fcn.00419d65
push esi
push dword [eax]
push 1
call fcn.0041315a
push dword [esi + 0x10]
call fcn.0041c725
test eax, eax
pop ecx
je 0x412584
push dword [esi + 0x10]
call fcn.0041c64a
push eax
call fcn.00401025
pop ecx
pop ecx
jmp 0x412553
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x412590
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x41259a
call fcn.00408ded
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0041cb6a
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4125c7
mov esi, dword [esi + 0xc]
call fcn.00419d65
push esi
push dword [eax]
push 1
call fcn.0041315a
pop esi
ret 8

Function at 0x4191b7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43eff4]
jne 0x4191c1
repz ret
jmp fcn.0042202c
Function at 0x41c754
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x41c791
cmp dword [ebp + 0x14], edi
je 0x41c791
cmp ecx, edi
jne 0x41c798
call fcn.00419d52
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0041f8db
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x41c7ac
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x41c7cd
cmp ebx, 0xffffffff
je 0x41c7bc
push ebx
push edi
push ecx
call fcn.00419380
add esp, 0xc
cmp esi, edi
je 0x41c779
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x41c779
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x41c7e9
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x41c7f0
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x41c8e1
test word [esi + 0xc], 0x10c
je 0x41c844
mov eax, dword [esi + 4]
test eax, eax
je 0x41c844
jl 0x41c942
cmp ebx, eax
mov edi, ebx
jb 0x41c815
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x41c8e9
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00418989
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x41c8d9
cmp ebx, dword [ebp - 0xc]
jb 0x41c8b1
cmp dword [ebp - 0xc], 0
je 0x41c86e
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x41c863
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x41c86a
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x41c879
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x41c879
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x41c915
push eax
push dword [ebp - 8]
push esi
call fcn.0041c3a9
pop ecx
push eax
call fcn.00425fc6
add esp, 0xc
test eax, eax
je 0x41c954
cmp eax, 0xffffffff
je 0x41c942
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x41c8d9
push esi
call fcn.004258e5
cmp eax, 0xffffffff
pop ecx
je 0x41c946
cmp dword [ebp - 4], 0
je 0x41c915
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x41c7f8
mov eax, dword [ebp + 0x14]
jmp 0x41c793
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x41c900
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00419380
add esp, 0xc
call fcn.00419d52
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x41c789
cmp dword [ebp + 0xc], 0xffffffff
je 0x41c92b
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00419380
add esp, 0xc
call fcn.00419d52
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x41c789
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x41c793
or dword [esi + 0xc], 0x10
jmp 0x41c946
Function at 0x41e1f0
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 + 0x43f180]
je 0x41e20b
inc edi
cmp edi, 0x17
jb 0x41e1fc
cmp edi, 0x17
jae 0x41e38b
push ebp
push 3
call fcn.004288e0
cmp eax, 1
pop ecx
je 0x41e357
push 3
call fcn.004288e0
test eax, eax
pop ecx
jne 0x41e23f
cmp dword [0x43efd4], 1
je 0x41e357
cmp ebx, 0xfc
je 0x41e38a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x442428
push ebp
call fcn.0042887b
add esp, 0xc
test eax, eax
je 0x41e275
push esi
push esi
push esi
push esi
push esi
call fcn.0041f7df
add esp, 0x14
push 0x104
mov esi, 0x442441
push esi
push 0
mov byte [0x442545], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41e2b9
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042887b
add esp, 0xc
test eax, eax
je 0x41e2b9
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041f7df
add esp, 0x14
push esi
call fcn.004287f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41e2fe
push esi
call fcn.004287f0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44273c
push 0x43669c
sub ecx, eax
push ecx
push eax
call fcn.00428734
add esp, 0x14
test eax, eax
je 0x41e2fe
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041f7df
add esp, 0x14
jmp 0x41e300
xor esi, esi
push 0x436698
push ebx
push ebp
call fcn.004286c3
add esp, 0xc
test eax, eax
je 0x41e320
push esi
push esi
push esi
push esi
push esi
call fcn.0041f7df
add esp, 0x14
push dword [edi*8 + 0x43f184]
push ebx
push ebp
call fcn.004286c3
add esp, 0xc
test eax, eax
je 0x41e342
push esi
push esi
push esi
push esi
push esi
call fcn.0041f7df
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00428506
add esp, 0xc
jmp 0x41e38a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41e38a
cmp ebp, 0xffffffff
je 0x41e38a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43f184]
push dword [esi]
call fcn.004287f0
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 0x428506
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041eda0
xor ebx, ebx
cmp dword [0x442f30], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4285dc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4286bc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4286bc
push eax
call fcn.0041ed32
mov dword [esp], 0x4368f0
push edi
mov dword [0x442f30], eax
call esi
push eax
call fcn.0041ed32
mov dword [esp], 0x4368dc
push edi
mov dword [0x442f34], eax
call esi
push eax
call fcn.0041ed32
mov dword [0x442f38], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041baf7
test eax, eax
pop ecx
pop ecx
je 0x4285aa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041f7df
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4285dc
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041ed32
cmp eax, ebx
pop ecx
mov dword [0x442f40], eax
je 0x4285dc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041ed32
pop ecx
mov dword [0x442f3c], eax
mov eax, dword [0x442f3c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x428661
cmp dword [0x442f40], ecx
je 0x428661
push eax
call fcn.0041eda9
push dword [0x442f40]
mov esi, eax
call fcn.0041eda9
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x428661
cmp edi, ebx
je 0x428661
call esi
cmp eax, ebx
je 0x42862e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42862e
test byte [ebp - 0x18], 1
jne 0x428661
lea eax, [ebp - 0x10]
push eax
call fcn.0041bb2e
test eax, eax
pop ecx
je 0x428649
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041f7df
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x428658
or dword [ebp + 0x10], 0x200000
jmp 0x42869c
or dword [ebp + 0x10], 0x40000
jmp 0x42869c
mov eax, dword [0x442f34]
cmp eax, dword [ebp - 8]
je 0x42869c
push eax
call fcn.0041eda9
cmp eax, ebx
pop ecx
je 0x42869c
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42869c
mov eax, dword [0x442f38]
cmp eax, dword [ebp - 8]
je 0x42869c
push eax
call fcn.0041eda9
cmp eax, ebx
pop ecx
je 0x42869c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x442f30]
call fcn.0041eda9
cmp eax, ebx
pop ecx
je 0x4286bc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4286be
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e93e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43eff4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042e8d3
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.00419380
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 0x42e98d
cmp dword [ebp - 0x1c], 5
jb 0x42e9a5
jmp 0x42e9a1
cmp dword [ebp - 0x10], 1
jne 0x42e9a5
cmp dword [ebp - 0x1c], 4
ja 0x42e9a1
jne 0x42e9a5
cmp dword [ebp - 0x18], 0
jbe 0x42e9a5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x437ab4
call fcn.0042e7c4
test eax, eax
jge 0x42e9c6
mov byte [0x4404e4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004191b7
add ebp, 0x78
leave
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x18871283
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x375375e0
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40d060], 1
mov dword [0x40d05c], 1
mov dword [0x40d058], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40d014], eax
mov eax, dword [0x40d06c]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40d080]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40d068]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x409018], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056
Function at 0x401bf0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401c50
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40d074]
test esi, esi
jle 0x401d70
mov eax, dword [0x40d078]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401c84
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401d07
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401c70
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401d97
mov eax, dword [0x40d078]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40d078]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401d77
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401d00
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401d10
add dword [0x40d074], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40d078]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401d00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401c8e
mov eax, dword [0x40d078]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop