joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f3b0
Capabilities:
Terminate process

Disassembly:
push 8
push 0x5ba2b0
call fcn.0041e7ac
push 8
call fcn.0041dc57
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x6d978c], esi
jne 0x41f3e4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x6d9788], esi
mov al, byte [ebp + 0x10]
mov byte [0x6d9784], al
cmp dword [ebp + 0xc], edi
jne 0x41f42e
cmp dword [0x6db108], edi
je 0x41f41e
mov eax, dword [0x6db104]
sub eax, 4
mov dword [0x6db104], eax
cmp eax, dword [0x6db108]
jb 0x41f41e
mov eax, dword [eax]
cmp eax, edi
je 0x41f3ff
call eax
jmp 0x41f3ff
push 0x5e516c
mov eax, 0x5e5164
call fcn.0041f32e
pop ecx
push 0x5e5174
mov eax, 0x5e5170
call fcn.0041f32e
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41f45f
cmp dword [ebp + 0x10], edi
jne 0x41f46d
mov dword [0x6d978c], esi
push dword [ebp + 8]
call fcn.0041f2ec
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41f46c
push 8
call fcn.0041dba2
pop ecx
ret
call fcn.0041e7e7
ret

Function at 0x41f4b3
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x5e583c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x5e52b0]
je 0x41f4e8
inc eax
cmp eax, 0x13
jb 0x41f4d9
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x5e52b0]
jne 0x41f60e
mov eax, dword [0x6d95e8]
cmp eax, 1
je 0x41f5e6
cmp eax, edx
jne 0x41f518
cmp dword [0x5e5184], 1
je 0x41f5e6
cmp ecx, 0xfc
je 0x41f60e
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41f54e
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00421430
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00420ff0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41f582
mov eax, edi
push eax
call fcn.00420ff0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x5ba6a8
push edi
call fcn.00421530
add esp, 0x10
push edi
call fcn.00420ff0
push dword [esi + 0x5e52b4]
mov ebx, eax
call fcn.00420ff0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004201f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00421430
push edi
push ebx
call fcn.00421440
push 0x5ba688
push ebx
call fcn.00421440
push dword [esi + 0x5e52b4]
push ebx
call fcn.00421440
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00421337
add esp, 0x2c
jmp 0x41f60e
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x5e52b4]
push dword [esi]
call fcn.00420ff0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00421197
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41fa90
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x6d99a4]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x41fad9
call ebp
mov esi, eax
cmp esi, ebx
je 0x41fabf
mov dword [0x6d99a4], 1
jmp 0x41fade
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41fad4
push 2
pop eax
mov dword [0x6d99a4], eax
jmp 0x41fad9
mov eax, dword [0x6d99a4]
cmp eax, 1
jne 0x41fb36
cmp esi, ebx
jne 0x41faf1
call ebp
mov esi, eax
cmp esi, ebx
jne 0x41faf1
xor eax, eax
jmp 0x41fbdd
cmp word [esi], bx
mov eax, esi
je 0x41fb06
inc eax
inc eax
cmp word [eax], bx
jne 0x41faf8
inc eax
inc eax
cmp word [eax], bx
jne 0x41faf8
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0041d810
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x41fb29
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x41fbdd
push ebp
push esi
push edi
call fcn.00421670
add esp, 0xc
jmp 0x41fb1b
cmp eax, 2
je 0x41fb3f
cmp eax, ebx
jne 0x41faea
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x41faea
cmp byte [ebp], bl
mov esi, ebp
je 0x41fb75
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x41faea
push esi
add edi, eax
call fcn.00420ff0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x41fb52
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0041d810
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x41fbee
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x41fbcf
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x41fbe4
push edi
call fcn.00420ff0
push esi
lea edi, [edi + eax + 1]
call fcn.00421654
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x41fb95
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0041d6f8
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x41faea
Function at 0x41fbfa
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x6d99a8]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x41fc3a
call esi
test eax, eax
je 0x41fc1f
mov dword [0x6d99a8], 1
jmp 0x41fc3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41fc36
mov dword [0x6d99a8], 2
jmp 0x41fc48
xor eax, eax
jmp 0x41fc96
cmp eax, 1
jne 0x41fc43
call esi
jmp 0x41fc96
cmp eax, 2
jne 0x41fc36
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x41fc8e
lea eax, [esi + esi]
push eax
call fcn.0041d810
mov ebp, eax
test ebp, ebp
pop ecx
je 0x41fc8e
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x41fc92
push ebp
call fcn.0041d6f8
pop ecx
xor eax, eax
jmp 0x41fc94
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x42077d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4207ab
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4207b2
cmp ebx, dword [eax + 4]
jae 0x4207b2
xor eax, eax
jmp 0x4209a2
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4207c3
xor eax, eax
inc eax
jmp 0x4209a1
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4207d9
cmp ecx, edx
jae 0x42091e
cmp dword [eax + 4], 0
je 0x4207e2
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4207ca
cmp dword [ebp + 8], 0
je 0x420804
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42091e
cmp eax, esi
jae 0x42091e
mov eax, dword [0x6d99c0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x420829
cmp dword [esi*4 + 0x6d99c8], edi
je 0x420922
inc esi
cmp esi, eax
jl 0x420817
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42099e
cmp dword [ebp - 8], 0x1000000
jne 0x42099e
test byte [ebp - 0xc], 0xcc
je 0x4208a7
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42099e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42099e
cmp word [eax + 0x18], 0x10b
jne 0x42099e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42099e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4208a7
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4208a7
test byte [ecx + 0x27], 0x80
jne 0x42091e
push 1
push 0x6d9a08
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4207bb
mov ecx, dword [0x6d99c0]
test ecx, ecx
mov edx, ecx
jle 0x4208db
lea eax, [ecx*4 + 0x6d99c4]
cmp dword [eax], edi
je 0x4208db
dec edx
sub eax, 4
test edx, edx
jg 0x4208cf
test edx, edx
jne 0x42090c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4208e8
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x420900
lea eax, [edx*4 + 0x6d99c8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4208ee
cmp ecx, 0x10
jge 0x42090c
inc ecx
mov dword [0x6d99c0], ecx
push 0
push 0x6d9a08
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4207bb
xor eax, eax
jmp 0x4209a1
test esi, esi
jle 0x4207bb
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x6d9a08
call ebx
test eax, eax
jne 0x4207bb
cmp dword [esi*4 + 0x6d99c8], edi
je 0x420978
mov eax, dword [0x6d99c0]
lea esi, [eax - 1]
test esi, esi
jl 0x420966
cmp dword [esi*4 + 0x6d99c8], edi
je 0x420962
dec esi
jns 0x420956
test esi, esi
jge 0x420976
cmp eax, 0x10
jge 0x420971
inc eax
mov dword [0x6d99c0], eax
lea esi, [eax - 1]
jmp 0x420978
je 0x420990
xor ecx, ecx
test esi, esi
jl 0x420990
lea eax, [ecx*4 + 0x6d99c8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42097e
push 0
push 0x6d9a08
call ebx
jmp 0x4207bb
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420ac5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x5e583c]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x420af6
xor eax, eax
jmp 0x420c7f
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x6db000]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x420b32
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00422298
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x420c0d
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x420c4b
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x420b96
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x420b87
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x420b67
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x420bd6
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x420bdf
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x420b58
jmp 0x420be1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x420c7a
cmp dword [ebp - 0x6c], edi
je 0x420c4b
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x420c40
call fcn.004202c8
mov dword [eax], 9
call fcn.004202d1
mov dword [eax], esi
jmp 0x420c75
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x420c35
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x420be1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x420be1
push dword [ebp - 0x6c]
call fcn.004202da
pop ecx
jmp 0x420c75
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x420c63
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x420c63
xor eax, eax
jmp 0x420c7d
call fcn.004202c8
mov dword [eax], 0x1c
call fcn.004202d1
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x420c7d
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00421197
add ebp, 0x3a0
leave
ret
Function at 0x421337
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x6d9a10], ebx
push esi
push edi
jne 0x4213b7
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4213f2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5bad8c
push edi
call esi
test eax, eax
mov dword [0x6d9a10], eax
je 0x4213f2
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x6d9a14], eax
call esi
cmp dword [0x6d974c], 2
mov dword [0x6d9a18], eax
jne 0x4213b7
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x6d9a20], eax
je 0x4213b7
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x6d9a1c], eax
mov eax, dword [0x6d9a1c]
test eax, eax
je 0x4213fc
call eax
test eax, eax
je 0x4213e3
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x6d9a20]
test eax, eax
je 0x4213e3
test byte [ebp - 8], 1
jne 0x4213fc
cmp dword [0x6d9758], 4
jb 0x4213f6
or byte [ebp + 0x12], 0x20
jmp 0x42141b
xor eax, eax
jmp 0x42142b
or byte [ebp + 0x12], 4
jmp 0x42141b
mov eax, dword [0x6d9a14]
test eax, eax
je 0x42141b
call eax
mov ebx, eax
test ebx, ebx
je 0x42141b
mov eax, dword [0x6d9a18]
test eax, eax
je 0x42141b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x6d9a10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42372e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004201f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4237c9
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x6d974c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4237c9
cmp eax, 1
je 0x4237ea
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4237c9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x423796
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4237c5
xor eax, eax
inc eax
jmp 0x423809
cmp edi, eax
jae 0x4237cd
xor eax, eax
jmp 0x423809
cmp eax, esi
jae 0x4237d4
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x6d974c]
jmp 0x4237ed
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434004]
jne 0x401010
repz ret
jmp fcn.00401501

Function at 0x404a15
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.00402bcf
and dword [ebp - 4], 0
cmp dword [0x43708c], 0
mov ebx, eax
jne 0x404ac6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404b77
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x404b77
push eax
call fcn.00402b5d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43708c], eax
call esi
push eax
call fcn.00402b5d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x437090], eax
call esi
push eax
call fcn.00402b5d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x437094], eax
call esi
push eax
call fcn.00402b5d
pop ecx
mov dword [0x43709c], eax
test eax, eax
je 0x404ac6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402b5d
pop ecx
mov dword [0x437098], eax
mov eax, dword [0x437098]
cmp eax, ebx
je 0x404b1e
cmp dword [0x43709c], ebx
je 0x404b1e
push eax
call fcn.00402bd8
push dword [0x43709c]
mov esi, eax
call fcn.00402bd8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404b1e
test edi, edi
je 0x404b1e
call esi
test eax, eax
je 0x404b15
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404b15
test byte [ebp - 0xc], 1
jne 0x404b1e
or dword [ebp + 0x10], 0x200000
jmp 0x404b57
mov eax, dword [0x437090]
cmp eax, ebx
je 0x404b57
push eax
call fcn.00402bd8
pop ecx
test eax, eax
je 0x404b57
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x404b57
mov eax, dword [0x437094]
cmp eax, ebx
je 0x404b57
push eax
call fcn.00402bd8
pop ecx
test eax, eax
je 0x404b57
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43708c]
call fcn.00402bd8
pop ecx
test eax, eax
je 0x404b77
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404b79
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42ca90
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x804
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x800], eax
cmp dword [0x809e2c], 0x114e
mov eax, dword [esp + 0x808]
mov dword [0x809c70], eax
jne 0x42cad1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00401006
add esp, 0x804
ret
Function at 0x42cb00
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push edi
cmp ebp, 0x182
jne 0x42cb27
push 0
push 0
push 0
push str.Fal_vulenajojatad
push str.cizemovaronuhajonemiduxud_wisajimopoyexisexucute_nezirufovudukubaruzazo
push 0
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
xor edi, edi
test ebp, ebp
jle 0x42cb67
push esi
mov edi, edi
lea esi, [esp + 0xc]
mov dword [esp + 0x14], 5
mov dword [esp + 0xc], 0
call fcn.0042caf0
mov eax, dword [esp + 0xc]
add eax, 0x46
mov dword [esp + 0x14], eax
nop
sub dword [esp + 0x14], 0x46
mov al, byte [esp + 0x14]
xor byte [edi + ebx], al
inc edi
cmp edi, ebp
jl 0x42cb30
pop esi
pop edi
cmp ebp, 0x2d
pop ebp
jne 0x42cb82
mov dword [0x809f60], 0xa62e7790
mov dword [0x809f64], 0xffffffff
pop ecx
ret

Function at 0x42cb90
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x404
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [0x434c60]
push ebx
mov ebx, dword [0x809c74]
push esi
mov esi, dword [0x809e2c]
push eax
call fcn.0042ca90
add esp, 4
cmp dword [0x809e2c], 0x2f
jne 0x42cbcf
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
call fcn.0042cb00
add esp, 4
cmp dword [0x809e2c], 0x568
pop esi
pop ebx
jne 0x42cbf5
push 0
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00401006
add esp, 0x404
ret
Function at 0x58b5e0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0058b790
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x58b6de
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x58b681
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x58b6c4
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x58b698
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x58b6b3
test al, 0x40
je 0x58b6aa
mov ecx, dword [edi + 0x20]
jmp 0x58b6b1
test al, 0x80
je 0x58b6c4
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x58b6c4
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x58b650
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x60e430
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x6bde7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.006b21ee
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x60e4b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.006afa6f
mov eax, dword [eax]
push 0x757ecc
push eax
call fcn.006a14e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.006b2479
test bl, bl
je 0x60e4b2
push 0x757ecc
lea ecx, [esp + 0xc]
call fcn.006b2809
push 0x757ed8
lea ecx, [esp + 0xc]
call fcn.006b2809
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x60e4ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.006b2479
jmp 0x60e5b9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x60e572
lea edx, [esp + 0x7c]
push 0x757ed4
push edx
call fcn.006a14e4
add esp, 8
test eax, eax
je 0x60e572
lea eax, [esp + 0x7c]
push 0x757ed0
push eax
call fcn.006a14e4
add esp, 8
test eax, eax
je 0x60e572
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x60e502
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.006b2479
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x60ede0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x60ee42
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc