joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401508
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
push edi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x28], 1
push eax
push 0x104
mov word [ebp - 0x24], 5
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x25c]
push eax
call esi
xor edi, edi
cmp word [ebp + eax*2 - 0x25e], 0x5c
jne 0x401577
lea eax, [ebp - 0x25c]
push eax
call esi
mov word [ebp + eax*2 - 0x25e], di
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x25c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
pop edi
neg eax
sbb eax, eax
pop esi
inc eax
leave
ret

Function at 0x4015a5
Capabilities:
Read file on windows

Disassembly:
push esi
push 0x403064
push dword [esp + 0xc]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x4015bf
pop esi
ret
push edi
push 0
push 0x128057
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [esp + 0x1c]
push 0xc
pop ecx
xor eax, eax
push esi
push 0x30
rep stosd dword es:[edi], eax
push 1
pop edi
push edi
push dword [esp + 0x28]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp eax, 0x30
je 0x4015f4
xor edi, edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x401601
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
push dword [esp + 0x1c]
shr ecx, 2
push dword [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x10
cmp eax, 0xffffffff
je 0x401652
push dword [esp + 0x10]
push esi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x40165e
push ebx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
jmp 0x401660
mov eax, ebx
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x421810
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42183d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42183d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10011dd
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0x110], eax
mov esi, 0x105
push esi
lea eax, [ebp - 0x10c]
xor ebx, ebx
push eax
mov byte [ebp - 0x10c], bl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x10010dc
test eax, eax
je 0x100123d
push edi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
jne 0x100123a
mov byte [ebp - 0x10c], bl
mov byte [ebp - 8], bl
cmp byte [ebp - 0x10c], bl
jne 0x1001253
push edi
push esi
lea eax, [ebp - 0x10c]
push eax
call fcn.01001175
push dword [ebp + 0x14]
lea eax, [ebp - 0x10c]
push ebx
push dword [ebp - 0x110]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1001279
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x10012b0
inc esi
mov al, byte [esi]
cmp al, bl
je 0x10012a9
cmp al, 0x22
jne 0x100129e
cmp byte [esi], 0x22
jne 0x10012c1
jmp 0x10012c0
cmp al, 0x20
jle 0x10012c1
inc esi
cmp byte [esi], 0x20
jg 0x10012b4
jmp 0x10012c1
cmp al, 0x20
jg 0x10012c7
inc esi
mov al, byte [esi]
cmp al, bl
jne 0x10012bc
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x10012e0
movzx eax, word [ebp - 0x14]
jmp 0x10012e3
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.010011dd
int3
Function at 0x401aa0
Capabilities:
Get common file path
Get file attributes
Read .ini file
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42300b
push eax
mov eax, 0x10a20
mov dword fs:[0], esp
call fcn.0040a890
push ebp
lea eax, [esp + 0x110]
push esi
mov esi, ecx
push eax
push 0x104
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor ebp, ebp
cmp eax, ebp
jne 0x401b03
push ebp
push ebp
push str.Cannot_retrieve_file_path
call fcn.0041ec03
pop esi
pop ebp
mov ecx, dword [esp + 0x10a20]
mov dword fs:[0], ecx
add esp, 0x10a2c
ret
mov ecx, dword [0x42d350]
mov dword [esp + 8], ecx
lea edx, [esp + 0x114]
push str.Customize.ini
push edx
lea eax, [esp + 0x10]
push str._s_s
push eax
mov dword [esp + 0x10a40], ebp
call fcn.00416dcf
mov ecx, dword [esp + 0x18]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x401b50
mov edx, dword [esp + 8]
and al, 0xfe
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
push eax
push 0x104
push ecx
push str.Strings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
cmp eax, ebp
jne 0x401bb3
mov edx, dword [esi + 0x5c]
lea eax, [esi + 0x5c]
push str.Cannot_read_Configuration_file.
push edx
push str._s__s
push eax
call fcn.00416dcf
add esp, 0x10
lea ecx, [esp + 8]
mov dword [esp + 0x10a30], 0xffffffff
call fcn.0041901b
pop esi
pop ebp
mov ecx, dword [esp + 0x10a20]
mov dword fs:[0], ecx
add esp, 0x10a2c
ret
push ebx
push edi
mov ecx, 0x4204
xor eax, eax
lea edi, [esp + 0x220]
xor esi, esi
rep stosd dword es:[edi], eax
lea edi, [esp + 0x18]
lea ebx, [esp + 0x19]
mov cl, byte [edi]
test cl, cl
jne 0x401c06
cmp byte [ebx], 0
je 0x401c15
test cl, cl
jne 0x401c06
mov eax, dword [esp + 0x14]
lea edx, [esp + esi + 0x220]
push edx
lea ecx, [eax + 0x7c]
mov eax, dword [eax + 0x84]
push eax
call fcn.0041731c
inc ebp
add esi, 0x104
inc ebx
inc edi
xor eax, eax
jmp 0x401bcf
lea edx, [esi + eax]
inc ebx
inc edi
inc eax
mov byte [esp + edx + 0x220], cl
jmp 0x401bcf
mov eax, dword [esp + 0x14]
mov edx, ebp
shl edx, 6
add edx, ebp
lea ecx, [eax + 0x7c]
mov eax, dword [eax + 0x84]
lea edx, [esp + edx*4 + 0x220]
push edx
push eax
call fcn.0041731c
lea ecx, [esp + 0x10]
mov dword [esp + 0x10a38], 0xffffffff
call fcn.0041901b
mov ecx, dword [esp + 0x10a30]
pop edi
pop ebx
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10a2c
ret
Function at 0x40db5d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42e398
cmp edx, dword [eax]
je 0x40db7f
add eax, 8
inc ecx
cmp eax, 0x42e428
jl 0x40db70
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42e398]
jne 0x40dcad
mov eax, dword [0x4311f4]
cmp eax, 1
je 0x40dc87
test eax, eax
jne 0x40dbb0
cmp dword [0x42df84], 1
je 0x40dc87
cmp edx, 0xfc
je 0x40dcad
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40dbe7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040dde0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040ded0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40dc2a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040ded0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x426d6c
push edi
call fcn.00410a40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040dde0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040ddf0
lea eax, [ebp - 0xa0]
push 0x426d4c
push eax
call fcn.0040ddf0
push dword [esi + 0x42e39c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040ddf0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004109a9
add esp, 0x2c
pop edi
jmp 0x40dcad
lea eax, [ebp + 8]
lea esi, [esi + 0x42e39c]
push 0
push eax
push dword [esi]
call fcn.0040ded0
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 0x416370
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040a890
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41643b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41643b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4163ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4163f9
or bh, 8
and edi, 0x8000000
je 0x416414
mov eax, dword [0x43299c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41643b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41683b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41685f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41687a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41b812
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41b854
call fcn.0041ff93
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41b854
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41b84b
xor eax, eax
jmp 0x41b85c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041b862
pop edi
pop esi
pop ebx
ret 4

Function at 0x42074c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42077a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x420798
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004206b2
jmp 0x420798
mov eax, dword [esi + 0x14]
test eax, eax
je 0x420798
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004206b2
test edi, edi
mov eax, edi
jne 0x420782
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40d7f0
Capabilities:
Hash data with md5

Disassembly:
push edi
push esi
push eax
mov eax, 0x42ae572e
mov dword [esp], ecx
mov dx, word [0x4905de]
movsx esi, dx
mov edi, dword [0x497114]
xor esi, edi
xor esi, 0xb90ef557
mov dword [0x497114], esi
mov dword [ecx], 0
mov dx, word [0x48ec2e]
mov si, dx
or esi, 0xa060
mov dx, si
mov word [0x48ec2e], dx
mov dword [ecx + 4], 0
mov esi, dword [0x4a195c]
or esi, 0x1971f996
mov dword [0x4a195c], esi
mov dword [ecx + 8], 0x67452301
mov dx, word [0x48fd8c]
mov si, dx
imul esi, esi, 0xd933e906
mov dx, si
mov word [0x48fd8c], dx
mov dword [ecx + 0xc], 0xefcdab89
mov esi, dword [0x4a6fbc]
xor esi, 0xffccd57c
mov dword [0x4a6fbc], esi
mov dword [ecx + 0x10], 0x98badcfe
mov esi, dword [0x4a018c]
mov edi, esi
inc edi
mov dword [0x4a018c], edi
add esi, 0x6620bd28
mov dx, word [0x491648]
mov di, dx
xor edi, esi
mov dx, di
mov word [0x491648], dx
mov dword [ecx + 0x14], 0x10325476
mov ecx, dword [0x49e104]
sar ecx, 1
cmp eax, ecx
jne 0x40d8f7
mov eax, dword [0x49f520]
shr eax, 4
add eax, 0x2bdfb430
or eax, 0x35b9
mov cx, ax
mov word [0x48c148], cx
jmp 0x40d94c
mov ax, word [0x491680]
mov cx, ax
dec ecx
mov dx, cx
mov word [0x491680], dx
movsx ecx, ax
or ecx, 0xcb7b5bb2
mov esi, dword [0x4a01e4]
dec esi
mov dword [0x4a01e4], esi
cmp ecx, esi
jle 0x40d947
mov eax, dword [0x4951d0]
dec eax
mov dword [0x4951d0], eax
xor eax, 0xe4d96cbc
mov ecx, dword [0x4a050c]
and ecx, eax
mov dword [0x4a050c], ecx
jmp 0x40d94c
add esp, 4
pop esi
pop edi
ret
Function at 0x431500
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, 1
mov dword [esp + 0xc], eax
mov eax, dword [0x4a580c]
xor eax, 0xbfaaffaf
mov dword [0x4a580c], eax
mov eax, dword [0x4a7424]
mov edx, esp
mov dword [edx], eax
mov dword [esp + 8], ecx
call fcn.0044f7b0
mov ecx, dword [0x49b2b4]
dec ecx
mov dword [0x49b2b4], ecx
imul ecx, ecx, 0x2ef98650
or ecx, 0xab7e9aaf
mov edx, dword [0x49530c]
sub edx, ecx
mov dword [0x49530c], edx
mov dword [esp], 1
mov byte [esp + 7], al
call fcn.00459dfa
int3
Function at 0x46bc29
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48af00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00468ad6
mov dword [ebp - 0x14], eax
cmp dword [0x4a8850], esi
jne 0x46bd1c
push 0x800
push esi
push 0x480c30
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x46bca9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x46bdfc
push esi
push esi
push 0x480c30
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x46bdfc
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46bdfc
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4a8850], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4a8854], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4a8858], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a8860], eax
test eax, eax
je 0x46bd19
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a885c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x46bd41
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46bd34
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x46bd56
push 4
pop eax
jmp 0x46bdfe
cmp dword [ebp - 0x14], esi
je 0x46bd56
push dword [0x4a8850]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x46bd3b
mov eax, dword [0x4a885c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x46bdb4
cmp dword [0x4a8860], edi
je 0x46bdb4
push eax
call ebx
push dword [0x4a8860]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x46bdb4
test eax, eax
je 0x46bdb4
call ecx
test eax, eax
je 0x46bda9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x46bda9
test byte [ebp - 8], 1
jne 0x46bdb4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x46bde4
mov eax, dword [0x4a8854]
cmp eax, edi
je 0x46bde1
push eax
call ebx
test eax, eax
je 0x46bde1
call eax
mov esi, eax
test esi, esi
je 0x46bde1
mov eax, dword [0x4a8858]
cmp eax, edi
je 0x46bde1
push eax
call ebx
test eax, eax
je 0x46bde1
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4a8850]
call ebx
test eax, eax
je 0x46bdfc
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x46bdfe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e6f3
mov esp, ebp
pop ebp
ret
Function at 0x402630
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb38
mov eax, dword [0x419004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
mov esi, dword [edi + 0x3c]
add esi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x41a554
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
push 0x41a520
push ebx
mov dword [ebp - 0xb28], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41a584
push ebx
mov dword [ebp - 0xb30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41a530
push ebx
mov dword [ebp - 0xb2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41a500
push ebx
mov dword [ebp - 0xb34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [esi], 0x4550
mov dword [ebp - 0xb38], eax
jne 0x402788
push 0x44
lea eax, [ebp - 0x848]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x858], xmm0
call fcn.00406420
add esp, 0xc
lea eax, [ebp - 0x858]
push eax
lea eax, [ebp - 0x848]
push eax
push 0
push 0
push 0x8000004
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x804]
push eax
call dword [ebp - 0xb30]
test eax, eax
je 0x402788
lea eax, [ebp - 0xb24]
mov dword [ebp - 0xb24], 0x10007
push eax
push dword [ebp - 0x854]
call dword [ebp - 0xb2c]
test eax, eax
je 0x402788
push 0x41a4ec
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41a564
push dword [ebp - 0xb28]
mov ebx, eax
mov dword [ebp - 0xb2c], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
push 0x3000
push dword [esi + 0x50]
push dword [esi + 0x34]
push dword [ebp - 0x858]
call eax
mov dword [ebp - 0xb30], eax
push 0
test eax, eax
jne 0x40279e
push dword [ebp - 0x858]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046c2
mov esp, ebp
pop ebp
ret
push dword [esi + 0x54]
push edi
push eax
push dword [ebp - 0x858]
call ebx
xor eax, eax
mov dword [ebp - 0xb28], 0
cmp ax, word [esi + 6]
jae 0x402810
xor ebx, ebx
nop
mov ecx, dword [edi + 0x3c]
add ecx, ebx
push 0
push dword [ecx + edi + 0x108]
mov eax, dword [ecx + edi + 0x10c]
add eax, edi
push eax
mov eax, dword [ecx + edi + 0x104]
add eax, dword [ebp - 0xb30]
push eax
push dword [ebp - 0x858]
call dword [ebp - 0xb2c]
mov ecx, dword [ebp - 0xb28]
add ebx, 0x28
movzx eax, word [esi + 6]
inc ecx
mov dword [ebp - 0xb28], ecx
cmp ecx, eax
jl 0x4027c0
mov ebx, dword [ebp - 0xb2c]
push 0
push 4
lea eax, [esi + 0x34]
push eax
mov eax, dword [ebp - 0xa80]
add eax, 8
push eax
push dword [ebp - 0x858]
call ebx
mov eax, dword [esi + 0x28]
add eax, dword [ebp - 0xb30]
mov dword [ebp - 0xa74], eax
lea eax, [ebp - 0xb24]
push eax
push dword [ebp - 0x854]
call dword [ebp - 0xb34]
push dword [ebp - 0x854]
call dword [ebp - 0xb38]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004046c2
mov esp, ebp
pop ebp
ret