joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f2300
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101813ed
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x101e8118]
xor eax, ebp
mov dword [ebp - 0x44], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x24]
call fcn.10005760
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.10005760
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x7c]
call fcn.100e2d70
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x24]
call fcn.100059e0
test eax, eax
je 0x100f2392
lea ecx, [ebp - 0x18]
call fcn.100059e0
test eax, eax
jne 0x100f23e5
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.100e3300
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x100f23e5
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0x1c], 1
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
je 0x100f2460
push 0x17
lea edx, [ebp - 0x74]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
push str.CLIPBRDWNDCLASS
lea ecx, [ebp - 0x74]
push ecx
call fcn.1013b348
add esp, 8
test eax, eax
jne 0x100f243a
lea ecx, [ebp - 0x24]
call fcn.100059e0
test eax, eax
je 0x100f2431
lea ecx, [ebp - 0x18]
call fcn.100059e0
test eax, eax
jne 0x100f243a
mov byte [0x101eefd0], 1
jmp 0x100f2441
mov byte [0x101eefd0], 0
movzx edx, byte [0x101eefd0]
cmp edx, 1
jne 0x100f245e
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0x1c], 1
jmp 0x100f2467
mov byte [0x101eefd0], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x78], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.10006030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.10006030
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x44]
xor ecx, ebp
call fcn.1013a297
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100f2d30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018149c
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x101e8118]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 1
push 0x101a118c
lea ecx, [ebp + 0xc]
call fcn.10005d90
cmp eax, 0xffffffff
jne 0x100f2d8e
push 0x101a119c
lea ecx, [ebp + 0xc]
call fcn.10005d90
cmp eax, 0xffffffff
je 0x100f2eef
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax + 0x12f8]
test ecx, ecx
je 0x100f2eef
lea ecx, [ebp - 0x10]
call fcn.10005760
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
push 4
call fcn.1013b73e
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x100f2dda
mov ecx, dword [ebp - 0x20]
call fcn.10090be0
mov dword [ebp - 0x2c], eax
jmp 0x100f2de1
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], edx
lea ecx, [ebp + 0xc]
call fcn.100059c0
lea eax, [eax + eax + 2]
push eax
push 0
lea ecx, [ebp + 0xc]
call fcn.10005f10
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100f2e33
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx]
test eax, eax
jne 0x100f2e91
push 0
push 0
push 0
lea ecx, [ebp + 0xc]
call fcn.10005f10
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x1300]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + 0x1300]
mov edx, dword [eax]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.10005aa0
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x28]
add ecx, 0xc4
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0xc4]
mov eax, dword [edx + 0xa8]
call eax
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
jmp 0x100f2e9d
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x10]
call fcn.10005aa0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0xc4
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xc4]
mov edx, dword [eax + 0xa8]
call edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.10005780
mov ecx, dword [ebp - 0x24]
or ecx, 1
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.10006030
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.10006030
mov eax, dword [ebp + 8]
jmp 0x100f2f21
lea edx, [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.10005780
mov eax, dword [ebp - 0x24]
or eax, 1
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.10006030
mov eax, dword [ebp + 8]
jmp 0x100f2f21
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x101067c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10183552
mov eax, dword fs:[0]
push eax
sub esp, 0xa24
mov eax, dword [0x101e8118]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa30], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x828]
call fcn.10005760
mov byte [ebp - 4], 2
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push 0
lea ecx, [ebp + 0xc]
call fcn.10005f10
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x824], eax
cmp dword [ebp - 0x824], 0xffffffff
jne 0x1010687c
push 0x101a1c0c
mov ecx, dword [ebp + 8]
call fcn.100057d0
mov eax, dword [ebp - 0xa30]
or eax, 1
mov dword [ebp - 0xa30], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x828]
call fcn.10006030
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.10006030
mov eax, dword [ebp + 8]
jmp 0x10106935
lea ecx, [ebp - 0x81c]
call fcn.10028720
push 0
lea ecx, [ebp - 0x820]
push ecx
push 0x200
lea edx, [ebp - 0xa2c]
push edx
mov eax, dword [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101068d1
cmp dword [ebp - 0x820], 0
je 0x101068d1
mov ecx, dword [ebp - 0x820]
push ecx
lea edx, [ebp - 0xa2c]
push edx
lea ecx, [ebp - 0x81c]
call fcn.100287c0
jmp 0x10106887
mov eax, dword [ebp - 0x41c]
push eax
push str._08X
lea ecx, [ebp - 0x414]
push ecx
call fcn.1013b37a
add esp, 0xc
mov edx, dword [ebp - 0x824]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp + 8]
call fcn.100057d0
mov ecx, dword [ebp - 0xa30]
or ecx, 1
mov dword [ebp - 0xa30], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x828]
call fcn.10006030
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.10006030
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1013a297
mov esp, ebp
pop ebp
ret
Function at 0x10107550
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x101e8118]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x240], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x101075a2
lea edx, [ebp - 0x21c]
push edx
call fcn.10141482
add esp, 4
mov eax, dword [ebp - 0x238]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x101075e3
push 0x101a200c
lea ecx, [ebp - 0x21c]
push ecx
call fcn.1009cda0
add esp, 8
test eax, eax
je 0x101075e3
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 4], eax
lea edx, [ebp - 0x21c]
push edx
call fcn.10141482
add esp, 4
cmp dword [ebp - 4], 0
je 0x1010764d
push str.iexplore.exe
lea eax, [ebp - 0x21c]
push eax
call fcn.1009cda0
add esp, 8
test eax, eax
je 0x1010764d
mov ecx, dword [ebp - 0x238]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jne 0x101075e3
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1013a297
mov esp, ebp
pop ebp
ret
Function at 0x1010df50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x10184038
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101e8118]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x44]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1010dfdd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1010dfed
push ebp
push eax
lea ecx, [esp + 0x1c]
call sym.tbcore3.DLL_public:_void___thiscall_CxMemFile::constructor_unsigned_char___unsigned_long_int_
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
mov dword [esp + 0x3c], 0
call sym.tbcore3.DLL_public:_bool___thiscall_CxImage::Decode_class_CxFile___unsigned_long_int_
lea ecx, [esp + 0x14]
mov bl, al
mov dword [esp + 0x34], 0xffffffff
call sym.tbcore3.DLL_public_virtual:_void___thiscall_CxMemFile::destructor_void_
mov al, bl
jmp 0x1010dfef
lea edi, [ebx + 0x44]
mov ecx, 6
mov esi, str.Unable_to_load_resource_
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor al, al
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
Function at 0x10118c80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0xf85c], eax
mov dword [esi + 0xf858], ecx
mov dword [esi + 0xf84c], ecx
mov edx, 1
shl edx, cl
add ecx, 0xffffffff
mov eax, 1
shl eax, cl
push edi
xor edi, edi
sub edx, 1
mov dword [esi + 0xf860], eax
add eax, 1
mov dword [esi + 0xf864], eax
mov ax, word [esi + 0xf860]
add ax, 2
mov ecx, esi
mov dword [esi + 0xf854], edi
mov dword [esi + 0x1d0], edi
mov dword [esi + 0x1cc], edi
mov word [esi + 0xf850], dx
mov word [esi + 0xf852], ax
mov dword [esi + 0xf868], edi
call sym.tbcore3.DLL_protected:_int___thiscall_CxImageGIF::GifNextPixel_void_
mov dword [esp + 0x10], eax
xor ecx, ecx
mov eax, 0x138b
jmp 0x10118d10
add eax, eax
add ecx, 1
cmp eax, 0x10000
jl 0x10118d10
mov eax, 8
sub eax, ecx
push 0x138b
mov ecx, esi
mov dword [esp + 0x18], eax
call sym.tbcore3.DLL_protected:_void___thiscall_CxImageGIF::cl_hash_long_int_
movzx ecx, word [esi + 0xf860]
push ecx
mov ecx, esi
call sym.tbcore3.DLL_protected:_void___thiscall_CxImageGIF::output_short_int_
mov ecx, esi
call sym.tbcore3.DLL_protected:_int___thiscall_CxImageGIF::GifNextPixel_void_
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10118e54
push ebx
mov ecx, dword [esp + 0x18]
movsx edi, bp
shl edi, cl
mov ebx, ebp
shl ebx, 0xc
add ebx, dword [esp + 0x14]
xor edi, dword [esp + 0x14]
mov ecx, dword [esi + edi*4 + 0x8308]
cmp ecx, ebx
lea eax, [esi + edi*4 + 0x8308]
jne 0x10118d8e
movzx edx, word [esi + edi*2 + 0xd134]
mov dword [esp + 0x14], edx
jmp 0x10118e41
test ecx, ecx
jl 0x10118dc6
mov ecx, 0x138b
sub ecx, edi
test edi, edi
jne 0x10118da2
mov ecx, 1
lea edx, [ecx*4]
sub edi, ecx
sub eax, edx
test edi, edi
jge 0x10118dbc
add edi, 0x138b
add eax, 0x4e2c
mov edx, dword [eax]
cmp edx, ebx
je 0x10118dfc
test edx, edx
jg 0x10118da2
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call sym.tbcore3.DLL_protected:_void___thiscall_CxImageGIF::output_short_int_
movzx eax, word [esi + 0xf852]
cmp ax, 0x1000
mov dword [esp + 0x14], ebp
jge 0x10118e0a
mov word [esi + edi*2 + 0xd134], ax
add word [esi + 0xf852], 1
mov dword [esi + edi*4 + 0x8308], ebx
jmp 0x10118e41
movzx eax, word [esi + edi*2 + 0xd134]
mov dword [esp + 0x14], eax
jmp 0x10118e41
push 0x138b
mov ecx, esi
call sym.tbcore3.DLL_protected:_void___thiscall_CxImageGIF::cl_hash_long_int_
movzx eax, word [esi + 0xf860]
mov dx, word [esi + 0xf860]
add dx, 2
push eax
mov ecx, esi
mov word [esi + 0xf852], dx
mov dword [esi + 0xf854], 1
call sym.tbcore3.DLL_protected:_void___thiscall_CxImageGIF::output_short_int_
mov ecx, esi
call sym.tbcore3.DLL_protected:_int___thiscall_CxImageGIF::GifNextPixel_void_
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10118d55
pop ebx
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call sym.tbcore3.DLL_protected:_void___thiscall_CxImageGIF::output_short_int_
movzx edx, word [esi + 0xf864]
push edx
mov ecx, esi
call sym.tbcore3.DLL_protected:_void___thiscall_CxImageGIF::output_short_int_
pop edi
pop esi
pop ebp
ret 8
Function at 0x1011d790
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x1011d7c0
push esi
call fcn.1011df50
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x1011d7b9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x1011d837
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x1011d827
mov eax, dword [esi + 8]
test eax, eax
je 0x1011d7e4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x1011d823
cmp eax, 2
je 0x1011d827
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1011d7d7
cmp eax, 3
je 0x1011d80a
cmp eax, 1
jne 0x1011d7d7
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jl 0x1011d7d7
mov ecx, dword [esi + 0x11c]
add dword [eax + 8], ecx
jmp 0x1011d7d7
xor al, al
pop esi
ret
mov edx, dword [esi + 0x7c]
mov dword [esi + 0x84], edx
call fcn.1011d470
pop esi
ret
cmp eax, 0xcc
je 0x1011d857
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
push esi
call dword [eax]
add esp, 4
call fcn.1011d470
pop esi
ret
Function at 0x101399a9
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x101eb730], 0
push esi
jne 0x10139917
call fcn.10139835
test eax, eax
je 0x1013995a
mov eax, dword [0x101eb730]
cmp eax, 1
jne 0x10139938
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1013995a
pop esi
ret
push eax
call dword [0x101eb738]
test eax, eax
jne 0x101399a2
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1013995e
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x101eb730]
call dword [0x101eb738]
mov edi, eax
test edi, edi
je 0x10139985
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x101399a1
lea edi, [esi + 0xff0]
push esi
push dword [0x101eb730]
call dword [0x101eb734]
add esi, 0x10
cmp esi, edi
jb 0x1013998b
mov eax, esi
pop edi
pop esi
ret
jmp 0x10139904

Function at 0x1013a297
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101e8118]
jne 0x1013a2a1
repz ret
jmp fcn.101460ac
Function at 0x1015b63b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10144734
xor ebx, ebx
cmp dword [0x101ec228], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1015b710
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1015b67b
xor eax, eax
jmp 0x1015b7d4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1015b674
push eax
call fcn.101446d1
mov dword [esp], 0x101b7040
push edi
mov dword [0x101ec228], eax
call esi
push eax
call fcn.101446d1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101ec22c], eax
call esi
push eax
call fcn.101446d1
mov dword [0x101ec230], eax
lea eax, [ebp - 8]
push eax
call fcn.10142f30
test eax, eax
pop ecx
pop ecx
je 0x1015b6de
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1013b5b4
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1015b710
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.101446d1
cmp eax, ebx
pop ecx
mov dword [0x101ec238], eax
je 0x1015b710
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.101446d1
pop ecx
mov dword [0x101ec234], eax
mov eax, dword [0x101ec234]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1015b789
cmp dword [0x101ec238], esi
je 0x1015b789
push eax
call fcn.1014473d
pop ecx
call eax
cmp eax, ebx
je 0x1015b756
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x101ec238]
call fcn.1014473d
pop ecx
call eax
test eax, eax
je 0x1015b756
test byte [ebp - 0x18], 1
jne 0x1015b789
lea eax, [ebp - 0xc]
push eax
call fcn.10142fdf
test eax, eax
pop ecx
je 0x1015b771
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1013b5b4
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1015b780
or dword [ebp + 0x10], 0x200000
jmp 0x1015b7ba
or dword [ebp + 0x10], 0x40000
jmp 0x1015b7ba
mov eax, dword [0x101ec22c]
cmp eax, esi
je 0x1015b7ba
push eax
call fcn.1014473d
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1015b7ba
mov eax, dword [0x101ec230]
cmp eax, esi
je 0x1015b7ba
push dword [ebp - 4]
push eax
call fcn.1014473d
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x101ec228]
call fcn.1014473d
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x630b7e1e
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x56061738
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x403854
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x479020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4038ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4038cc
xor eax, eax
push ebp
push 0x4038c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403908
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4038cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x479020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x479020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404708
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47b048], 0
je 0x404769
cmp word [0x47b21c], 0xd7b2
jne 0x404731
cmp dword [0x47b224], 0
jbe 0x404731
mov eax, 0x47b218
call dword [0x47b234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404790
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47902c], 0
jne 0x404785
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4048e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x479030], 0
je 0x404906
mov edx, esi
mov eax, ebx
call dword [0x479030]
jmp 0x404915
mov eax, 8
call fcn.00402e60
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x47b049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4048a8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc