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

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
movzx eax, byte [esi + 0x17]
push edi
cmp eax, 3
ja case.default.0x46f123
jmp dword [eax*4 + 0x46f2d4]
mov eax, esi
call fcn.00401150
cmp dword [0x4a2d94], 0
jne 0x46f1f4
cmp dword [esi + 0xc], 0
jne 0x46f1f4
mov edi, dword [esp + 0x14]
cmp dword [0x4a5d20], esi
jne 0x46f158
test edi, edi
jne 0x46f1b5
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x13]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x46f1b1
mov dword [0x4a5d20], 0
test edi, edi
je 0x46f1a9
mov eax, dword [0x4a2d74]
test eax, eax
je 0x46f19a
mov edx, dword [esi + 0x18]
push edx
push str.Using_value_of_environment_variable.
push eax
push 0x4a4ca0
xor ecx, ecx
call fcn.0042d3e0
mov ecx, dword [esi + 0x18]
call fcn.0046d740
pop edi
pop esi
pop ebx
pop ecx
ret 4
dec eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
test edi, edi
je 0x46f1e5
cmp byte [esi + 0x17], 0
jne 0x46f1c0
mov eax, dword [esi + 0xc]
jmp 0x46f1c2
mov eax, esi
test byte [eax + 0x15], 4
je 0x46f1cf
mov eax, esi
call fcn.0042d510
mov byte [edi], 0
mov dword [0x4a5d20], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x4a5d20], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov edi, dword [esp + 0x14]
mov ebx, dword [esi + 0xc]
test edi, edi
je 0x46f265
test ebx, ebx
jne 0x46f226
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x46f21a
mov eax, esi
call fcn.0042d510
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 8]
cmp edi, ecx
je 0x46f265
cmp ebx, 0x186a0
jae 0x46f256
mov al, byte [ecx]
test al, al
je 0x46f24a
jmp 0x46f240
inc ecx
mov byte [edi], al
mov al, byte [ecx]
inc edi
test al, al
jne 0x46f240
mov byte [edi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
push ebx
push ecx
push edi
call fcn.00487060
add esp, 0xc
mov byte [ebx + edi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
push eax
call fcn.0046f110
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
push 0x4a4c84
mov ecx, esi
call fcn.00403c10
cmp eax, 0xffffffff
jne 0x46f299
xor eax, eax
test esi, esi
je 0x46f2cd
mov byte [eax + esi], 0
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46f2b3
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x10]
push ecx
push edx
call eax
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x46fae0
Capabilities:
Log keystrokes

Disassembly:
mov al, byte [ecx]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
cmp al, 0x41
je 0x46faf9
cmp al, 0x61
jne 0x46fb37
cmp byte [ecx + 1], 0
jne 0x46fb37
cmp byte [edi], 0
jne 0x46fb37
cmp byte [ebp], 0
jne 0x46fb37
cmp byte [esi], 0
jne 0x46fb37
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x46fb31
cmp byte [ebx + 0xc2], 0
jne 0x46fb31
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x46fb31
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
ret
test dl, dl
jne 0x46fb5b
test al, al
jne 0x46fb5b
cmp byte [edi], al
jne 0x46fb5b
cmp byte [ebp], al
jne 0x46fb5b
cmp byte [esi], al
jne 0x46fb5b
mov eax, ebx
call fcn.004702d0
test eax, eax
jne 0x46fb76
pop edi
pop esi
pop ebp
ret
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push eax
push 0
push edx
push ebp
push ebx
mov edx, esi
call fcn.004700e0
add esp, 0x18
jmp 0x46fb53
pop edi
pop esi
pop ebp
jmp fcn.0046fbe0
Function at 0x46fbe0
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push edi
mov edi, eax
test edi, edi
jne 0x46fbef
pop edi
add esp, 0x10
ret
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push ebp
push esi
push 0
push edi
call ebx
mov ebp, eax
mov dword [esp + 0x1c], ebp
cmp ebp, dword [0x4a4c44]
je 0x46fc1a
mov esi, edi
call fcn.00470bf0
test al, al
jne 0x46fdb2
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
jne 0x46fc34
push eax
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
cmp edi, esi
jne 0x46fc42
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
add esp, 0x10
ret
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x46fc56
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [0x4a2d52], 0
jne 0x46fc70
push esi
call fcn.0046fb80
add esp, 4
test eax, eax
jne 0x46fdb4
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test esi, esi
je 0x46fccd
push 0
push esi
call ebx
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x46fccd
cmp dword [0x4a4c44], ebx
je 0x46fcb4
call fcn.00470bf0
test al, al
jne 0x46fcb4
mov eax, dword [0x4a4c44]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x12]
test ebp, ebp
je 0x46fccd
cmp ebx, ebp
je 0x46fccd
push 1
push ebp
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x13]
mov ebx, dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [esp + 0x14], 0
jmp 0x46fce0
push edi
call ebx
push 1
push 0xa
mov dword [0x49f394], 0
call fcn.004012a0
add esp, 8
mov dword [0x49f394], 1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
cmp ebp, edi
jne 0x46fd13
mov ebp, edi
jmp 0x46fd24
cmp ebp, esi
je 0x46fd28
push 4
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
cmp edi, eax
jne 0x46fd28
test ebp, ebp
jne 0x46fd69
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 5
jl 0x46fce0
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 2
call fcn.0040e7b0
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 2
call fcn.0040e7b0
push esi
call fcn.0046fb80
add esp, 0x34
mov ebp, eax
cmp byte [esp + 0x12], 0
je 0x46fd84
mov ecx, dword [esp + 0x18]
mov edx, dword [0x4a4c44]
push 0
push ecx
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [esp + 0x13], 0
je 0x46fd9d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test ebp, ebp
je 0x46fdb2
push edi
call dword [sym.imp.USER32.dll_BringWindowToTop]
pop esi
mov eax, ebp
pop ebp
pop ebx
pop edi
add esp, 0x10
ret
xor eax, eax
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x10
ret
Function at 0x46fe90
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [esp + 8], 0
je 0x46fea0
mov eax, esi
call fcn.0044f760
jmp 0x46fead
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 4]
test eax, eax
js 0x46ff08
je 0x46ff08
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebp
push 1
push 0x8000012f
mov edi, eax
call fcn.004012a0
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call ebx
test eax, eax
je 0x46ff05
add edi, dword [esp + 0x10]
call ebp
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x46ff05
push 1
push 0x8000012f
call fcn.004012a0
add esp, 8
push esi
call ebx
test eax, eax
jne 0x46fee4
pop edi
pop ebp
pop ebx
mov eax, esi
ret
Function at 0x4700e0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e5c
call fcn.0048af20
mov al, byte [ecx]
push ebx
push ebp
mov ebp, dword [esp + 0x8e68]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x8e70]
cmp al, 0x41
je 0x470107
cmp al, 0x61
jne 0x470158
cmp byte [ecx + 1], bl
jne 0x470158
cmp byte [edi], bl
jne 0x470158
cmp byte [esi], bl
jne 0x470158
cmp byte [edx], bl
jne 0x470158
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp esi, ebx
je 0x470139
cmp byte [ebp + 0xc2], bl
jne 0x470139
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x470139
xor esi, esi
cmp byte [esp + 0x8e78], bl
je 0x47014c
cmp esi, ebx
je 0x47014c
mov dword [ebp + 0xa0], esi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x8e5c
ret
cmp al, bl
jne 0x470179
cmp byte [edi], bl
jne 0x470179
cmp byte [esi], bl
jne 0x470179
cmp byte [edx], bl
jne 0x470179
mov eax, ebp
call fcn.004702d0
pop esi
pop ebp
pop ebx
add esp, 0x8e5c
ret
push edx
push esi
push edi
push ecx
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x82c], 0x4927e9
mov byte [esp + 0xc49], bl
mov dword [esp + 0xc4c], ebx
mov dword [esp + 0xc50], ebx
mov dword [esp + 0xc54], ebx
mov dword [esp + 0xc58], ebx
mov dword [esp + 0xc5c], ebx
mov dword [esp + 0xc60], ebx
mov dword [esp + 0xc6c], ebx
mov dword [esp + 0xc70], ebx
call fcn.00470d30
test eax, eax
je 0x47028a
test byte [esp + 0xc], 2
mov al, byte [esp + 0x8e74]
mov ecx, dword [esp + 0x8e7c]
mov edx, dword [esp + 0x8e80]
mov byte [esp + 0xc35], al
mov dword [esp + 0xc44], ecx
mov dword [esp + 0xc48], edx
je 0x470296
mov eax, dword [esp + 0x828]
cmp eax, 0xffff
je 0x470263
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47028a
cmp byte [ebp + 0xc2], bl
jne 0x47025c
mov eax, dword [esp + 0x828]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x47025c
mov ecx, dword [esp + 0x828]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x47028a
mov eax, dword [esp + 0x828]
cmp dword [esp + 0xc5c], eax
je 0x47027c
lea esi, [esp + 0xc]
mov dword [esp + 0xc5c], eax
call fcn.00471190
push ebx
lea ecx, [esp + 0x10]
call fcn.00471250
test eax, eax
jne 0x4702a6
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8e5c
ret
lea edx, [esp + 0xc]
push edx
push 0x470340
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc3c]
cmp byte [esp + 0x8e78], bl
je 0x4702c0
cmp eax, ebx
je 0x4702c0
mov dword [ebp + 0xa0], eax
pop esi
pop ebp
pop ebx
add esp, 0x8e5c
ret
Function at 0x471190
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov ecx, dword [esi + 0xc50]
test ecx, ecx
je 0x471247
mov eax, dword [esi]
test eax, eax
je 0x471247
push edi
test al, 1
jne 0x4711b9
mov eax, dword [esi + 0x80c]
cmp byte [eax], 0
je 0x4711d2
push 0x7fff
lea edi, [esi + 0xc58]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x4711d2
mov byte [edi], al
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x4711ed
mov edx, dword [esi + 0xc50]
lea ecx, [esi + 0xc54]
push ecx
push edx
call edi
test byte [esi], 0x20
je 0x471228
mov ecx, dword [esi + 0xc50]
lea eax, [esp + 4]
push eax
push ecx
call edi
test eax, eax
je 0x471228
movzx edx, byte [esi + 0xc28]
mov ecx, dword [esp + 4]
push edx
lea eax, [esi + 0x8d58]
call fcn.0044b3e0
add esp, 4
test eax, eax
jne 0x471228
mov byte [esi + 0x8d58], al
test byte [esi], 8
pop edi
je 0x471247
mov ecx, dword [esi + 0xc50]
push 0x101
lea eax, [esi + 0x8c57]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClassNameA]
pop ecx
ret

Function at 0x4717a0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e5c
call fcn.0048af20
mov eax, dword [esp + 0x8e60]
mov eax, dword [eax + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x47184d
mov dword [esp + 0xc44], eax
lea eax, [esp + 4]
push eax
push 0x471ec0
mov dword [esp + 0xc], ebx
mov dword [esp + 0x818], 0x4927e9
mov byte [esp + 0xc35], bl
mov dword [esp + 0xc38], ebx
mov dword [esp + 0xc3c], ebx
mov dword [esp + 0xc40], ebx
mov dword [esp + 0xc44], ebx
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc58], ebx
mov dword [esp + 0xc5c], ebx
mov byte [esp + 0xc50], cl
mov dword [esp + 0xc54], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0xc34], ebx
je 0x47184d
mov ecx, dword [0x49f430]
mov eax, dword [ecx + 0x54]
cmp eax, 0xffffffff
jle 0x47184d
push 1
push eax
call fcn.004012a0
add esp, 8
mov eax, 1
pop ebx
add esp, 0x8e5c
ret 4
Function at 0x471860
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x47187c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x49f430]
push eax
push esi
mov ecx, edi
call fcn.00471d00
cmp byte [edi], 0
mov dword [esp + 0x10], eax
je 0x4718b3
test eax, eax
jne 0x4718b7
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.00471970
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x471936
test esi, esi
je 0x471936
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push 1
push 0x8000012f
mov ebx, eax
call fcn.004012a0
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x471915
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x471915
push 1
push 0x8000012f
call fcn.004012a0
add esp, 8
push esi
call edi
test eax, eax
jne 0x4718f0
mov edx, dword [0x49f430]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x47192e
push 1
push eax
call fcn.004012a0
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x471950
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.00471970
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00471ad0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x471ad0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e68
call fcn.0048af20
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x471c50
xor cl, cl
mov eax, edi
call fcn.00471c70
test eax, eax
jne 0x471b05
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
mov eax, dword [0x49f430]
push eax
push ebp
mov ecx, edi
call fcn.00471d00
test eax, eax
je 0x471b28
xor eax, eax
mov dword [0x4a4c38], eax
jmp 0x471b2d
mov eax, dword [0x4a4c38]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x824], 0x4927e9
mov dword [esp + 0xc44], ebx
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc4c], ebx
mov dword [esp + 0xc64], ebx
mov dword [esp + 0xc68], ebx
cmp byte [esp + 0x8e7c], bl
je 0x471b73
mov byte [esp + 0xc41], bl
cmp eax, ebx
je 0x471b7b
mov byte [esp + 0xc41], 1
mov ecx, dword [0x4a4c34]
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0xc54], eax
lea eax, [esp + 0x18]
push eax
push 0x471dd0
mov dword [esp + 0xc58], ecx
mov dword [esp + 0xc60], edx
call esi
mov eax, dword [esp + 0xc48]
cmp eax, ebx
je 0x471c28
lea ecx, [esp + 0x10]
push ecx
push 0x470b40
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x471be5
mov edx, dword [esp + 0xc48]
call fcn.004715c0
mov dword [esp + 0xc48], esi
mov eax, dword [esp + 0xc48]
call fcn.0046fbe0
mov edx, dword [esp + 0xc48]
call fcn.004715c0
mov edx, dword [0x49f430]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x471c50
push 1
push eax
call fcn.004012a0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
mov eax, dword [0x4a4c38]
cmp eax, ebx
je 0x471c50
cmp eax, 1
setg al
mov dword [0x4a4c38], ebx
cmp al, bl
je 0x471c50
mov edx, ebp
call fcn.004715c0
push ebx
mov ecx, edi
call fcn.00471ad0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8e68
ret 4
Function at 0x485844
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49ed90]
jne 0x48584e
repz ret
jmp fcn.0048a167

Function at 0x4881b4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x49ed90]
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.00482862
and dword [ebp - 0x14], 0
cmp dword [0x4a1474], 0
mov dword [ebp - 0x18], eax
jne 0x488267
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x48830f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x48830f
mov esi, dword [fcn.0047e670]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4a1474], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a1478], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a147c], eax
call edi
push eax
call esi
mov dword [0x4a1484], eax
test eax, eax
je 0x488267
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4a1480], eax
mov eax, dword [0x4a1480]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.0047e674]
cmp eax, ecx
je 0x4882c0
cmp dword [0x4a1484], ecx
je 0x4882c0
push eax
call esi
push dword [0x4a1484]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4882c0
test ebx, ebx
je 0x4882c0
call edi
test eax, eax
je 0x4882b7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4882b7
test byte [ebp - 8], 1
jne 0x4882c0
or dword [ebp + 0x10], 0x200000
jmp 0x4882f3
mov eax, dword [0x4a1478]
cmp eax, dword [ebp - 0x18]
je 0x4882f3
push eax
call esi
test eax, eax
je 0x4882f3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4882f3
mov eax, dword [0x4a147c]
cmp eax, dword [ebp - 0x18]
je 0x4882f3
push eax
call esi
test eax, eax
je 0x4882f3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a1474]
call esi
test eax, eax
je 0x48830f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x488311
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00485844
leave
ret

Function at 0x40893a
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop edx
add ebx, 0x3735ed6c
call fcn.00408960
or eax, eax
xor dword [esi], edx
inc esi
cmp esi, ecx
jne fcn.0040893a
sub eax, 1
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401e86
Capabilities:
Terminate process

Disassembly:
mov eax, 0xc4830040
or byte [edi + edi*8 + 0x40c17015], ah
add byte [esi + 0x50], bl
nop
nop
nop
nop
nop
nop
push ds
nop
nop
invalid
nop
Function at 0x401176
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
lea eax, [esp + 0x18]
mov edi, ecx
push eax
call fcn.004011f6
xor ebp, ebp
pop ecx
pop ecx
mov ebx, dword [eax]
mov dword [eax], ebp
cmp dword [esp + 0x14], ebp
je 0x4011a5
push 4
push dword [esp + 0x18]
call fcn.004023da
pop ecx
pop ecx
lea esi, [edi + 4]
push esi
push ebp
push ebx
push 0x40115a
push ebp
push ebp
call fcn.00409307
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x4011c7
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 6
mov dword [esi], ebp
call fcn.00402107
int3

Function at 0x4016ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor ebp, ebp
push esi
mov esi, ebp
cmp dword [esp + 0x10], esi
jbe 0x4017da
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
push edi
mov edi, dword [esp + 0x14]
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xb3
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xae
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x19
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xaf
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xef
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x75
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xbf
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x44
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x56
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x43
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x19
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xd5
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x53
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x12
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x5c
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xc
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xb0
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x26
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x6e
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0x2c
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x52
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x7f
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xd
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xcb
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xa2
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x8d
push ebp
push ebp
push ebp
call ebx
xor byte [esi + edi], 0xa6
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0xc9
push ebp
push ebp
push ebp
call ebx
add byte [esi + edi], 0x57
inc esi
cmp esi, dword [esp + 0x18]
jb 0x4016c8
pop edi
pop ebx
pop esi
pop ebp
ret