joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4855b0
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ecx
cmp byte [esp + 8], 0
push ebx
push ebp
push esi
push edi
mov ebx, edx
mov esi, ecx
je 0x48561b
lea eax, [esp + 0x10]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x485628
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x485628
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x485628
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x485628
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
test ebx, ebx
cmovns edi, ebx
test edi, edi
je 0x485681
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edx, 1
mov dword [esp + 0x18], eax
mov ecx, 0x8000012f
call fcn.00401600
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push esi
call ebp
test eax, eax
je 0x485681
add edi, dword [esp + 0x18]
nop
call ebx
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x485681
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401600
push esi
call ebp
test eax, eax
jne 0x485660
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4872e0
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1850]
test ecx, ecx
je 0x48739b
mov eax, dword [esi]
test eax, eax
je 0x48739b
push edi
test al, 1
jne 0x48730d
mov eax, dword [esi + 0x100c]
cmp word [eax], 0
je 0x487327
push 0x7fff
lea edi, [esi + 0x1858]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x487327
mov word [edi], ax
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x487341
lea eax, [esi + 0x1854]
push eax
push dword [esi + 0x1850]
call edi
test byte [esi], 0x20
je 0x48737d
lea eax, [esp + 8]
push eax
push dword [esi + 0x1850]
call edi
test eax, eax
je 0x48737d
movzx eax, byte [esi + 0x1828]
lea edx, [esi + 0x11a58]
push eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.004291cb
add esp, 8
test eax, eax
jne 0x48737d
mov word [esi + 0x11a58], ax
test byte [esi], 8
pop edi
je 0x48739b
push 0x101
lea eax, [esi + 0x11856]
push eax
push dword [esi + 0x1850]
call dword [sym.imp.USER32.dll_GetClassNameW]
pop esi
pop ecx
ret

Function at 0x487820
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x4e8e34], 0
mov eax, dword [0x4e4798]
mov byte [eax + 0x53], 1
je 0x4878d8
push ebx
mov bl, byte [0x4e8f40]
mov al, bl
and al, 0xc0
movzx ecx, al
neg ecx
push esi
sbb ecx, ecx
and ecx, 8
mov edx, ecx
or edx, 1
test bl, 0xc
cmove edx, ecx
mov ecx, edx
or ecx, 4
test bl, 0x30
cmove ecx, edx
mov esi, ecx
or esi, 2
test bl, 3
cmove esi, ecx
mov edx, esi
mov ecx, esi
and dl, 2
neg dl
sbb dl, dl
and dl, 3
mov al, dl
or al, 0x30
and cl, 4
movzx ebx, al
movzx eax, dl
cmove ebx, eax
or bl, 0xcc
not bl
and bl, byte [0x4e8e3e]
je 0x4878d6
cmp esi, 8
jne 0x4878bf
movzx eax, word [0x4e4d14]
lea ecx, [esi - 6]
mov dl, byte [0x4e4c2e]
push 0xffc3d44d
push 0
push 0
push eax
call fcn.00419c40
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
xor cl, cl
call fcn.0041bc50
add esp, 0x10
pop esi
pop ebx
push 0x4bf
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test eax, eax
je 0x4878f7
mov edx, 1
or ecx, 0xffffffff
jmp fcn.00401600
ret
Function at 0x487d10
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c64
call fcn.004b5860
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0
je 0x487f1c
mov byte [edi], 1
cmp dword [0x4e9db8], edi
je 0x487d4a
mov dword [0x4e9db8], edi
mov dword [0x4e9dc0], 0
cmp dword [0x4e9dbc], 0
jne 0x487d6a
mov ecx, 0x7d0
call fcn.0047ddc0
test eax, eax
je 0x487f27
mov dword [0x4e9dbc], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x4e4798]
mov esi, eax
add ecx, 0x58
push ecx
push esi
mov ecx, edi
call fcn.00488110
mov ecx, dword [0x4e9dc0]
test eax, eax
setne bh
xor edx, edx
test eax, eax
mov dword [esp + 0x183c], edx
mov dword [esp + 0x1840], edx
cmove ecx, edx
mov dword [esp + 0x1844], edx
mov dword [0x4e9dc0], ecx
mov dword [esp + 0x1850], edx
mov dword [esp + 0x185c], edx
mov dword [esp + 0x1860], edx
cmp byte [ebp + 8], dl
je 0x487dd6
mov byte [esp + 0x1839], dl
test bh, bh
je 0x487dde
mov byte [esp + 0x1839], 1
mov eax, dword [0x4e4798]
mov edx, dword [0x4e9dbc]
mov dword [esp + 0x1848], edx
mov dword [esp + 0x184c], ecx
mov dword [esp + 0x101c], 0x4cee20
mov dword [esp + 0x1020], 0
mov dword [esp + 0x1024], 0x4cee20
mov dword [esp + 0x1028], 0x4cee20
test eax, eax
je 0x487e30
add eax, 0x58
mov dword [esp + 0x14], eax
jmp 0x487e38
mov dword [esp + 0x14], 0
test ecx, ecx
mov dword [esp + 0x1034], edi
mov edi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0x10], 0x10
setg bl
test bh, bh
je 0x487e7c
xor eax, eax
test ecx, ecx
jle 0x487e6a
nop dword [eax]
cmp dword [edx + eax*4], esi
je 0x487e7c
inc eax
cmp eax, ecx
jl 0x487e60
cmp ecx, 0x1f4
jge 0x487e7c
mov dword [edx + ecx*4], esi
inc ecx
mov dword [0x4e9dc0], ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x184c], ecx
push eax
push 0x486350
call edi
mov ecx, dword [esp + 0x1840]
test ecx, ecx
jne 0x487eb2
test bl, bl
je 0x487f1c
mov edx, dword [0x4e9dbc]
xor bl, bl
mov dword [0x4e9dc0], ecx
jmp 0x487e52
call fcn.00485260
mov ecx, dword [0x4e9dc0]
xor eax, eax
mov edx, dword [esp + 0x1840]
mov esi, dword [0x4e9dbc]
test ecx, ecx
jle 0x487eda
cmp dword [esi + eax*4], edx
je 0x487ef3
inc eax
cmp eax, ecx
jl 0x487ed0
cmp ecx, 0x1f4
jge 0x487ef3
mov dword [esi + ecx*4], edx
inc ecx
mov edx, dword [esp + 0x1840]
mov dword [0x4e9dc0], ecx
mov eax, dword [0x4e4798]
mov ecx, dword [eax + 0x64]
cmp ecx, 0xffffffff
jle 0x487f11
mov edx, 1
call fcn.00401600
mov edx, dword [esp + 0x1840]
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0040dd40
int3
Function at 0x487f30
Capabilities:
Enumerate gui resources
Find taskbar

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c64
call fcn.004b5860
push ebx
push esi
mov esi, ecx
push edi
mov byte [esi], 0
cmp dword [0x4e9db8], esi
je 0x487f60
mov dword [0x4e9db8], esi
mov dword [0x4e9dc0], 0
cmp dword [0x4e9dbc], 0
jne 0x487f80
mov ecx, 0x7d0
call fcn.0047ddc0
test eax, eax
je 0x488109
mov dword [0x4e9dbc], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
push 4
push edi
call ebx
test eax, eax
je 0x487fa2
push 4
push eax
mov edi, eax
call ebx
test eax, eax
jne 0x487f97
mov eax, dword [0x4e4798]
mov ecx, esi
add eax, 0x58
push eax
push edi
call fcn.00488110
mov ecx, dword [0x4e9dc0]
xor edx, edx
test eax, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x101c], 0x4cee20
cmovne ecx, edx
mov dword [esp + 0x183c], edx
mov dword [0x4e9dc0], ecx
mov dword [esp + 0x1840], edx
mov dword [esp + 0x1844], edx
mov dword [esp + 0x185c], edx
mov dword [esp + 0x1860], edx
cmp byte [ebp + 8], dl
je 0x488008
mov byte [esp + 0x1839], dl
test ecx, ecx
je 0x488010
mov byte [esp + 0x1839], 1
mov eax, dword [0x4e9dbc]
mov dword [esp + 0x1848], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x1850], eax
lea eax, [esp + 0x10]
push eax
push 0x4881e0
mov dword [esp + 0x1854], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x1840]
test eax, eax
je 0x4880ac
push eax
call dword [sym.imp.USER32.dll_GetLastActivePopup]
mov ecx, eax
call fcn.00485260
mov ecx, dword [0x4e9dc0]
xor eax, eax
mov edx, dword [esp + 0x1840]
mov esi, dword [0x4e9dbc]
test ecx, ecx
jle 0x48807a
nop
cmp dword [esi + eax*4], edx
je 0x48808c
inc eax
cmp eax, ecx
jl 0x488070
cmp ecx, 0x1f4
jge 0x48808c
mov dword [esi + ecx*4], edx
inc ecx
mov dword [0x4e9dc0], ecx
mov eax, dword [0x4e4798]
mov ecx, dword [eax + 0x64]
cmp ecx, 0xffffffff
jle 0x488100
mov edx, 1
call fcn.00401600
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4e9dc0]
test eax, eax
je 0x4880ec
cmp eax, 1
mov dword [0x4e9dc0], 0
setg al
test al, al
je 0x488100
mov eax, dword [0x4e9dbc]
mov ecx, esi
push 0
mov dword [0x4e9dc0], 1
mov dword [eax], edi
call fcn.00487f30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, eax
call fcn.00485260
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0040dd40
int3
Function at 0x49c16f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49c1ae
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49c1ae
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49c1ae
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x49c1ae
cmp dword [ecx + 0x74], 0xe
jbe 0x49c1ae
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4aca77
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bb6cc
push 0x4bb6c4
push str.FlsAlloc
push 0x1e
call fcn.004ac9b4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4acaab
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b87a4]
call esi
jmp 0x4acab1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4acaf5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bb6dc
push 0x4bb6d4
push str.FlsGetValue
push 0x20
call fcn.004ac9b4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4acb2c
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b87a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4ae623
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4e2014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4ae66e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004ae7c2
test al, al
jne 0x4ae668
sub edx, 2
cmp edx, edi
jne 0x4ae64e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4ae690
lea eax, [edi + 2]
cmp edx, eax
je 0x4ae690
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004ae56f
add esp, 0x10
jmp 0x4ae78a
push esi
lea ecx, [ebp - 0x255]
call fcn.004ae7c2
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ae6d3
push dword [ebp - 0x25c]
jmp 0x4ae680
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4ae710
cmp word [ebp - 0x226], 0
je 0x4ae731
cmp word [ebp - 0x226], ax
jne 0x4ae710
cmp word [ebp - 0x224], 0
je 0x4ae731
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004ae56f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4ae77d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4ae6ea
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4ae765
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4ae78a
push 0x4ae39f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004a9500
add esp, 0x10
jmp 0x4ae75a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049c3c3
leave
ret
Function at 0x4b5490
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b54bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b54bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x5146b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb7000]
mov dword [edi + 0xcf740], 0x21f462a4
push edi
jmp 0x5146da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5146e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5146d0
mov eax, 1
add ebx, ebx
jne 0x5146f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x514704
jne 0x514723
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x514723
dec eax
add ebx, ebx
jne 0x514710
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5146e8
add ebx, ebx
jne 0x51471f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x514775
xor ecx, ecx
sub eax, 3
jb 0x51473b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5147aa
sar eax, 1
mov ebp, eax
jmp 0x514746
add ebx, ebx
jne 0x514746
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x514714
inc ecx
add ebx, ebx
jne 0x514754
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x514714
add ebx, ebx
jne 0x514761
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x514756
jne 0x514772
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x514756
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x514794
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x514786
jmp 0x5146d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x514794
add edi, ecx
jmp 0x5146d6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5147b2
cmp byte [edi], 0x11
jne 0x5147b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5147b7
lea edi, [esi + 0x10d000]
mov eax, dword [edi]
or eax, eax
je 0x51482f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1435d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x143754]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5147e4
mov ecx, edi
jns 0x514813
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x143758]
or eax, eax
je 0x514829
mov dword [ebx], eax
add ebx, 4
jmp 0x514801
call dword [esi + 0x143768]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x514860
cmp al, 0xef
ja 0x514853
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x514835
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x514842
mov ebp, dword [esi + 0x14375c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x514894
sub esp, 0xffffff80
jmp 0x420577
Function at 0x4179a6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b2c0]
jne 0x4179b0
repz ret
jmp fcn.0041c8ed

Function at 0x426817
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041caec
and dword [ebp - 4], 0
cmp dword [0x453e5c], 0
mov ebx, eax
jne 0x4268c8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x426979
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x426979
push eax
call fcn.0041ca7a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x453e5c], eax
call esi
push eax
call fcn.0041ca7a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x453e60], eax
call esi
push eax
call fcn.0041ca7a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x453e64], eax
call esi
push eax
call fcn.0041ca7a
pop ecx
mov dword [0x453e6c], eax
test eax, eax
je 0x4268c8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041ca7a
pop ecx
mov dword [0x453e68], eax
mov eax, dword [0x453e68]
cmp eax, ebx
je 0x426920
cmp dword [0x453e6c], ebx
je 0x426920
push eax
call fcn.0041caf5
push dword [0x453e6c]
mov esi, eax
call fcn.0041caf5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x426920
test edi, edi
je 0x426920
call esi
test eax, eax
je 0x426917
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x426917
test byte [ebp - 0xc], 1
jne 0x426920
or dword [ebp + 0x10], 0x200000
jmp 0x426959
mov eax, dword [0x453e60]
cmp eax, ebx
je 0x426959
push eax
call fcn.0041caf5
pop ecx
test eax, eax
je 0x426959
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x426959
mov eax, dword [0x453e64]
cmp eax, ebx
je 0x426959
push eax
call fcn.0041caf5
pop ecx
test eax, eax
je 0x426959
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x453e5c]
call fcn.0041caf5
pop ecx
test eax, eax
je 0x426979
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42697b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42cd5b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x42cd6a
lea eax, [ebp + 0xc]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42cd80
test al, 0x10
je 0x42cd80
mov bl, 1
jmp 0x42cd82
xor bl, bl
push 0
push 1
lea esi, [ebp + 8]
call fcn.00401255
pop esi
mov al, bl
pop ebx
pop ebp
ret

Function at 0x42cd94
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x42cda3
lea eax, [ebp + 0xc]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42cdb9
test al, 0x10
jne 0x42cdb9
mov bl, 1
jmp 0x42cdbb
xor bl, bl
push 0
push 1
lea esi, [ebp + 8]
call fcn.00401255
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x42ce70
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x42ce7f
lea eax, [ebp + 0xc]
push esi
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
push 1
lea esi, [ebp + 8]
call fcn.00401255
pop esi
pop ebp
ret

Function at 0x42d67b
Capabilities:
Accept command line arguments
Create process on windows
Terminate process

Disassembly:
push 0x94
mov eax, 0x4359b5
call fcn.004195d6
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea esi, [ebp - 0x2c]
call fcn.00401013
mov esi, str.tear
xor ebx, ebx
push esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00401740
pop ecx
test al, al
je 0x42d6c2
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.00401255
call fcn.00419659
ret
push 0x44
lea eax, [ebp - 0xa0]
push ebx
push eax
call fcn.0041ca00
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [ebp - 0x58]
stosd dword es:[edi], eax
call fcn.0042d1ab
cmp dword [eax + 0x18], 8
jb 0x42d6f0
mov eax, dword [eax + 4]
jmp 0x42d6f3
add eax, 4
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0xa0]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push ebx
push 1
lea esi, [ebp - 0x58]
call fcn.00401255
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x42d7ec
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push 0x28
mov eax, 0x435ba6
call fcn.004195d6
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
xor edi, edi
push edi
push 1
push edi
push edi
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], edi
call esi
test eax, eax
jne 0x42d830
push 8
push 1
push edi
push edi
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
jne 0x42d830
push 0x43cf78
mov ecx, ebx
call fcn.00404de1
jmp 0x42d895
push 0x10
call fcn.0041677e
pop ecx
mov esi, eax
push esi
push 0x10
push dword [ebp - 0x30]
mov dword [ebp - 0x34], esi
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x42d860
push esi
call fcn.00417b9f
pop ecx
push edi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x42d822
push 0x10
push esi
lea esi, [ebp - 0x2c]
call fcn.0041511f
push dword [ebp - 0x34]
mov dword [ebp - 4], edi
call fcn.00417b9f
pop ecx
push edi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
push eax
mov ecx, ebx
call fcn.004050a2
push edi
push 1
mov ecx, esi
call fcn.0040515a
mov eax, ebx
call fcn.00419659
ret
Function at 0x42d89d
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x40
mov eax, 0x435bdb
call fcn.004195d6
xor edi, edi
mov dword [ebp - 0x48], edi
push edi
push 1
push edi
push edi
lea eax, [ebp - 0x40]
mov dword [ebp - 4], edi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push eax
call esi
test eax, eax
jne 0x42d8e7
push 8
push 1
push edi
push edi
lea eax, [ebp - 0x40]
push eax
call esi
test eax, eax
jne 0x42d8e7
push 0x43cf78
mov ecx, ebx
call fcn.00404de1
jmp 0x42d99e
lea eax, [ebp - 0x44]
push eax
push edi
push edi
push 0x8003
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x42d90b
push edi
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x42d8d6
mov eax, dword [ebp + 0xc]
push 0x10
pop esi
cmp dword [ebp + 0x20], esi
jae 0x42d919
lea eax, [ebp + 0xc]
push edi
push dword [ebp + 0x1c]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x42d936
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x42d8ff
push edi
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x20]
push eax
push 2
push dword [ebp - 0x44]
mov dword [ebp - 0x48], esi
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x42d92b
push dword [ebp - 0x44]
cmp dword [ebp - 0x48], esi
jne 0x42d92e
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
lea eax, [ebp - 0x20]
push eax
lea esi, [ebp - 0x3c]
call fcn.0041511f
sub esp, 0x1c
mov eax, esi
mov ecx, esp
mov dword [ebp - 0x4c], esp
push eax
mov byte [ebp - 4], 1
call fcn.004050a2
mov ecx, ebx
call fcn.0042d550
add esp, 0x1c
push edi
push 1
mov ecx, esi
call fcn.0040515a
push edi
push 1
lea ecx, [ebp + 8]
call fcn.0040515a
mov eax, ebx
call fcn.00419659
ret

Function at 0x4317c5
Capabilities:
Terminate process

Disassembly:
push 8
mov eax, 0x436a2b
call fcn.0041956d
and dword [ebp - 4], 0
push 0x10
push 0x43fbac
push 0x43fbbc
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
sub esp, 0x1c
lea eax, [ebp + 8]
mov esi, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.00401035
call fcn.00431781
add esp, 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]