joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40660e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d4e0
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x40662c
xor al, al
jmp 0x4067b6
push ebx
push edi
push esi
call fcn.004062ab
push esi
call fcn.0040d46a
pop ecx
push esi
mov ebx, eax
call fcn.0040654a
test al, al
je 0x4066d6
push esi
call fcn.004062ab
test al, al
je 0x406683
add ebx, 4
cmp dword [ebp + 0x10], ebx
jbe 0x4067b2
mov edi, dword [ebp + 0xc]
push 4
push str.__
push edi
call fcn.0040e5af
push esi
add edi, 8
push edi
call fcn.0040d4b2
add esp, 0x14
jmp 0x4067ae
cmp word [esi], 0x5c
jne 0x4067b2
add esi, 2
cmp word [esi], 0x5c
jne 0x4067b2
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x4067b2
mov edi, dword [ebp + 0xc]
push 4
push str.__
push edi
call fcn.0040e5af
lea eax, [edi + 8]
push 0x41a618
push eax
call fcn.0040d4b2
push esi
add edi, 0xe
push edi
call fcn.0040d4b2
add esp, 0x1c
jmp 0x4067ae
lea eax, [ebp - 0x1000]
push eax
mov edi, 0x7ff
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4067b2
cmp eax, edi
ja 0x4067b2
movzx eax, word [esi]
push eax
call fcn.0040619f
test al, al
je 0x406743
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x4067b2
mov edi, dword [ebp + 0xc]
push 4
push str.__
push edi
call fcn.0040e5af
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040e5af
push esi
add edi, 0xc
push edi
call fcn.0040d4b2
add esp, 0x20
jmp 0x4067ae
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.004061b7
lea eax, [ebp - 0x1000]
push eax
call fcn.0040d46a
lea eax, [eax + ebx + 4]
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x4067b2
mov edi, dword [ebp + 0xc]
push 4
push str.__
push edi
call fcn.0040e5af
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040d4b2
add esp, 0x14
cmp word [esi], 0x2e
jne 0x4067a4
movzx eax, word [esi + 2]
push eax
call fcn.0040619f
test al, al
je 0x4067a4
add esi, 4
push dword [ebp + 0x10]
push esi
push edi
call fcn.0040b714
mov al, 1
jmp 0x4067b4
xor al, al
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x4084a5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
cmp dword [0x4365ac], ebx
jne 0x4084be
mov ecx, 0x4365a4
call fcn.00408466
mov esi, dword [ebp + 0xc]
mov ecx, esi
and ecx, 0xf
mov eax, esi
sub eax, ecx
cmp byte [ebp + 0x10], bl
je 0x408508
mov ecx, dword [0x4365ac]
cmp ecx, ebx
je 0x408524
push ebx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x408545
push str.CryptProtectMemory_failed
mov esi, 0x44173c
push esi
call fcn.00401792
pop ecx
pop ecx
mov ecx, esi
call fcn.00415837
push 2
mov ecx, esi
call fcn.0040184e
jmp 0x408545
mov ecx, dword [0x4365b0]
cmp ecx, ebx
je 0x408524
push ebx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x408545
push str.CryptUnprotectMemory_failed
jmp 0x4084e9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
cmp esi, ebx
jbe 0x408545
mov dl, al
add dl, 0x4b
mov eax, dword [ebp + 8]
add eax, ecx
mov bl, dl
add bl, cl
xor byte [eax], bl
inc ecx
cmp ecx, esi
jb 0x408535
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x408682
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x41f03c], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x4086cd
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x44acf4], ax
xor eax, eax
mov word [0x44acf6], ax
mov dword [0x41f03c], 0x44acf4
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b743
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x41f02c
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10
Function at 0x40892d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x43f5f0]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x43f5f4], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40898f
mov ecx, dword [0x4365bc]
call fcn.0040c651
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x41a684
push 0
push 0xc2
push edi
call esi
mov byte [0x43f5f4], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x4089df
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x408a29
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x41a758
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x408e7a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0040d4e0
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x408e95
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x408e9f
mov byte [eax], 0
test edi, edi
je 0x408f48
movzx eax, word [edi]
test ax, ax
je 0x408f48
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x408ed8
cmp dword [ebp + 0xc], 0
je 0x408ee4
test esi, esi
jne 0x408ee4
test ebx, ebx
je 0x408ed4
mov byte [ebx], 1
mov esi, edx
jmp 0x408ef3
cmp ax, 0xd
je 0x408f06
cmp ax, 0xa
je 0x408f08
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x408efe
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x408eb8
jmp 0x408f08
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x408f08
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x408f43
mov word [ebx], ax
test esi, esi
je 0x408f43
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040b6e7
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x408f4a
xor eax, eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x408f8f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0040d4e0
push 0x800
lea eax, [ebp - 0x1020]
push eax
call fcn.0040d293
cmp byte [0x43f5f5], 0
jne 0x409024
push 6
push dword [0x41f028]
lea eax, [ebp - 0x1020]
push eax
call fcn.0040632d
push eax
call fcn.0040c12b
test eax, eax
jne 0x409024
push 0x41a440
call fcn.0040d280
lea eax, [ebp - 0x1020]
push eax
call fcn.0040d46a
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x101e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040d3f0
add esp, 0x10
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x409185
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040d4e0
push ebx
xor ebx, ebx
cmp byte [0x43f638], bl
je 0x40920a
cmp word [0x4365c0], bx
je 0x40920a
push esi
push 0x4365c0
lea esi, [ebp - 0x1008]
call fcn.00409148
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40920a
push dword [ebp + 8]
call fcn.0040d46a
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x40920f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0040d4e0
cmp byte [0x43f638], 0
je 0x4092b6
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x200c]
call fcn.00409148
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x4092b6
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4092ad
shr dword [ebp - 4], 1
mov eax, 0x7ff
cmp dword [ebp - 4], eax
jae 0x409291
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040b6e7
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8
Function at 0x409d57
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x43f5de], 0
mov eax, dword [ebp + 0xc]
mov dword [0x43f5d0], eax
mov eax, dword [ebp + 0x10]
mov dword [0x43f5d4], eax
mov eax, dword [ebp + 0x14]
mov dword [0x43f5c8], eax
je 0x409d87
xor eax, eax
inc eax
jmp 0x409db0
cmp byte [0x43f5df], 0
je 0x409d95
push 2
pop eax
jmp 0x409db0
push dword [ebp + 8]
push 0x409572
push dword [0x43f5f0]
push str.REPLACEFILEDLG
push dword [0x43f5cc]
call esi
dec eax
je 0x409e02
dec eax
je 0x409e14
dec eax
je 0x409dfb
dec eax
jne 0x409ddf
push dword [ebp + 8]
push 0x408a83
push dword [0x43f5f0]
push str.RENAMEDLG
push dword [0x43f5cc]
call esi
test eax, eax
je 0x409d61
mov al, 0x52
jmp 0x409e0f
dec eax
je 0x409df0
dec eax
mov al, 0x4e
jne 0x409e0f
mov byte [0x43f5df], 1
jmp 0x409e0f
mov byte [0x43f5e2], 1
mov al, 0x43
jmp 0x409e0f
mov byte [0x43f5de], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x409e0f
Function at 0x40bb5e
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x434514]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x44cd10]
mov ecx, dword [0x43451c]
mov dword [0x434514], eax
movzx eax, al
add eax, dword [0x434518]
imul eax, eax, 0x8088405
inc eax
mov dword [0x434518], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cd10]
mov eax, dword [esp + 4]
mov dword [0x43451c], ecx
ret 4

Function at 0x40bbfb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040bbb8
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040dc10
add esp, 0xc
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040bb3e
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040bb5e
inc esi
cmp esi, 0xc
jl 0x40bc1d
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x4233b0]
test byte [eax + 0x40], 2
movzx eax, byte [0x43342f]
jne 0x40bc58
movzx eax, byte [0x433437]
movzx ecx, cx
cmp ecx, eax
je 0x40bc64
or eax, 0xffffffff
jmp 0x40bca9
mov ecx, dword [0x4333c8]
mov eax, ecx
cdq
cmp edx, dword [0x42218c]
push edi
jl 0x40bc86
mov edx, dword [0x422188]
jg 0x40bc82
cmp eax, edx
jbe 0x40bc86
mov edi, edx
jmp 0x40bc88
mov edi, ecx
mov esi, dword [0x4333c0]
jmp 0x40bca2
dec edi
call fcn.0040bb3e
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040bb5e
inc esi
test edi, edi
jne 0x40bc90
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40c668
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
test eax, eax
jl 0x40c69a
cmp dword [ebp - 4], edi
jne 0x40c6db
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x40c6db
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40c687
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40c687
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x40c731
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41ae30
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x40c728
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x40c71f
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp esi, edi
pop edi
pop esi
setge al
pop ebx
leave
ret 8
Function at 0x40ceef
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
sub esp, 0x10
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
mov esi, ecx
mov byte [esi + 0x21], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.0040ce88
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x40cf56
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
push esi
push dword [esi]
sub edi, eax
push 0
push dword [ebp + 0xc]
lea ecx, [eax + 1]
dec edi
mov dword [ebp + 0x18], ecx
dec edi
call ebx
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push edi
push dword [ebp - 0xc]
xor edi, edi
push dword [ebp + 0x18]
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
cmp dword [esi + 0xc], edi
jne 0x40cfd8
cmp dword [ebp + 0xc], edi
je 0x40cffb
cmp dword [esi + 0x14], edi
jne 0x40cffb
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x40cffb
push eax
mov ecx, esi
call fcn.0040cb63
mov esi, eax
cmp esi, edi
je 0x40cffb
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0040d50b
pop ecx
jmp 0x40cffb
cmp eax, edi
je 0x40cfee
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x1c], 0x64
jbe 0x40cffb
mov ecx, esi
call fcn.0040c86d
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40d1a8
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x41ae20
push 1
xor ebx, ebx
push ebx
push 0x41aed0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40d279
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41aec0
push eax
call dword [ecx]
test eax, eax
jl 0x40d270
cmp byte [ebp + 8], bl
je 0x40d1fb
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x40d218
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x40d22a
push 0x41a684
jmp 0x40d22d
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x40d242
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x40d253
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x40d267
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x40d293
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x4125e5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f3dc]
jne 0x4125ef
repz ret
jmp fcn.00416715
Function at 0x417d57
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.00412666
and dword [ebp - 4], 0
cmp dword [0x44dbf4], 0
mov ebx, eax
jne 0x417e08
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x417eb9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x417eb9
push eax
call fcn.004125f4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44dbf4], eax
call esi
push eax
call fcn.004125f4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44dbf8], eax
call esi
push eax
call fcn.004125f4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44dbfc], eax
call esi
push eax
call fcn.004125f4
pop ecx
mov dword [0x44dc04], eax
test eax, eax
je 0x417e08
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004125f4
pop ecx
mov dword [0x44dc00], eax
mov eax, dword [0x44dc00]
cmp eax, ebx
je 0x417e60
cmp dword [0x44dc04], ebx
je 0x417e60
push eax
call fcn.0041266f
push dword [0x44dc04]
mov esi, eax
call fcn.0041266f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x417e60
test edi, edi
je 0x417e60
call esi
test eax, eax
je 0x417e57
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x417e57
test byte [ebp - 0xc], 1
jne 0x417e60
or dword [ebp + 0x10], 0x200000
jmp 0x417e99
mov eax, dword [0x44dbf8]
cmp eax, ebx
je 0x417e99
push eax
call fcn.0041266f
pop ecx
test eax, eax
je 0x417e99
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x417e99
mov eax, dword [0x44dbfc]
cmp eax, ebx
je 0x417e99
push eax
call fcn.0041266f
pop ecx
test eax, eax
je 0x417e99
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44dbf4]
call fcn.0041266f
pop ecx
test eax, eax
je 0x417eb9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417ebb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100132d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100132fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100132fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10013790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
xor eax, eax
test esi, esi
jle 0x100137c6
nop
mov edx, dword [ebp - 4]
mov ecx, eax
and ecx, 7
mov cl, byte [ecx + 0x10046324]
xor byte [edx + eax], cl
inc eax
cmp eax, esi
jl 0x100137b0
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10013e43
test al, 0x10
jne 0x10013e43
mov al, 1
ret
xor al, al
ret
Function at 0x10017050
Capabilities:
Load windows common language runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003fb94
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10070024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push 4
cmovae eax, dword [ebp + 8]
push 0x10045f04
push eax
call fcn.100079fe
add esp, 0xc
push str.mscoree.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x100170d6
push eax
lea edx, [eax + 0x72]
push 0x8c
lea ecx, [edx + 0x19]
call fcn.10015aa0
add esp, 8
mov esi, 0x80004005
jmp 0x10017227
push str.CLRCreateInstance
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x100170f0
push eax
mov edx, 0x8d
jmp 0x1001711e
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100170fd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x10045dcc
push 0x10045ddc
call esi
test eax, eax
jns 0x1001713a
push eax
mov edx, 0x8e
push 0x8c
mov ecx, 0x8b
call fcn.10015aa0
add esp, 8
mov esi, 0x80004005
jmp 0x10017220
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x30]
call fcn.100016e0
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
push 4
cmovae eax, dword [ebp - 0x30]
push 0x10045f3c
push eax
call fcn.100079fe
mov eax, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
je 0x10017184
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x1c], 8
lea edx, [ebp - 0x10]
mov eax, dword [esi]
lea ecx, [ebp - 0x30]
cmovae ecx, dword [ebp - 0x30]
push edx
push 0x10045dec
push ecx
push esi
mov dword [ebp - 0x10], 0
call dword [eax + 0xc]
test eax, eax
jns 0x100171c7
mov edx, 0x90
push eax
push 0x93
lea ecx, [edx - 1]
call fcn.10015aa0
add esp, 8
mov esi, 0x80004005
jmp 0x10017203
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1001725b
mov ecx, dword [eax]
push ebx
push 0x10045d9c
push 0x10045dbc
push eax
call dword [ecx + 0x24]
test eax, eax
jns 0x10017201
mov edx, 0x91
push eax
push 0x76
lea ecx, [edx - 6]
call fcn.10015aa0
add esp, 8
mov esi, 0x80004005
jmp 0x10017203
xor esi, esi
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10017214
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.100017f0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10017238
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100017f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004003
call fcn.10002850
int3