joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b0a0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478f18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], esi
push 0x10000000
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call ebx
cmp edi, esi
jne 0x40b115
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 8
jb 0x40b104
mov eax, dword [ebp + 8]
push eax
call fcn.0042ca67
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x18], esi
mov word [ebp + 8], cx
or eax, 0xffffffff
jmp 0x40b1b0
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x40b121
lea eax, [ebp + 8]
push 0x34
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
call ebx
test esi, esi
jne 0x40b15e
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 8
jb 0x40b153
mov edx, dword [ebp + 8]
push edx
call fcn.0042ca67
add esp, 4
xor eax, eax
mov word [ebp + 8], ax
or eax, 0xffffffff
jmp 0x40b1a9
lea ecx, [ebp - 0x2c]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x40b17f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call ebx
push edi
call ebx
push esi
call ebx
push edi
call ebx
mov esi, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 8
jb 0x40b1a1
mov edx, dword [ebp + 8]
push edx
call fcn.0042ca67
add esp, 4
xor eax, eax
mov word [ebp + 8], ax
mov eax, esi
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40b1e0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], esi
push 0x10000000
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call edi
cmp ebx, esi
jne 0x40b259
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 8
jb 0x40b244
mov eax, dword [ebp + 8]
push eax
call fcn.0042ca67
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], esi
mov word [ebp + 8], cx
jmp 0x40b39e
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x40b265
lea eax, [ebp + 8]
push 0x34
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
call edi
test esi, esi
jne 0x40b2b0
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 8
jb 0x40b297
mov edx, dword [ebp + 8]
push edx
call fcn.0042ca67
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jmp 0x40b39e
lea ecx, [ebp - 0x2c]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40b2ff
call edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 8
jb 0x40b297
mov edx, dword [ebp + 8]
push edx
call fcn.0042ca67
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jmp 0x40b39e
mov eax, dword [ebp - 0x28]
cmp eax, 4
jne 0x40b329
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp + 8]
call fcn.00403600
mov eax, 1
jmp 0x40b3a0
cmp eax, 1
jne 0x40b383
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x30], eax
call edi
cmp dword [ebp - 0x30], 0
je 0x40b383
lea ecx, [ebp - 0x2c]
push ecx
push esi
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
jne 0x40b383
push 0x3e8
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 3
jg 0x40b38f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x28], 4
je 0x40b307
lea edx, [ebp - 0x2c]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
je 0x40b356
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp + 8]
call fcn.00403600
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40b3c0
Capabilities:
Acquire debug privileges
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
push edi
push 2
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b438
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 8
jb 0x40b428
mov eax, dword [ebp + 8]
push eax
call fcn.0042ca67
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x18], edi
mov word [ebp + 8], cx
xor eax, eax
jmp 0x40b53b
lea edx, [ebp - 0x254]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, edi
je 0x40b488
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x40b45c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40b47e
lea ecx, [ebp - 0x254]
push ecx
push esi
call ebx
cmp eax, edi
jne 0x40b450
jmp 0x40b488
mov dword [ebp - 0x258], 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
cmp dword [ebp - 0x258], edi
je 0x40b513
lea edx, [ebp - 0x258]
push edx
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40b4eb
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edx, dword [ebp - 0x258]
push 0
push 0
push 0x10
lea ecx, [ebp - 0x24]
push ecx
push 0
push edx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [ebp - 0x24c]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40b513
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call ebx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 8
jb 0x40b52c
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042ca67
add esp, 4
xor edx, edx
mov dword [ebp + 0x18], 0
mov word [ebp + 8], dx
mov eax, edi
mov dword [ebp + 0x1c], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40d070
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f8
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
call sym.ipa2exe.exe_curl_global_cleanup
push 2
call sym.ipa2exe.exe_curl_global_init
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.DriverDownloader_running..._n
call fcn.0043074e
mov eax, dword [esi + 0xc]
mov dword [esi + 0x18], 0
mov edi, dword [eax]
add esp, 4
mov dword [ebp - 0x3f0], edi
cmp edi, eax
je 0x40d108
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x48]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x40]
call eax
add dword [esi + 0x18], eax
mov ecx, dword [edi + 0x10]
push 0
push 0
push ecx
push 0x40d2c0
push 0
push 0
call ebx
mov edx, dword [edi + 0x10]
mov dword [edx + 0x54], eax
lea eax, [ebp - 0x3f0]
call fcn.0040da80
mov edi, dword [ebp - 0x3f0]
cmp edi, dword [esi + 0xc]
jne 0x40d0c8
mov dword [ebp - 0x3f8], 0
mov ebx, dword [esi + 0xc]
mov dword [esi + 0x1c], 0
mov eax, dword [ebx]
mov byte [ebp - 0x3f1], 1
mov dword [ebp - 0x3f0], eax
cmp eax, ebx
je 0x40d14f
xor edi, edi
mov eax, dword [eax + 0x10]
add edi, dword [eax + 0x3c]
lea eax, [ebp - 0x3f0]
mov dword [esi + 0x1c], edi
call fcn.0040da80
mov eax, dword [ebp - 0x3f0]
cmp eax, ebx
jne 0x40d131
mov edi, dword [ebx]
mov eax, edi
mov dword [ebp - 0x3f0], eax
cmp eax, ebx
je 0x40d187
lea ecx, [ecx]
mov ecx, dword [eax + 0x10]
cmp dword [ecx + 0x50], 5
jne 0x40d180
lea eax, [ebp - 0x3f0]
call fcn.0040da80
mov eax, dword [ebp - 0x3f0]
cmp eax, ebx
jne 0x40d160
jmp 0x40d187
mov byte [ebp - 0x3f1], 0
mov eax, edi
mov dword [ebp - 0x3f0], eax
cmp eax, ebx
je 0x40d1bd
mov edx, dword [eax + 0x10]
cmp dword [edx + 0x50], 6
je 0x40d1b3
lea eax, [ebp - 0x3f0]
call fcn.0040da80
mov eax, dword [ebp - 0x3f0]
cmp eax, ebx
jne 0x40d193
jmp 0x40d1bd
mov dword [ebp - 0x3f8], 1
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40d24e
mov ecx, dword [esi + 0x1c]
fild dword [esi + 0x1c]
test ecx, ecx
jns 0x40d1d8
fadd qword [0x48dcd8]
fmul qword [0x48dcc8]
mov dword [ebp - 0x3f0], eax
fild dword [ebp - 0x3f0]
test eax, eax
jns 0x40d1f4
fadd qword [0x48dcd8]
fdivp st(1)
call fcn.00431c80
push 0x3e7
lea edx, [ebp - 0x3eb]
push 0
push edx
mov edi, eax
mov byte [ebp - 0x3ec], 0
call fcn.004316d0
push edi
push str.percenDone:__d__r_n
lea eax, [ebp - 0x3ec]
push 0x3e8
push eax
call fcn.0042d812
lea ecx, [ebp - 0x3ec]
push ecx
call fcn.0043074e
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x20]
add esp, 0x20
push 0
push edi
push edx
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
cmp byte [ebp - 0x3f1], 0
jne 0x40d267
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40d112
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
push 0
push 1
push ecx
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x3f8]
push eax
push esi
call fcn.0040d310
call sym.ipa2exe.exe_curl_global_cleanup
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
Function at 0x40f790
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x40fc80
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478e53
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x496684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi], vtable.MyWindow.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [ebp - 4], edi
mov eax, 1
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], vtable.MyButton.0
mov dword [esi + 0x30], ebx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
cmp ebx, edi
je 0x40fd31
mov eax, dword [ebx + 4]
lea edx, [ebp + 0xc]
push edx
push eax
mov dword [ebp + 0xc], edi
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
cmp eax, edi
je 0x40fcfd
mov dword [ebx + 8], eax
mov ebx, dword [esi + 0x30]
mov eax, 0xaaaaaaab
mul dword [ebp + 0xc]
shr edx, 1
add edx, dword [esi + 0x14]
lea ecx, [ebp + 0xc]
mov dword [esi + 0x1c], edx
mov edx, dword [ebx + 4]
push ecx
push edx
mov dword [ebp + 0xc], edi
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
cmp eax, edi
je 0x40fd28
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x18]
add eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], ecx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edi
cmp ebx, edi
je 0x40fda5
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40fd50
sub eax, edx
sar eax, 1
mov edi, eax
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042bc4e
add edi, edi
push edi
push ebx
push eax
mov dword [esi + 0x40], eax
call fcn.00431360
mov eax, dword [esi + 0x40]
xor ecx, ecx
mov word [edi + eax], cx
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
add edx, 0x64
add esp, 0x10
add eax, 0x28
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], eax
xor ecx, ecx
mov eax, 6
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042bc4e
mov dword [esi + 0x44], eax
mov ecx, dword [str.Arial]
mov dword [eax], ecx
mov edx, dword [0x48c0a0]
mov dword [eax + 4], edx
mov cx, word [0x48c0a4]
mov word [eax + 8], cx
mov edx, dword [esi + 0x44]
add esp, 4
xor eax, eax
mov word [edx + 0xa], ax
mov dword [esi + 0x48], 0xa
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x410210
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478d63
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x496684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi], vtable.MyWindow.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [ebp - 4], edi
mov eax, 1
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], eax
mov dword [ebp - 4], eax
mov dword [esi], vtable.MyCheckBox.0
mov dword [esi + 0x30], ebx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], 0x16d
cmp ebx, edi
je 0x4102c4
mov eax, dword [ebx + 4]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
cmp eax, edi
je 0x41028f
mov dword [ebx + 8], eax
mov ecx, dword [ebp - 0x10]
mov ebx, dword [esi + 0x30]
shr ecx, 3
add ecx, dword [esi + 0x14]
lea edx, [ebp - 0x10]
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 4]
push edx
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
cmp eax, edi
je 0x4102b6
mov dword [ebx + 8], eax
mov ecx, dword [esi + 0x18]
add ecx, dword [ebp - 0x10]
mov eax, 1
mov dword [esi + 0x20], ecx
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x34], edx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], edi
cmp ebx, edi
je 0x410336
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4102e2
sub eax, edx
sar eax, 1
mov edi, eax
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042bc4e
add edi, edi
push edi
push ebx
push eax
mov dword [esi + 0x44], eax
call fcn.00431360
mov eax, dword [esi + 0x44]
add esp, 0x10
xor ecx, ecx
mov word [edi + eax], cx
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], edx
mov eax, 1
mov dword [esi + 0x38], eax
xor ecx, ecx
mov eax, 6
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042bc4e
mov dword [esi + 0x48], eax
mov ecx, dword [str.Arial]
mov dword [eax], ecx
mov edx, dword [0x48c0a0]
mov dword [eax + 4], edx
mov cx, word [0x48c0a4]
mov word [eax + 8], cx
mov edx, dword [esi + 0x48]
add esp, 4
xor eax, eax
mov word [edx + 0xa], ax
mov dword [esi + 0x4c], 0xa
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x410aa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478d33
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x496684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi], vtable.MyWindow.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [ebp - 4], edi
mov eax, 1
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [esi], vtable.MyMainWindow.0
mov dword [esi + 0x30], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
mov ebx, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x30]
mov edx, dword [eax + 4]
lea ecx, [ebp + 0x10]
push ecx
push edx
mov dword [ebp - 0x10], eax
mov dword [ebp + 0x10], edi
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
cmp eax, edi
je 0x410b31
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
sub ebx, dword [ebp + 0x10]
lea edx, [ebp + 0x10]
shr ebx, 1
mov dword [esi + 0x14], ebx
mov ebx, dword [esi + 0x30]
mov eax, dword [ebx + 4]
push edx
push eax
mov dword [ebp + 0x10], edi
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
cmp eax, edi
je 0x410b54
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0x10]
mov ebx, dword [esi + 0x30]
shr eax, 1
lea ecx, [ebp + 0x10]
mov dword [esi + 0x18], eax
mov edx, dword [ebx + 4]
push ecx
push edx
mov dword [ebp + 0x10], edi
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
cmp eax, edi
je 0x410b7a
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x14]
add eax, dword [ebp + 0x10]
mov ebx, dword [esi + 0x30]
lea ecx, [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov edx, dword [ebx + 4]
push ecx
push edx
mov dword [ebp + 0x10], edi
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
cmp eax, edi
je 0x410b9e
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x18]
add eax, dword [ebp + 0x10]
mov ebx, dword [esi + 0x30]
lea ecx, [ebp + 0x10]
mov dword [esi + 0x20], eax
mov edx, dword [ebx + 4]
push ecx
push edx
mov dword [ebp + 0x10], edi
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
cmp eax, edi
je 0x410bc2
mov dword [ebx + 8], eax
mov ebx, dword [esi + 0x30]
mov edx, dword [ebx + 4]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
push ecx
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
cmp eax, edi
je 0x410be3
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 0x18]
push 1
push eax
mov eax, dword [esi + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x411200
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47885e
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x496684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], vtable.MyWindow.0
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [ebp - 4], ecx
mov edx, 1
mov dword [eax + 0x24], edx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edx
mov dword [ebp - 4], edx
mov dword [eax], vtable.MyStateBar.0
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov byte [ebp - 4], 2
mov esi, dword [ebp + 0xc]
mov dword [eax + 0x14], esi
mov esi, dword [ebp + 0x10]
or edx, 0xffffffff
mov dword [eax + 0x40], edx
mov dword [eax + 0x18], esi
mov dword [eax + 0x48], ecx
mov dword [eax + 0x44], ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x411d90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478798
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x496684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, word [ebp + 8]
push 0x48c1cc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x411dfc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push 0
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 0x10]
push ebx
push ecx
push eax
call fcn.00431360
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea edx, [ebp + 8]
push edx
xor ebx, ebx
push ebx
push edi
mov dword [ebp + 8], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x411e74
mov ecx, dword [ebp + 8]
lea eax, [esi + 4]
push eax
push ecx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], ebx
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x411e76
xor esi, esi
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413450
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47a918
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x496684]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [0x499bf0], 1
je 0x4135ae
cmp dword [ebx + 0xc0], 0
jne 0x4135ae
cmp dword [ebp + 8], 0
jne 0x413541
mov eax, dword [ebx + 0x68]
mov dword [eax + 0x24], 0
mov ecx, dword [ebx + 0xa0]
mov dword [ecx + 0x40], 2
mov esi, dword [ebx + 0xa4]
xor edi, edi
call fcn.00411840
mov esi, dword [ebx + 0xa8]
mov edi, 1
call fcn.00411840
mov edx, dword [ebx + 0x8c]
xor eax, eax
mov dword [edx + 0x38], eax
mov ecx, dword [ebx + 0x8c]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x24], eax
mov dword [ebx + 0xb4], edi
mov edi, dword [edx]
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
mov eax, edi
mov dword [esp + 0x2c], esp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413510
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.004054e0
mov dword [esp + 0x3c], 0
call fcn.00411b30
push eax
mov dword [esp + 0x40], 0xffffffff
call fcn.0040b8c0
push 0
jmp 0x4135a6
mov esi, dword [ebx + 0x9c]
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x41355f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0xc], 0xffffffff
mov esi, dword [ebx + 0xa8]
xor edi, edi
call fcn.00411840
mov esi, dword [ebx + 0xa4]
mov edi, 1
call fcn.00411840
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x40], edi
mov ecx, dword [ebx + 0x8c]
xor eax, eax
mov dword [ecx + 0x24], eax
mov edx, dword [ebx + 0x8c]
mov dword [edx + 0x38], eax
mov ecx, dword [ebx + 0x68]
mov dword [ebx + 0xb4], eax
mov dword [ecx + 0x24], eax
push eax
lea esi, [ebx - 0xc]
call fcn.004130e0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8