joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4053d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ecx, str.Options
mov ebp, esp
push ebx
lea edx, [ebp - 0x38]
sub esp, 0x50
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x3c]
call fcn.00405080
test eax, eax
je 0x405410
lea edx, [ebp - 0x38]
mov ecx, str.Settings
lea eax, [ebp - 0x3c]
call fcn.00405080
test eax, eax
je 0x4054c8
mov ebx, dword [ebp - 4]
leave
ret
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x2c
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowPlacement]
xor eax, eax
mov ebx, dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 8
cmp dword [ebp - 0x28], 3
mov dword [esp + 0x14], 0x10
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], str.FrameRect
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x34]
sub esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Maximized
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x3c]
sub esp, 0x18
mov dword [esp], eax
call fcn.00402e40
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x4053f2
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.00402ef0
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret

Function at 0x4054f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push ebx
push ecx
lea ecx, [ebp + 8]
lea eax, [ebp - 0x10]
sub esp, 0x20
mov ebx, dword [ecx]
mov ecx, str.Options
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x10
call fcn.00405080
test eax, eax
je 0x405548
test ebx, ebx
je 0x40552d
movdqa xmm0, xmmword [0x4116f0]
movups xmmword [ebx], xmm0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
ret
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.FrameRect
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x40551e
cmp dword [ebp - 0xc], 0x10
jne 0x40551e
jmp 0x40552d
Function at 0x405590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
xor edx, edx
mov ecx, str.Options
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x20
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], 4
call fcn.00405080
test eax, eax
je 0x4055d8
mov dword [ebx], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret
lea eax, [ebp - 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Maximized
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x4055bb
cmp dword [ebp - 8], 4
jne 0x4055bb
jmp 0x4055c1
Function at 0x405bd0
Capabilities:
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
lea edx, [ebp - 0x68]
push esi
push ebx
push ecx
add esp, 0xffffff80
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov ecx, str.Recent_file_list
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x6c]
call fcn.00405080
test eax, eax
je 0x405c20
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call fcn.00405620
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov ebx, eax
mov eax, dword [ebp - 0x70]
mov edi, 0x3ed
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMenu]
mov edx, 0x20
pxor xmm0, xmm0
movaps xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x74], eax
mov eax, 0x30
sub esp, 4
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
lea eax, [ebp - 0x48]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x74]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMenuItemInfoW]
sub esp, 0x10
test eax, eax
je 0x405c8c
mov eax, dword [ebp - 0x28]
mov dword [ebp + edi*4 - 0x100c], eax
add edi, 1
cmp edi, 0x3f1
jne 0x405c51
mov eax, dword [ebp - 0x58]
mov edi, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov dword [ebp - 0x74], eax
mov dword [esp + 4], eax
mov dword [esp], esi
call edi
sub esp, 8
test eax, eax
je 0x405d70
xor edx, edx
mov dword [ebp - 0x78], ebx
mov ebx, edx
mov eax, dword [ebp + ebx*4 - 0x58]
test eax, eax
je 0x405cd7
mov dword [esp + 4], esi
mov dword [esp], eax
call edi
sub esp, 8
test eax, eax
je 0x405d8f
add ebx, 1
cmp ebx, 4
jne 0x405cb3
mov eax, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x78]
test eax, eax
je 0x405cfa
mov eax, dword [ebp - 0x50]
movd xmm1, dword [ebp - 0x54]
movd xmm0, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
punpckldq xmm0, xmm1
movq qword [ebp - 0x54], xmm0
test esi, esi
je 0x405d70
lea edi, [ebp - 0x64]
add ebx, 1
mov dword [esp + 4], str.File_d
mov dword [esp + 8], ebx
mov dword [esp], edi
call dword [sym.imp.user32.dll_wsprintfW]
cmp word [esi], 0
je 0x405d88
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405d28
sub eax, esi
add eax, 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
cmp ebx, 4
je 0x405d70
mov esi, dword [ebp + ebx*4 - 0x58]
jmp 0x405cfa
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x405c00
mov eax, 2
jmp 0x405d36
mov edx, ebx
mov ebx, dword [ebp - 0x78]
test edx, edx
je 0x405cfa
lea eax, [ebp - 0x58]
shl edx, 2
mov dword [esp + 4], eax
lea eax, [ebp - 0x54]
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.ucrtbase.dll_memmove
jmp 0x405cfa
Function at 0x405e60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov edx, 0x411678
xor eax, eax
mov ebp, esp
push esi
push ebx
sub esp, 4
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, ebx
mov dword [esp], esi
call fcn.004052c0
mov dword [ebp + 8], esi
add esp, 4
mov ecx, ebx
pop ebx
mov edx, 0x41166c
mov eax, 1
pop esi
pop ebp
jmp fcn.004052c0

Function at 0x405ea0
Capabilities:
Set registry value

Disassembly:
push ebp
mov edx, 0x411678
xor eax, eax
mov ebp, esp
push esi
push ebx
sub esp, 4
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, ebx
mov dword [esp], esi
call fcn.00405200
mov dword [ebp + 8], esi
add esp, 4
mov ecx, ebx
pop ebx
mov edx, 0x41166c
mov eax, 1
pop esi
pop ebp
jmp fcn.00405200
Function at 0x4077e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x6f0]
push ebx
sub esp, 0x704
mov edi, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [esp + 4], 0x7d4
mov eax, dword [0x41d728]
mov dword [esp], eax
call edi
sub esp, 8
mov dword [esp + 4], 0x7dd
mov dword [ebp - 0x6fc], eax
mov dword [esp], eax
mov dword [ebp - 0x6f8], edi
call edi
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x407
mov dword [esp], eax
call ebx
lea edx, [ebp - 0x6ec]
mov ecx, 0x1c
mov dword [ebp - 0x6f0], 0x74
mov dword [ebp - 0x6f4], eax
sub esp, 0x10
mov edi, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], esi
lea esi, [ebp - 0x606]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x43a
mov eax, dword [0x41d724]
mov dword [esp], eax
call ebx
sub esp, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0xd
mov ecx, dword [ebp - 0x6f4]
mov dword [esp], ecx
call ebx
sub esp, 0x10
test eax, eax
jne 0x4078c8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [sym.imp.kernel32.dll_lstrcmpW]
lea edi, [ebp - 0x6d6]
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [ebp - 0x700], edx
call edx
sub esp, 8
mov esi, eax
test eax, eax
je 0x407940
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov ecx, dword [ebp - 0x6f4]
mov dword [esp], ecx
call ebx
sub esp, 0x10
mov dword [esp + 4], 0x7de
mov eax, dword [ebp - 0x6fc]
mov dword [esp], eax
mov edi, dword [ebp - 0x6f8]
call edi
sub esp, 8
call fcn.00407340
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x7d4
mov eax, dword [0x41d728]
mov dword [esp], eax
mov edi, dword [ebp - 0x6f8]
call edi
sub esp, 8
mov dword [esp + 4], 0x7de
mov dword [esp], eax
call edi
lea edi, [ebp - 0x678]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x407
mov dword [esp], eax
call ebx
lea edx, [ebp - 0x67c]
mov ecx, 0x1c
mov dword [ebp - 0x67c], 0x74
mov dword [ebp - 0x6f4], eax
sub esp, 0x10
mov eax, esi
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], edx
lea edi, [ebp - 0x408]
mov dword [esp + 8], 1
lea esi, [ebp - 0x20a]
mov dword [esp + 4], 0x43a
mov eax, dword [0x41d724]
mov dword [esp], eax
call ebx
sub esp, 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0xd
mov eax, dword [ebp - 0x6f4]
mov dword [esp], eax
call ebx
mov ecx, dword [ebp - 0x670]
mov eax, 0x66666667
sub esp, 0x10
mov dword [esp + 4], 0x411d38
mov dword [esp], esi
imul ecx
sar ecx, 0x1f
sar edx, 3
sub edx, ecx
mov dword [esp + 8], edx
call dword [sym.imp.user32.dll_wsprintfW]
mov dword [esp + 4], esi
mov dword [esp], edi
mov eax, dword [ebp - 0x700]
call eax
sub esp, 8
test eax, eax
je 0x4078bd
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov eax, dword [ebp - 0x6f4]
mov dword [esp], eax
call ebx
sub esp, 0x10
jmp 0x4078bd
Function at 0x407a70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 8
mov eax, dword [0x41d728]
mov dword [esp + 4], 0x7d0
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
test ebx, ebx
je 0x407ad0
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [0x40f284]
sub esp, 8
mov dword [esp], eax
call fcn.00405dc0
mov ebx, dword [ebp - 4]
mov edx, dword [eax*4 + 0x41d708]
or edx, 2
mov dword [eax*4 + 0x41d708], edx
leave
ret
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [0x40f284]
sub esp, 8
mov dword [esp], eax
call fcn.00405dc0
mov ebx, dword [ebp - 4]
mov edx, dword [eax*4 + 0x41d708]
and edx, 0xfffffffd
mov dword [eax*4 + 0x41d708], edx
leave
ret
Function at 0x407db0
Capabilities:
Write file on windows

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x40
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x407fb0
lea esi, [ebp - 0x1c]
mov edx, eax
cmp ebx, 0x11
je 0x407f60
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x14], 0x406880
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x44a
mov eax, dword [0x41d724]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x2c], eax
call eax
mov edx, dword [ebp - 0x30]
sub esp, 0x10
mov esi, eax
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x41d724]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetFocus]
sub esp, 4
test esi, esi
je 0x407f10
xor eax, eax
lea esi, [esi]
movzx edx, word [edi + eax]
add eax, 2
mov word [eax + 0x41d4fe], dx
test dx, dx
jne 0x407e80
mov eax, 0x41d500
call fcn.00407b10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb9
mov eax, dword [0x41d724]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
mov dword [0x40f284], ebx
sub esp, 0x10
call fcn.00407cb0
call fcn.00406050
mov eax, dword [0x40f284]
mov dword [esp], eax
call fcn.00405dc0
mov eax, dword [eax*4 + 0x41d710]
mov dword [esp + 4], eax
mov eax, dword [0x41d728]
mov dword [esp], eax
call fcn.00402fb0
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
xor eax, eax
mov edx, 0x4b0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x45f
mov eax, dword [0x41d724]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
sub esp, 0x10
test eax, eax
je 0x407e77
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 2
mov dword [esp + 4], 0x411b74
mov dword [esp], eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, dword [ebp - 0x2c]
sub esp, 0x14
cmp dword [ebp - 0x1c], 2
je 0x407e1b
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
sub esp, 4
jmp 0x407f4e
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 5
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], 0x411d58
sete al
movzx eax, al
add eax, 0x6ab
mov dword [esp + 4], eax
mov eax, dword [0x41d728]
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxW]
xor eax, eax
sub esp, 0x10
jmp 0x407f4e
Function at 0x4081c0
Capabilities:
Write file on windows

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x41d724]
cmp word [0x41d500], 0
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
jne 0x40822d
lea edx, [ebp - 0x18]
mov ecx, 8
mov ebx, 0x4b0
mov dword [ebp - 0x14], ebx
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x18], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x45f
mov dword [esp], eax
call ebx
mov edx, eax
sub esp, 0x10
mov eax, dword [0x41d724]
test edx, edx
je 0x408319
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb8
mov dword [esp], eax
call ebx
sub esp, 0x10
test eax, eax
je 0x408319
cmp word [0x41d500], 0
mov ebx, 0x41cac0
movzx eax, word [0x41cac0]
jne 0x408340
test ax, ax
je 0x408388
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x408280
sub eax, ebx
sar eax, 1
cmp word [0x41c8c0], 0
je 0x4082b3
mov edx, 0x41c8c0
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4082a0
sub edx, 0x41c8c0
sar edx, 1
add eax, edx
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_calloc]
mov esi, eax
test eax, eax
je 0x408330
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x41c8c0
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
mov dword [esp + 0xc], 0x33
mov dword [esp + 8], 0x411d58
mov dword [esp + 4], esi
mov eax, dword [0x41d728]
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxW]
sub esp, 0x10
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
cmp ebx, 6
je 0x408390
cmp ebx, 7
jne 0x408330
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov eax, 0x41d500
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x408348
cmp eax, 0x41d500
ja 0x408362
jmp 0x4083dc
mov eax, ebx
movzx edx, word [eax]
cmp dx, 0x5c
je 0x4083d0
cmp dx, 0x2f
je 0x4083d0
lea ebx, [eax - 2]
cmp ebx, 0x41d500
ja 0x408360
movzx eax, word [eax - 2]
jmp 0x40826f
xor eax, eax
jmp 0x40828d
cmp word [0x41d500], 0
je 0x4083b8
mov edx, dword [0x40f284]
lea esp, [ebp - 0xc]
mov eax, 0x41d500
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
jmp fcn.00407db0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
jmp fcn.00408000
lea ebx, [eax + 2]
movzx eax, word [eax + 2]
jmp 0x40826f
mov ebx, eax
xor eax, eax
jmp 0x40828d
Function at 0x40ee00
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call 0x40ee70
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0040eec0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]

Function at 0x40eec0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call fcn.0040eeb0
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40ef1e
xor ecx, ecx
xor edx, edx
jmp 0x40eefe
cmp al, 0x5c
jne 0x40ef70
add edx, 1
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x40ef13
cmp al, 9
je 0x40ef06
cmp al, 0x20
jne 0x40eee8
test ecx, ecx
je 0x40ef13
xor edx, edx
jmp 0x40eef3
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40ef10
cmp al, 0x20
je 0x40ef10
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x20], 1
jne 0x40ef39
mov word [ebp - 0x1c], 1
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0040dd40
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
cmp al, 0x22
jne 0x40ef0a
and edx, 1
jne 0x40ef0a
xor ecx, 1
jmp 0x40eef3
Function at 0x50bbe9
Capabilities:
Terminate process

Disassembly:
jmp fcn.006abf20
jmp 0x692120
cmp ecx, dword [0x784ac8]
jne 0x69212a
repz ret
jmp 0x507300
Function at 0x561b40
Capabilities:
Connect socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x5a09f0
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00505311
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
call fcn.005105e5
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x5a0a7b
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x5a0a52
mov eax, dword [ebp - 8]
add eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.0050bcac
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x5a0a6f
push 0x100
push 0xff
mov ecx, dword [ebp + 0x10]
call fcn.00507a62
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x10]
call fcn.0050b8f6
jmp 0x5a0aac
mov ecx, dword [ebp + 0x10]
call fcn.005092bd
push eax
push 0xffffffffffffffff
push 0x14d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x5a0aac
mov ecx, dword [ebp + 0x10]
call fcn.005092bd
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.005077c4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5aa5a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x5aa6c8
call fcn.0050cf76
mov dword [ebp - 0x10], eax
push 0xf0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5aa65b
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x5aa632
push str.DLGINIT_resource_was_found__but_could_not_be_loaded._n
push 0
mov ecx, 0x79e9d4
call fcn.0050b7a7
push eax
push 0x16f
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccmgr.cpp
lea ecx, [ebp - 0x20]
call fcn.0050e6c8
push eax
call fcn.0050fcfd
add esp, 0x10
xor eax, eax
jmp 0x5aa736
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5aa659
push 0x175
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccmgr.cpp
call fcn.0050934e
test eax, eax
je 0x5aa659
int3
jmp 0x5aa6c8
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x5aa67e
push 0x17d
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccmgr.cpp
call fcn.0050934e
test eax, eax
je 0x5aa67e
int3
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xffffffff
je 0x5aa6c8
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0
je 0x5aa6bd
push str.Dialog_has_OLE_controls__but_no_matching_DLGINIT_resource._n
push 0
mov ecx, 0x79e9d4
call fcn.0050b7a7
push eax
push 0x183
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccmgr.cpp
lea ecx, [ebp - 0x28]
call fcn.0050e6c8
push eax
call fcn.0050fcfd
add esp, 0x10
jmp 0x5aa6c8
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
jmp 0x5aa67e
mov dword [ebp - 8], 1
cmp dword [ebp - 4], 0
je 0x5aa6f1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x5aa710
cmp dword [ebp - 0xc], 0
je 0x5aa710
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00511c6a
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x4c], 0
je 0x5aa733
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x4c]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x4c]
mov edx, dword [eax]
mov eax, dword [edx + 0xa8]
call eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc