joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d7a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push esi
lea ecx, [ebp - 0x208]
push edi
push dword [ebp + 8]
push ecx
call fcn.0040e9b0
add esp, 8
lea ecx, [ebp - 0x208]
push ecx
call fcn.00403b1f
add esp, 4
lea ecx, [ebp - 0x208]
lea edx, [ebp - 0x104]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
push 0x4157ac
push edx
call esi
add esp, 0xc
lea ecx, [ebp - 0x348]
lea eax, [ebp - 0x104]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov edi, eax
je 0x403e8a
test byte [ebp - 0x348], 0x10
je 0x403e37
cmp byte [ebp - 0x31c], 0x2e
jne 0x403e07
cmp byte [ebp - 0x31b], 0
je 0x403e63
cmp byte [ebp - 0x31b], 0x2e
je 0x403e63
lea eax, [ebp - 0x31c]
lea ecx, [ebp - 0x208]
push eax
lea edx, [ebp - 0x104]
push ecx
push str._s_s_
push edx
call esi
add esp, 0x10
lea ecx, [ebp - 0x104]
push ecx
call fcn.00403d7a
add esp, 4
jmp 0x403e63
lea eax, [ebp - 0x31c]
lea ecx, [ebp - 0x208]
push eax
lea edx, [ebp - 0x104]
push ecx
push str._s_s
push edx
call esi
add esp, 0x10
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403e81
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x403de3
lea eax, [ebp - 0x208]
push eax
call fcn.00403af4
add esp, 4
lea eax, [ebp - 0x208]
lea ecx, [ebp - 0x104]
push eax
push ecx
call fcn.0040e9b0
add esp, 8
lea ecx, [ebp - 0x104]
push ecx
call fcn.004039f9
add esp, 4
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403ede
Capabilities:
Get common file path

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [esp + 8]
call fcn.00403af4
add esp, 4
ret

Function at 0x403f36
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esi
push str._ProgramFiles_
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
call fcn.0040f4f0
add esp, 4
test eax, eax
je 0x403f63
push esi
push eax
push dword [ebp + 0xc]
call fcn.0040efe0
add esp, 0xc
jmp 0x403f99
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push str.SoftwareMicrosoftWindowsCurrentVersionProgramFilesDir
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x403f99
push dword [ebp + 0xc]
call fcn.00403ef9
add esp, 4
push str.Program_Files
push dword [ebp + 0xc]
call fcn.0040e9b8
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403f9e
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push ebx
lea eax, [ebp - 0x140]
push esi
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov esi, eax
je 0x40401e
mov edi, 1
lea eax, [ebp - 0x280]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov ebx, eax
je 0x403ffe
lea eax, [ebp - 0x26c]
lea ecx, [ebp - 0x12c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x403ff7
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x404017
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, 1
jmp 0x404020
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404056
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov ebx, section..rdata
je 0x404160
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x404160
xor edi, edi
test ebx, ebx
je 0x4040ca
cmp dword [ebx], 0
je 0x4040ca
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov dword [ebp - 4], eax
push dword [ebp + 8]
push dword [ebx + 4]
call fcn.0040f640
add esp, 0xc
test eax, eax
je 0x4040c7
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov dword [ebp - 4], eax
push dword [ebp + 8]
push dword [ebx]
call fcn.0040f640
add esp, 0xc
test eax, eax
je 0x4040c7
add ebx, 0xc
jne 0x40407f
jmp 0x4040ca
mov edi, dword [ebx + 8]
test edi, edi
je 0x404160
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add eax, ecx
mov cl, byte [eax]
cmp cl, 0x5c
je 0x4040e6
cmp cl, 0x2f
jne 0x4040e7
inc eax
lea ecx, [ebp - 8]
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x404160
cmp dword [ebp - 8], 0
je 0x404160
movsx eax, byte [esi]
cmp eax, 0x22
je 0x40411d
mov edi, 4
push esi
lea esi, [ebp - 0xc]
call fcn.0040f590
add esp, 4
mov ebx, edi
mov dword [ebp - 0xc], eax
jmp 0x404148
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [eax + esi - 1], 0
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x404148
add ebx, edi
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, 1
jmp 0x404162
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404169
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push ebx
lea eax, [ebp - 0x160]
push esi
push edi
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
jbe 0x4042dd
cmp dword [ebp + 8], 0
mov edi, 0
je 0x4041a6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
cmp dword [ebp + 0xc], 0
mov ebx, 0
je 0x4041bc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 4], eax
add eax, edi
add eax, ebx
add eax, 0xa
push eax
call fcn.0040eb30
add esp, 4
mov esi, eax
test esi, esi
je 0x4042dd
push 0x415830
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x160]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x415830
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test ebx, ebx
jle 0x404226
push 0x415064
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, 4
cmp edi, ecx
jl 0x404234
cmp dword [ebp - 4], ecx
jge 0x40423f
mov ecx, edi
mov eax, dword [ebp - 4]
cmp ecx, eax
jl 0x40423f
mov ecx, eax
test ecx, ecx
je 0x404260
mov eax, dword [ebp - 4]
sub edi, ecx
sub eax, ecx
add edi, dword [ebp + 8]
lea edx, [ebp + eax - 0x160]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x404276
push 0x415064
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x44
xor edi, edi
push edi
lea eax, [ebp - 0x58]
push eax
call fcn.0040ebb0
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x58], 0x44
push 0x10
push edi
push eax
call fcn.0040ebb0
add esp, 0xc
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x58]
push eax
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4042d4
push dword [ebp - 0x14]
call fcn.004043e1
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0040eb10
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40550a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, str.:
lea edi, [ebp - 4]
movsd dword es:[edi], dword [esi]
push 0x11
call fcn.0040eb30
mov byte [eax], 0
add esp, 4
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [eax + 1], 0x3a
jne 0x40556c
mov al, byte [eax]
push 0x11
mov byte [ebp - 1], 0
mov byte [ebp - 4], al
call fcn.0040eb30
add esp, 4
mov edi, eax
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
push 0x10
push edi
push eax
push ecx
push dword [ebp + 0xc]
push 0x10
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push edi
call fcn.0040eb10
add esp, 4
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ca37
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov eax, dword [0x4305f0]
mov ebp, esp
mov ecx, dword [0x4305f0]
sub esp, 0x10
mov eax, dword [eax + 0x675c]
add eax, dword [ecx + 0x6760]
push ebx
cdq
push esi
push edi
sub eax, edx
push 1
sar eax, 1
push 0xc80000
imul ax, ax, 0x21
add ax, 0x9d
lea ecx, [ebp - 0x10]
movzx esi, ax
push ecx
push 0xd6
push esi
call fcn.00405aca
add esp, 0x14
cmp dword [0x415b68], 0
je 0x40ca9a
mov eax, dword [ebp - 0x10]
sub dword [ebp - 8], eax
mov eax, dword [0x415b68]
mov dword [ebp - 0x10], eax
add dword [ebp - 8], eax
cmp dword [0x415b6c], 0
je 0x40cab4
mov eax, dword [ebp - 0xc]
sub dword [ebp - 4], eax
mov eax, dword [0x415b6c]
mov dword [ebp - 0xc], eax
add dword [ebp - 4], eax
push esi
mov eax, dword [0x4305e4]
push eax
mov esi, dword [ebp + 8]
push 0
mov eax, dword [ebp - 4]
push esi
sub eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x4305f0]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0xc80000
add eax, 0x14cc
push eax
push dword [0x415b1c]
push 1
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push ebx
call fcn.0040c524
add esp, 8
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push 1
mov dword [0x415b68], ecx
push esi
mov dword [0x415b6c], eax
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, 0
cmp edi, 1
adc eax, 0xffffffff
pop edi
and eax, 0xbe
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e661
Capabilities:
Create process on windows

Disassembly:
push ebp
mov eax, dword [0x4305f0]
mov ebp, esp
add eax, 0x2f2
sub esp, 0x3b4
cmp byte [eax], 0
push esi
je 0x40e753
push 0x415624
lea ecx, [ebp - 0x22c]
push ecx
push eax
call fcn.00403594
add esp, 0xc
lea ecx, [ebp - 0x3b4]
lea edx, [ebp - 0x22c]
push 0x4000
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x40e753
push str.notepad
mov eax, dword [0x4305f0]
mov esi, 0x2f2
add eax, esi
push eax
call fcn.0040e9b0
add esp, 8
lea eax, [ebp - 0x22c]
push eax
mov eax, dword [0x4305f0]
add eax, esi
push eax
call fcn.0040e9b8
add esp, 8
mov eax, dword [0x4305f0]
add eax, esi
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jb 0x40e753
push 0x415d00
lea eax, [ebp - 0xc8]
push eax
call fcn.0040e9b0
add esp, 8
lea eax, [ebp - 0x32c]
lea ecx, [ebp - 0x64]
push eax
push ecx
mov eax, dword [0x4305f0]
push 0
add eax, 0x2fa
push 0
push eax
call fcn.0040f240
add esp, 0x14
lea ecx, [ebp - 0x32c]
lea edx, [ebp - 0x64]
push ecx
push edx
call fcn.0040e9b8
add esp, 8
lea ecx, [ebp - 0xc8]
push ecx
call fcn.0040e8a8
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e8a8
Capabilities:
Enumerate gui resources

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call fcn.004133e0
add esp, 4
lea eax, [edi + 0x64]
xor esi, esi
push eax
call fcn.004133e0
add esp, 4
push edi
mov dword [0x415b24], esi
push 0x40e844
call dword [sym.imp.USER32.dll_EnumWindows]
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x415b24], esi
jne 0x40e8c5
pop edi
pop esi
ret

Function at 0x40eaa0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40ead6
cmp byte [esp + 5], 0x3a
jne 0x40ead6
xor eax, eax
mov al, byte [esp + 4]
push eax
call fcn.0040ee60
add esp, 4
lea esi, [eax - 0x40]
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x40ef50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40ef75
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004101c0
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x40ef9a
test byte [esp + 8], 2
je 0x40ef9a
mov dword [0x415f30], 0xd
mov dword [0x415f34], 5
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x40f3a0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov eax, 0
jne 0x40f3bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f3cf
push eax
call fcn.004101c0
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x40f450
Capabilities:
Terminate process

Disassembly:
mov dword [0x415f74], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x415f70], bl
jne 0x40f4ac
cmp dword [0x431a78], 0
je 0x40f49a
mov esi, dword [0x431a70]
sub esi, 4
cmp esi, dword [0x431a78]
jb 0x40f49a
mov eax, dword [esi]
test eax, eax
je 0x40f48f
call eax
sub esi, 4
cmp esi, dword [0x431a78]
jae 0x40f487
push 0x41501c
push 0x415014
call fcn.0040f4d0
add esp, 8
push 0x415024
push 0x415020
call fcn.0040f4d0
add esp, 8
test ebx, ebx
jne 0x40f4cd
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret

Function at 0x40f7f0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x40f80a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f81d
push eax
call fcn.004101c0
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x410000
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414060
push 0x411d34
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x415f3c], eax
xor eax, eax
mov al, byte [0x415f3d]
mov dword [0x415f48], eax
mov eax, dword [0x415f3c]
shr dword [0x415f3c], 0x10
and eax, 0xff
mov dword [0x415f44], eax
shl eax, 8
add eax, dword [0x415f48]
mov dword [0x415f40], eax
call fcn.00410230
mov dword [ebp - 4], 0
call fcn.00411290
call fcn.004109c0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x430a64], eax
call fcn.00411b90
mov dword [0x416224], eax
test eax, eax
je 0x410099
cmp dword [0x430a64], 0
jne 0x4100a3
push 0xffffffffffffffff
call fcn.0040f410
add esp, 4
call fcn.00411910
call fcn.00411830
call fcn.0040f3e0
mov esi, dword [0x430a64]
mov al, byte [esi]
cmp al, 0x22
je 0x4100ca
cmp al, 0x20
jbe 0x4100f7
inc esi
cmp byte [esi], 0x20
ja 0x4100c2
jmp 0x4100f7
inc esi
cmp byte [esi], 0x22
je 0x4100f6
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4100f1
xor eax, eax
mov al, bl
push eax
call fcn.004117d0
add esp, 4
test eax, eax
je 0x4100eb
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x4100d3
cmp byte [esi], 0x22
jne 0x4100f7
inc esi
cmp byte [esi], 0
je 0x410107
cmp byte [esi], 0x20
ja 0x410107
inc esi
cmp byte [esi], 0
jne 0x4100fc
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x41012b
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0040f410
jmp 0x41016c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460ad9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x460ae7
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x4c6389
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c5f70

Function at 0x4c6394
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c60fa

Function at 0x4cba6c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cb424

Function at 0x4cbe06
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cbcda

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rdata
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x342533de
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
mov eax, section._RDATA
nop
nop
nop
nop
cmp eax, 0
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5787645
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x27f65ed1
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x4d25675b
nop
nop
nop
nop
test eax, eax
je 0x432084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x1016f6f5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10188e4c]
jne 0x1016f6ff
repz ret
jmp fcn.101717ea

Function at 0x10171c6b
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.1016f10b
and dword [ebp - 4], 0
cmp dword [0x1018b14c], 0
mov ebx, eax
jne 0x10171d1c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10171dcd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10171dcd
push eax
call fcn.1016f099
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1018b14c], eax
call esi
push eax
call fcn.1016f099
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1018b150], eax
call esi
push eax
call fcn.1016f099
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1018b154], eax
call esi
push eax
call fcn.1016f099
pop ecx
mov dword [0x1018b15c], eax
test eax, eax
je 0x10171d1c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1016f099
pop ecx
mov dword [0x1018b158], eax
mov eax, dword [0x1018b158]
cmp eax, ebx
je 0x10171d74
cmp dword [0x1018b15c], ebx
je 0x10171d74
push eax
call fcn.1016f114
push dword [0x1018b15c]
mov esi, eax
call fcn.1016f114
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10171d74
test edi, edi
je 0x10171d74
call esi
test eax, eax
je 0x10171d6b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10171d6b
test byte [ebp - 0xc], 1
jne 0x10171d74
or dword [ebp + 0x10], 0x200000
jmp 0x10171dad
mov eax, dword [0x1018b150]
cmp eax, ebx
je 0x10171dad
push eax
call fcn.1016f114
pop ecx
test eax, eax
je 0x10171dad
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10171dad
mov eax, dword [0x1018b154]
cmp eax, ebx
je 0x10171dad
push eax
call fcn.1016f114
pop ecx
test eax, eax
je 0x10171dad
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1018b14c]
call fcn.1016f114
pop ecx
test eax, eax
je 0x10171dcd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10171dcf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10173854
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov dword [0x10188814], 0x122e
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x10173a69
jmp 0x101738af
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x1c]
mov byte [ebp - 0x1d], cl
mov dword [ebp - 0x24], edx
jmp 0x10173904
mov dword [0x10188814], 0xc01
mov ecx, dword fs:[0x18]
xor eax, eax
mov dword [0x10188814], 0x1973
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov dword [0x10188818], 0x177a
mov ecx, dword [ecx + 0x14]
mov dword [0x10188814], 0x1eb7
cmp ecx, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x18], eax
je 0x10173a69
jmp 0x10173899
mov eax, dword [ebp - 0x24]
mov ecx, eax
add ecx, 0x24
mov edx, dword [eax + 0x28]
mov esi, dword [eax + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x1d]
and bh, bl
test bh, 1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], esi
jne 0x10173935
jmp 0x10173959
mov dword [0x10188814], 0xdfa
mov dword [0x10188818], 0xa7
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
jmp 0x10173a69
mov eax, 0xdfa
xor ecx, ecx
mov edx, dword [ebp - 0x30]
mov si, word [edx]
shr si, 1
movzx edi, si
cmp si, 0
mov ebx, eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], eax
je 0x10173a37
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
add ecx, 0x264a
mov edx, eax
add edx, 1
mov esi, dword [ebp - 0x34]
mov di, word [esi + eax*2]
mov bx, di
add bx, 0xffbf
mov si, di
add si, 0x20
cmp bx, 0x1a
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], edx
mov word [ebp - 0x56], di
mov word [ebp - 0x58], si
jb 0x101739d1
mov ax, word [ebp - 0x56]
mov word [ebp - 0x58], ax
mov ax, word [ebp - 0x58]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x4c]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
setne bh
mov al, bl
and al, bh
mov esi, dword [ebp - 0x54]
mov edi, dword [ebp - 0x44]
cmp esi, edi
setb bh
and al, bh
test al, 1
mov eax, dword [ebp - 0x50]
mov byte [ebp - 0x59], bl
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], eax
jne 0x10173986
mov al, byte [ebp - 0x59]
test al, 1
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x48], ecx
jne 0x10173a1d
jmp 0x10173a37
mov eax, dword [ebp - 0x50]
mov dword [0x10188814], eax
mov dword [0x10188818], 0x671
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x18], ecx
jmp 0x10173a69
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x28]
cmp edx, esi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x24], edx
jne 0x10173904
mov eax, dword [ebp - 0x60]
mov dword [0x10188814], eax
mov dword [0x10188818], 0x671
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x10173a69
mov eax, dword [ebp - 0x18]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret