joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4045a5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push 0x10000
push dword [ebp + 0x14]
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
push edi
call fcn.0040a136
add esp, 0x18
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x4045ee
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp + 0xc]
push edi
call fcn.0040a136
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [0x420018], edi
je 0x404687
push str.J2D_D3D
call fcn.0040855f
pop ecx
mov esi, str.false
cmp eax, edi
je 0x404621
push esi
push eax
call fcn.004178f9
pop ecx
pop ecx
test eax, eax
jne 0x404621
mov dword [0x420018], edi
push ebx
push str.J2D_D3D_PRELOAD
call fcn.0040855f
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x404646
push esi
push ebx
call fcn.004178f9
pop ecx
pop ecx
test eax, eax
jne 0x404646
mov dword [0x420018], edi
cmp dword [0x420018], edi
jge 0x404679
mov dword [0x420018], edi
cmp ebx, edi
je 0x404686
push str.true
push ebx
call fcn.004178f9
pop ecx
pop ecx
test eax, eax
jne 0x404673
mov dword [0x420018], 1
cmp dword [0x420018], edi
je 0x404686
push str.preloadD3D
call fcn.0040448d
pop ecx
pop ebx
mov esi, dword [ebp - 8]
cmp esi, edi
je 0x4046ab
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4046b4
push dword [ebp + 0x14]
call dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [0x421130], edi
pop edi
pop esi
je 0x4046c3
call fcn.00403e60
mov eax, dword [ebp - 4]
leave
ret
Function at 0x404925
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x294
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp + 0x210], eax
mov eax, dword [ebp + 0x21c]
push ebx
push esi
push edi
push 0x10
pop edi
mov dword [ebp - 0x78], eax
call fcn.00404792
push 8
mov esi, eax
call fcn.004046c8
mov ebx, eax
pop ecx
lea eax, [ebp + 0xd0]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x404990
mov dword [ebx], eax
lea eax, [ebp + 0xfc]
mov dword [ebx + 4], eax
mov edi, dword [ebx + 4]
test edi, edi
je 0x404997
and dword [ebx + 4], 0
jmp 0x4049ac
xor eax, eax
jmp 0x404a77
lea eax, [ebp - 0x70]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
neg eax
sbb edi, edi
lea eax, [ebp - 0x44]
and edi, eax
test edi, edi
je 0x404a5d
push edi
call fcn.00407d90
pop ecx
cmp eax, 4
jl 0x404983
add eax, edi
cmp byte [eax - 4], 0x2e
jne 0x404983
add eax, 0xfffffffd
push 0x4197ac
push eax
mov dword [ebp - 0x74], eax
call fcn.004085f0
pop ecx
pop ecx
test eax, eax
je 0x4049f2
push 0x4197a8
push dword [ebp - 0x74]
call fcn.004085f0
pop ecx
pop ecx
test eax, eax
jne 0x404983
push 0x3b
push edi
call fcn.00409780
pop ecx
pop ecx
test eax, eax
jne 0x404983
push dword [ebp - 0x78]
call fcn.00407d90
push edi
mov ebx, eax
call fcn.00407d90
mov dword [ebp - 0x74], eax
add eax, ebx
push eax
call fcn.004046c8
lea ecx, [ebx - 1]
push ecx
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
push eax
call fcn.00407eb0
mov eax, dword [ebp - 0x74]
inc eax
push eax
push edi
mov edi, dword [ebp - 0x7c]
lea eax, [edi + ebx - 1]
push eax
call fcn.00407eb0
mov ecx, dword [esi + 4]
add esp, 0x24
inc ecx
call fcn.004047e8
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x80]
mov dword [ecx + eax*4], edi
inc dword [esi + 4]
jmp 0x404983
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebx + 4]
call fcn.00404730
push ebx
call fcn.00404730
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp + 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085d9
add ebp, 0x214
leave
ret
Function at 0x404c75
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
cmp dword [esi + 4], 0xffffffff
push ebx
push edi
je 0x404cc8
cmp dword [esi], 0xffffffff
je 0x404cc8
push 0
push dword [esi + 8]
push dword [ebp + 8]
call fcn.004164b2
add esp, 0xc
test eax, eax
js 0x404cc8
mov eax, dword [esi + 4]
inc eax
push eax
call fcn.0040a264
mov ebx, eax
pop ecx
test ebx, ebx
je 0x404cc8
mov edi, dword [esi + 4]
push edi
push ebx
push dword [ebp + 8]
call fcn.004159eb
add esp, 0xc
cmp eax, edi
je 0x404cce
push ebx
call fcn.0040a3a5
pop ecx
xor eax, eax
pop edi
pop ebx
leave
ret
mov eax, dword [esi + 0xc]
xor ecx, ecx
cmp eax, ecx
jne 0x404cea
mov eax, dword [ebp + 0xc]
mov byte [edi + ebx], cl
cmp eax, ecx
je 0x404ce6
mov ecx, dword [esi + 4]
mov dword [eax], ecx
mov eax, ebx
jmp 0x404cca
cmp eax, 8
jne 0x404cc8
push 0x40
push str.1.2.3
lea eax, [ebp - 0x44]
push 0xfffffffffffffff1
push eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], edi
call fcn.004058f4
add esp, 0x10
test eax, eax
js 0x404cc1
mov edi, dword [esi]
lea eax, [edi + 1]
push eax
call fcn.0040a264
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x404cc1
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 1
push eax
mov dword [ebp - 0x30], edi
call fcn.00405a84
pop ecx
pop ecx
push ebx
test eax, eax
jns 0x404d55
call fcn.0040a3a5
push dword [ebp - 4]
call fcn.0040a3a5
pop ecx
jmp 0x404cc7
mov eax, dword [esi]
mov edi, dword [ebp - 4]
mov byte [edi + eax], 0
call fcn.0040a3a5
lea eax, [ebp - 0x44]
push eax
call fcn.00406ce0
pop ecx
pop ecx
test eax, eax
jns 0x404d78
push edi
jmp 0x404cc2
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x404d83
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, edi
jmp 0x404cca
Function at 0x404d8a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push 2
push 0xffffffffffffffea
push edi
call fcn.004164b2
mov ebx, eax
add esp, 0xc
test ebx, ebx
jns 0x404dae
or eax, 0xffffffff
jmp 0x404e9e
push esi
mov esi, dword [ebp + 0xc]
push 0x16
push esi
push edi
call fcn.004159eb
add esp, 0xc
test eax, eax
js 0x404e9a
movzx eax, byte [esi + 3]
movzx ecx, byte [esi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi]
shl eax, 8
or eax, ecx
cmp eax, 0x6054b50
jne 0x404df2
mov eax, ebx
jmp 0x404e9d
push 2
push 0
push edi
call fcn.004164b2
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
js 0x404e9a
mov esi, 0x10015
mov ebx, eax
cmp eax, esi
jl 0x404e17
mov ebx, esi
mov eax, ebx
push 2
neg eax
push eax
push edi
call fcn.004164b2
add esp, 0xc
test eax, eax
js 0x404e9a
push esi
call fcn.0040a264
mov edi, eax
pop ecx
test edi, edi
je 0x404e9a
push ebx
push edi
push dword [ebp + 8]
call fcn.004159eb
add esp, 0xc
test eax, eax
js 0x404e93
lea ebx, [edi + eax]
lea esi, [ebx - 0x16]
jmp 0x404e8f
cmp byte [esi], 0x50
jne 0x404e8e
movzx eax, byte [esi + 3]
movzx ecx, byte [esi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 1]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, 0x50
cmp eax, 0x6054b50
jne 0x404e8e
movzx eax, byte [esi + 0x15]
movzx ecx, byte [esi + 0x14]
shl eax, 8
or eax, ecx
lea eax, [eax + esi + 0x16]
cmp eax, ebx
je 0x404ea2
dec esi
cmp esi, edi
jae 0x404e51
push edi
call fcn.0040a3a5
pop ecx
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
push 0x16
push esi
push dword [ebp + 0xc]
call fcn.00407eb0
push edi
call fcn.0040a3a5
mov eax, esi
sub eax, ebx
add esp, 0x10
add eax, dword [ebp - 4]
jmp 0x404e9d
Function at 0x4085d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420030]
jne 0x4085e3
repz ret
jmp fcn.004101ab

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40a001
call fcn.00409b7c
mov dword [eax], esi
call fcn.00409b69
push 0x16
pop esi
mov dword [eax], esi
call fcn.0040dc94
mov eax, esi
jmp 0x40a056
test dword [ebp + 0xc], 0xfffffff9
jne 0x409fe7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a02e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409b8f
pop ecx
call fcn.00409b69
mov eax, dword [eax]
jmp 0x40a056
test al, 0x10
jne 0x40a054
test al, 1
je 0x40a054
test byte [ebp + 0xc], 2
je 0x40a054
call fcn.00409b7c
mov dword [eax], 5
call fcn.00409b69
mov dword [eax], 0xd
jmp 0x40a025
xor eax, eax
pop esi
pop ebp
ret
Function at 0x414404
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040d33f
and dword [ebp - 0x14], 0
cmp dword [0x421dd0], 0
mov dword [ebp - 0x18], eax
jne 0x4144b7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41455f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41455f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x421dd0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x421dd4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x421dd8], eax
call edi
push eax
call esi
mov dword [0x421de0], eax
test eax, eax
je 0x4144b7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x421ddc], eax
mov eax, dword [0x421ddc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x414510
cmp dword [0x421de0], ecx
je 0x414510
push eax
call esi
push dword [0x421de0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x414510
test ebx, ebx
je 0x414510
call edi
test eax, eax
je 0x414507
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x414507
test byte [ebp - 8], 1
jne 0x414510
or dword [ebp + 0x10], 0x200000
jmp 0x414543
mov eax, dword [0x421dd4]
cmp eax, dword [ebp - 0x18]
je 0x414543
push eax
call esi
test eax, eax
je 0x414543
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x414543
mov eax, dword [0x421dd8]
cmp eax, dword [ebp - 0x18]
je 0x414543
push eax
call esi
test eax, eax
je 0x414543
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x421dd0]
call esi
test eax, eax
je 0x41455f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x414561
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085d9
leave
ret
Function at 0x401034
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push ebx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov eax, 0xffffffff
mov ecx, edi
shr ecx, 2
jecxz 0x40108b
mov edx, dword [esi]
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x403008]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x403008]
shr edx, 0x10
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x403008]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x403008]
add esi, 4
loop 0x401049
mov ecx, edi
and ecx, 3
jecxz 0x4010a3
mov bl, al
xor bl, byte [esi]
shr eax, 8
inc esi
xor eax, dword [ebx*4 + 0x403008]
loop 0x401092
xor eax, 0xffffffff
pop ebx
pop edi
pop esi
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov dword [esp], edx
mov ebx, eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edi, dword [eax + 0x78]
add edi, ebx
xor esi, esi
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0x20]
add eax, ebx
mov edx, esi
shl edx, 2
add eax, edx
mov ebp, dword [eax]
add ebp, ebx
mov eax, ebp
call fcn.004010ac
mov edx, eax
mov eax, ebp
call fcn.00401034
cmp eax, dword [esp]
jne 0x401137
mov eax, esi
add eax, eax
add eax, dword [edi + 0x24]
add eax, ebx
mov ax, word [eax]
and ax, 0xffff
movzx eax, ax
shl eax, 2
add eax, dword [edi + 0x1c]
add eax, ebx
mov eax, dword [eax]
add eax, ebx
mov dword [esp + 4], eax
inc esi
cmp dword [esp + 4], 0
jne 0x401144
cmp esi, dword [edi + 0x18]
jne 0x4010ef
mov eax, dword [esp + 4]
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401150
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
mov edx, 0x3fc1bd8d
call fcn.004010c0
ret
Function at 0x1007ebb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x100a
push 0x800
mov dword [ebp - 4], 0x39
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1007f59
mov edx, 0x1002080
lea eax, [ebp - 4]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x1007f10
test cx, cx
je 0x1007f0c
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x1007f10
add eax, 4
add edx, 4
test cx, cx
jne 0x1007eea
xor eax, eax
jmp 0x1007f15
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1007f1e
push 9
pop eax
leave
ret
mov ecx, 0x100207c
lea eax, [ebp - 4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1007f4c
test dx, dx
je 0x1007f48
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1007f4c
add eax, 4
add ecx, 4
test dx, dx
jne 0x1007f26
xor eax, eax
jmp 0x1007f51
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1007f59
push 5
jmp 0x1007f1b
xor eax, eax
inc eax
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x1026bcc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xac]
mov ebx, dword [eax + 4]
push edi
xor edi, edi
mov dword [ebp - 0xd0], ebx
test ebx, ebx
jle 0x1008281
mov eax, dword [esi + 0xac]
mov eax, dword [eax + 8]
mov eax, dword [eax + edi*4]
cmp dword [eax - 8], 0
je 0x1008202
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10081fd
lea ebx, [edi + 1]
jmp 0x10081d7
lea eax, [eax + ebx*4]
push eax
lea ecx, [eax - 4]
call fcn.0101bf70
inc ebx
cmp ebx, dword [ebp - 0xd0]
mov eax, dword [esi + 0xac]
mov eax, dword [eax + 8]
jl 0x10081ca
push 0x1002084
lea ecx, [eax + ebx*4 - 4]
call sub.MFC42u.dll_CString::operator_2
mov ebx, dword [ebp - 0xd0]
dec edi
inc edi
cmp edi, ebx
jl 0x10081a7
cmp edi, ebx
jge 0x1008281
mov eax, dword [esi + 0xac]
mov eax, dword [eax + 0x10]
inc edi
push edi
push eax
lea eax, [ebp - 0xcc]
push 0x64
push eax
call fcn.01008045
add esp, 0x10
test eax, eax
jge 0x1008259
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1008272
test dword [ecx + 0x1c], 0x400
je 0x1008272
cmp byte [ecx + 0x19], 5
jb 0x1008272
push eax
push 0x1001ca0
push 0x1a
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100701e
jmp 0x1008272
push 0
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [esi + 0xac]
push dword [eax + 0xc]
mov ecx, esi
call sub.MFC42u.dll_CWinApp::WriteProfileStringW
cmp edi, ebx
jl 0x1008206
mov ecx, dword [esi + 0xac]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101d7d3
leave
ret
Function at 0x1019233
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 0x40]
push edi
mov dword [ebp - 8], ebx
add ebx, 0xa0
xor edi, edi
cmp ebx, edi
je 0x101936a
cmp dword [ebp + 8], 9
mov dword [ebp - 4], edi
jne 0x101932d
mov ecx, dword [esi + 0xa4]
cmp ecx, 1
je 0x1019279
cmp dword [esi + 0x90], edi
je 0x1019368
cmp dword [ebx + 0xc], 1
jle 0x101932d
mov eax, dword [esi + 0x90]
cmp eax, edi
jne 0x101929a
cmp ecx, edi
je 0x10192a6
mov eax, dword [esi + 0x9c]
mov eax, dword [eax + 8]
push edi
push eax
mov ecx, ebx
call sub.MFC42u.dll_CObList::Find
mov dword [ebp - 4], eax
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 0x8000
mov dword [ebp + 8], eax
cmp dword [ebp - 4], edi
je 0x10192d9
cmp eax, edi
lea eax, [ebp - 4]
mov ecx, ebx
push eax
je 0x10192cc
call fcn.0100a5b8
jmp 0x10192d1
call fcn.0100a587
cmp dword [ebp - 4], edi
jne 0x10192ef
mov eax, dword [ebp + 8]
cmp dword [ebx + 0xc], edi
je 0x10192ef
cmp eax, edi
je 0x10192e7
mov eax, dword [ebx + 8]
jmp 0x10192ea
mov eax, dword [ebx + 4]
mov ebx, dword [eax + 8]
jmp 0x10192fb
push dword [ebp - 4]
mov ecx, ebx
call fcn.01013040
mov ebx, dword [eax]
push 1
push edi
push edi
mov ecx, esi
call fcn.01018826
push 1
push edi
push ebx
mov ecx, esi
call fcn.01018826
mov ecx, esi
call fcn.01016693
push edi
push edi
mov ecx, esi
call fcn.01015c7b
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
push 1
call dword [eax + 0x64]
jmp 0x101936f
cmp dword [esi + 0x90], edi
je 0x1019368
cmp dword [ebx + 0xc], 1
jne 0x1019368
push 1
push edi
push edi
mov ecx, esi
call fcn.01018826
push 1
push edi
push dword [esi + 0x90]
mov ecx, esi
call fcn.01018826
mov ecx, esi
call fcn.01016693
push edi
push edi
mov ecx, esi
call fcn.01015c7b
jmp 0x101936f
mov ecx, esi
call sub.MFC42u.dll_CWnd::Default
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x101d792
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1023ff8
call fcn.0101dbd4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1029298
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x101d54d
cmp eax, esi
jne 0x101d540
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x101d550
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x101d527
xor esi, esi
inc esi
mov eax, dword [0x1029294]
cmp eax, esi
jne 0x101d563
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x101d592
mov eax, dword [0x1029294]
test eax, eax
jne 0x101d58c
mov dword [0x1029294], esi
push 0x1001c7c
push 0x1001c70
call fcn.0101d489
pop ecx
pop ecx
test eax, eax
je 0x101d592
jmp 0x101d6b6
mov dword [0x1028d20], esi
mov eax, dword [0x1029294]
cmp eax, esi
jne 0x101d5b6
push 0x1001c6c
push 0x1001bfc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1029294], 2
cmp dword [ebp - 0x20], ebx
jne 0x101d5c3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10292a4], ebx
je 0x101d5e4
push 0x10292a4
call fcn.0101db49
pop ecx
test eax, eax
je 0x101d5e4
push ebx
push 2
push ebx
call dword [0x10292a4]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x101d6b6
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x101d64e
cmp cx, bx
je 0x101d609
cmp dword [ebp - 0x1c], ebx
jne 0x101d64e
movzx ecx, word [eax]
cmp cx, bx
je 0x101d61e
cmp cx, 0x20
ja 0x101d61e
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x101d609
test byte [ebp - 0x40], 1
je 0x101d62a
movzx ecx, word [ebp - 0x3c]
jmp 0x101d62d
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1028d1c], eax
cmp dword [0x1028d10], ebx
jne 0x101d693
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x101d65f
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x101d5f3
cmp dword [0x1028d20], ebx
jne 0x101d6a1
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1028d1c]
jmp 0x101d6c2
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0101dc19
ret
call fcn.0101dd21
jmp 0x101d4ea
Function at 0x101e31f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1026bcc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push edi
mov edi, dword [ebp + 0xc]
jne 0x101e342
xor eax, eax
jmp 0x101e39d
push 0x40
call fcn.0101f36b
test eax, eax
je 0x101e33e
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
push eax
push 0x100509c
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x101e385
cmp eax, esi
ja 0x101e385
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push 8
push eax
push edi
call dword [sym.imp.USER32.dll_WinHelpW]
xor eax, eax
jmp 0x101e39c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x1005050
call fcn.0101f99c
pop ecx
pop ecx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0101d7d3
leave
ret 8

Function at 0x101e3b1
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1026bcc]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [section..data]
mov esi, section..data
mov ebx, 0x1005020
cmp eax, esi
je 0x101e41e
test byte [eax + 0x1c], 2
je 0x101e41e
cmp byte [eax + 0x19], 5
jb 0x101e41e
push ebx
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006ff8
lea eax, [ebp - 0x20c]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x214], eax
test eax, eax
jge 0x101e46f
mov eax, dword [section..data]
cmp eax, esi
je 0x101e466
test byte [eax + 0x1c], 2
je 0x101e466
cmp byte [eax + 0x19], 2
jb 0x101e466
push dword [ebp - 0x214]
push ebx
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100701e
movzx eax, word [ebp - 0x214]
jmp 0x101e4af
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push edi
call fcn.01007fb1
mov edi, eax
test edi, edi
jge 0x101e4b8
mov eax, dword [section..data]
cmp eax, esi
je 0x101e4ac
test byte [eax + 0x1c], 2
je 0x101e4ac
cmp byte [eax + 0x19], 2
jb 0x101e4ac
movzx ecx, di
push ecx
push ebx
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100701e
movzx eax, di
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x101e4c2
mov dword [ebp - 0x210], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101d7d3
leave
ret 0xc