joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008119
Capabilities:
Enumerate files on windows
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [0x1001c050]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x25c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x480], eax
cmp eax, 0xffffffff
jne 0x1000817e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x480], eax
lea eax, [ebp - 0x480]
push eax
push 0x1998
xor ecx, ecx
push 4
inc ecx
pop ebx
call fcn.1000389c
mov esi, eax
neg esi
sbb esi, esi
pop ecx
neg esi
pop ecx
dec esi
jmp 0x1000830d
xor ebx, ebx
mov edi, 0x10000
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x10019e20
lea eax, [ebp - 0x230]
push eax
call esi
test eax, eax
je 0x100082c7
push 0x10019e24
lea eax, [ebp - 0x230]
push eax
call esi
test eax, eax
je 0x100082c7
test byte [ebp - 0x25c], 0x10
mov edx, 0x7ffffffe
sete al
inc al
mov byte [ebp - 0x47c], al
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x47b], eax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x477], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x473], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x46f], eax
lea eax, [ebp - 0x230]
push eax
mov eax, 0x104
lea ecx, [ebp - 0x46b]
call fcn.100024dc
lea eax, [ebp - 0x46b]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 0x13]
lea eax, [esi + ebx]
mov dword [ebp - 0x484], esi
cmp eax, edi
jbe 0x100082ad
push dword [0x100231b8]
xor ecx, ecx
push 0x2011
call fcn.1000389c
pop ecx
pop ecx
test eax, eax
je 0x1000831e
mov eax, dword [0x10022984]
mov esi, dword [0x100230b4]
push 0
push dword [eax + 0xc]
mov ebx, eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1000831e
push edi
mov eax, ebx
call fcn.1000384d
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x1000831e
mov ecx, dword [0x100230b4]
mov eax, 0x1990
cmp word [ecx + 2], ax
jne 0x1000831e
push edi
push ebx
push dword [0x100231b8]
call fcn.1000f670
mov esi, dword [ebp - 0x484]
add esp, 0xc
push esi
lea eax, [ebp - 0x47c]
push eax
mov eax, dword [0x100231b8]
add eax, ebx
push eax
call fcn.10010500
add esp, 0xc
add ebx, esi
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10008185
push dword [0x100231b8]
xor ecx, ecx
push 0x2011
inc ecx
call fcn.1000389c
mov esi, eax
neg esi
sbb esi, esi
pop ecx
and esi, 2
pop ecx
dec esi
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008f62
leave
ret
or esi, 0xffffffff
jmp 0x10008301
Function at 0x100083aa
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
push 1
lea ecx, [eax + 0x208]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x100083eb
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x1998
xor ecx, ecx
push 4
inc ecx
pop ebx
call fcn.1000389c
pop ecx
neg eax
pop ecx
sbb eax, eax
neg eax
pop ebx
jmp 0x1000840f
push esi
mov esi, dword [0x10022984]
push 1
push 0x1990
push dword [0x100230b0]
call fcn.10003990
add esp, 0xc
neg eax
sbb eax, eax
and eax, 2
pop esi
dec eax
leave
ret

Function at 0x10008412
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
lea ecx, [eax + 0x208]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x10008451
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x1998
xor ecx, ecx
push 4
inc ecx
pop ebx
call fcn.1000389c
pop ecx
neg eax
pop ecx
sbb eax, eax
neg eax
pop ebx
jmp 0x10008475
push esi
mov esi, dword [0x10022984]
push 1
push 0x1990
push dword [0x100230b0]
call fcn.10003990
add esp, 0xc
neg eax
sbb eax, eax
and eax, 2
pop esi
dec eax
leave
ret

Function at 0x10008478
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100084b2
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x1998
xor ecx, ecx
push 4
inc ecx
pop ebx
call fcn.1000389c
pop ecx
neg eax
pop ecx
sbb eax, eax
neg eax
pop ebx
jmp 0x100084d6
push esi
mov esi, dword [0x10022984]
push 1
push 0x1990
push dword [0x100230b0]
call fcn.10003990
add esp, 0xc
neg eax
sbb eax, eax
and eax, 2
pop esi
dec eax
leave
ret
Function at 0x10008e37
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1001c050]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1001ce20], 0xa84
mov ecx, dword [0x1001ce28]
mov dword [ebp - 0x21c], ecx
je 0x10008e69
xor eax, eax
jmp 0x10008f41
push esi
mov esi, 0xa90
cmp dword [0x1001ce24], esi
jne 0x10008e8b
push esi
mov ecx, 0x1001ce30
call fcn.100030d8
pop ecx
cmp dword [0x1001ce2c], eax
je 0x10008e92
xor eax, eax
jmp 0x10008f40
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
push esi
push 0x40
call ebx
push 0x204
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1000f670
lea eax, [ebp - 0x218]
push eax
call section..text
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x220]
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x218]
push eax
mov eax, esi
mov ecx, 0x1001ce30
call fcn.1000233e
push 0xa84
mov ecx, edi
call fcn.100030d8
add esp, 0x20
cmp dword [ebp - 0x21c], eax
je 0x10008f0d
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x10008f3e
push 0x6b4
push 0x40
call ebx
xor esi, esi
push esi
push esi
push eax
push 0x10008c2e
push esi
push esi
mov dword [eax], esi
mov dword [eax + 0x6b0], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x10008f3b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008f62
leave
ret

Function at 0x10008f62
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001c050]
jne 0x10008f6c
repz ret
jmp fcn.100097dd
Function at 0x1000e4cb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001c050]
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.1000ae46
and dword [ebp - 0x14], 0
cmp dword [0x1001fe70], 0
mov dword [ebp - 0x18], eax
jne 0x1000e57e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000e626
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000e626
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1001fe70], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1001fe74], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1001fe78], eax
call edi
push eax
call esi
mov dword [0x1001fe80], eax
test eax, eax
je 0x1000e57e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1001fe7c], eax
mov eax, dword [0x1001fe7c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000e5d7
cmp dword [0x1001fe80], ecx
je 0x1000e5d7
push eax
call esi
push dword [0x1001fe80]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000e5d7
test ebx, ebx
je 0x1000e5d7
call edi
test eax, eax
je 0x1000e5ce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000e5ce
test byte [ebp - 8], 1
jne 0x1000e5d7
or dword [ebp + 0x10], 0x200000
jmp 0x1000e60a
mov eax, dword [0x1001fe74]
cmp eax, dword [ebp - 0x18]
je 0x1000e60a
push eax
call esi
test eax, eax
je 0x1000e60a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000e60a
mov eax, dword [0x1001fe78]
cmp eax, dword [ebp - 0x18]
je 0x1000e60a
push eax
call esi
test eax, eax
je 0x1000e60a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1001fe70]
call esi
test eax, eax
je 0x1000e626
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000e628
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008f62
leave
ret
Function at 0x408710
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x407015
lea edi, [esi - 0x6015]
push edi
or ebp, 0xffffffff
jmp 0x408732
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408739
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408728
mov eax, 1
add ebx, ebx
jne 0x40874b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408740
jne 0x40875c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408740
xor ecx, ecx
sub eax, 3
jb 0x408770
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4087e2
mov ebp, eax
add ebx, ebx
jne 0x40877b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x408788
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4087ac
inc ecx
add ebx, ebx
jne 0x408798
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40878d
jne 0x4087a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40878d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4087cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4087bd
jmp 0x40872e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4087cc
add edi, ecx
jmp 0x40872e
pop esi
mov edi, esi
mov ecx, 0x5a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4087ea
cmp byte [edi], 0
jne 0x4087ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4087ef
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x40885e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x82c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x834c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40881c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8350]
or eax, eax
je 0x408858
mov dword [ebx], eax
add ebx, 4
jmp 0x408839
call dword [esi + 0x8360]
mov ebp, dword [esi + 0x8354]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x408892
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x436a8b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x436a8b
lcall 0x5de5, 0x8b10c483
jmp loc.00831b94
Function at 0x40200c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x402052
sub ebx, 0x4235e0
mov ax, word [ebx + edi*2 + 0x4235e0]
mov ecx, esi
xor ax, word [edi*2 + 0x4235e0]
movzx eax, ax
push eax
call fcn.00402270
inc edi
cmp edi, dword [esp + 0x10]
jl 0x402030
pop edi
mov eax, esi
pop esi
pop ebx
ret 4
Function at 0x402dd2
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x402e18
sub ebx, 0x425680
mov ax, word [ebx + edi*2 + 0x425680]
mov ecx, esi
xor ax, word [edi*2 + 0x425680]
movzx eax, ax
push eax
call fcn.00402270
inc edi
cmp edi, dword [esp + 0x10]
jl 0x402df6
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x403756
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, edx
cmp dword [0x47fe10], ebx
jne 0x40379c
mov ecx, ebx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x40377d
shr eax, 1
xor eax, 0xedb88320
jmp 0x40377f
shr eax, 1
dec edx
jne 0x403770
mov dword [ecx*4 + 0x47fa10], eax
inc ecx
cmp ecx, 0x100
jl 0x40376b
mov dword [0x47fe10], 1
mov eax, dword [ebp + 8]
or edx, 0xffffffff
xor ecx, ecx
lea eax, [edi + eax*2]
mov esi, eax
sub esi, edi
inc esi
shr esi, 1
cmp edi, eax
cmova esi, ecx
test esi, esi
je 0x4037d1
movzx eax, byte [edi]
lea edi, [edi + 2]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x47fa10]
inc ebx
cmp ebx, esi
jb 0x4037b7
pop edi
not edx
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4037de
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x70]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
add eax, 0x40
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], ebx
call fcn.00401663
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x70]
push dword [esp + 0x70]
xor edx, edx
mov dword [esp + 0x50], 0xf
cmp dword [esp + 0x88], 8
mov dword [esp + 0x24], edx
cmovae ecx, dword [esp + 0x74]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x4c], edx
lea eax, [ecx + eax*2]
mov byte [esp + 0x3c], dl
lea ecx, [esp + 0x74]
cmovae ecx, dword [esp + 0x74]
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.004039e3
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x54]
call fcn.00402aaa
cmp dword [esp + 0x64], 8
lea edx, [esp + 0x50]
push dword [esp + 0x60]
cmovae edx, dword [esp + 0x54]
call fcn.00403756
push 0
push 1
lea ecx, [esp + 0x58]
mov esi, eax
call fcn.0040193d
xor edx, edx
mov ecx, 0x98967f
mov eax, esi
div ecx
lea ecx, [esp + 0x14]
inc edx
mov dword [esp + 0x14], edx
call fcn.0040125f
cmp dword [esp + 0x4c], 0x10
lea ecx, [esp + 0x38]
mov eax, dword [esp + 0x48]
cmovae ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x2c]
add eax, ecx
cmp dword [esp + 0x4c], 0x10
lea ecx, [esp + 0x38]
cmovae ecx, dword [esp + 0x38]
sub eax, ecx
push eax
push ecx
push ebp
call fcn.0040c160
add esp, 0xc
lea edx, [esp + 0x20]
lea ecx, [esp + 0x2c]
call fcn.004014f9
and dword [ebx + 0x10], 0
xor eax, eax
mov edi, dword [esp + 0x20]
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov eax, dword [esp + 0x24]
sub eax, edi
push 0
mov dword [esp + 0x20], eax
pop esi
je 0x40392a
mov ebp, ebx
mov bl, byte [edi + esi]
lea ecx, [esp + 0x14]
call fcn.0040125f
xor al, bl
mov ecx, ebp
movzx eax, al
push eax
call fcn.00402270
inc esi
cmp esi, dword [esp + 0x1c]
jb 0x403902
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
xor esi, esi
lea ecx, [esp + 0x38]
push esi
push 1
call fcn.004017dc
test edi, edi
je 0x403943
push edi
call fcn.0040cbd2
pop ecx
test ebp, ebp
je 0x40394e
push ebp
call fcn.0040cbd2
pop ecx
push esi
push 1
lea ecx, [esp + 0x78]
call fcn.0040193d
push esi
push 1
lea ecx, [esp + 0x90]
call fcn.0040193d
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x5c
ret 0x30
Function at 0x405ba1
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x405be7
sub ebx, 0x4263a0
mov ax, word [ebx + edi*2 + 0x4263a0]
mov ecx, esi
xor ax, word [edi*2 + 0x4263a0]
movzx eax, ax
push eax
call fcn.00402270
inc edi
cmp edi, dword [esp + 0x10]
jl 0x405bc5
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x405c9f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
cmp byte [0x47f9f4], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x405d44
push 7
mov edx, 0x43cc6c
lea ecx, [ebp - 0x34]
call fcn.00405ba1
cmp dword [eax + 0x14], 8
jb 0x405cce
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 1
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.0040193d
test esi, esi
je 0x405d44
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.00405bef
push 0x426784
call fcn.0040c7b0
pop ecx
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00408eeb
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 4]
push ebx
push ecx
push dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.004017dc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405d4b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov edx, 0x42b4f0
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 0x18]
push 0x32
call fcn.00405ba1
cmp dword [eax + 0x14], 8
jb 0x405d70
mov eax, dword [eax]
sub esp, 0x18
mov esi, ebx
push 6
pop ecx
mov edi, esp
push eax
lea eax, [ebp - 0x118]
push 0x7f
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00405b85
add esp, 0x24
lea ecx, [ebp - 0x18]
xor esi, esi
xor edi, edi
inc edi
push esi
push edi
call fcn.0040193d
xor eax, eax
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x118]
mov dword [ebp - 8], esi
push eax
call fcn.0040181e
lea ecx, [ebp - 0x18]
call fcn.00405c9f
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.0040193d
push 9
mov edx, 0x46b400
lea ecx, [ebp - 0x18]
call fcn.00405ba1
cmp dword [eax + 0x14], 8
jb 0x405de5
mov eax, dword [eax]
cmp dword [ebx + 0x14], 8
jb 0x405ded
mov ebx, dword [ebx]
push 0x40040
push eax
push ebx
push esi
call dword [0x47f640]
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.0040193d
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x405e0d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, 0x46b400
push esi
mov esi, ecx
lea ecx, [ebp - 0x18]
push 9
call fcn.00405ba1
cmp dword [eax + 0x14], 8
jb 0x405e2d
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x405e35
mov esi, dword [esi]
push 0x40010
push eax
push esi
push 0
call dword [0x47f640]
push 0
push 1
lea ecx, [ebp - 0x18]
call fcn.0040193d
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x409328
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x40936e
sub ebx, 0x4264d0
mov ax, word [ebx + edi*2 + 0x4264d0]
mov ecx, esi
xor ax, word [edi*2 + 0x4264d0]
movzx eax, ax
push eax
call fcn.00402270
inc edi
cmp edi, dword [esp + 0x10]
jl 0x40934c
pop edi
mov eax, esi
pop esi
pop ebx
ret 4
Function at 0x418464
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x428de0]
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.00414d0c
mov dword [ebp - 0x14], eax
cmp dword [0x47f540], esi
jne 0x418557
push 0x800
push esi
push 0x421ec4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4184e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x418637
push esi
push esi
push 0x421ec4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x418637
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x418637
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x47f540], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x47f544], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x47f548], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47f550], eax
test eax, eax
je 0x418554
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47f54c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41857c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41856f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x418591
push 4
pop eax
jmp 0x418639
cmp dword [ebp - 0x14], esi
je 0x418591
push dword [0x47f540]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x418576
mov eax, dword [0x47f54c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4185ef
cmp dword [0x47f550], edi
je 0x4185ef
push eax
call ebx
push dword [0x47f550]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4185ef
test eax, eax
je 0x4185ef
call ecx
test eax, eax
je 0x4185e4
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 0x4185e4
test byte [ebp - 8], 1
jne 0x4185ef
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41861f
mov eax, dword [0x47f544]
cmp eax, edi
je 0x41861c
push eax
call ebx
test eax, eax
je 0x41861c
call eax
mov esi, eax
test esi, esi
je 0x41861c
mov eax, dword [0x47f548]
cmp eax, edi
je 0x41861c
push eax
call ebx
test eax, eax
je 0x41861c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x47f540]
call ebx
test eax, eax
je 0x418637
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x418639
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004115f1
mov esp, ebp
pop ebp
ret