joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10022115
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1003a320]
je 0x10022130
inc edi
cmp edi, 0x17
jb 0x10022121
cmp edi, 0x17
jae 0x100222b0
push ebp
push 3
call fcn.100286e8
cmp eax, 1
pop ecx
je 0x1002227c
push 3
call fcn.100286e8
test eax, eax
pop ecx
jne 0x10022164
cmp dword [0x1003b7c4], 1
je 0x1002227c
cmp ebx, 0xfc
je 0x100222af
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1003b988
push ebp
call fcn.10023568
add esp, 0xc
test eax, eax
je 0x1002219a
push esi
push esi
push esi
push esi
push esi
call fcn.1001dc40
add esp, 0x14
push 0x104
mov esi, 0x1003b9a1
push esi
push 0
mov byte [0x1003baa5], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x100221de
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10023568
add esp, 0xc
test eax, eax
je 0x100221de
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1001dc40
add esp, 0x14
push esi
call fcn.1001fe20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10022223
push esi
call fcn.1001fe20
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1003bc9c
push 0x10031a3c
sub ecx, eax
push ecx
push eax
call fcn.10028635
add esp, 0x14
test eax, eax
je 0x10022223
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1001dc40
add esp, 0x14
jmp 0x10022225
xor esi, esi
push 0x10031a38
push ebx
push ebp
call fcn.100285c4
add esp, 0xc
test eax, eax
je 0x10022245
push esi
push esi
push esi
push esi
push esi
call fcn.1001dc40
add esp, 0x14
push dword [edi*8 + 0x1003a324]
push ebx
push ebp
call fcn.100285c4
add esp, 0xc
test eax, eax
je 0x10022267
push esi
push esi
push esi
push esi
push esi
call fcn.1001dc40
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10028407
add esp, 0xc
jmp 0x100222af
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x100222af
cmp ebp, 0xffffffff
je 0x100222af
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1003a324]
push dword [esi]
call fcn.1001fe20
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10028407
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1002185d
xor ebx, ebx
cmp dword [0x1003c14c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x100284dd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100285bd
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x100285bd
push eax
call fcn.100217ef
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1003c14c], eax
call esi
push eax
call fcn.100217ef
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1003c150], eax
call esi
push eax
call fcn.100217ef
mov dword [0x1003c154], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100214fa
test eax, eax
pop ecx
pop ecx
je 0x100284ab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001dc40
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x100284dd
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100217ef
cmp eax, ebx
pop ecx
mov dword [0x1003c15c], eax
je 0x100284dd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100217ef
pop ecx
mov dword [0x1003c158], eax
mov eax, dword [0x1003c158]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10028562
cmp dword [0x1003c15c], ecx
je 0x10028562
push eax
call fcn.10021866
push dword [0x1003c15c]
mov esi, eax
call fcn.10021866
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10028562
cmp edi, ebx
je 0x10028562
call esi
cmp eax, ebx
je 0x1002852f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1002852f
test byte [ebp - 0x18], 1
jne 0x10028562
lea eax, [ebp - 0x10]
push eax
call fcn.10021531
test eax, eax
pop ecx
je 0x1002854a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001dc40
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10028559
or dword [ebp + 0x10], 0x200000
jmp 0x1002859d
or dword [ebp + 0x10], 0x40000
jmp 0x1002859d
mov eax, dword [0x1003c150]
cmp eax, dword [ebp - 8]
je 0x1002859d
push eax
call fcn.10021866
cmp eax, ebx
pop ecx
je 0x1002859d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1002859d
mov eax, dword [0x1003c154]
cmp eax, dword [ebp - 8]
je 0x1002859d
push eax
call fcn.10021866
cmp eax, ebx
pop ecx
je 0x1002859d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1003c14c]
call fcn.10021866
cmp eax, ebx
pop ecx
je 0x100285bd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100285bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4061ae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x4061bd
pop dword [ebp - 0x24]
mov eax, 0x4061bd
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xdeb80a56
add dword [ebp - 0x34], 0x6f9a3af5
mov dword [ebp - 0x30], 0xdd05b199
add dword [ebp - 0x30], 0x552d9aac
mov dword [ebp - 0x2c], 0xd81b9fed
sub dword [ebp - 0x2c], 0x8bcf5bbf
mov dword [ebp - 0x28], 0x387b570d
add dword [ebp - 0x28], 0xc784a8f3
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x1654bb43
sub dword [ebp - 0x34], 0xa1e251ed
mov dword [ebp - 0x30], 0xa1eccfd1
sub dword [ebp - 0x30], 0x60806e5c
mov dword [ebp - 0x2c], 0xc85d30f7
add dword [ebp - 0x2c], 0x9b123b75
mov dword [ebp - 0x28], 0xdf23f4be
add dword [ebp - 0x28], 0x20dc0b42
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x9e235eef
add eax, 0x621d1221
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3765d
push 0
call eax
mov ecx, 0x47c8
mov esi, eax
mov edx, 0x436000
add edx, dword [ebp - 0x24]
mov ebx, 0xccd79c6c
xor dword [ebp - 0x10], ebx
mov edi, dword [edx]
add dword [ebp - 8], 0x1cb1e61c
xor edi, ebx
mov dword [esi], edi
mov dword [ebp - 0xc], 0xb0382a92
add esi, 4
add edx, 0x2546c14b
sub edx, 0x2546c147
loop 0x4062c3
add eax, 0xcded4b0c
sub eax, 0xcdec3919
xor ebx, ebx
add ebx, eax
add eax, 0xe4bdcac8
add eax, 0x1b42353d
mov ecx, 0x91db9528
add ecx, 0x6e646ad8
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x10014820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1001482f
pop dword [ebp - 0x10]
mov eax, 0x1001482f
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x4da18a20
sub dword [ebp - 0x20], 0xff4f44d5
mov dword [ebp - 0x1c], 0xfaf863f4
sub dword [ebp - 0x1c], 0xc8c517af
mov dword [ebp - 0x18], 0xa5b42fee
add dword [ebp - 0x18], 0xa6981440
mov dword [ebp - 0x14], 0x25e543c4
sub dword [ebp - 0x14], 0x25e543c4
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xa626abe4
sub dword [ebp - 0x20], 0x31b4428e
mov dword [ebp - 0x1c], 0xdc582691
add dword [ebp - 0x1c], 0x65143ae4
mov dword [ebp - 0x18], 0xf989abdb
sub dword [ebp - 0x18], 0x961a3f6f
mov dword [ebp - 0x14], 0x34a9c2a3
add dword [ebp - 0x14], 0xcb563d5d
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x1254941c
sub eax, 0x252e408
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x41b2c
push 0
call eax
mov ecx, 0x55cc
mov edi, eax
mov ebx, 0x1002b000
add ebx, dword [ebp - 0x10]
mov edx, 0xd1129ca3
xor dword [ebp - 8], edx
mov esi, dword [ebx]
xor dword [ebp - 0xc], edx
add esi, edx
xor dword [ebp - 8], eax
mov dword [edi], esi
add edi, 0x6fcf3dc7
sub edi, 0x6fcf3dc3
add ebx, 4
loop 0x10014935
add eax, 0xced9892b
sub eax, 0xced83f28
mov ebx, eax
add eax, 5
mov ecx, 0x1b158edb
add ecx, 0xf4ea7125
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x403512
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0040322a
scasw ax, word es:[edi]
loop 0x4035d8
lea eax, [ebp - 0x40]
push eax
call fcn.0040323a
push eax
push esi
push dword [ebp + 8]
call fcn.004031ef
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.0040322a
mov eax, 0x8db3f3e7
inc ebp
call 0x51289320
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0040323a
push eax
push esi
push dword [ebp + 8]
call fcn.004031ef
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040323a
push eax
push esi
push dword [ebp + 8]
call fcn.004031ef
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040323a
push eax
push esi
push dword [ebp + 8]
call fcn.004031ef
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0040322a
sbb ax, 0x88a7
popfd
jl 0x4036af
invalid
invalid
Function at 0x10003394
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
call fcn.100031f2
mov esi, 0x104
push esi
mov dword [ebp - 0xc], eax
call fcn.10003957
push esi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x10], ebx
call fcn.10003870
push esi
call fcn.10003957
push esi
push 0
push eax
mov dword [ebp - 4], eax
call fcn.10003870
add esp, 0x20
push ebx
push dword [ebp + 8]
mov ecx, edi
call fcn.1000332c
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x10003437
push esi
push dword [ebp - 4]
push dword [edi + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
inc dword [edi + 8]
mov ebx, eax
call esi
cmp ebx, 0x103
jne 0x10003437
and dword [edi + 8], 0
push str.ERROR_NO_MORE_ITEMS
push dword [ebp + 0xc]
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call fcn.1000386b
push dword [ebp - 4]
call fcn.1000386b
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x100034c7
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
call fcn.100031f2
mov esi, 0x104
push esi
mov dword [ebp - 4], eax
call fcn.10003957
push esi
xor esi, esi
mov edi, eax
push esi
push edi
call fcn.10003870
add esp, 0x10
push edi
push dword [ebp + 8]
mov ecx, ebx
call fcn.1000332c
push edi
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
test eax, eax
jne 0x1000350f
inc esi
push edi
call fcn.1000386b
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x1000353b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], ecx
call fcn.100031f2
mov esi, 0x104
push esi
mov dword [ebp - 0x10], eax
call fcn.10003957
push esi
mov edi, eax
push 0
push edi
call fcn.10003870
push esi
call fcn.10003957
push esi
push 0
push eax
mov dword [ebp - 4], eax
call fcn.10003870
mov ecx, dword [ebp - 0xc]
add esp, 0x20
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
call fcn.1000332c
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100035cd
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100035cd
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.1000386b
push dword [ebp - 4]
call fcn.1000386b
pop ecx
pop ecx
pop edi
pop esi
leave
ret 0xc
Function at 0x100035ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
call fcn.100031f2
mov esi, 0x104
push esi
mov dword [ebp - 0xc], eax
call fcn.10003957
push esi
xor esi, esi
mov edi, eax
push esi
push edi
call fcn.10003870
add esp, 0x10
push edi
push dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 4], 4
call fcn.1000332c
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003665
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10003665
mov dword [ebp - 4], esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.1000386b
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1000367f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
call fcn.100031f2
mov esi, 0x104
push esi
mov dword [ebp - 8], eax
call fcn.10003957
push esi
mov edi, eax
push 0
push edi
call fcn.10003870
add esp, 0x10
push edi
push dword [ebp + 8]
mov ecx, ebx
call fcn.1000332c
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000371a
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], 1
push edi
call fcn.1000386b
mov eax, dword [ebp - 0xc]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100038ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10012080]
jne 0x100038f4
repz ret
jmp fcn.10004c12
Function at 0x1000bc7b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100059ab
xor ebx, ebx
cmp dword [0x10013868], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1000bd50
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1000bcbb
xor eax, eax
jmp 0x1000be14
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1000bcb4
push eax
call fcn.10005948
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10013868], eax
call esi
push eax
call fcn.10005948
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001386c], eax
call esi
push eax
call fcn.10005948
mov dword [0x10013870], eax
lea eax, [ebp - 8]
push eax
call fcn.10008b37
test eax, eax
pop ecx
pop ecx
je 0x1000bd1e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10006352
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1000bd50
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10005948
cmp eax, ebx
pop ecx
mov dword [0x10013878], eax
je 0x1000bd50
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10005948
pop ecx
mov dword [0x10013874], eax
mov eax, dword [0x10013874]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1000bdc9
cmp dword [0x10013878], esi
je 0x1000bdc9
push eax
call fcn.100059b4
pop ecx
call eax
cmp eax, ebx
je 0x1000bd96
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10013878]
call fcn.100059b4
pop ecx
call eax
test eax, eax
je 0x1000bd96
test byte [ebp - 0x18], 1
jne 0x1000bdc9
lea eax, [ebp - 0xc]
push eax
call fcn.10008b6e
test eax, eax
pop ecx
je 0x1000bdb1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10006352
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1000bdc0
or dword [ebp + 0x10], 0x200000
jmp 0x1000bdfa
or dword [ebp + 0x10], 0x40000
jmp 0x1000bdfa
mov eax, dword [0x1001386c]
cmp eax, esi
je 0x1000bdfa
push eax
call fcn.100059b4
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000bdfa
mov eax, dword [0x10013870]
cmp eax, esi
je 0x1000bdfa
push dword [ebp - 4]
push eax
call fcn.100059b4
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 [0x10013868]
call fcn.100059b4
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409308
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40935a
test eax, edx
je 0x40935d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40931d
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409343
add ecx, 4
js 0x409333
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409340
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409369
test edx, edx
jne 0x409310
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x409ee0
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
jmp 0x409f03
lea eax, [ebx + 0x20]
push eax
mov eax, dword [ebx + 0x1c]
push eax
call sub.KERNEL32.DLL_GlobalFindAtomA
test eax, eax
jne 0x409f03
call sub.KERNEL32.DLL_CloseHandle
mov esi, eax
jmp 0x409f5c
mov eax, dword [ebx + 0x20]
and eax, dword [ebx + 0x18]
jne 0x409ee9
push esp
lea eax, [ebx + 0x34]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push ebx
lea eax, [ebx + 2]
push eax
lea eax, [esp + 8]
push eax
call sub.KERNEL32.DLL_GetVersionExA
mov eax, dword [ebx + 0x40]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x3c]
xor edx, edx
mov edx, eax
xor eax, eax
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x10], eax
lea eax, [ebx + 0x14]
lea edx, [ebx + 0x4c]
mov ecx, 0x104
call fcn.00405440
xor esi, esi
mov eax, esi
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x40be0c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40bf6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004051d0
mov eax, dword [ebp + 8]
movzx eax, word [eax - 0xe]
mov word [ebp - 0x14], ax
mov eax, dword [ebp + 8]
movzx eax, word [eax - 0x10]
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 8]
movzx eax, word [eax - 0x12]
mov word [ebp - 0xe], ax
lea eax, [ebp - 4]
mov edx, 0x40bf84
call fcn.00405268
push 0x100
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 4]
call fcn.00405660
push eax
lea eax, [ebp - 0x14]
push eax
push 4
call sub.KERNEL32.DLL_SetEndOfFile
push eax
call sub.KERNEL32.DLL_SetErrorMode
test eax, eax
je 0x40bf4d
mov eax, ebx
lea edx, [ebp - 0x114]
mov ecx, 0x100
call fcn.00405440
dec esi
jne 0x40bf4d
mov eax, dword [0x48e8cc]
sub eax, 4
je 0x40bee0
sub eax, 0xd
jne 0x40bf4d
push ebx
mov eax, dword [ebx]
mov edx, 1
call fcn.0040e620
mov ecx, eax
mov eax, dword [ebx]
mov edx, 1
call fcn.004056c8
jmp 0x40bf4d
cmp dword [0x48e8d0], 1
jne 0x40bf4d
mov eax, dword [ebx]
mov dword [ebp - 0x118], eax
mov esi, dword [ebp - 0x118]
test esi, esi
je 0x40bf00
sub esi, 4
mov esi, dword [esi]
mov eax, dword [ebx]
mov edx, esi
call fcn.0040e480
cmp eax, 4
jne 0x40bf4d
mov eax, dword [ebx]
mov edx, 3
call fcn.0040e59c
mov esi, eax
lea eax, [ebp - 0x114]
add esi, eax
dec esi
lea eax, [ebp - 0x11c]
mov edx, esi
call fcn.004053c8
mov eax, dword [ebp - 0x11c]
mov edx, 2
call fcn.0040e620
mov ecx, eax
mov eax, ebx
mov edx, esi
call fcn.004052c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf75
lea eax, [ebp - 0x11c]
call fcn.004051d0
lea eax, [ebp - 4]
call fcn.004051d0
ret