joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4136a9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push str._DRIVE_FIXED_
lea ecx, [ebp + 0x7c]
xor edi, edi
mov dword [ebp - 4], ebx
call fcn.0040e766
push eax
call dword [0xb37afc]
xor esi, esi
inc esi
test eax, eax
je 0x4136da
mov edi, esi
push ebx
push str._DRIVE_REMOVABLE_
lea ecx, [ebp + 0x7c]
call fcn.0040e766
push eax
call dword [0xb37afc]
test eax, eax
je 0x4136f8
mov edi, esi
mov dword [ebp - 4], esi
cmp edi, ebx
je 0x413805
lea eax, [ebp - 0x68]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea esi, [ebp - 0x68]
cmp byte [ebp - 0x68], bl
je 0x413862
push 0x3e8
lea eax, [ebp - 0x450]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp dword [ebp - 4], ebx
je 0x41375c
cmp eax, 2
jne 0x41375c
lea ecx, [ebp + 0x7c]
call fcn.0040e766
push eax
lea eax, [ebp - 0x450]
push eax
call dword [0xb37c18]
push esi
push 0x421d98
jmp 0x413778
lea ecx, [ebp + 0x7c]
call fcn.0040e766
push eax
lea eax, [ebp - 0x450]
push eax
call dword [0xb37c18]
push esi
push 0x421d88
lea eax, [ebp - 0x450]
push eax
call fcn.0040f9d0
add esp, 0xc
push eax
lea eax, [ebp - 0x450]
push eax
call dword [0xb37c18]
push ebx
push dword [ebp + 0xa0]
lea ecx, [ebp + 0x88]
push edi
push dword [ebp + 0x98]
push ebx
push dword [ebp + 0x94]
call fcn.0040e766
push eax
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp + 0x70]
call fcn.0040e766
push eax
push 0x41e266
lea ecx, [ebp + 0xa4]
call fcn.0040e766
push eax
sub esp, 0x68
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00401324
call fcn.004132cd
add esp, 0x94
push esi
call dword [0xb37a84]
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x413718
jmp 0x413862
push ebx
push dword [ebp + 0xa0]
lea ecx, [ebp + 0x88]
push ebx
push dword [ebp + 0x98]
push ebx
push dword [ebp + 0x94]
call fcn.0040e766
push eax
lea ecx, [ebp + 0x7c]
call fcn.0040e766
push eax
lea ecx, [ebp + 0x70]
call fcn.0040e766
push eax
push 0x41e266
lea ecx, [ebp + 0xa4]
call fcn.0040e766
push eax
sub esp, 0x68
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00401324
call fcn.004132cd
add esp, 0x94
mov eax, dword [ebp + 0xb0]
lea ecx, [ebp + 8]
mov dword [eax], ebx
call fcn.00401301
lea ecx, [ebp + 0x70]
call fcn.004111c9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415ba7
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret
Function at 0x417cf5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x417d03
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x417dbe
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x422168]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x422168]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x422168]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x422168]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x422168]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x422168]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x422168]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x422168]
add edx, 8
sub edi, 8
dec esi
jne 0x417d21
pop ebx
test edi, edi
je 0x417dd7
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x422168]
inc edx
dec edi
jne 0x417dc2
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x417ddd
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x422168]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x422168]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x417f88
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x417fab
mov eax, 0x200
jmp 0x418132
mov ecx, dword [ebp - 0x4c]
xor eax, eax
push ebx
xor ebx, ebx
mov edx, ecx
inc eax
and edx, eax
push esi
mov dword [ebp - 8], ebx
je 0x417fc1
mov dword [ebp - 8], eax
test cl, 2
je 0x417fca
or dword [ebp - 8], 2
test cl, 4
je 0x417fd3
or dword [ebp - 8], 4
mov eax, ecx
and eax, 0x10
je 0x417fde
or dword [ebp - 8], 0x10
test cl, 0x20
je 0x417fe7
or dword [ebp - 8], 0x20
cmp eax, ebx
je 0x417ff4
or dword [ebp - 8], 0x40000000
jmp 0x417ffb
or dword [ebp - 8], 0x80000000
or dword [ebp - 8], 0x1000000
cmp edx, ebx
jne 0x41800d
or dword [ebp - 8], 0x800000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp eax, 0x28
jbe 0x4180ae
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push edi
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
push ebx
push ebx
push 0x24
push dword [ebp + 8]
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call edi
mov eax, 0x54ad
cmp word [ebp - 4], ax
jne 0x4180ae
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x10], ecx
jbe 0x4180ae
push ebx
push ebx
push eax
push dword [ebp + 8]
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 0x18]
cmp eax, 0x5a4d
je 0x4180a7
cmp eax, 0x454e
je 0x4180a7
cmp eax, 0x454c
je 0x4180a7
cmp eax, 0x4550
jne 0x4180ae
or dword [ebp - 8], 0x400000
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4180ba
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4180c6
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x418102
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.00417f0b
push dword [ebp - 0x34]
mov dword [esi], eax
push dword [ebp - 0x38]
mov dword [esi + 4], edx
call fcn.00417f0b
push dword [ebp - 0x44]
mov dword [esi + 8], eax
push dword [ebp - 0x48]
mov dword [esi + 0xc], edx
call fcn.00417f0b
add esp, 0x18
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [ebp + 0x18]
cmp esi, ebx
je 0x41812e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.00417f2f
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 8]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
pop esi
xor eax, eax
pop ebx
pop edi
leave
ret
Function at 0x4182fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x418372
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
je 0x418329
cmp dword [esi + 0x40], edi
jae 0x418329
push eax
call fcn.0040fe87
pop ecx
mov dword [esi + 0x3c], ebx
cmp dword [esi + 0x3c], ebx
jne 0x41833e
lea eax, [edi + edi]
push eax
call fcn.0040f5c3
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x3c]
call sub.msvcrt.dll_memcpy
add esp, 0xc
test edi, edi
je 0x41836f
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
lea eax, [esi + 0x30]
push eax
call fcn.00417e4a
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x418351
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4183a1
mov eax, dword [esi + 0x24]
lea ebx, [eax + edi]
cmp ebx, dword [esi + 0x28]
jb 0x41838d
mov dword [esi + 0x14], 0x30000
jmp 0x4183c3
push edi
push edx
add eax, ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
jmp 0x4183c5
mov eax, dword [esi + 4]
test eax, eax
je 0x4183bc
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x4183c5
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x418685
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x84]
push edi
test ecx, ecx
je 0x4186db
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x418717
sub edi, eax
cmp edi, dword [ebp + 0xc]
jbe 0x4186b0
mov edi, dword [ebp + 0xc]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
add dword [esi + 0x8c], edi
add dword [esi + 0x74], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x78]
call fcn.00417cf5
add esp, 0x18
mov dword [esi + 0x78], eax
mov eax, edi
jmp 0x418719
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x418710
push 0
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418717
mov edi, dword [ebp + 0xc]
add dword [esi + 0x74], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x78]
call fcn.00417cf5
add esp, 0xc
jmp 0x4186d4
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x418d77
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x418da4
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call sub.msvcrt.dll_memset
mov ecx, dword [ebp + 0xc]
mov eax, ecx
movzx edx, word [eax*8 + 0x42211a]
mov dword [esi + 0x6af98], edx
movzx edx, word [eax*8 + 0x422118]
mov dword [esi + 0x6af9c], edx
movzx edx, word [eax*8 + 0x42211c]
mov dword [esi + 0x6afa0], edx
movzx eax, word [eax*8 + 0x42211e]
add esp, 0xc
mov dword [esi + 0x6af94], eax
cmp ecx, 2
jg 0x418e0a
mov eax, dword [ebp + 0x10]
or word [eax], 4
jmp 0x418e16
cmp ecx, 8
jl 0x418e16
mov eax, dword [ebp + 0x10]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x418e7d
cmp eax, 0xffffffff
je 0x418e7d
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x418e58
push esi
call fcn.00417419
pop ecx
mov dword [esi + 0x6af7c], edi
xor eax, eax
movzx ecx, byte [ebx + eax]
shl edi, 5
xor edi, ecx
and edi, 0x7fff
inc eax
mov dword [esi + 0x6af7c], edi
cmp eax, 2
jb 0x418e60
jmp 0x418e8d
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x419429
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x419631
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x4194a3
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x4194e6
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x4194e6
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x4194cd
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
push esi
call fcn.004172d5
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
pop ecx
cmp ebx, eax
jbe 0x4194e6
mov ebx, eax
cmp ebx, 3
jb 0x4195ab
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.00416e5a
sub dword [esi + 0x6af90], ebx
add esp, 0xc
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x419578
cmp eax, 3
jb 0x419578
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x419526
jmp 0x4195ce
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x4195d4
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.00416e5a
add esp, 0xc
dec dword [esi + 0x6af90]
mov dword [ebp + 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp + 8], 0
je 0x419610
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x4195ed
lea ecx, [eax + esi + 0x1af70]
jmp 0x4195ef
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.004192a6
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x419623
push esi
call fcn.00417419
pop ecx
cmp dword [esi + 0x6af90], 0
jne 0x419453
pop edi
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x419644
lea ecx, [eax + esi + 0x1af70]
jmp 0x419646
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.004192a6
add esp, 0x10
pop esi
pop ebx
leave
ret

Function at 0x41aadf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x925ee0]
jne 0x41aae9
repz ret
jmp fcn.0041b41b
Function at 0x41b7eb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x925ee0]
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.0041b297
and dword [ebp - 0x14], 0
cmp dword [0xb387c0], 0
mov dword [ebp - 0x18], eax
jne 0x41b89e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41b946
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41b946
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0xb387c0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0xb387c4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0xb387c8], eax
call edi
push eax
call esi
mov dword [0xb387d0], eax
test eax, eax
je 0x41b89e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0xb387cc], eax
mov eax, dword [0xb387cc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41b8f7
cmp dword [0xb387d0], ecx
je 0x41b8f7
push eax
call esi
push dword [0xb387d0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41b8f7
test ebx, ebx
je 0x41b8f7
call edi
test eax, eax
je 0x41b8ee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41b8ee
test byte [ebp - 8], 1
jne 0x41b8f7
or dword [ebp + 0x10], 0x200000
jmp 0x41b92a
mov eax, dword [0xb387c4]
cmp eax, dword [ebp - 0x18]
je 0x41b92a
push eax
call esi
test eax, eax
je 0x41b92a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41b92a
mov eax, dword [0xb387c8]
cmp eax, dword [ebp - 0x18]
je 0x41b92a
push eax
call esi
test eax, eax
je 0x41b92a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xb387c0]
call esi
test eax, eax
je 0x41b946
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41b948
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041aadf
leave
ret
Function at 0x40593b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a020]
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.004032d6
and dword [ebp - 0x14], 0
cmp dword [0x40b7d8], 0
mov dword [ebp - 0x18], eax
jne 0x4059ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405a96
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405a96
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b7d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b7dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b7e0], eax
call edi
push eax
call esi
mov dword [0x40b7e8], eax
test eax, eax
je 0x4059ee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b7e4], eax
mov eax, dword [0x40b7e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405a47
cmp dword [0x40b7e8], ecx
je 0x405a47
push eax
call esi
push dword [0x40b7e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405a47
test ebx, ebx
je 0x405a47
call edi
test eax, eax
je 0x405a3e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x405a3e
test byte [ebp - 8], 1
jne 0x405a47
or dword [ebp + 0x10], 0x200000
jmp 0x405a7a
mov eax, dword [0x40b7dc]
cmp eax, dword [ebp - 0x18]
je 0x405a7a
push eax
call esi
test eax, eax
je 0x405a7a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405a7a
mov eax, dword [0x40b7e0]
cmp eax, dword [ebp - 0x18]
je 0x405a7a
push eax
call esi
test eax, eax
je 0x405a7a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b7d8]
call esi
test eax, eax
je 0x405a96
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405a98
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040269a
leave
ret
Function at 0x401010
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 0x12
call fcn.00402360
mov edi, eax
xor eax, eax
mov word [edi + 0x10], ax
mov eax, 0x72
mov word [edi + 4], ax
mov eax, 0x6c
push 0xd
mov dword [edi], 0x65006b
mov dword [edi + 0xc], 0x320033
mov dword [edi + 6], 0x65006e
mov word [edi + 0xa], ax
call fcn.00402360
mov esi, eax
add esp, 8
mov word [esi + 1], 0x616f
push esi
push edi
mov word [esi + 0xa], 0x5779
mov word [esi + 7], 0x6172
mov byte [esi + 9], 0x72
mov word [esi + 4], 0x694c
mov byte [esi + 6], 0x62
mov byte [esi], 0x4c
mov byte [esi + 0xc], 0
mov byte [esi + 3], 0x64
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov dword [0x412dcc], eax
call fcn.00402369
push edi
call fcn.00402369
add esp, 8
cmp dword [0x412dcc], 0
je 0x40113c
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0xc], 2
mov edi, eax
jle 0x401119
push 8
call fcn.00402360
mov esi, eax
add esp, 4
mov dword [esi + 4], 0x6e
mov dword [esi], 0x75002d
push dword [edi + 8]
lea ecx, [esp + 0x14]
call fcn.00401e50
push esi
call fcn.00402369
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
add esp, 4
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401119
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esp + 0xc], 1
jle 0x40113c
mov esi, dword [edi + 4]
cmp word [esi], 0x2d
jne 0x40112c
add esi, 2
test esi, esi
je 0x40113c
call fcn.00401150
mov ecx, esi
call fcn.00401470
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x401950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0
mov ecx, 0x411e60
mov dword [esp + 0x14], ebx
call fcn.00401f94
mov edi, eax
mov ebp, 1
test edi, edi
je 0x401a00
mov eax, ebx
shr eax, 4
mov dword [esp + 0x14], eax
inc eax
push 0
movzx eax, ax
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
je 0x4019de
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4019de
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4019de
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4019d4
cmp esi, edx
jae 0x4019de
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4019c4
cmp esi, edx
jae 0x4019de
cmp word [esi], 0
jne 0x4019f6
push ebp
mov ecx, 0x411e60
call fcn.00401f94
mov edi, eax
inc ebp
test edi, edi
je 0x401a00
mov eax, dword [esp + 0x14]
jmp 0x401981
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x401a10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401a25
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401a5b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401a57
cmp esi, edx
jae 0x401a5b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x401a47
cmp esi, edx
jb 0x401a61
pop esi
pop edi
xor eax, eax
pop ebx
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
ret