joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ab0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41367c
call fcn.004123c0
sub esp, 0x14
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
push 0
lea ecx, [ebp - 0x20]
mov bl, 1
mov byte [ebp - 0x20], al
call fcn.00403580
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x3fc
mov ecx, esi
call fcn.00407878
mov ecx, esi
call fcn.0040738b
mov esi, eax
test esi, esi
je 0x407b3e
mov edx, dword [ebp - 0x1c]
mov eax, 0x4155b4
test edx, edx
mov ecx, eax
je 0x407b04
mov ecx, edx
mov ecx, dword [ecx]
cmp ecx, dword [0x4156eb]
jne 0x407b34
test edx, edx
je 0x407b14
mov eax, edx
mov ecx, dword [ebp - 0x18]
push esi
add ecx, 0xfffffffc
push 1
add eax, 4
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ebx, eax
add esp, 0x10
dec ebx
neg ebx
sbb bl, bl
inc bl
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
jmp 0x407b40
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
call fcn.00403580
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x407b5e
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x413690
call fcn.004123c0
sub esp, 0x14
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x20]
push ebx
mov byte [ebp - 0x20], al
call fcn.00403580
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
push 0x401
mov dword [ebp - 4], ebx
call fcn.00407878
mov ecx, esi
call fcn.0040779e
mov esi, eax
cmp esi, ebx
je 0x407bcc
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x407bac
mov eax, 0x4155b4
push esi
push 1
push dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ebx, eax
push esi
dec ebx
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
call fcn.00403580
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4091eb
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__waccess]
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40923e
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x409208
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push 0
push eax
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x40923e
xor edi, edi
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x409221
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.MSVCRT.dll__wremove]
test eax, eax
pop ecx
je 0x40923e
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x3e8
jl 0x409215
cmp dword [esi + 0x48], 0
je 0x409286
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x409250
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push 0
push eax
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x409286
xor edi, edi
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x409269
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.MSVCRT.dll__wremove]
test eax, eax
pop ecx
je 0x409286
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x3e8
jl 0x40925d
pop edi
pop esi
pop ebx
ret
Function at 0x4105f5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 9
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x26]
push dword [ebp + 0x10]
mov word [ebp - 0x28], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
push 0x41e650
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea eax, [ebp - 0x28]
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x410682
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x410682
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x410682
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebx
je 0x410682
push dword [0x4155b0]
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.004045b4
mov ecx, dword [ebp + 0x14]
push esi
push edi
call fcn.004048e1
push 1
pop ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x411387
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00412790
push ebx
push edi
call fcn.00411238
mov edx, dword [0x41ed9c]
mov ebx, eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x1008]
mov dword [ebp - 0x100c], edx
rep stosd dword es:[edi], eax
mov ecx, 0x1ff
lea edi, [ebp - 0x808]
mov dword [ebp - 0x80c], edx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
rep stosd dword es:[edi], eax
mov eax, 0x400
lea ecx, [ebp - 0x80c]
push eax
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x100c]
push eax
push 0x41e7b0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push dword [ebp + 8]
push ebx
push dword [ebp - 4]
call fcn.00411317
add esp, 0xc
mov al, 1
pop edi
pop ebx
leave
ret

Function at 0x411415
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
mov eax, 0x414024
call fcn.004123c0
sub esp, 0x20
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
push esi
push 0x42a
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x41145a
lea eax, [ebp - 0x1c]
push 0x419ed8
push eax
mov dword [ebp - 0x1c], esi
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 4
push 0x1000
lea edi, [eax + eax]
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x14], ebx
jne 0x411493
lea eax, [ebp - 0x20]
push 0x419ed8
push eax
mov dword [ebp - 0x20], esi
call sub.MSVCRT.dll__CxxThrowException
push esi
push edi
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4114b7
lea eax, [ebp - 0x24]
push 0x419ed8
push eax
mov dword [ebp - 0x24], esi
call sub.MSVCRT.dll__CxxThrowException
push str.LoadLibraryW
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x4114e3
lea eax, [ebp - 0x28]
push 0x419ed8
push eax
mov dword [ebp - 0x28], esi
call sub.MSVCRT.dll__CxxThrowException
push esi
push esi
push ebx
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, esi
jne 0x411534
lea eax, [ebp - 0x2c]
push 0x419ed8
push eax
mov dword [ebp - 0x2c], esi
call sub.MSVCRT.dll__CxxThrowException
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x411520
push 0x8000
push esi
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [ebp + 8], esi
je 0x41152e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x411544
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x411b62
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00412790
push esi
mov edx, 0x1ff
push edi
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x100e]
mov word [ebp - 0x1010], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x80e]
mov word [ebp - 0x810], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x800
lea eax, [ebp - 0x1010]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x810]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
lea edi, [ebp - 0xe]
mov word [ebp - 0x10], si
push 0xe
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push esi
push eax
call sub.MSVCRT.dll_memset
push esi
push esi
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.MSVCRT.dll__wsplitpath]
lea eax, [ebp - 0x10]
push 0x41d13c
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.00412aa2
add esp, 0x30
test al, al
jne 0x411c39
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.00412aa2
pop ecx
test al, al
pop ecx
jne 0x411c39
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00412aa2
pop ecx
test al, al
pop ecx
jne 0x411c39
inc al
jmp 0x411c3b
xor al, al
pop edi
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0xe094f8
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe09502
pushal
call 0xe09508
pop ebp
sub ebp, 0x10
sub ebp, 0xa094f8
jmp 0xe0951e
mov eax, 0xa094f8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c8
mov edx, 0xda9ed04f
xor byte [eax], dl
inc eax
dec ecx
jne 0xe09535
jmp 0xe09548
les eax, [edx + 0x4f73c6c4]
dec edi
dec edi
into
invalid
Function at 0x40a3a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
jmp 0x40a3ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40a3c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40a3b0
mov eax, 1
add ebx, ebx
jne 0x40a3d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40a3c8
jne 0x40a3e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a3c8
xor ecx, ecx
sub eax, 3
jb 0x40a3f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40a46a
mov ebp, eax
add ebx, ebx
jne 0x40a403
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40a410
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40a434
inc ecx
add ebx, ebx
jne 0x40a420
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40a415
jne 0x40a431
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a415
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40a454
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40a445
jmp 0x40a3b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40a454
add edi, ecx
jmp 0x40a3b6
pop esi
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x40a4b3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa4c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa534]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40a471
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa53c]
or eax, eax
je 0x40a4ad
mov dword [ebx], eax
add ebx, 4
jmp 0x40a48e
call dword [esi + 0xa538]
mov ebp, dword [esi + 0xa540]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40a4e7
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x414de8
Capabilities:
Encode data using xor

Disassembly:
xor dword [edx], ebx
inc edi
sub eax, edi
sub ecx, eax
add edx, 4
cmp edx, esi
jne fcn.00414de8
or ecx, edi
dec ecx
ret
Function at 0x401000
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ecx
push section..data
call fcn.004015d7
add eax, 0x40
push eax
call fcn.00401488
add esp, 8
mov byte [0x40da70], 0
cmp dword [ebp + 8], 1
jle 0x401046
push 0x40c038
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.00401400
add esp, 8
test eax, eax
jne 0x401046
mov byte [0x40da70], 1
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [0x40da78], eax
mov dword [0x40da80], 0x128
push 0x40c03c
call fcn.00401261
add esp, 4
push 0x40da80
mov edx, dword [0x40da78]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4010a3
push 0x40c054
call fcn.00401261
add esp, 4
mov eax, dword [0x40da78]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x401198
mov ecx, dword [0x40da88]
push ecx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [0x40da74], eax
mov dword [0x40dbc0], 0x224
push 0x40dbc0
mov edx, dword [0x40da74]
push edx
call sub.KERNEL32.dll_Module32First
mov byte [0x40da7c], al
cmp dword [0x40da88], 0
jne 0x4010e6
mov byte [0x40da7c], 0
movsx eax, byte [0x40da7c]
test eax, eax
je 0x4010fa
mov dword [ebp - 4], 0x40dce0
jmp 0x401101
mov dword [ebp - 4], 0x40daa4
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x40da9c]
push edx
mov eax, dword [0x40da94]
push eax
mov ecx, dword [0x40da98]
push ecx
mov edx, dword [0x40da88]
push edx
push 0x40c080
call fcn.0040119c
add esp, 0x18
movsx eax, byte [0x40da7c]
test eax, eax
je 0x401171
movsx ecx, byte [0x40da70]
test ecx, ecx
je 0x401171
push 0x40dbc0
mov edx, dword [0x40da74]
push edx
call sub.KERNEL32.dll_Module32Next
test eax, eax
je 0x401171
push 0x40dce0
push 0x40c098
push 0x40c09c
call fcn.0040119c
add esp, 0xc
jmp 0x401143
push 0x40da80
mov eax, dword [0x40da78]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4010a3
mov ecx, dword [0x40da78]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401007
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ecx
push section..data
call fcn.004015d7
add eax, 0x40
push eax
call fcn.00401488
add esp, 8
mov byte [0x40da70], 0
cmp dword [ebp + 8], 1
jle 0x401046
push 0x40c038
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.00401400
add esp, 8
test eax, eax
jne 0x401046
mov byte [0x40da70], 1
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [0x40da78], eax
mov dword [0x40da80], 0x128
push 0x40c03c
call fcn.00401261
add esp, 4
push 0x40da80
mov edx, dword [0x40da78]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4010a3
push 0x40c054
call fcn.00401261
add esp, 4
mov eax, dword [0x40da78]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x401198
mov ecx, dword [0x40da88]
push ecx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [0x40da74], eax
mov dword [0x40dbc0], 0x224
push 0x40dbc0
mov edx, dword [0x40da74]
push edx
call sub.KERNEL32.dll_Module32First
mov byte [0x40da7c], al
cmp dword [0x40da88], 0
jne 0x4010e6
mov byte [0x40da7c], 0
movsx eax, byte [0x40da7c]
test eax, eax
je 0x4010fa
mov dword [ebp - 4], 0x40dce0
jmp 0x401101
mov dword [ebp - 4], 0x40daa4
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x40da9c]
push edx
mov eax, dword [0x40da94]
push eax
mov ecx, dword [0x40da98]
push ecx
mov edx, dword [0x40da88]
push edx
push 0x40c080
call fcn.0040119c
add esp, 0x18
movsx eax, byte [0x40da7c]
test eax, eax
je 0x401171
movsx ecx, byte [0x40da70]
test ecx, ecx
je 0x401171
push 0x40dbc0
mov edx, dword [0x40da74]
push edx
call sub.KERNEL32.dll_Module32Next
test eax, eax
je 0x401171
push 0x40dce0
push 0x40c098
push 0x40c09c
call fcn.0040119c
add esp, 0xc
jmp 0x401143
push 0x40da80
mov eax, dword [0x40da78]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4010a3
mov ecx, dword [0x40da78]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40507c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c4b0]
jne 0x405086
repz ret
jmp fcn.00408239
Function at 0x40757c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00403e93
xor ebx, ebx
cmp dword [0x40d66c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x407651
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4075bc
xor eax, eax
jmp 0x407715
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4075b5
push eax
call fcn.00403e30
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40d66c], eax
call esi
push eax
call fcn.00403e30
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40d670], eax
call esi
push eax
call fcn.00403e30
mov dword [0x40d674], eax
lea eax, [ebp - 8]
push eax
call fcn.004030b1
test eax, eax
pop ecx
pop ecx
je 0x40761f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402501
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x407651
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00403e30
cmp eax, ebx
pop ecx
mov dword [0x40d67c], eax
je 0x407651
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403e30
pop ecx
mov dword [0x40d678], eax
mov eax, dword [0x40d678]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4076ca
cmp dword [0x40d67c], esi
je 0x4076ca
push eax
call fcn.00403e9c
pop ecx
call eax
cmp eax, ebx
je 0x407697
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40d67c]
call fcn.00403e9c
pop ecx
call eax
test eax, eax
je 0x407697
test byte [ebp - 0x18], 1
jne 0x4076ca
lea eax, [ebp - 0xc]
push eax
call fcn.004030e8
test eax, eax
pop ecx
je 0x4076b2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402501
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4076c1
or dword [ebp + 0x10], 0x200000
jmp 0x4076fb
or dword [ebp + 0x10], 0x40000
jmp 0x4076fb
mov eax, dword [0x40d670]
cmp eax, esi
je 0x4076fb
push eax
call fcn.00403e9c
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4076fb
mov eax, dword [0x40d674]
cmp eax, esi
je 0x4076fb
push dword [ebp - 4]
push eax
call fcn.00403e9c
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40d66c]
call fcn.00403e9c
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d027
Capabilities:
Encode data using xor

Disassembly:
enter 0, 0
pushal
mov ebx, 0x7fffffff
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, esi
imul eax, edx, 0x10dcd
add eax, 0x116c5
xor edx, edx
div ebx
lodsd eax, dword [esi]
xor eax, edx
stosd dword es:[edi], eax
loop 0x40d03c
popal
leave
ret 0xc
Function at 0x1000c79d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10027b40]
jne 0x1000c7a7
repz ret
jmp fcn.1000fd78

Function at 0x10011cd5
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 + 0x10027ed0]
je 0x10011cf0
inc edi
cmp edi, 0x17
jb 0x10011ce1
cmp edi, 0x17
jae 0x10011e70
push ebp
push 3
call fcn.10017a3b
cmp eax, 1
pop ecx
je 0x10011e3c
push 3
call fcn.10017a3b
test eax, eax
pop ecx
jne 0x10011d24
cmp dword [0x1002aeac], 1
je 0x10011e3c
cmp ebx, 0xfc
je 0x10011e6f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1002b4a8
push ebp
call fcn.10016c32
add esp, 0xc
test eax, eax
je 0x10011d5a
push esi
push esi
push esi
push esi
push esi
call fcn.10012d56
add esp, 0x14
push 0x104
mov esi, 0x1002b4c1
push esi
push 0
mov byte [0x1002b5c5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10011d9e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10016c32
add esp, 0xc
test eax, eax
je 0x10011d9e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10012d56
add esp, 0x14
push esi
call fcn.10016ca0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10011de3
push esi
call fcn.10016ca0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1002b7bc
push 0x10022204
sub ecx, eax
push ecx
push eax
call fcn.10017988
add esp, 0x14
test eax, eax
je 0x10011de3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10012d56
add esp, 0x14
jmp 0x10011de5
xor esi, esi
push 0x10022200
push ebx
push ebp
call fcn.10017917
add esp, 0xc
test eax, eax
je 0x10011e05
push esi
push esi
push esi
push esi
push esi
call fcn.10012d56
add esp, 0x14
push dword [edi*8 + 0x10027ed4]
push ebx
push ebp
call fcn.10017917
add esp, 0xc
test eax, eax
je 0x10011e27
push esi
push esi
push esi
push esi
push esi
call fcn.10012d56
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1001775a
add esp, 0xc
jmp 0x10011e6f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10011e6f
cmp ebp, 0xffffffff
je 0x10011e6f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10027ed4]
push dword [esi]
call fcn.10016ca0
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 0x10012d56
Capabilities:
Contain obfuscated stackstrings

Disassembly:
rol esi, cl
inc ebp
stc
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
inc ebp
cmc
fcmovb st(0), st(6)
inc ebp
neg dl
mov byte [ebp - 9], 0xbf
call fcn.100129c9
push eax
push esi
push dword [ebp + 8]
call fcn.1001297e
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.100129c9
push eax
push esi
push dword [ebp + 8]
call fcn.1001297e
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.100129c9
push eax
push esi
push dword [ebp + 8]
call fcn.1001297e
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.100129b9
mov byte [0x889e588f], al
popfd
jl 0x10012e3e
invalid
invalid
Function at 0x100047d7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10004816
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10004816
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10004816
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10004816
cmp dword [ecx + 0x74], 0xe
jbe 0x10004816
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret