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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0xb4be8d
dec al
je 0xb4bec9
dec al
je 0xb4bf0d
dec al
je 0xb4bf78
jmp 0xb4c002
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0xb4c002
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0xb4be9d
jmp 0xb4c002
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0xb4c002
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0xb4bed9
jmp 0xb4c002
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0xb4c002
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0xb4bf3b
xor ebp, ebp
jmp 0xb4bf4c
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0xb4bf55
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0xb4bf1d
jmp 0xb4c002
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0xb4c002
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0xb4bfd0
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00b49844
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0xb4bf8c
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0xb50e6c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [esi], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0x40
call fcn.00b508f0
test al, al
jne 0xb50ea8
push 0xd
call sub.kernel32.dll_SetLastError
jmp 0xb5123e
mov dword [esi], 1
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x5a4d
je 0xb50eca
push 0xc1
call sub.kernel32.dll_SetLastError
jmp 0xb5123e
mov dword [esi], 2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
add eax, 0xf8
cdq
push edx
push eax
call fcn.00b508f0
test al, al
jne 0xb50ef9
push 0xd
call sub.kernel32.dll_SetLastError
jmp 0xb5123e
mov dword [esi], 3
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x4550
je 0xb50f33
push 0xc1
call sub.kernel32.dll_SetLastError
jmp 0xb5123e
mov dword [esi], 4
mov eax, dword [ebp - 0x10]
cmp word [eax + 4], 0x14c
je 0xb50f53
push 0xc1
call sub.kernel32.dll_SetLastError
jmp 0xb5123e
mov dword [esi], 5
mov eax, dword [ebp - 0x10]
test byte [eax + 0x38], 1
je 0xb50f71
push 0xc1
call sub.kernel32.dll_SetLastError
jmp 0xb5123e
mov dword [esi], 6
xor eax, eax
push ebp
push 0xb51229
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0xc3acf3
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0xb5f904
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0xb5f90c
push ebx
push esi
mov eax, 0xb5f2c4
call fcn.00a17380
mov esi, dword [0xb75218]
xor eax, eax
push ebp
push 0xb5fad2
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00a13098
cmp eax, 2
jne 0xb5f99c
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00a13100
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.00a19d90
call fcn.00ae4d60
mov ebx, 0x64
lea edx, [ebp - 0x18]
mov eax, 2
call fcn.00a13100
mov eax, dword [ebp - 0x18]
call fcn.00a15280
push eax
call sub.kernel32.dll_DeleteFileA
lea edx, [ebp - 0x1c]
mov eax, 2
call fcn.00a13100
mov eax, dword [ebp - 0x1c]
call fcn.00a1a248
test al, al
je 0xb5f99c
push 0xa
call sub.kernel32.dll_Sleep_1
dec ebx
jne 0xb5f95e
mov al, byte [0xb5fae0]
push eax
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00a13100
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov edx, 0xb5faec
call fcn.00a1f34c
mov eax, dword [ebp - 0x20]
call fcn.00a15280
push eax
push 0
push 0
call fcn.00a176e8
mov ebx, eax
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
jne 0xb5fa08
push 0x40
push 0xb5faf0
lea edx, [ebp - 0x28]
mov eax, 0xb5f294
call fcn.00a170b0
mov eax, dword [ebp - 0x28]
call fcn.00a15280
push eax
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0xb5fab7
mov dl, 1
mov eax, dword [0xa29c40]
call fcn.00a13f14
mov edx, dword [0xb75210]
mov dword [edx], eax
mov eax, dword [0xb75210]
mov eax, dword [eax]
call fcn.00ae1d1c
test al, al
jne 0xb5fa3a
mov eax, dword [0xb75210]
mov eax, dword [eax]
call fcn.00a13f44
jmp 0xb5fab7
mov eax, dword [esi]
call fcn.00a77af4
lea edx, [ebp - 0x30]
mov eax, dword [esi]
call fcn.00a7824c
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00a1a678
mov eax, dword [ebp - 0x2c]
call fcn.00a1a9cc
mov ecx, dword [0xb75074]
mov eax, dword [esi]
mov edx, dword [0xb53008]
call fcn.00a77b0c
mov ecx, dword [0xb753b4]
mov eax, dword [esi]
mov edx, dword [0xb5e4fc]
call fcn.00a77b0c
mov ecx, dword [0xb75104]
mov eax, dword [esi]
mov edx, dword [0xb5da2c]
call fcn.00a77b0c
mov ecx, dword [0xb752b4]
mov eax, dword [esi]
mov edx, dword [0xb5cdf8]
call fcn.00a77b0c
mov eax, dword [esi]
call fcn.00a77b8c
push ebx
call sub.kernel32.dll_ReleaseMutex
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb5fad9
lea eax, [ebp - 0x30]
mov edx, 8
call fcn.00a14dd4
ret

Function at 0x438c7c
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop edi
add edx, esi
sub esi, edx
and esi, esi
call fcn.00438cb7
add edx, 0xb453c8f
mov esi, 0xf463d6cf
xor dword [eax], edi
add edx, 0x9b181322
mov esi, 0xe4e84d68
inc eax
add esi, 0x7bb82beb
cmp eax, ebx
jne fcn.00438c7c
and esi, esi
ret
Function at 0x403d48
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x439740]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [esp + 0xc]
push edi
xor ecx, ecx
mov ebx, 0x80000001
push ecx
push eax
push ecx
push 2
push ecx
push ecx
push ecx
push str.SoftwareClassesApplications
push ebx
call esi
push dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
push ecx
push 2
push 1
push ecx
push ecx
push str.SoftwareClassesApplicationscrashreporter.exe
push ebx
call esi
test eax, eax
jne 0x403de2
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.IsHostApp
push dword [esp + 0x24]
call esi
push ebx
push ebx
push ebx
push ebx
push str.NoOpenWith
push dword [esp + 0x24]
call esi
push ebx
push ebx
push ebx
push ebx
push str.NoStartPage
push dword [esp + 0x24]
call esi
push dword [esp + 0x10]
call edi
mov esi, dword [0x43ae64]
mov eax, esi
shl eax, 2
push eax
call fcn.004110c4
xor edi, edi
mov ebx, eax
pop ecx
test esi, esi
jle 0x403e5b
mov ecx, dword [0x43ae6c]
push dword [ecx + edi*4]
lea ecx, [esp + 0x30]
call fcn.00407768
push ecx
push ecx
lea edx, [esp + 0x34]
lea ecx, [esp + 0x1c]
call fcn.004064e8
cmp dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x1c]
pop ecx
pop ecx
jae 0x403e2e
lea eax, [esp + 0x14]
push eax
call fcn.0042aeca
pop ecx
push 0
push 1
lea ecx, [esp + 0x1c]
mov dword [ebx + edi*4], eax
call fcn.004093dc
push 0
push 1
lea ecx, [esp + 0x34]
call fcn.004097f1
inc edi
cmp edi, dword [0x43ae64]
jl 0x403dfc
mov edx, ebx
call fcn.0040326e
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00410465
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404045
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], edx
push eax
push 2
push 0
mov edi, ecx
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x404083
push str.SubmitReport
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call esi
lea eax, [ebp - 4]
push eax
push 2
push 0
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4040ae
push str.SubmitReport
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call esi
lea eax, [ebp - 8]
push eax
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4040e6
cmp byte [ebp + 8], al
push 4
setne al
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4045c1
Capabilities:
Set registry value

Disassembly:
sub esp, 0x82c
mov eax, dword [0x439740]
xor eax, esp
mov dword [esp + 0x824], eax
push ebx
push ebp
push esi
push edi
push 0x400
lea eax, [esp + 0x34]
mov dword [esp + 0x18], edx
push eax
mov ebx, ecx
push 0x3f1
push ebx
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.00407768
cmp dword [0x43bb80], 8
mov esi, 0x43bb6c
mov eax, dword [0x43bb6c]
jae 0x404618
mov eax, esi
lea ecx, [esp + 0x10]
push ecx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x404666
cmp dword [esp + 0x2c], 8
mov ecx, dword [esp + 0x18]
jae 0x40463c
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x28]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.Email
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.004097f1
cmp dword [0x43bb80], 8
mov edi, dword [0x43bb6c]
jae 0x404684
mov edi, esi
mov ebp, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 0x3f2
push ebx
call ebp
test eax, eax
mov edx, str.IncludeURL
mov ecx, edi
setne al
movzx eax, al
push eax
call fcn.00404045
cmp dword [0x43bb80], 8
mov edi, dword [0x43bb6c]
pop ecx
jae 0x4046b9
mov edi, esi
push 0x3f0
push ebx
call ebp
test eax, eax
mov edx, str.EmailMe
mov ecx, edi
setne al
movzx eax, al
push eax
call fcn.00404045
cmp dword [0x43bb80], 8
pop ecx
jb 0x4046e6
mov esi, dword [0x43bb6c]
push 0x3ef
push ebx
call ebp
test eax, eax
mov edx, str.SubmitCrashReport
mov ecx, esi
setne al
movzx eax, al
push eax
call fcn.00404045
pop ecx
push dword [esp + 0x14]
push ebx
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [esp + 0x834]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410465
add esp, 0x82c
ret
Function at 0x404728
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x84c
mov eax, dword [0x439740]
xor eax, esp
mov dword [esp + 0x844], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x3f6
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetDC]
xor ebp, ebp
mov esi, eax
push ebp
push ebp
push 0x31
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x404772
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x40]
mov edx, ebx
push eax
mov ecx, edi
call fcn.0040435f
mov dword [esp], 0x400
lea eax, [esp + 0x54]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x50]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x40479a
sub ecx, edx
lea eax, [esp + 0x14]
push eax
sar ecx, 1
lea eax, [esp + 0x54]
push ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x4048ac
mov esi, dword [esp + 0x48]
sub esi, dword [esp + 0x40]
mov dword [esp + 0x10], esi
cmp dword [esp + 0x14], esi
jl 0x4048ac
fild dword [esp + 0x14]
push ecx
push ecx
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fild dword [esp + 0x18]
fstp dword [esp + 0x18]
fdiv dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp qword [esp]
call fcn.0042dc70
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
pop ecx
pop ecx
call fcn.0042dbc0
imul eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x44]
sub ebp, dword [esp + 0x4c]
add ebp, eax
test ebp, ebp
jle 0x4048ac
push 1
push eax
push esi
push dword [esp + 0x50]
push dword [esp + 0x50]
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
call fcn.00408c1d
movzx eax, byte [0x43bb9e]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x3ed
push eax
push ecx
lea eax, [esp + 0x34]
push eax
call fcn.0040d0de
movzx eax, byte [0x43bb9e]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x3f4
push eax
push ecx
lea eax, [esp + 0x44]
push eax
call fcn.0040d0de
mov edx, ebp
mov ecx, ebx
call fcn.0040439d
push 0xa
mov esi, 0x4364d8
pop edi
movzx eax, byte [0x43bb9e]
push eax
push esi
push ecx
lea eax, [esp + 0x3c]
push eax
call fcn.0040d0de
add esi, 4
dec edi
jne 0x404892
mov ecx, dword [esp + 0x854]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410465
add esp, 0x84c
ret
Function at 0x4048c5
Capabilities:
Create thread

Disassembly:
sub esp, 0x24
mov eax, dword [0x439740]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov esi, 0x3ef
mov edi, ecx
push esi
push edi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
jne 0x4048f8
xor edx, edx
mov ecx, edi
call fcn.004045c1
jmp 0x404a31
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
xor ebp, ebp
push ebp
push esi
push edi
call ebx
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
push ebp
push 0x3ee
push edi
call ebx
push eax
call esi
push ebp
push 0x3f3
push edi
call ebx
push eax
call esi
push ebp
push 0x3f2
push edi
call ebx
push eax
call esi
push ebp
push 0x3f0
push edi
call ebx
push eax
call esi
push ebp
push 0x3f1
push edi
call ebx
push eax
call esi
push ebp
push 0x3ed
push edi
call ebx
push eax
call esi
push ebp
push 0x3f4
push edi
call ebx
push eax
call esi
mov edx, str.ReportDuringSubmit2
lea ecx, [esp + 0x14]
call fcn.00403f50
cmp dword [eax + 0x14], 8
jb 0x404978
mov eax, dword [eax]
push eax
push 0x3f6
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push ebp
push 1
lea ecx, [esp + 0x1c]
call fcn.004097f1
mov ecx, edi
call fcn.00404728
push 0xffff0000
push 0xffffffffffffffff
push 0x465
mov esi, 0x3f7
push esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
push edi
call ebx
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor ebx, ebx
mov dword [0x43bb28], edi
mov esi, 0x43bb2c
mov dword [0x43bba0], ebx
cmp esi, 0x43bb84
je 0x404a18
mov eax, dword [0x43bb2c]
mov ecx, esi
push dword [eax + 4]
call fcn.0040c92d
mov eax, dword [0x43bb2c]
mov byte [esp + 0x10], bl
push dword [esp + 0x10]
mov dword [eax + 4], eax
mov eax, dword [0x43bb2c]
push ecx
mov ecx, esi
mov dword [eax], eax
mov eax, dword [0x43bb2c]
mov dword [eax + 8], eax
mov dword [0x43bb30], ebx
call fcn.0040d081
push ebx
push ebx
push 0x43bb28
push 0x40447b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x43bba0], eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410465
add esp, 0x24
ret
Function at 0x404a44
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xc4
mov eax, dword [0x439740]
xor eax, esp
mov dword [esp + 0xbc], eax
mov ecx, dword [0x43bb04]
xor eax, eax
push ebx
push ebp
push esi
push edi
push 7
mov word [esp + 0x70], ax
xor ebp, ebp
mov eax, dword [0x43bb08]
mov ebx, ebp
pop esi
sub eax, ecx
mov dword [esp + 0x80], esi
push 0x18
cdq
pop edi
idiv edi
mov dword [esp + 0x7c], ebp
test eax, eax
je 0x404b55
mov edi, ebp
lea edx, [edi + ecx]
push ecx
lea ecx, [esp + 0xb8]
call fcn.00406429
mov esi, eax
mov dword [esp], 0x4360b0
call fcn.00401233
pop ecx
push eax
push ecx
push ecx
mov ecx, esi
call fcn.0040d44f
push eax
lea ecx, [esp + 0xa0]
call fcn.00407797
mov esi, 0x4360a8
push esi
call fcn.00401233
pop ecx
push eax
push esi
lea ecx, [esp + 0xa4]
call fcn.0040aedf
push eax
lea ecx, [esp + 0x88]
call fcn.00407797
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x78]
call fcn.0040ae48
push ebp
push 1
lea ecx, [esp + 0x8c]
call fcn.004097f1
push ebp
push 1
lea ecx, [esp + 0xa4]
call fcn.004097f1
push ebp
push 1
lea ecx, [esp + 0xbc]
call fcn.004097f1
mov eax, dword [0x43bb08]
inc ebx
mov ecx, dword [0x43bb04]
sub eax, ecx
push 0x18
pop esi
cdq
add edi, esi
idiv esi
cmp ebx, eax
jb 0x404a92
mov esi, dword [esp + 0x80]
push 0x44
pop edi
push edi
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.004159b0
mov dword [esp + 0x2c], edi
xor eax, eax
lea edi, [esp + 0x1c]
xor ebx, ebx
stosd dword es:[edi], eax
inc ebx
add esp, 0xc
mov dword [esp + 0x4c], ebx
mov word [esp + 0x50], bx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esp + 0x6c]
cmp esi, 8
jae 0x404b8e
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
push ecx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404bbc
push dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x14]
call esi
push ebp
push ebx
lea ecx, [esp + 0x74]
call fcn.004097f1
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410465
add esp, 0xc4
ret
Function at 0x404ff9
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x7e4
mov eax, dword [0x439740]
xor eax, esp
mov dword [esp + 0x7e0], eax
push ebx
push ebp
push esi
push edi
push 0x1f5
lea eax, [esp + 0x408]
mov esi, ecx
push eax
push esi
mov ebp, edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0xb0
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x14]
xor esi, esi
mov ecx, dword [esp + 0x10]
mov edi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub eax, ecx
je 0x4050a1
push eax
lea eax, [esp + 0x408]
lea eax, [eax + ecx*2]
push eax
lea eax, [esp + 0x20]
push 0x1f5
push eax
call fcn.0041080f
mov eax, dword [esp + 0x24]
add esp, 0x10
sub eax, dword [esp + 0x10]
add eax, eax
cmp eax, 0x3ea
jae 0x4050e9
push esi
push esi
push esi
push esi
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + eax + 0x2c], cx
lea eax, [esp + 0x2c]
push eax
push esi
push 0xfde9
call ebx
lea edi, [eax - 1]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
lea eax, [esp + 0x418]
push eax
push esi
push 0xfde9
call ebx
lea esi, [eax - 1]
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push ebp
push eax
push 0xfde9
call ebx
mov ecx, dword [esp + 0x7f0]
sub esi, edi
dec eax
pop edi
add eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410465
add esp, 0x7e4
ret
call fcn.0041203a
int3
Function at 0x40537c
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x818
mov eax, dword [0x439740]
xor eax, esp
mov dword [esp + 0x814], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov esi, edx
push ebx
call dword [sym.imp.USER32.dll_GetDC]
xor edi, edi
mov ebp, eax
push edi
push edi
push 0x31
push ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4053be
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x400
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [esp + 0x840], 8
mov eax, dword [esp + 0x82c]
jae 0x4053e7
lea eax, [esp + 0x82c]
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x840]
push eax
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x40547a
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x10]
jne 0x405406
sub ecx, edx
lea eax, [esp + 0x14]
push eax
sar ecx, 1
lea eax, [esp + 0x28]
push ecx
push eax
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x40547a
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
js 0x40547a
mov eax, dword [esp + 0x848]
test eax, eax
jne 0x40544b
mov eax, dword [esi + 8]
sub eax, dword [esi]
sub eax, dword [esp + 0x14]
cmp byte [esp + 0x844], 0
lea edi, [eax + ecx]
je 0x40545c
sub dword [esi], edi
jmp 0x40545f
add dword [esi + 8], edi
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push 1
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push eax
push dword [esi + 4]
push dword [esi]
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
xor eax, eax
lea ecx, [esp + 0x82c]
push eax
push 1
call fcn.004097f1
mov ecx, dword [esp + 0x824]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410465
add esp, 0x818
ret

Function at 0x4055fd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
cmp byte [0x43bad0], 0
mov eax, edx
push esi
mov dword [esp + 4], eax
je 0x40568b
push ebx
push ebp
push edi
push 5
movzx eax, cx
xor ebp, ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov edi, eax
push ebx
push edi
call fcn.00414120
or dword [edi + 8], 0x400000
add esp, 0xc
push 0
push dword [esp + 0x1c]
push dword [esp + 0x18]
push edi
push 0
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebp
pop ebx
jmp 0x4056a0
push 0
push dword [esp + 0x10]
push eax
movzx eax, cx
push eax
push 0
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov esi, eax
mov eax, esi
pop esi
pop ecx
ret