joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10085c5b
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor edx, edx
mov ecx, 0x811c9dc5
cmp dword [ebp + 0xc], edx
jbe 0x10085c83
push esi
mov esi, dword [ebp + 8]
movzx eax, byte [edx + esi]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x10085c70
pop esi
mov eax, ecx
pop ebp
ret

Function at 0x10094200
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1009423e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10094236
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10094240
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10094226
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10094310
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10094341
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10094341
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x10094341
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x6994a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a9000]
push edi
or ebp, 0xffffffff
jmp 0x6994c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6994c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6994b8
mov eax, 1
add ebx, ebx
jne 0x6994db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6994ec
jne 0x69950b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x69950b
dec eax
add ebx, ebx
jne 0x6994f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6994d0
add ebx, ebx
jne 0x699507
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x69955d
xor ecx, ecx
sub eax, 3
jb 0x699523
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x699592
sar eax, 1
mov ebp, eax
jmp 0x69952e
add ebx, ebx
jne 0x69952e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6994fc
inc ecx
add ebx, ebx
jne 0x69953c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6994fc
add ebx, ebx
jne 0x699549
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x69953e
jne 0x69955a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x69953e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x69957c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x69956e
jmp 0x6994be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x69957c
add edi, ecx
jmp 0x6994be
pop esi
mov edi, esi
mov ecx, 0x6404
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x69959a
cmp byte [edi], 0xa
jne 0x69959a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x69959f
lea edi, [esi + 0x290000]
mov eax, dword [edi]
or eax, eax
je 0x699617
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x29db64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x29dca4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6995cc
mov ecx, edi
jns 0x6995fb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x29dca8]
or eax, eax
je 0x699611
mov dword [ebx], eax
add ebx, 4
jmp 0x6995e9
call dword [esi + 0x29dcb8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x699648
cmp al, 0xef
ja 0x69963b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x69961d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x69962a
mov ebp, dword [esi + 0x29dcac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x69967c
sub esp, 0xffffff80
jmp 0x4ab574
Function at 0x40117b
Capabilities:
Get geographical location

Disassembly:
mov dword [0x4057f4], 0x40451a
sub esp, 4
mov dword [0x4057fc], 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 0x4011d7
mov dword [0x4057c0], 0xa006
mov eax, 0x3e8
mov dword [0x4057e0], eax
mov dword [0x4057e8], eax
mov eax, 0x2ee
mov dword [0x4057dc], eax
mov dword [0x4057e4], eax
jmp 0x4011ff
mov dword [0x4057c0], 0xa00a
mov eax, 0x9c4
mov dword [0x4057e0], eax
mov dword [0x4057e8], eax
mov eax, 0x7d0
mov dword [0x4057dc], eax
mov dword [0x4057e4], eax
add esp, 4
ret
Function at 0x401a46
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.sect_0
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 [0x405010], eax
je 0x401a98
push eax
push eax
push 0xe
mov eax, dword [0x405004]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x401a98
mov eax, ebx
jmp 0x401c6b
cmp dword [0x40503c], 0
je 0x401ace
cmp dword [ebp + 8], 0
jne 0x401aae
xor eax, eax
jmp 0x401c6b
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 [0x405004]
push esi
push esi
push 0xb8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x401c58
cmp dword [0x405010], esi
je 0x401afa
mov eax, dword [0x405050]
jmp 0x401b0f
cmp word [0x4056a2], 0x5c5c
mov eax, 0x4056a2
je 0x401b0f
mov eax, 0x4056a0
mov dword [0x40503c], 1
cmp dword [ebp + 8], 1
mov ecx, 0
adc ecx, 0xffffffff
and cx, 0x1000
mov cl, 0x33
push ecx
push eax
push dword [0x40504c]
push dword [0x405064]
mov eax, dword [section..data]
push eax
call fcn.004023dd
mov ebx, eax
xor eax, eax
mov dword [0x40503c], eax
cmp ebx, 6
jne 0x401c58
cmp dword [0x405010], eax
je 0x401b66
push 0x405601
jmp 0x401b8b
push 0
mov eax, dword [section..data]
push 0x4056a0
push eax
call fcn.004031ae
test eax, eax
je 0x401b86
mov eax, 1
jmp 0x401c6b
push 0x4056a0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [0x405684], 0x8806
mov dword [0x40565c], 0x405550
mov dword [0x405660], 0x405600
lea eax, [ebp - 0x104]
push 0x405650
mov dword [0x405028], 1
mov dword [0x40566c], eax
mov eax, dword [0x405094]
add eax, 3
mov dword [0x40568c], eax
call sub.comdlg32.dll_GetSaveFileNameA
test eax, eax
je 0x401c25
mov eax, dword [0x40566c]
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.004031ae
test eax, eax
je 0x401c58
lea eax, [ebp - 0x104]
push eax
push 0x4056a0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x401c58
mov dword [0x40503c], 1
mov ebx, 2
call sub.comdlg32.dll_CommDlgExtendedError
test eax, eax
je 0x401c58
push 0x10
mov eax, dword [0x405058]
push 0
push eax
push dword [0x405064]
push dword [section..data]
call fcn.004023dd
mov dword [0x40503c], 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 0x40223f
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 [0x405004]
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 0x4022c5
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 [0x405004]
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 [0x40501c], 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 [0x4057bc], ebx
jne 0x402372
push 0x14
lea eax, [ebp - 0x18]
push eax
push section.sect_0
push 0x40100c
push 0x401004
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
test eax, eax
je 0x402374
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 0x402416
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 0x4029c1
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi], 0x2f
jne 0x402b5e
cmp byte [esi + 1], 0x2e
jne 0x402b5e
mov al, byte [esi + 2]
cmp al, 0x53
je 0x4029e8
cmp al, 0x73
jne 0x402b5e
mov al, byte [esi + 3]
cmp al, 0x45
je 0x4029f7
cmp al, 0x65
jne 0x402b5e
mov al, byte [esi + 4]
cmp al, 0x54
je 0x402a06
cmp al, 0x74
jne 0x402b5e
mov al, byte [esi + 5]
cmp al, 0x55
je 0x402a15
cmp al, 0x75
jne 0x402b5e
mov al, byte [esi + 6]
cmp al, 0x50
je 0x402a24
cmp al, 0x70
jne 0x402b5e
push 0
mov eax, dword [section..data]
mov dword [0x405018], 1
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push 2
add esi, 7
mov dword [0x4055b0], eax
mov eax, dword [0x405540]
push eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [0x4055e8], eax
mov al, byte [esi]
cmp al, 0x20
je 0x402a61
cmp al, 9
jne 0x402a64
inc esi
jmp 0x402a57
cmp byte [esi], 0
je 0x402b57
push esi
mov esi, 0x4056a0
push esi
call fcn.00402864
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 [0x405640], eax
cmp eax, 0xffffffff
jne 0x402b2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402abf
cmp eax, 5
je 0x402b03
push 0x30
cmp eax, 0x7b
je 0x402b11
push esi
mov eax, dword [0x405040]
jmp 0x402b1b
push 0x34
mov esi, 0x4056a0
push esi
mov eax, dword [0x405044]
push eax
push dword [0x405064]
push dword [section..data]
call fcn.004023dd
cmp eax, 6
jne 0x402b2d
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 [0x405640], eax
jmp 0x402b2d
push 0x30
mov eax, dword [0x4050b0]
push 0x4056a0
jmp 0x402b1b
push 0x4056a0
mov eax, dword [0x405078]
push eax
push dword [0x405064]
push dword [section..data]
call fcn.004023dd
cmp dword [0x405640], 0xffffffff
je 0x402b5e
xor esi, esi
push esi
push 0x4056a0
call fcn.00403475
test al, 0x80
je 0x402b57
push esi
mov eax, dword [section..data]
push esi
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
jmp 0x402b60
xor eax, eax
pop esi
ret 4
Function at 0x402b64
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi], 0x2f
jne 0x402c6c
mov al, byte [esi + 1]
cmp al, 0x50
je 0x402b81
cmp al, 0x70
jne 0x402c6c
add esi, 2
mov al, byte [esi]
cmp al, 0x20
je 0x402b8e
cmp al, 9
jne 0x402b91
inc esi
jmp 0x402b84
cmp byte [esi], 0
je 0x402c6c
push dword [esp + 0xc]
push dword [section..data]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
mov esi, 0x4056a0
push esi
call fcn.00402864
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 [0x405640], eax
cmp eax, 0xffffffff
jne 0x402bfa
push 0x30
mov eax, dword [0x40509c]
push esi
push eax
push dword [0x405064]
push dword [section..data]
call fcn.004023dd
mov eax, 1
jmp 0x402c6e
push 1
push 0x4056a0
call fcn.00403475
test al, 0x80
je 0x402c11
mov eax, 1
jmp 0x402c6e
call fcn.00403d29
test eax, eax
jge 0x402c65
cmp eax, 0xfffffffd
je 0x402c65
cmp eax, 0xfffffffc
jne 0x402c2b
mov eax, dword [0x405080]
jmp 0x402c3c
cmp eax, 0xfffffffb
jne 0x402c37
mov eax, dword [0x405084]
jmp 0x402c3c
mov eax, dword [0x405074]
cmp dword [0x405010], 0
mov ecx, 0x4056a0
je 0x402c50
mov ecx, dword [0x405050]
push 0x30
push ecx
push eax
push dword [0x405064]
push dword [section..data]
call fcn.004023dd
mov eax, 1
jmp 0x402c6e
xor eax, eax
pop esi
ret 8
Function at 0x4031ae
Capabilities:
Delete file
Get graphical window text

Disassembly:
push ebp
mov eax, dword [0x4055f0]
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 0x4031e7
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 0x403211
push 2
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll__lopen]
mov dword [0x405640], eax
test eax, eax
jge 0x403211
push 0
mov esi, 1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll__lcreat]
test eax, eax
jge 0x403211
xor esi, esi
mov dword [0x405640], eax
cmp eax, 0xffffffff
jne 0x40323f
test edi, edi
je 0x403238
push 0x30
push dword [ebp + 0xc]
push dword [0x405088]
push dword [0x405064]
push dword [ebp + 8]
call fcn.004023dd
xor eax, eax
jmp 0x403381
xor edi, edi
mov eax, dword [0x405004]
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 [0x405004]
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 [0x405644]
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [0x405644], eax
cmp eax, edi
jne 0x4032a5
push 0x30
push dword [ebp + 0xc]
push dword [0x40506c]
push dword [0x405064]
push dword [ebp + 8]
call fcn.004023dd
xor eax, eax
jmp 0x403381
mov eax, dword [0x405644]
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
push eax
mov edi, eax
push ebx
mov eax, dword [0x405004]
push 0xd
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 4]
push edi
push dword [0x405640]
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, dword [ebp - 4]
je 0x40331a
mov eax, dword [0x405644]
push eax
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
mov eax, dword [0x405640]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
test esi, esi
je 0x4032fd
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x30
push dword [ebp + 0xc]
push dword [0x40506c]
push dword [0x405064]
push dword [ebp + 8]
call fcn.004023dd
xor eax, eax
jmp 0x403381
xor esi, esi
mov eax, dword [0x405640]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
mov eax, dword [0x405004]
push esi
push 0xb9
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp + 0xc]
call fcn.00402155
mov eax, dword [0x405640]
mov dword [0x405010], esi
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [ebp - 8], esi
je 0x403370
push esi
mov eax, dword [0x405004]
push 1
push 0xc8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x405644]
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 0x40338a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
lea eax, [ebp - 0x170]
push esi
push edi
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x24
mov eax, dword [0x4050b4]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x403467
push 0x104
lea eax, [ebp - 0x274]
cmp dword [ebp + 0x10], 1
sbb edi, edi
push eax
add edi, 0x37
push 0x38
push dword [0x405540]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x12c
lea ecx, [ebp - 0x12c]
push ecx
mov eax, dword [0x405540]
push edi
mov ebx, 0x40105c
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push ebx
lea eax, [ebp - 0x12c]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x12c]
push eax
call edi
push ebx
lea ecx, [ebp - 0x12c]
push ecx
call edi
push 1
lea ecx, [ebp - 0x12c]
push esi
lea edx, [ebp - 0x274]
push ecx
push edx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x403460
push 0x30
mov eax, dword [0x405064]
push eax
push dword [0x4050b8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40346c
mov eax, 0x81
jmp 0x40346c
mov eax, 0x82
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4037f0
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 0x4039c8
mov eax, dword [0x4055f0]
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 [0x405004]
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0xe
push dword [0x405004]
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 0x4039c8
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
cmp eax, ebx
mov esi, eax
jne 0x403871
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4039c8
push esi
mov eax, dword [0x405004]
push edi
push 0xd
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x40529c], 0
je 0x40391a
push 0
push dword [ebp - 8]
push 0xc9
push dword [0x405004]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov dword [ebp - 4], eax
push eax
push 0xbb
push dword [0x405004]
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 [0x405298], 0
je 0x4038e0
add ebx, esi
lea ecx, [esi + edi]
push ebx
push ecx
call fcn.00404d14
jmp 0x4038ec
add ebx, esi
lea ecx, [esi + edi]
push ebx
push ecx
call fcn.00404df2
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40393e
cmp dword [ebp - 0x10], 0
mov ebx, edi
je 0x40393e
push 0
dec dword [ebp - 0x10]
push dword [ebp - 0x10]
push 0xbb
push dword [0x405004]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
jmp 0x4038c6
push dword [ebp + 8]
cmp dword [0x405298], 0
mov eax, dword [ebp - 0x14]
je 0x403933
add eax, esi
push eax
call fcn.00404ccc
jmp 0x40393b
add eax, esi
push eax
call fcn.00404daa
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 0x403988
cmp dword [0x405008], 0
je 0x403967
mov ecx, dword [0x405008]
jmp 0x40396d
mov ecx, dword [section..data]
push 0x40
mov eax, dword [0x405054]
push 0x405590
push eax
push dword [0x405064]
push ecx
call fcn.004023dd
jmp 0x4039c8
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 [0x405004]
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 [0x405004]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4039d1
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 0x4039ee
mov dword [ebp - 8], 0x50300104
xor edi, edi
mov ebx, 0xc8
push edi
mov eax, dword [0x405004]
push edi
push ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov eax, dword [0x405004]
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 0x403a46
cmp dword [ebp + 8], edi
jne 0x403a3f
push edi
mov eax, dword [0x405004]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
jmp 0x403b6d
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 [0x405004]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push dword [0x405540]
push 0xf
push dword [section..data]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
push 0
push dword [ebp - 8]
push section.sect_0
push 0x401054
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
test edi, edi
jne 0x403abe
push esi
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x403b6d
push ebx
push 0
push 0xc
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x403aea
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 0x403b6d
push esi
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push 0
mov eax, dword [0x405804]
push eax
push 0x30
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [0x405004]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 5
mov eax, dword [section..data]
push eax
mov dword [0x405004], edi
mov dword [0x405644], esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x405010], 0
mov eax, dword [0x405050]
jne 0x403b3b
mov eax, 0x4056a0
push eax
call fcn.00402155
cmp dword [ebp - 4], 0
je 0x403b5c
push 0
mov eax, dword [0x405004]
push 1
push 0xb9
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x405004]
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