joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x401e61
jmp dword [eax*4 + 0x403350]
cmp dword [0x4050d4], 0
je 0x401f63
push 0x4050d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4050f0]
test edi, edi
je 0x401f58
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401eab
mov edi, dword [edi + 8]
test edi, edi
je 0x401f58
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x401ea0
test esi, esi
je 0x401ea0
mov ecx, dword [edi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x401ea0
cmp dword [0x4050d4], 0
jne 0x401ee0
push 0x4050d8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4050d4], 1
jmp case.default.0x401e61
call dbg._fpreset
jmp case.default.0x401e61
cmp dword [0x4050d4], 0
je case.default.0x401e61
push 0x4050d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4050f0]
test edi, edi
je 0x401fb3
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401f37
mov edi, dword [edi + 8]
test edi, edi
je 0x401fb3
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x401f30
test esi, esi
je 0x401f30
mov ecx, dword [edi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x401f30
push 0x4050d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4050d4]
cmp eax, 1
jne case.default.0x401e61
mov eax, dword [0x4050f0]
test eax, eax
je 0x401f92
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call sym._free
add esp, 4
mov eax, esi
test esi, esi
jne 0x401f80
mov dword [0x4050f0], 0
mov dword [0x4050d4], 0
push 0x4050d8
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp case.default.0x401e61
push 0x4050d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402110
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x403004]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x402176
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x402176
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x402176
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x402176
mov edx, dword [esp + 0xc]
sub edx, dword [0x403004]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x402166
add esi, 0x28
dec ecx
je 0x402176
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x402160
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x402160
mov eax, esi
pop esi
pop edi
ret
Function at 0x4015ad
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45a07c]
jne 0x4015b7
repz ret
jmp fcn.00401eac

Function at 0x406e0c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45a07c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004044f4
and dword [ebp - 0x14], 0
cmp dword [0x45ce8c], 0
mov dword [ebp - 0x18], eax
jne 0x406ebf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406f67
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406f67
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45ce8c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45ce90], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45ce94], eax
call edi
push eax
call esi
mov dword [0x45ce9c], eax
test eax, eax
je 0x406ebf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45ce98], eax
mov eax, dword [0x45ce98]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406f18
cmp dword [0x45ce9c], ecx
je 0x406f18
push eax
call esi
push dword [0x45ce9c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406f18
test ebx, ebx
je 0x406f18
call edi
test eax, eax
je 0x406f0f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406f0f
test byte [ebp - 8], 1
jne 0x406f18
or dword [ebp + 0x10], 0x200000
jmp 0x406f4b
mov eax, dword [0x45ce90]
cmp eax, dword [ebp - 0x18]
je 0x406f4b
push eax
call esi
test eax, eax
je 0x406f4b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406f4b
mov eax, dword [0x45ce94]
cmp eax, dword [ebp - 0x18]
je 0x406f4b
push eax
call esi
test eax, eax
je 0x406f4b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45ce8c]
call esi
test eax, eax
je 0x406f67
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406f69
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004015ad
leave
ret
Function at 0x408da0
Capabilities:
Set console window title

Disassembly:
sub esp, 0x40c
mov eax, dword [0x45a07c]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x467284]
push ebx
mov ebx, dword [0x466fac]
push edi
mov edi, eax
cmp eax, 0x5dd
jne 0x408dec
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
mov eax, dword [0x467284]
push esi
mov esi, dword [0x45ae50]
cmp eax, 0x930
jne 0x408e07
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [0x467284]
mov dword [0x466fa8], esi
pop esi
cmp eax, 0x114e
jne 0x408e30
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [0x467284]
cmp eax, 0x2f
jne 0x408e4f
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push edi
push ebx
call fcn.00408c60
mov ecx, dword [esp + 0x418]
add esp, 8
pop edi
pop ebx
xor ecx, esp
call fcn.004015ad
add esp, 0x40c
ret
Function at 0x40107d
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00402250
push esi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00402250
push dword [ebp + 8]
call fcn.00401000
add esp, 0x1c
test eax, eax
je 0x401126
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
push esi
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push str.kernel66.dll
push eax
call ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push esi
push eax
call edi
lea eax, [ebp - 0x20c]
push str.win.uuu
push eax
call ebx
mov esi, eax
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00401e5d
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
xor eax, eax
pop ebx
pop esi
leave
ret
Function at 0x4015ea
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov esi, 0x104
xor edi, edi
push esi
push edi
push 0x40acc0
call fcn.00402250
push esi
push edi
push 0x40abb4
call fcn.00402250
push esi
push edi
push 0x40adc4
call fcn.00402250
push esi
push edi
push 0x40aab0
mov dword [0x40acbc], edi
call fcn.00402250
add esp, 0x30
mov dword [0x40acb8], edi
push esi
mov esi, 0x40aed8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.0040266e
cmp dword [ebp - 0x10], 0xe000
pop ecx
pop ecx
jle 0x401666
call fcn.00401994
push edi
call fcn.004024e1
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x401774
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0xe
push 0x80
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
push 0
call ebx
push esi
push 0
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
and dword [ebp - 0x14], 0
mov esi, eax
mov eax, dword [0x40a0cc]
sub eax, dword [ebp - 0x10]
je 0x4017fc
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], ecx
jbe 0x4017ef
mov ecx, dword [0x40acb8]
mov edx, dword [ebp - 0x14]
add ecx, edx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov dl, byte [edx + ecx]
cmp dl, byte [ecx + esi]
jne 0x4017ef
inc ecx
cmp ecx, dword [ebp - 0x10]
jb 0x4017de
cmp ecx, dword [ebp - 0x10]
je 0x4017fc
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], eax
jb 0x4017c3
and dword [ebp - 4], 0
cmp word [esi + 4], 0
jbe 0x4018de
lea eax, [esi + 0xe]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push 3
movzx eax, word [eax + 4]
push eax
push 0
call edi
push eax
push 0
mov dword [ebp - 8], eax
call ebx
push dword [ebp - 8]
mov dword [ebp - 0x18], eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
mov eax, dword [0x40a0cc]
xor edx, edx
sub eax, dword [ebp - 8]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x24], eax
je 0x4018ca
xor ecx, ecx
cmp dword [ebp - 8], ecx
jbe 0x40187b
mov eax, dword [0x40acb8]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov al, byte [eax + ecx]
cmp al, byte [ecx + edx]
jne 0x40187b
inc ecx
cmp ecx, dword [ebp - 8]
jb 0x401867
cmp ecx, dword [ebp - 8]
je 0x40188e
mov edx, dword [ebp - 0x18]
inc edx
cmp edx, dword [ebp - 0x24]
mov dword [ebp - 0x18], edx
jb 0x401856
jmp 0x4018ca
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff8
push eax
call fcn.0040172c
test eax, eax
pop ecx
je 0x4018c4
push dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
push eax
mov eax, dword [0x40acb8]
add eax, ecx
push eax
call fcn.004029a0
add esp, 0xc
push dword [0x40aecc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4018ca
mov eax, dword [ebp - 0xc]
and dword [eax], 0
movzx eax, word [esi + 4]
inc dword [ebp - 4]
add dword [ebp - 0xc], 0x10
cmp dword [ebp - 4], eax
jb 0x401811
movzx ebx, word [esi + 4]
and word [esi + 4], 0
and dword [ebp - 4], 0
test ebx, ebx
jbe 0x401924
lea edi, [esi + 6]
cmp dword [edi + 8], 0
je 0x401919
movzx eax, word [esi + 4]
cmp eax, dword [ebp - 4]
je 0x401915
shl eax, 4
lea ecx, [esi + 6]
push 0x10
add eax, ecx
push edi
push eax
call fcn.004029a0
add esp, 0xc
inc word [esi + 4]
inc dword [ebp - 4]
add edi, 0x10
cmp dword [ebp - 4], ebx
jb 0x4018f2
push dword [ebp - 0x10]
mov eax, dword [0x40acb8]
mov ecx, dword [ebp - 0x14]
add eax, ecx
push esi
push eax
call fcn.004029a0
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401940
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00402250
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp dword [ebp + 0xc], esi
pop esi
jne 0x401992
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
call fcn.00408270
pop ecx
leave
ret

Function at 0x401f3a
Capabilities:
Terminate process

Disassembly:
push esi
call fcn.004015ea
push str.my_10101_
xor esi, esi
push 1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x40aec8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [0x40aed4], eax
jne 0x401f6f
push esi
call fcn.004024e1
pop esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7530
call esi
call fcn.0040149d
call fcn.004014a2
push 0x36ee80
call esi
jmp 0x401f75

Function at 0x405951
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a338
cmp edx, dword [eax]
je 0x405973
add eax, 8
inc ecx
cmp eax, 0x40a3c8
jl 0x405964
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a338]
jne 0x405aa1
mov eax, dword [0x40b050]
cmp eax, 1
je 0x405a7b
test eax, eax
jne 0x4059a4
cmp dword [0x40a114], 1
je 0x405a7b
cmp edx, 0xfc
je 0x405aa1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4059db
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004022b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402f90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405a1e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402f90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4094cc
push edi
call fcn.004078d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004022b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004022c0
lea eax, [ebp - 0xa0]
push 0x4094ac
push eax
call fcn.004022c0
push dword [esi + 0x40a33c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004022c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040783a
add esp, 0x2c
pop edi
jmp 0x405aa1
lea eax, [ebp + 8]
lea esi, [esi + 0x40a33c]
push 0
push eax
push dword [esi]
call fcn.00402f90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x100d000
Capabilities:
Packed with generic packer

Disassembly:
pushal
push 0x100d031
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x100d03a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [0x100d047]
push 0
push 0
push 0
push edx
push 0
push 0
call eax
popal
jmp fcn.01002c20

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..wixburn
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x28055a07
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..pdata
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x6e1a5c8e
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40ae10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
invalid
test dword [edi - 4], ecx
invalid

Function at 0x415308
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41530e
ret

Function at 0x4177bc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41780d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4177f4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4177e4
jmp 0x41780d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4177f5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e738
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x43e74f
add esp, 0xfffffff0
call fcn.00402fc8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00413434
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40d2f8]
call fcn.00402cac
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x40d2f8]
call fcn.00402cac
mov dword [ebx + 0x90], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x44], 0x80000018
mov dword [ebx + 0x60], 0x1f4
mov byte [ebx + 0x64], 1
xor eax, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x85], 1
mov dl, 1
mov eax, dword [0x4151c0]
call fcn.0041c0d4
mov esi, eax
mov dword [ebx + 0x80], esi
push 0x43e8c0
mov eax, dword [0x446b44]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041c478
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x4401fc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x446b44]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040afd4
test eax, eax
je 0x43e83f
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00407b84
lea eax, [ebp - 0x101]
mov dl, 0x2e
call 0x40affc
test eax, eax
je 0x43e853
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x74]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403aa8
mov eax, dword [0x446a50]
cmp byte [eax], 0
jne 0x43e884
mov eax, ebx
call fcn.0043e9ac
mov byte [ebx + 0x41], 1
mov byte [ebx + 0x42], 1
mov byte [ebx + 0x43], 1
mov byte [ebx + 0x86], 1
xor eax, eax
mov dword [ebx + 0x88], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43e8b6
call fcn.00403020
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43ec08
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4477a4]
cmp dword [eax + 0x24], 0
je 0x43ec98
cmp dword [ebx + 0x7c], 0
jne 0x43ec95
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x43eb9c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x43ec95
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x43ec64
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x43ec95
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x78]
call fcn.0040e91c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x43ec70
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x41ff02
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x41ff11
pop dword [ebp - 0x28]
mov eax, 0x41ff11
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xb09c2ecf
sub dword [ebp - 0x38], 0x6249e984
mov dword [ebp - 0x34], 0x4c798993
add dword [ebp - 0x34], 0xe5b9c2b2
mov dword [ebp - 0x30], 0x1cef25c8
sub dword [ebp - 0x30], 0xd0a2e19a
mov dword [ebp - 0x2c], 0x13232acd
sub dword [ebp - 0x2c], 0x13232acd
lea eax, [ebp - 0x38]
push eax
mov eax, 0xe534ee84
sub eax, 0xe4f2be10
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x39177ed9
add dword [ebp - 0x38], 0x3b5aea7d
mov dword [ebp - 0x34], 0xd9958d12
sub dword [ebp - 0x34], 0x98292b9d
mov dword [ebp - 0x30], 0x348f9813
sub dword [ebp - 0x30], 0xd1202ba7
mov dword [ebp - 0x2c], 0x1f2ac40b
sub dword [ebp - 0x2c], 0x1f2ac40b
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xbe931de4
sub eax, 0xbe50ecc0
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3f5df
push 0
call eax
mov ecx, 0x31a96859
sub ecx, 0x31a919b9
xor esi, esi
add esi, eax
mov edx, 0xc9445da7
sub edx, 0xc90119a7
add edx, dword [ebp - 0x28]
mov edi, 0xeca7c1c7
sub edi, 0xf438d221
mov dword [ebp - 0x10], 0x5f766a27
mov ebx, dword [edx]
xor dword [ebp - 0x1c], 0x8df289b7
sub ebx, edi
mov dword [ebp - 0x14], 0xd668019f
mov dword [esi], ebx
add esi, 0x7dba3ee4
add esi, 0x8245c120
add edx, 0x87c05163
sub edx, 0x87c0515f
loop 0x420030
add eax, 0xbd661116
add eax, 0x429b1c3d
mov ebx, eax
add eax, 5
mov ecx, 0x27413ac1
sub ecx, 0x27013ac1
add ecx, dword [ebp - 0x28]
call ebx
leave
ret