joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010cc
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [eax]
cmp al, 0x22
jne 0x4010fc
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [eax]
test al, al
je 0x4010f4
cmp al, 0x22
jne 0x4010e1
cmp byte [esi], 0x22
jne 0x40110e
inc esi
jmp 0x40110e
cmp al, 0x20
jbe 0x40110e
push esi
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0x20
mov esi, eax
ja 0x401100
cmp byte [esi], 0
je 0x401126
cmp byte [esi], 0x20
ja 0x401126
push esi
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0
mov esi, eax
jne 0x401113
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
mov eax, 0xa
je 0x401146
movzx eax, word [ebp - 0x14]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401193
Capabilities:
Get geographical location

Disassembly:
mov dword [0x4067e4], 0x40463a
sub esp, 4
mov dword [0x4067ec], 0xe
lea eax, [esp + 2]
push 2
push eax
push 0xd
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp byte [esp + 2], 0x31
jne 0x4011ef
mov dword [0x4067b0], 0xa006
mov eax, 0x3e8
mov dword [0x4067d0], eax
mov dword [0x4067d8], eax
mov eax, 0x2ee
mov dword [0x4067cc], eax
mov dword [0x4067d4], eax
jmp 0x401217
mov dword [0x4067b0], 0xa00a
mov eax, 0x9c4
mov dword [0x4067d0], eax
mov dword [0x4067d8], eax
mov eax, 0x7d0
mov dword [0x4067cc], eax
mov dword [0x4067d4], eax
add esp, 4
ret
Function at 0x401a60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov ebx, 1
mov esi, section..text
lea edi, [ebp - 0x104]
xor eax, eax
mov ecx, 0x40
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [0x406010], eax
je 0x401ab2
push eax
push eax
push 0xe
mov eax, dword [0x406004]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x401ab2
mov eax, ebx
jmp 0x401c85
cmp dword [0x40603c], 0
je 0x401ae8
cmp dword [ebp + 8], 0
jne 0x401ac8
xor eax, eax
jmp 0x401c85
mov eax, dword [section..data]
push eax
call dword [sym.imp.USER32.dll_GetLastActivePopup]
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 2
push esi
call dword [sym.imp.USER32.dll_EndDialog]
xor esi, esi
mov eax, dword [0x406004]
push esi
push esi
push 0xb8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x401c72
cmp dword [0x406010], esi
je 0x401b14
mov eax, dword [0x406050]
jmp 0x401b29
cmp word [0x406692], 0x5c5c
mov eax, 0x406692
je 0x401b29
mov eax, 0x406690
mov dword [0x40603c], 1
cmp dword [ebp + 8], 1
mov ecx, 0
adc ecx, 0xffffffff
and cx, 0x1000
mov cl, 0x33
push ecx
push eax
push dword [0x40604c]
push dword [0x406064]
mov eax, dword [section..data]
push eax
call fcn.0040240c
mov ebx, eax
xor eax, eax
mov dword [0x40603c], eax
cmp ebx, 6
jne 0x401c72
cmp dword [0x406010], eax
je 0x401b80
push 0x4065f1
jmp 0x401ba5
push 0
mov eax, dword [section..data]
push 0x406690
push eax
call fcn.004031dc
test eax, eax
je 0x401ba0
mov eax, 1
jmp 0x401c85
push 0x406690
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [0x406674], 0x8806
mov dword [0x40664c], 0x406540
mov dword [0x406650], 0x4065f0
lea eax, [ebp - 0x104]
push 0x406640
mov dword [0x406028], 1
mov dword [0x40665c], eax
mov eax, dword [0x406094]
add eax, 3
mov dword [0x40667c], eax
call sub.comdlg32.dll_GetSaveFileNameA
test eax, eax
je 0x401c3f
mov eax, dword [0x40665c]
lea ecx, [ebp - 0x104]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
lea ecx, [ebp - 0x104]
push ecx
push dword [section..data]
call fcn.004031dc
test eax, eax
je 0x401c72
lea eax, [ebp - 0x104]
push eax
push 0x406690
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x401c72
mov dword [0x40603c], 1
mov ebx, 2
call sub.comdlg32.dll_CommDlgExtendedError
test eax, eax
je 0x401c72
push 0x10
mov eax, dword [0x406058]
push 0
push eax
push dword [0x406064]
push dword [section..data]
call fcn.0040240c
mov dword [0x40603c], 0
sub ebx, 2
cmp ebx, 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402259
Capabilities:
Open clipboard

Disassembly:
push ebp
mov eax, dword [section..data]
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_GetMenu]
mov esi, eax
push 0
push 0
mov eax, dword [0x406004]
push 0xb0
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, eax
shr ecx, 0x10
sub cx, ax
cmp cx, 1
sbb ebx, ebx
neg ebx
push ebx
push 0x300
push 1
push esi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push ebx
push 0x301
push 1
push esi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4022df
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov edi, 1
cmp dword [ebp - 4], edi
sbb eax, eax
neg eax
push eax
push 0x302
push edi
push esi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push ebx
push 0x303
push edi
xor ebx, ebx
push esi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push ebx
mov eax, dword [0x406004]
push ebx
push 0xc6
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, edi
sbb eax, eax
neg eax
push eax
push 0x19
push edi
push esi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, 0
cmp dword [0x40601c], edi
adc eax, 0xffffffff
and eax, 8
push eax
push 0x1b
push edi
push esi
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
cmp dword [0x4067ac], ebx
jne 0x40238c
push 0x14
lea eax, [ebp - 0x18]
push eax
push section..text
push 0x40100c
push 0x401004
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
test eax, eax
je 0x40238e
xor edi, edi
push edi
push 0xe
push esi
call dword [sym.imp.USER32.dll_EnableMenuItem]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402445
Capabilities:
Set registry value

Disassembly:
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0xc
Function at 0x4029ed
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi], 0x2f
jne 0x402b8a
cmp byte [esi + 1], 0x2e
jne 0x402b8a
mov al, byte [esi + 2]
cmp al, 0x53
je 0x402a14
cmp al, 0x73
jne 0x402b8a
mov al, byte [esi + 3]
cmp al, 0x45
je 0x402a23
cmp al, 0x65
jne 0x402b8a
mov al, byte [esi + 4]
cmp al, 0x54
je 0x402a32
cmp al, 0x74
jne 0x402b8a
mov al, byte [esi + 5]
cmp al, 0x55
je 0x402a41
cmp al, 0x75
jne 0x402b8a
mov al, byte [esi + 6]
cmp al, 0x50
je 0x402a50
cmp al, 0x70
jne 0x402b8a
push 0
mov eax, dword [section..data]
mov dword [0x406018], 1
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push 2
add esi, 7
mov dword [0x4065a0], eax
mov eax, dword [0x406530]
push eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [0x4065d8], eax
mov al, byte [esi]
cmp al, 0x20
je 0x402a8d
cmp al, 9
jne 0x402a90
inc esi
jmp 0x402a83
cmp byte [esi], 0
je 0x402b83
push esi
mov esi, 0x406690
push esi
call fcn.00402893
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x406630], eax
cmp eax, 0xffffffff
jne 0x402b59
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402aeb
cmp eax, 5
je 0x402b2f
push 0x30
cmp eax, 0x7b
je 0x402b3d
push esi
mov eax, dword [0x406040]
jmp 0x402b47
push 0x34
mov esi, 0x406690
push esi
mov eax, dword [0x406044]
push eax
push dword [0x406064]
push dword [section..data]
call fcn.0040240c
cmp eax, 6
jne 0x402b59
push 0
push pe_nt_image_headers32
push 2
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x406630], eax
jmp 0x402b59
push 0x30
mov eax, dword [0x4060b0]
push 0x406690
jmp 0x402b47
push 0x406690
mov eax, dword [0x406078]
push eax
push dword [0x406064]
push dword [section..data]
call fcn.0040240c
cmp dword [0x406630], 0xffffffff
je 0x402b8a
xor esi, esi
push esi
push 0x406690
call fcn.0040346c
test al, 0x80
je 0x402b83
push esi
mov eax, dword [section..data]
push esi
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
jmp 0x402b8c
xor eax, eax
pop esi
ret 4
Function at 0x402b90
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi], 0x2f
jne 0x402c9a
mov al, byte [esi + 1]
cmp al, 0x50
je 0x402bad
cmp al, 0x70
jne 0x402c9a
add esi, 2
mov al, byte [esi]
cmp al, 0x20
je 0x402bba
cmp al, 9
jne 0x402bbd
inc esi
jmp 0x402bb0
cmp byte [esi], 0
je 0x402c9a
push dword [esp + 0xc]
push dword [section..data]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
mov esi, 0x406690
push esi
call fcn.00402893
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x406630], eax
cmp eax, 0xffffffff
jne 0x402c26
push 0x30
mov eax, dword [0x40609c]
push esi
push eax
push dword [0x406064]
push dword [section..data]
call fcn.0040240c
mov eax, 1
jmp 0x402c9c
push 1
push 0x406690
call fcn.0040346c
test al, 0x80
je 0x402c3d
mov eax, 1
jmp 0x402c9c
call fcn.00403ddd
test eax, eax
jge 0x402c93
cmp eax, 0xfffffffd
je 0x402c93
cmp eax, 0xfffffffc
jne 0x402c58
mov ecx, dword [0x406080]
jmp 0x402c6b
cmp eax, 0xfffffffb
jne 0x402c65
mov ecx, dword [0x406084]
jmp 0x402c6b
mov ecx, dword [0x406074]
cmp dword [0x406010], 0
mov eax, 0x406690
je 0x402c7e
mov eax, dword [0x406050]
push 0x30
push eax
push ecx
mov eax, dword [section..data]
push dword [0x406064]
push eax
call fcn.0040240c
mov eax, 1
jmp 0x402c9c
xor eax, eax
pop esi
ret 8
Function at 0x4031dc
Capabilities:
Delete file
Get graphical window text

Disassembly:
push ebp
mov eax, dword [0x4065e0]
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor esi, esi
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edi, dword [ebp + 0x10]
cmp edi, esi
jne 0x403215
push esi
push pe_nt_image_headers32
push 3
push esi
push 1
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x40323f
push 2
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll__lopen]
mov dword [0x406630], eax
test eax, eax
jge 0x40323f
push 0
mov esi, 1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll__lcreat]
test eax, eax
jge 0x40323f
xor esi, esi
mov dword [0x406630], eax
cmp eax, 0xffffffff
jne 0x40326d
test edi, edi
je 0x403266
push 0x30
push dword [ebp + 0xc]
push dword [0x406088]
push dword [0x406064]
push dword [ebp + 8]
call fcn.0040240c
xor eax, eax
jmp 0x40339e
xor edi, edi
mov eax, dword [0x406004]
push edi
push edi
push 0xc8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov dword [ebp - 8], eax
push edi
mov eax, dword [0x406004]
push 0xe
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ebx, [eax + 1]
push 0x42
push ebx
mov dword [ebp - 4], eax
mov eax, dword [0x406634]
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [0x406634], eax
cmp eax, edi
jne 0x4032d3
push 0x30
push dword [ebp + 0xc]
push dword [0x40606c]
push dword [0x406064]
push dword [ebp + 8]
call fcn.0040240c
xor eax, eax
jmp 0x40339e
mov eax, dword [0x406634]
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
push eax
mov edi, eax
push ebx
mov eax, dword [0x406004]
push 0xd
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 4]
push edi
push dword [0x406630]
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, dword [ebp - 4]
je 0x403337
push dword [ebp + 0xc]
call fcn.004037e7
mov eax, dword [0x406634]
push eax
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
mov eax, dword [0x406630]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
test esi, esi
je 0x403333
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x40339e
xor esi, esi
mov eax, dword [0x406630]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
mov eax, dword [0x406004]
push esi
push 0xb9
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp + 0xc]
call fcn.0040216f
mov eax, dword [0x406630]
mov dword [0x406010], esi
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [ebp - 8], esi
je 0x40338d
push esi
mov eax, dword [0x406004]
push 1
push 0xc8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x406634]
push eax
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4033a7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push esi
lea eax, [ebp - 0x170]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x104
lea eax, [ebp - 0x274]
cmp dword [ebp + 0x10], 1
sbb esi, esi
push eax
add esi, 0x37
push 0x38
push dword [0x406530]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x12c
lea ecx, [ebp - 0x12c]
push ecx
mov eax, dword [0x406530]
push esi
mov edi, 0x40105c
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push edi
lea eax, [ebp - 0x12c]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x12c]
push eax
call esi
push edi
lea ecx, [ebp - 0x12c]
push ecx
call esi
push 1
xor ecx, ecx
push ecx
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp - 0x274]
push eax
push ecx
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov eax, 0x81
ja 0x403464
push 0x30
mov eax, dword [0x406064]
push eax
push dword [0x4060b4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4037e7
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x100
lea eax, [esp]
push 0
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x30
test eax, eax
je 0x403836
mov eax, dword [0x406064]
lea ecx, [esp + 4]
push eax
push ecx
push dword [section..data]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403854
push dword [esp + 0x108]
push dword [0x406040]
push dword [0x406064]
mov eax, dword [section..data]
push eax
call fcn.0040240c
add esp, 0x100
ret 4
Function at 0x40385d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
cmp byte [eax], bl
je 0x403a35
mov eax, dword [0x4065e0]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
push ecx
push 0xb0
push dword [0x406004]
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0xe
push dword [0x406004]
call dword [sym.imp.USER32.dll_SendMessageA]
lea edi, [eax + 1]
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x403a35
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
cmp eax, ebx
mov esi, eax
jne 0x4038de
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x403a35
push esi
mov eax, dword [0x406004]
push edi
push 0xd
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x406294], 0
je 0x403987
push 0
push dword [ebp - 8]
push 0xc9
push dword [0x406004]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov dword [ebp - 4], eax
push eax
push 0xbb
push dword [0x406004]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
cmp dword [0x406290], 0
je 0x40394d
add ebx, esi
lea ecx, [esi + edi]
push ebx
push ecx
call fcn.00404e9c
jmp 0x403959
add ebx, esi
lea ecx, [esi + edi]
push ebx
push ecx
call fcn.00404f7a
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4039ab
cmp dword [ebp - 0x10], 0
mov ebx, edi
je 0x4039ab
push 0
dec dword [ebp - 0x10]
push dword [ebp - 0x10]
push 0xbb
push dword [0x406004]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
jmp 0x403933
push dword [ebp + 8]
cmp dword [0x406290], 0
mov eax, dword [ebp - 0x14]
je 0x4039a0
add eax, esi
push eax
call fcn.00404e54
jmp 0x4039a8
add eax, esi
push eax
call fcn.00404f32
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [ebp - 4], 0
jne 0x4039f5
cmp dword [0x406008], 0
je 0x4039d4
mov ecx, dword [0x406008]
jmp 0x4039da
mov ecx, dword [section..data]
push 0x40
mov eax, dword [0x406054]
push 0x406580
push eax
push dword [0x406064]
push ecx
call fcn.0040240c
jmp 0x403a35
push dword [ebp + 8]
mov eax, dword [ebp - 4]
sub eax, esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 8]
add ecx, eax
mov eax, dword [0x406004]
push ecx
push dword [ebp - 8]
push 0xb1
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xb7
push dword [0x406004]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403a3e
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0x50200104
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
jne 0x403a5b
mov dword [ebp - 8], 0x50300104
xor edi, edi
mov ebx, 0xc8
push edi
mov eax, dword [0x406004]
push edi
push ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov eax, dword [0x406004]
push edi
push 0xe
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], eax
inc eax
push eax
mov dword [ebp - 0xc], eax
push 0x42
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov esi, eax
jne 0x403ab3
cmp dword [ebp + 8], edi
jne 0x403aac
push edi
mov eax, dword [0x406004]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
jmp 0x403bda
lea eax, [ebp - 0x1c]
push eax
push dword [section..data]
call dword [sym.imp.USER32.dll_GetClientRect]
push esi
call dword [sym.imp.KERNEL32.dll_LocalLock]
push eax
mov ebx, eax
push dword [ebp - 0xc]
push 0xd
push dword [0x406004]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push dword [0x406530]
push 0xf
push dword [section..data]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
push 0
push dword [ebp - 8]
push section..text
push 0x401054
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
test edi, edi
jne 0x403b2b
push esi
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x403bda
push ebx
push 0
push 0xc
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x403b57
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x403bda
push esi
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push 0
mov eax, dword [0x4067f4]
push eax
push 0x30
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [0x406004]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 5
mov eax, dword [section..data]
push eax
mov dword [0x406004], edi
mov dword [0x406634], esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x406010], 0
mov eax, dword [0x406050]
jne 0x403ba8
mov eax, 0x406690
push eax
call fcn.0040216f
cmp dword [ebp - 4], 0
je 0x403bc9
push 0
mov eax, dword [0x406004]
push 1
push 0xb9
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x406004]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406ec0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46d55b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004604a1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406f42
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045df57
mov eax, dword [eax]
push 0x4b61e0
push eax
call fcn.00450ca4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046072c
test bl, bl
je 0x406f42
push 0x4b61e0
lea ecx, [esp + 0xc]
call fcn.00460b08
push 0x4b9d28
lea ecx, [esp + 0xc]
call fcn.00460b08
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x406f7e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046072c
jmp 0x407049
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x407002
lea edx, [esp + 0x7c]
push 0x4b9d24
push edx
call fcn.00450ca4
add esp, 8
test eax, eax
je 0x407002
lea eax, [esp + 0x7c]
push 0x4b9d20
push eax
call fcn.00450ca4
add esp, 8
test eax, eax
je 0x407002
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406f92
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046072c
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x407840
Capabilities:
Query or enumerate registry value

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