joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1b40
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x410
push edi
push 0x400
lea eax, [esp + 0x18]
mov dword [esp + 8], edx
push 0
push eax
mov edi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4a1cdb
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x8004
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4a1cdb
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x4a1be2
cmp dword [ecx], 0
je 0x4a1be2
push esi
xor edx, edx
mov eax, ecx
mov esi, 0x4c1e7c
nop dword [eax]
cmp ecx, 0x4c9164
jne 0x4a1bcc
mov eax, esi
jmp 0x4a1bce
mov eax, dword [eax]
mov al, byte [eax]
add esi, 5
mov byte [esp + edx + 0x18], al
inc edx
cmp dword [ecx + edx*4], 0
lea eax, [ecx + edx*4]
jne 0x4a1bc0
pop esi
lea ecx, [esp + 0x14]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a1bf0
push 0
sub ecx, edx
lea eax, [esp + 0x18]
push ecx
push eax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4a1cdb
push 0x400
lea eax, [esp + 0x18]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x42c]
add esp, 0xc
mov edx, ecx
shl edx, 0x10
cmp ecx, 0x80
jne 0x4a1c42
mov eax, 0x660e
jmp 0x4a1c52
xor eax, eax
cmp ecx, 0xc0
setne al
add eax, 0x660f
lea ecx, [esp + 0xc]
push ecx
push edx
push dword [esp + 0x10]
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x4a1cdb
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x4a1cdb
cmp byte [esp + 0x41c], 0
je 0x4a1ca3
mov eax, dword [esp + 4]
add eax, 0x10
push eax
lea eax, [esp + 8]
push eax
push edi
push 0
push 1
push 0
push dword [esp + 0x24]
call dword [0x4ca780]
jmp 0x4a1cb9
lea eax, [esp + 4]
push eax
push edi
push 0
push 1
push 0
push dword [esp + 0x20]
call dword [0x4ca77c]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 4]
pop edi
add esp, 0x410
ret
xor eax, eax
pop edi
add esp, 0x410
ret
Function at 0x4a2be0
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, 0x4cc82c
push esi
mov esi, edx
call fcn.004059c0
test eax, eax
jne 0x4a2c11
push 0x4b6ba9
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4cc848
call fcn.0043ee10
pop esi
pop ebx
add esp, 8
ret
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [ebx + esi]
lea esi, [ebx + 4]
mov dword [esp + 0x14], eax
cmp esi, eax
ja 0x4a2c99
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x4a2c99
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x4a2c99
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x4a2c99
xor eax, eax
test edi, edi
sete al
add eax, edi
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x4a2d4d
test edi, edi
je 0x4a2c83
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4a2ce8
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, esi
push ebp
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [esp + 0x14]
lea esi, [ebx + 4]
cmp esi, eax
jbe 0x4a2c27
cmp dword [0x4cc844], 0
je 0x4a2cdb
cmp dword [0x4cc834], 0
je 0x4a2cc1
push dword [0x4cc82c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4cc834], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4cc844], 0
mov dword [0x4cc82c], 0
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x4cc844], 0
je 0x4a2d31
cmp dword [0x4cc834], 0
je 0x4a2d17
push dword [0x4cc82c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4cc834], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4cc844], 0
mov dword [0x4cc82c], 0
push 0x4b6ba9
push 0x4b6ec8
mov ecx, 0x4cc848
call fcn.0043ee10
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
cmp dword [0x4cc844], 0
je 0x4a2d8f
cmp dword [0x4cc834], 0
je 0x4a2d75
push dword [0x4cc82c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4cc834], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4cc844], 0
mov dword [0x4cc82c], 0
push 0x4b6ba9
push str.Out_of_memory.
mov ecx, 0x4cc848
call fcn.0043ee10
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
Function at 0x4a3af0
Capabilities:
Check for foreground window switch
Log keystrokes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, ecx
push esi
push edi
mov edi, edx
mov al, byte [edi]
cmp al, 0x41
je 0x4a3b06
cmp al, 0x61
jne 0x4a3b6a
cmp byte [edi + 1], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jne 0x4a3b72
cmp byte [ecx], 0
jne 0x4a3b72
cmp byte [eax], 0
jne 0x4a3b72
cmp byte [ebp], 0
jne 0x4a3b72
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4a3b6a
cmp byte [ebx + 0xca], 0
jne 0x4a3b4f
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a3b6a
mov ecx, esi
call fcn.004a4fb0
test al, al
jne 0x4a3b6a
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4a3b63
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
test dl, dl
jne 0x4a3b94
cmp byte [edi], dl
jne 0x4a3b94
cmp byte [ecx], dl
jne 0x4a3b94
cmp byte [eax], dl
jne 0x4a3b94
cmp byte [ebp], dl
jne 0x4a3b94
mov ecx, ebx
call fcn.004a4390
jmp 0x4a3bae
push dword [esp + 0x28]
push dword [esp + 0x28]
push 0
push edx
push ebp
push eax
push ecx
mov edx, edi
mov ecx, ebx
call fcn.004a41c0
add esp, 0x1c
test eax, eax
jne 0x4a3bb7
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov ecx, eax
pop ebx
jmp fcn.004a3bd0
Function at 0x4a3f50
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ecx
cmp byte [esp + 8], 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
je 0x4a3fba
lea eax, [esp + 0xc]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x4a3fc7
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a3fc7
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4a3fc7
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a3fc7
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
xor edi, edi
test ebx, ebx
cmovns edi, ebx
test edi, edi
je 0x4a4033
push ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword fs:[0x24]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x18], eax
nop word [eax + eax]
cmp dword [0x4cc810], ebx
jne 0x4a4009
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401730
jmp 0x4a400d
push 0xa
call ebp
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a402b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x18]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jg 0x4a3ff0
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
Function at 0x4a41c0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e64
call fcn.004b4520
push ebx
mov ebx, dword [esp + 0x8e6c]
push ebp
mov ebp, edx
mov edx, dword [esp + 0x8e74]
push esi
mov esi, dword [esp + 0x8e7c]
push edi
mov al, byte [ebp]
mov edi, ecx
cmp al, 0x41
je 0x4a41f2
cmp al, 0x61
jne 0x4a4255
cmp byte [ebp + 1], 0
jne 0x4a4255
cmp byte [ebx], 0
jne 0x4a4255
cmp byte [edx], 0
jne 0x4a4255
cmp byte [esi], 0
jne 0x4a4255
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4a4234
cmp byte [edi + 0xca], 0
jne 0x4a4234
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a4232
mov ecx, esi
call fcn.004a4fb0
test al, al
je 0x4a4234
xor esi, esi
cmp byte [esp + 0x8e88], 0
je 0x4a4248
test esi, esi
je 0x4a4248
mov dword [edi + 0xa4], esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x8e64
ret
test al, al
jne 0x4a4275
cmp byte [ebx], al
jne 0x4a4275
cmp byte [edx], al
jne 0x4a4275
cmp byte [esi], al
jne 0x4a4275
call fcn.004a4390
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e64
ret
lea ecx, [esp + 0x10]
call fcn.00440b60
push esi
push edx
push ebx
push ebp
push edi
call fcn.004a5100
test eax, eax
je 0x4a434a
test byte [esp + 0x10], 2
mov al, byte [esp + 0x8e84]
mov byte [esp + 0xc3d], al
mov eax, dword [esp + 0x8e8c]
mov dword [esp + 0xc4c], eax
mov eax, dword [esp + 0x8e90]
mov dword [esp + 0xc50], eax
je 0x4a4357
mov esi, dword [esp + 0x82c]
cmp esi, 0xffff
je 0x4a4322
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a434a
cmp byte [edi + 0xca], 0
mov esi, dword [esp + 0x82c]
jne 0x4a4322
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a4305
mov ecx, esi
call fcn.004a4fb0
test al, al
je 0x4a431b
push 0xfffffffffffffff0
push dword [esp + 0x830]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x4a434a
mov esi, dword [esp + 0x82c]
cmp dword [esp + 0xc64], esi
je 0x4a433b
lea ecx, [esp + 0x10]
mov dword [esp + 0xc64], esi
call fcn.004a5570
push 0
lea ecx, [esp + 0x14]
call fcn.004a5650
test eax, eax
jne 0x4a4367
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e64
ret
lea eax, [esp + 0x10]
push eax
push 0x4a4430
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [esp + 0x8e88], 0
mov eax, dword [esp + 0xc44]
je 0x4a434c
test eax, eax
je 0x4a434c
mov dword [edi + 0xa4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e64
ret
Function at 0x4a5570
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc54]
test ecx, ecx
je 0x4a5646
mov eax, dword [esi]
test eax, eax
je 0x4a5646
push edi
test al, 1
jne 0x4a559c
mov eax, dword [esi + 0x80c]
cmp byte [eax], 0
je 0x4a55b5
push 0x7fff
lea edi, [esi + 0xc60]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x4a55b5
mov byte [edi], al
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test al, 4
je 0x4a55d2
lea eax, [esi + 0xc5c]
push eax
push dword [esi + 0xc54]
call edi
mov eax, dword [esi]
test al, 0x20
je 0x4a560c
lea eax, [esp + 8]
push eax
push dword [esi + 0xc54]
call edi
test eax, eax
je 0x4a560c
movzx eax, byte [esi + 0xc2c]
lea edx, [esi + 0x8d60]
push eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.004697b0
add esp, 8
test eax, eax
jne 0x4a560c
mov byte [esi + 0x8d60], al
mov eax, dword [esi]
pop edi
test al, 8
je 0x4a562d
push 0x101
lea eax, [esi + 0x8c5f]
push eax
push dword [esi + 0xc54]
call dword [sym.imp.USER32.dll_GetClassNameA]
mov eax, dword [esi]
test eax, 0x100
je 0x4a5646
push dword [esi + 0xc54]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esi + 0xc58], eax
pop esi
pop ecx
ret

Function at 0x4a60f0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e64
call fcn.004b4520
mov edx, dword [ecx + 8]
test edx, edx
je 0x4a6190
lea ecx, [esp]
call fcn.00440b60
mov al, byte [esp + 0x8e68]
mov byte [esp + 0xc48], al
mov eax, dword [esp + 0x8e6c]
mov dword [esp + 0xc4c], eax
mov eax, ecx
push eax
push 0x4a68c0
mov dword [esp + 0xc4c], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0xc34], 0
je 0x4a6190
mov eax, dword [0x4c8024]
cmp dword [eax + 0x54], 0xffffffff
jle 0x4a6190
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4cc810], eax
je 0x4a617d
mov eax, dword [0x4c8024]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
add esp, 0x8e64
ret 8
mov ecx, dword [0x4c8024]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.00401730
mov eax, 1
add esp, 0x8e64
ret 8
Function at 0x4a6460
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8e74
call fcn.004b4520
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x4a6650
push 0
call fcn.004a6660
test eax, eax
jne 0x4a6493
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push dword [0x4c8024]
mov ebx, eax
mov ecx, esi
push ebx
call fcn.004a6700
mov edx, dword [0x4cbf98]
xor ecx, ecx
test eax, eax
cmovne edx, ecx
lea ecx, [esp + 0x18]
mov dword [0x4cbf98], edx
call fcn.00440b60
cmp byte [ebp + 8], 0
je 0x4a64d7
mov byte [esp + 0xc45], 0
test edx, edx
je 0x4a64df
mov byte [esp + 0xc45], 1
mov eax, dword [0x4cbf94]
mov edi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0xc54], eax
mov eax, dword [esi + 8]
mov dword [esp + 0xc5c], eax
lea eax, [esp + 0x18]
push eax
push 0x4a6790
mov dword [esp + 0xc60], edx
call edi
mov eax, dword [esp + 0xc4c]
test eax, eax
je 0x4a6618
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0x4a4ef0
mov dword [esp + 0x1c], 0
call edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4a657b
mov ecx, dword [0x4cbf98]
xor eax, eax
mov edx, dword [esp + 0xc4c]
mov esi, dword [0x4cbf94]
test ecx, ecx
jle 0x4a6560
cmp dword [esi + eax*4], edx
je 0x4a6572
inc eax
cmp eax, ecx
jl 0x4a6556
cmp ecx, 0x1f4
jge 0x4a6572
mov dword [esi + ecx*4], edx
inc ecx
mov dword [0x4cbf98], ecx
mov dword [esp + 0xc4c], edi
jmp 0x4a6582
mov edi, dword [esp + 0xc4c]
mov ecx, edi
call fcn.004a3bd0
mov ecx, dword [0x4cbf98]
xor eax, eax
mov edx, dword [esp + 0xc4c]
mov esi, dword [0x4cbf94]
test ecx, ecx
jle 0x4a65ac
cmp dword [esi + eax*4], edx
je 0x4a65be
inc eax
cmp eax, ecx
jl 0x4a65a2
cmp ecx, 0x1f4
jge 0x4a65be
mov dword [esi + ecx*4], edx
inc ecx
mov dword [0x4cbf98], ecx
mov eax, dword [0x4c8024]
cmp dword [eax + 0x54], 0xffffffff
jle 0x4a6650
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4cc810], eax
je 0x4a65f7
mov eax, dword [0x4c8024]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x4c8024]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.00401730
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4cbf98]
test eax, eax
je 0x4a6650
cmp eax, 1
mov dword [0x4cbf98], 0
setg al
test al, al
je 0x4a6650
mov ecx, dword [0x4cbf94]
push 0
mov dword [0x4cbf98], 1
mov dword [ecx], ebx
mov ecx, esi
call fcn.004a6460
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10011be
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x1002018]
push 0x104
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x174], ecx
push 1
lea ecx, [ebp - 0x174]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ecx
push eax
call fcn.01001149
cmp eax, 1
jl 0x100129e
push ebx
xor ebx, ebx
cmp byte [ebp - 0x160], bl
push esi
lea esi, [ebp - 0x160]
je 0x1001238
cmp byte [esi], 0x3a
je 0x100121b
inc esi
cmp byte [esi], bl
jne 0x100120f
jmp 0x100121e
mov byte [esi], bl
inc esi
cmp byte [esi], bl
je 0x1001238
push 0x10010ac
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100123e
lea esi, [ebp - 0x160]
push 0x29
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x100129c
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x100129c
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x100129c
push ebx
lea eax, [ebp - 0x170]
push eax
call sub.ole32.dll_CoRegisterSurrogateEx
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
call fcn.01001324
leave
ret 0x10
Function at 0x100143c
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10010b8
call fcn.01001640
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1001479
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001479
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001491
cmp eax, 0x20b
je 0x100147e
mov dword [ebp - 0x1c], ebx
jmp 0x10014a5
cmp dword [ecx + 0x84], 0xe
jbe 0x1001479
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x100149f
cmp dword [ecx + 0x74], 0xe
jbe 0x1001479
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002030], 0xffffffff
or dword [0x1002034], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100202c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1002028]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1002038], eax
call fcn.01001636
cmp dword [0x100201c], ebx
jne 0x1001500
push fcn.01001636
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100161f
push 0x1002010
push 0x100200c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002024]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1002020]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1002008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1001596
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100156a
cmp al, 0x22
jne 0x100155c
cmp byte [esi], 0x22
jne 0x1001573
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100157d
cmp al, 0x20
jbe 0x100156f
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x10015a1
movzx eax, word [ebp - 0x50]
jmp 0x10015a4
cmp byte [esi], 0x20
jbe 0x1001573
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001596
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x10015c1
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10015f6
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100167b
ret
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4016d4
mov edi, esi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
mov edx, edi
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
mov ebx, esi
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
mov esi, eax
mov edx, esi
mov ecx, ebx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x16cf7663
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x45705c11
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4e88ba
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x54ad4e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0054a953

Function at 0x54ad59
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0054aad4

Function at 0x551cd7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005514b1

Function at 0x551ce2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005516ec

Function at 0x552175
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00551efc

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x612805
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x1d2047d2
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219