joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4039b7
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x5a8]
sub esp, 0x628
mov eax, dword [0x4225d0]
xor eax, ebp
mov dword [ebp + 0x5a4], eax
mov eax, dword [ebp + 0x5b0]
mov ecx, dword [ebp + 0x5b8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x5b4]
push eax
mov dword [ebp - 0x28], eax
mov esi, 0x2e3
lea eax, [ebp - 0x24]
push esi
push eax
mov dword [ebp - 0x2c], ecx
call fcn.0040d2c7
push eax
call section..text
add esp, 0x10
test al, al
jne 0x403a19
push 0xe3a
push str.sfxhead.c
call fcn.00402080
xor ebx, ebx
cmp byte [edi], bl
je 0x403a61
push 0x4183ec
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.0040cd8b
push eax
call section..text
add esp, 0x10
test al, al
jne 0x403a42
push 0xe3d
jmp 0x403a0f
push edi
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.0040cd8b
push eax
call section..text
add esp, 0x10
test al, al
jne 0x403a61
push 0xe3e
jmp 0x403a0f
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x403aae
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.00401379
push 0x44
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00401379
add esp, 0x18
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
mov dword [ebp - 0x80], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403aae
mov eax, dword [ebp - 0x3c]
jmp 0x403b86
lea eax, [ebp + 0x2c0]
push eax
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x1f
jne 0x403af5
push dword [ebp - 0x28]
mov ecx, 0x422
call fcn.004022f8
push eax
lea eax, [ebp + 0x2c0]
push esi
push eax
call fcn.0040d2ab
add esp, 0x10
cmp eax, 0xffffffff
jne 0x403af1
push 0xe5e
jmp 0x403a0f
push 0x10
jmp 0x403b66
cmp eax, 0x20
jbe 0x403b37
mov al, byte [edi]
neg al
push 1
push ebx
sbb eax, eax
and eax, edi
push eax
mov eax, dword [0x422060]
push dword [ebp - 0x28]
and eax, 0x20000
neg eax
sbb eax, eax
and eax, str.Install
push eax
push dword [0x424c90]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0x2c]
cmp ecx, ebx
je 0x403b32
mov dword [ecx], eax
cmp eax, 0x20
ja 0x403b86
push dword [ebp - 0x28]
mov ecx, 0x400
push eax
call fcn.004022f8
push eax
lea eax, [ebp + 0x2c0]
push esi
push eax
call fcn.0040d2ab
add esp, 0x14
cmp eax, 0xffffffff
jne 0x403b65
push 0xea7
jmp 0x403a0f
push ebx
mov ecx, 0x7d0
call fcn.004022f8
push eax
lea eax, [ebp + 0x2c0]
push eax
push dword [0x424c90]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [ebp + 0x5a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ccb6
add ebp, 0x5a8
leave
ret
Function at 0x403b9e
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4225d0]
xor eax, ebp
mov dword [ebp + 0x198], eax
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x403be9
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push str.winzip_shellopencommand
push 0x80000000
mov dword [ebp - 0x80], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x403c14
push 0
mov ecx, 0x7d0
call fcn.004022f8
push eax
mov ecx, 0x40e
call fcn.004022f8
push eax
push dword [0x424c90]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x403cc5
push ebx
xor ebx, ebx
cmp byte [ebp - 0x78], bl
push esi
lea esi, [ebp - 0x78]
je 0x403c3f
push 4
push str.___1
push esi
call fcn.0040da2b
add esp, 0xc
test eax, eax
je 0x403c39
inc esi
cmp byte [esi], bl
jne 0x403c20
cmp byte [esi], bl
je 0x403c3f
mov byte [esi], bl
push 0x424b00
push str.__s_
lea eax, [ebp + 0x90]
push 0x107
push eax
call fcn.0040d2ab
add esp, 0x10
cmp eax, 0xffffffff
jne 0x403c71
push 0xec9
push str.sfxhead.c
call fcn.00402080
mov eax, dword [0x422060]
test ax, 0x1000
je 0x403ca4
test ax, ax
js 0x403ca4
lea eax, [ebp + 0x90]
push eax
call fcn.0040d220
pop ecx
lea ecx, [ebp + 0x90]
sub ecx, 4
add eax, ecx
mov byte [eax], 0x7a
inc eax
mov byte [eax], 0x69
mov byte [eax + 1], 0x70
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x90]
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x7c], ebx
call fcn.004039b7
add esp, 0xc
test eax, eax
pop esi
setne al
pop ebx
mov ecx, dword [ebp + 0x198]
xor ecx, ebp
call fcn.0040ccb6
add ebp, 0x19c
leave
ret
Function at 0x403cda
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, 0x7000
push esi
xor ebx, ebx
push ebx
push dword [0x423644]
call fcn.00401379
mov eax, dword [0x4237d6]
add esp, 0xc
cmp eax, ebx
jg 0x403d0d
mov dword [0x424c0c], ebx
xor eax, eax
jmp 0x403e05
cmp eax, esi
ja 0x403d13
mov esi, eax
push esi
push dword [0x423644]
push dword [0x422004]
call fcn.00408ff0
add esp, 0xc
cmp dword [0x424c40], ebx
mov dword [0x424c0c], eax
je 0x403d7e
cmp eax, 0xffffffff
je 0x403d7e
cmp eax, esi
je 0x403d8a
cmp eax, ebx
jl 0x403d7e
mov ecx, dword [0x42200c]
mov edx, dword [0x424c44]
inc ecx
call fcn.00402734
mov eax, dword [0x424c0c]
cmp eax, ebx
jne 0x403d77
push esi
push dword [0x423644]
push dword [0x422004]
call fcn.00408ff0
add esp, 0xc
mov dword [0x424c0c], eax
cmp eax, 0xffffffff
je 0x403d7e
mov esi, eax
cmp eax, esi
je 0x403d8a
push 2
pop ecx
jmp fcn.00403448
mov ecx, dword [0x423644]
mov edx, dword [0x422040]
mov dword [0x424c08], ecx
test byte [edx + 0x28], 1
je 0x403dfb
mov byte [0x424c07], 1
test word [edx + 0x28], 0x1300
jne 0x403dd9
push edi
mov edi, eax
cmp edi, ebx
mov esi, ecx
je 0x403dd6
dec edi
call fcn.00408ae6
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00408b00
inc esi
cmp edi, ebx
pop ecx
jne 0x403dba
mov eax, dword [0x424c0c]
pop edi
jmp 0x403df5
cmp byte [0x424c9c], bl
jne 0x403dfb
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ecx
call fcn.00408b90
mov eax, dword [0x424c0c]
pop ecx
pop ecx
mov byte [0x424c07], bl
mov ecx, eax
dec eax
mov dword [0x424c0c], eax
mov eax, ecx
pop esi
pop ebx
leave
ret
Function at 0x408b00
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x42ed30]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x4237e8]
mov ecx, dword [0x42ed38]
mov dword [0x42ed30], eax
movzx eax, al
add eax, dword [0x42ed34]
imul eax, eax, 0x8088405
inc eax
mov dword [0x42ed34], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x4237e8]
mov eax, dword [esp + 4]
mov dword [0x42ed38], ecx
ret

Function at 0x408bf2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4225d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [0x424c3c]
mov esi, ecx
call fcn.00408b58
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00401329
add esp, 0x10
xor esi, esi
lea edx, [ebp + esi - 0x10]
call fcn.00408ae6
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.00408b00
inc esi
cmp esi, 0xc
pop ecx
jl 0x408c21
cmp dword [0x424c38], 0
movzx ax, byte [ebp - 5]
movzx eax, ax
pop esi
je 0x408c60
movzx cx, byte [0x4237cf]
cmp ax, cx
je 0x408c6a
or eax, 0xffffffff
jmp 0x408c6c
movzx cx, byte [0x4237d5]
jmp 0x408c56
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ccb6
leave
ret

Function at 0x4095df
Capabilities:
Enumerate pe sections

Disassembly:
push 4
mov eax, 0x4176fd
call fcn.0040d832
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 8]
movzx eax, word [ebx + 2]
movzx ecx, word [ebx]
mov word [esi + 4], cx
mov word [esi + 6], ax
xor eax, eax
mov dword [esi], vtable.WzExtraWin32Attr.0
lea edi, [esi + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esi + 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esi + 0x18]
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
cmp word [esi + 4], 0xa
mov dword [ebp - 4], ecx
mov dword [esi + 0x20], ecx
mov word [esi + 0x24], cx
je 0x409642
push 0x2a8
push dword [0x42246c]
call fcn.00402080
pop ecx
pop ecx
movzx eax, word [esi + 6]
cmp eax, 0x20
jge 0x40965f
mov al, byte [ebp + 0xb]
mov byte [ebp + 0xb], al
push 0x41f948
lea eax, [ebp + 0xb]
push eax
call fcn.0040e864
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x18], ecx
mov ecx, dword [ebx + 0x10]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebx + 0x14]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebx + 0x18]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebx + 0x1c]
add eax, 0xffffffe0
test ax, ax
mov dword [esi + 8], ecx
mov ecx, dword [ebx + 0x20]
mov dword [esi + 0xc], ecx
mov word [esi + 0x24], ax
jbe 0x4096ad
movzx eax, ax
push eax
call fcn.0040dea1
movzx ecx, word [esi + 0x24]
push ecx
add ebx, 0x24
push ebx
push eax
mov dword [esi + 0x20], eax
call fcn.00401329
add esp, 0x10
mov eax, esi
call fcn.0040d8d1
ret 4
Function at 0x40c566
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x9c]
cmp eax, 0xffffffff
je 0x40c5d7
cmp eax, 0x40
jbe 0x40c591
lea eax, [esi + 0x40]
push eax
push esi
call fcn.0040ca61
pop ecx
pop ecx
mov dword [esi + 0x9c], 0x14
mov eax, dword [esi + 0x9c]
push 0x40
pop ecx
sub ecx, eax
push ecx
add eax, esi
push 0
push eax
call fcn.00401379
add esp, 0xc
xor eax, eax
xor dword [esi + eax*4], 0x36363636
inc eax
cmp eax, 0x10
jb 0x40c5ac
push edi
lea edi, [esi + 0x40]
push edi
call fcn.0040c9c6
push edi
push 0x40
push esi
call fcn.0040c9f5
add esp, 0x10
or dword [esi + 0x9c], 0xffffffff
pop edi
cmp dword [esp + 0xc], 0
je 0x40c5f2
add esi, 0x40
push esi
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.0040c9f5
add esp, 0xc
pop esi
ret

Function at 0x40c5f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4225d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x9c], 0xffffffff
je 0x40c622
push esi
push 0
push 0
call fcn.0040c566
add esp, 0xc
push edi
lea edi, [esi + 0x40]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.0040ca61
pop ecx
pop ecx
xor eax, eax
xor dword [esi + eax*4], 0x6a6a6a6a
inc eax
cmp eax, 0x10
jb 0x40c634
push edi
call fcn.0040c9c6
push edi
push 0x40
push esi
call fcn.0040c9f5
push edi
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.0040c9f5
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.0040ca61
add esp, 0x24
cmp dword [ebp + 0xc], 0
pop edi
jbe 0x40c680
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.00401329
add esp, 0xc
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ccb6
leave
ret
Function at 0x40c68e
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0x220
mov eax, dword [0x4225d0]
xor eax, ebp
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x78]
push ebx
mov ebx, dword [ebp + 0x6c]
push esi
mov esi, dword [ebp + 0x64]
mov dword [ebp - 0x1c4], eax
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.0040c4e6
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0x68]
push esi
call fcn.0040c4fa
mov edi, 0xa0
push edi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x1b0]
push eax
call fcn.00401329
lea eax, [ebp - 0x1b0]
push eax
push dword [ebp + 0x70]
push ebx
call fcn.0040c566
mov eax, dword [ebp + 0x7c]
add esp, 0x28
push 0x14
dec eax
xor edx, edx
pop ecx
div ecx
inc eax
mov dword [ebp - 0x1c0], eax
je 0x40c804
and dword [ebp - 0x1b4], 0
xor ebx, ebx
lea eax, [ebp + 0x30]
inc ebx
mov dword [ebp - 0x1b8], eax
push 0x14
lea eax, [ebp + 0x30]
push 0
push eax
call fcn.00401379
push edi
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00401329
mov eax, ebx
shr eax, 0x18
mov byte [ebp + 0x44], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp + 0x45], al
mov eax, ebx
shr eax, 8
add esp, 0x18
mov byte [ebp + 0x46], al
mov eax, dword [ebp + 0x74]
test eax, eax
push 4
mov byte [ebp + 0x47], bl
pop esi
jbe 0x40c7c0
mov dword [ebp - 0x1bc], eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x44]
push esi
push eax
call fcn.0040c566
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x44]
push 0x14
push eax
call fcn.0040c5f4
add esp, 0x18
xor esi, esi
mov al, byte [ebp + esi + 0x44]
xor byte [ebp + esi + 0x30], al
inc esi
cmp esi, 0x14
jb 0x40c796
push edi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00401329
add esp, 0xc
dec dword [ebp - 0x1bc]
jne 0x40c774
mov eax, dword [ebp - 0x1b4]
xor esi, esi
cmp eax, dword [ebp + 0x7c]
jae 0x40c7e6
mov ecx, dword [ebp - 0x1b8]
mov cl, byte [ecx + eax]
mov edx, dword [ebp - 0x1c4]
inc esi
mov byte [eax + edx], cl
inc eax
cmp esi, 0x14
jb 0x40c7c8
add dword [ebp - 0x1b4], 0x14
sub dword [ebp - 0x1b8], 0x14
inc ebx
lea eax, [ebx - 1]
cmp eax, dword [ebp - 0x1c0]
jb 0x40c728
mov ecx, dword [ebp + 0x58]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ccb6
add ebp, 0x5c
leave
ret
Function at 0x40c816
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14c
push ebx
push esi
push edi
xor esi, esi
lea edx, [eax + 0x1c]
mov ecx, dword [edx]
mov edi, ecx
ror edi, 8
and edi, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edi, ecx
mov dword [ebp + esi*4 - 0x14c], edi
inc esi
add edx, 4
cmp esi, 0x10
jb 0x40c82a
push 0x40
lea ecx, [ebp - 0x144]
pop edx
mov esi, dword [ecx + 0x2c]
xor esi, dword [ecx + 0x18]
xor esi, dword [ecx - 8]
xor esi, dword [ecx]
add ecx, 4
dec edx
rol esi, 1
mov dword [ecx + 0x34], esi
jne 0x40c85b
mov edi, dword [eax + 0x14]
mov edx, dword [eax + 8]
mov esi, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
and dword [ebp + 8], 0
mov dword [ebp - 4], edi
mov edi, dword [eax + 0x18]
mov dword [ebp - 0xc], edi
mov edi, esi
not edi
and edi, dword [ebp - 4]
mov dword [ebp - 8], edx
mov ebx, ecx
and ebx, esi
xor edi, ebx
rol edx, 5
add edx, edi
mov edi, dword [ebp + 8]
add edx, dword [ebp + edi*4 - 0x14c]
mov edi, dword [ebp - 0xc]
inc dword [ebp + 8]
ror esi, 2
cmp dword [ebp + 8], 0x14
lea edx, [edx + edi + 0x5a827999]
mov edi, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov ecx, esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
jb 0x40c88a
mov dword [ebp + 8], 0x14
mov ebx, dword [ebp - 4]
xor ebx, ecx
mov dword [ebp - 8], edx
xor ebx, esi
rol edx, 5
add edx, ebx
mov ebx, dword [ebp + 8]
add edx, dword [ebp + ebx*4 - 0x14c]
inc dword [ebp + 8]
ror esi, 2
cmp dword [ebp + 8], 0x28
lea edx, [edx + edi + 0x6ed9eba1]
mov edi, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov ecx, esi
mov esi, dword [ebp - 8]
jb 0x40c8d4
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], 0x28
mov edi, ecx
xor edi, esi
and edi, dword [ebp - 4]
mov ebx, ecx
and ebx, esi
xor edi, ebx
mov ebx, dword [ebp + 8]
add edi, dword [ebp + ebx*4 - 0x14c]
mov dword [ebp - 8], edx
rol edx, 5
add edx, dword [ebp - 0xc]
inc dword [ebp + 8]
lea edx, [edi + edx - 0x70e44324]
mov edi, dword [ebp - 4]
ror esi, 2
push 0x3c
mov dword [ebp - 0xc], edi
pop edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], ecx
mov ecx, esi
mov esi, dword [ebp - 8]
jb 0x40c915
mov dword [ebp + 8], edi
mov edi, dword [ebp - 4]
mov ebx, dword [ebp + 8]
xor edi, ecx
mov dword [ebp - 8], edx
xor edi, esi
add edi, dword [ebp + ebx*4 - 0x14c]
mov ebx, dword [ebp - 4]
rol edx, 5
add edx, dword [ebp - 0xc]
inc dword [ebp + 8]
ror esi, 2
cmp dword [ebp + 8], 0x50
mov dword [ebp - 4], ecx
mov ecx, esi
mov esi, dword [ebp - 8]
lea edx, [edi + edx - 0x359d3e2a]
mov dword [ebp - 0xc], ebx
jb 0x40c95b
mov edi, dword [eax + 8]
add edi, edx
mov edx, dword [eax + 0xc]
add edx, esi
mov dword [eax + 0xc], edx
mov edx, dword [eax + 0x10]
add edx, ecx
mov ecx, dword [eax + 0x14]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 4]
add ecx, edx
mov dword [eax + 0x14], ecx
mov ecx, dword [eax + 0x18]
mov dword [eax + 8], edi
pop edi
add ecx, ebx
pop esi
mov dword [eax + 0x18], ecx
pop ebx
leave
ret
Function at 0x40c9c6
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x40ccb6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4225d0]
jne 0x40ccc0
repz ret
jmp fcn.0040eea8

Function at 0x412a51
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x422f90]
je 0x412a6c
inc edi
cmp edi, 0x17
jb 0x412a5d
cmp edi, 0x17
jae 0x412bec
push ebp
push 3
call fcn.004164fb
cmp eax, 1
pop ecx
je 0x412bb8
push 3
call fcn.004164fb
test eax, eax
pop ecx
jne 0x412aa0
cmp dword [0x422680], 1
je 0x412bb8
cmp ebx, 0xfc
je 0x412beb
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x42f2a0
push ebp
call fcn.0040d2c7
add esp, 0xc
test eax, eax
je 0x412ad6
push esi
push esi
push esi
push esi
push esi
call fcn.0040d336
add esp, 0x14
push 0x104
mov esi, 0x42f2b9
push esi
push 0
mov byte [0x42f3bd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x412b1a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040d2c7
add esp, 0xc
test eax, eax
je 0x412b1a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040d336
add esp, 0x14
push esi
call fcn.0040d220
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x412b5f
push esi
call fcn.0040d220
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42f5b4
push 0x41ddbc
sub ecx, eax
push ecx
push eax
call fcn.0040df23
add esp, 0x14
test eax, eax
je 0x412b5f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040d336
add esp, 0x14
jmp 0x412b61
xor esi, esi
push 0x41ddb8
push ebx
push ebp
call fcn.0040cd8b
add esp, 0xc
test eax, eax
je 0x412b81
push esi
push esi
push esi
push esi
push esi
call fcn.0040d336
add esp, 0x14
push dword [edi*8 + 0x422f94]
push ebx
push ebp
call fcn.0040cd8b
add esp, 0xc
test eax, eax
je 0x412ba3
push esi
push esi
push esi
push esi
push esi
call fcn.0040d336
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041633e
add esp, 0xc
jmp 0x412beb
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x412beb
cmp ebp, 0xffffffff
je 0x412beb
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x422f94]
push dword [esi]
call fcn.0040d220
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41633e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040fa49
xor ebx, ebx
cmp dword [0x42f804], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x416414
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4164f4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41ef78
push edi
call esi
cmp eax, ebx
je 0x4164f4
push eax
call fcn.0040f9db
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42f804], eax
call esi
push eax
call fcn.0040f9db
mov dword [esp], 0x41ef54
push edi
mov dword [0x42f808], eax
call esi
push eax
call fcn.0040f9db
mov dword [0x42f80c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00411965
test eax, eax
pop ecx
pop ecx
je 0x4163e2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040d336
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x416414
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040f9db
cmp eax, ebx
pop ecx
mov dword [0x42f814], eax
je 0x416414
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040f9db
pop ecx
mov dword [0x42f810], eax
mov eax, dword [0x42f810]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x416499
cmp dword [0x42f814], ecx
je 0x416499
push eax
call fcn.0040fa52
push dword [0x42f814]
mov esi, eax
call fcn.0040fa52
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x416499
cmp edi, ebx
je 0x416499
call esi
cmp eax, ebx
je 0x416466
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416466
test byte [ebp - 0x18], 1
jne 0x416499
lea eax, [ebp - 0x10]
push eax
call fcn.0041199c
test eax, eax
pop ecx
je 0x416481
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040d336
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x416490
or dword [ebp + 0x10], 0x200000
jmp 0x4164d4
or dword [ebp + 0x10], 0x40000
jmp 0x4164d4
mov eax, dword [0x42f808]
cmp eax, dword [ebp - 8]
je 0x4164d4
push eax
call fcn.0040fa52
cmp eax, ebx
pop ecx
je 0x4164d4
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4164d4
mov eax, dword [0x42f80c]
cmp eax, dword [ebp - 8]
je 0x4164d4
push eax
call fcn.0040fa52
cmp eax, ebx
pop ecx
je 0x4164d4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42f804]
call fcn.0040fa52
cmp eax, ebx
pop ecx
je 0x4164f4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4164f6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412fb6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae04b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x413172
lea eax, [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0x1a84
mov dword [ebp - 0x48], str.ffebmz_gwvgb_rez_dwvnvfig_ccvyxlxcr_akxbh
cmp dword [ebp - 0x3c], 0x1d9b
jle 0x413089
and dword [ebp - 0x24], 0
jmp 0x413012
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x4ec1
jge 0x413089
and dword [ebp - 0x18], 0
jmp 0x413028
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x6b62
jge 0x413087
and dword [ebp - 0x1c], 0
jmp 0x41303e
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x22e
jge 0x413085
and dword [ebp - 0x20], 0
jmp 0x413054
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x49ee
jge 0x413083
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
push dword [ebp - 0x54]
push dword [ebp - 0x58]
mov ecx, 0xabbe58
call fcn.0042fa2a
jmp 0x41304d
jmp 0x413037
jmp 0x413021
jmp 0x41300b
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
test eax, eax
je 0x4130a0
push 0
call dword [sym.imp.KERNEL32.dll_EncodePointer]
jmp 0x413130
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], 0
jmp 0x4130b7
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 1
jge 0x4130ca
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax*4 - 0x44], 0x5cc25bfc
jmp 0x4130b0
cmp dword [ebp - 0x2c], 0
jne 0x4130d6
cmp dword [ebp - 0x2c], 0xfffffff9
je 0x4130e5
cmp dword [ebp - 0x2c], 0
je 0x4130e5
mov dword [ebp - 0x30], 1
jmp 0x4130e9
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x2c], 0xffffffff
jle 0x4130f8
mov dword [ebp - 0x34], 1
jmp 0x4130fc
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x34]
jl 0x41310d
mov dword [ebp - 0x38], 1
jmp 0x413111
and dword [ebp - 0x38], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp + eax - 0x44], ecx
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x413130
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
and dword [ebp - 4], 0
cmp dword [ebp - 0x3c], 0x188d
jge 0x41314a
mov edx, dword [ebp - 0x48]
mov ecx, 0xabbe58
call fcn.004313d0
jmp 0x413166
or dword [ebp - 4], 0xffffffff
jmp 0x413170
jmp 0x41318e
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
push 0
push dword [ebp - 0x50]
call fcn.00401927
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret