joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41835a
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4744a4
call fcn.00473d84
mov eax, 0x1018
call fcn.00443b60
push ebx
push esi
push edi
xor edi, edi
mov ebx, edx
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1024], eax
mov dword [ebp - 0x1020], edi
mov dword [ebp - 4], edi
cmp eax, 0xffffffff
je 0x4184fe
mov esi, dword [ebp + 8]
mov eax, esi
shl eax, 2
call fcn.00449f60
mov eax, esp
mov dword [ebp - 0x1c], eax
test esi, esi
jle 0x418411
mov esi, dword [ebp + 0xc]
mov ecx, eax
sub ecx, esi
mov dword [ebp - 0x18], ecx
xor eax, eax
cmp word [esi + 2], ax
jne 0x4183cf
mov eax, dword [esi]
jmp 0x4183db
mov eax, dword [ebx]
mov ecx, ebx
push dword [esi]
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + esi], eax
test edi, edi
je 0x4183f2
push 0x480d50
lea ecx, [ebp - 0x1024]
call fcn.004182d4
push dword [esi]
lea ecx, [ebp - 0x1024]
call fcn.004182d4
mov ecx, dword [ebp - 0x18]
inc edi
add esi, 4
cmp edi, dword [ebp + 8]
jl 0x4183c3
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
xor edi, edi
push ecx
mov dword [eax], ecx
inc edi
mov eax, dword [ebx]
push ecx
push edi
mov ecx, ebx
call dword [eax + 0x18]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4184bc
mov dword [ebp - 0x18], edi
push 0x480934
lea ecx, [ebp - 0x1024]
call fcn.004182d4
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1024]
call fcn.004182d4
mov dword [ebp - 0x14], edi
mov edx, edi
cmp esi, edi
jle 0x41849b
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebx]
push 0
push dword [ecx + edx*4]
mov ecx, ebx
push dword [ebp - 0x18]
call dword [eax + 0x18]
push 0x480d50
lea ecx, [ebp - 0x1024]
mov esi, eax
call fcn.004182d4
push esi
lea ecx, [ebp - 0x1024]
call fcn.004182d4
mov edx, dword [ebp - 0x14]
inc edx
mov dword [ebp - 0x14], edx
cmp edx, edi
jl 0x41845a
mov esi, dword [ebp + 8]
xor edi, edi
inc edi
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebx]
inc ecx
push 0
push dword [edx]
mov dword [ebp - 0x18], ecx
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x418430
push 0x480934
lea ecx, [ebp - 0x1024]
call fcn.004182d4
cmp dword [ebp - 0x1020], 0
je 0x4184f8
xor eax, eax
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1020]
lea eax, [ebp - 0x101c]
push eax
push dword [ebp - 0x1024]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x1024]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
lea esp, [ebp - 0x1030]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41865c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push 0x103
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
mov ebx, ecx
call fcn.00443b90
lea eax, [ebx + 0x28]
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x418690
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x104]
push 0x104
push eax
call fcn.0043e21a
add esp, 0xc
xor eax, eax
cmp byte [ebp - 0x104], 0x5c
jne 0x4186b3
inc eax
jmp 0x4186c8
cmp byte [ebp - 0x103], 0x3a
jne 0x4186c8
cmp byte [ebp - 0x102], 0x5c
jne 0x418727
push 3
pop eax
push esi
lea esi, [ebp - 0x104]
add esi, eax
cmp byte [esi], 0
je 0x418726
push edi
xor edi, edi
mov al, byte [esi]
cmp al, 0x5c
jne 0x4186f9
cmp al, 0x3a
je 0x4186f9
push 0
lea eax, [ebp - 0x104]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
inc edi
inc esi
cmp byte [esi], 0
jne 0x4186d9
test edi, edi
pop edi
je 0x418726
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx + 8], eax
pop esi
xor eax, eax
cmp dword [ebx + 8], 0xffffffff
pop ebx
setne al
mov esp, ebp
pop ebp
ret
Function at 0x418b63
Capabilities:
Check if file exists
Create directory

Disassembly:
mov eax, 0x474580
call fcn.00473d84
sub esp, 0x98
push ebx
push esi
push edi
lea eax, [ebp - 0x40]
mov edi, ecx
push eax
call fcn.00418b0c
xor ebx, ebx
lea ecx, [ebp - 0x28]
push str.mupdb
mov edx, eax
mov dword [ebp - 4], ebx
call fcn.00419c05
pop ecx
xor esi, esi
mov byte [ebp - 4], 2
push ebx
inc esi
lea ecx, [ebp - 0x40]
push esi
call fcn.00408186
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x418bc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.00418b29
push 0x480b08
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.00419c05
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
push dword [ebp + 0xc]
mov edx, eax
call fcn.00419c37
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x88]
call fcn.00408186
push ebx
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call fcn.00408186
push 0x480b40
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xa0]
call fcn.0041709d
pop ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 8
push ecx
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00419c37
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00416d27
push ebx
push esi
lea ecx, [ebp - 0x40]
call fcn.00408186
push ebx
push esi
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 7
call fcn.00408186
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x418c8a
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
push ecx
call fcn.00418222
pop ecx
pop ecx
jmp 0x418cd5
push 0x2c
mov dword [ebp - 0x3c], 0x48086e
mov dword [ebp - 0x38], str.server
mov dword [ebp - 0x34], str.local
mov dword [ebp - 0x30], str.fileset
mov dword [ebp - 0x2c], str.optional
call fcn.0043d630
pop ecx
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x418ccf
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push ecx
mov ecx, eax
call fcn.0040ab43
jmp 0x418cd1
mov eax, ebx
mov byte [ebp - 4], 7
mov esi, dword [ebp + 8]
mov dword [edi], eax
cmp dword [esi], 0
je 0x418cfd
mov eax, esi
mov eax, dword [eax]
mov ecx, dword [edi]
push dword [eax + 4]
mov edx, dword [ecx]
push str.server
push dword [eax]
call dword [edx + 0x20]
inc ebx
lea eax, [esi + ebx*4]
cmp dword [eax], 0
jne 0x418ce1
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edx, dword [edi]
cmovae ecx, dword [ebp - 0x28]
call fcn.0041851e
mov eax, dword [esi]
xor edi, edi
jmp 0x418d20
push eax
call fcn.0043d605
inc edi
pop ecx
mov eax, dword [esi + edi*4]
test eax, eax
jne 0x418d15
push esi
call fcn.0041ed0a
pop ecx
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.00408186
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408186
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41a1eb
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
push edi
push dword [esi + 0xf4]
mov dword [esi], vtable.CWizardSheet.0
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esi + 0x143], 0
je 0x41a212
call fcn.00417abd
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41a21f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x11c]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x41a239
push eax
call ebx
mov dword [esi + 0x11c], edi
mov eax, dword [esi + 0x120]
test eax, eax
je 0x41a24c
push eax
call ebx
mov dword [esi + 0x120], edi
mov ecx, dword [esi + 0x128]
test ecx, ecx
je 0x41a25c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x12c]
test ecx, ecx
je 0x41a26c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x124]
test eax, eax
je 0x41a27f
push eax
call ebx
mov dword [esi + 0x124], edi
mov ecx, dword [esi + 0x130]
test ecx, ecx
je 0x41a295
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x130], edi
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41a2a2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp dword [esi + 0xd8], edi
jle 0x41a2c8
lea ebx, [esi + 0xb0]
mov ecx, dword [ebx]
test ecx, ecx
je 0x41a2bc
mov eax, dword [ecx]
push 1
call dword [eax]
inc edi
add ebx, 4
cmp edi, dword [esi + 0xd8]
jl 0x41a2b0
cmp byte [esi + 0x144], 0
pop ebx
je 0x41a2f9
push str.destroy_monitor
push dword [esi + 0x134]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esi + 0x138]
push ecx
call eax
pop ecx
push dword [esi + 0x134]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
ret
Function at 0x41a351
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
jbe 0x41a3d4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x1c]
sub ecx, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor ebx, ebx
cmp dword [str.AcceptEULA], ebx
je 0x41a3b6
mov eax, 0x4a6da4
push dword [eax]
push dword [ecx + edi]
call fcn.0043f8a1
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
test eax, eax
je 0x41a3a8
inc ebx
imul eax, ebx, 0xc
lea eax, [eax + 0x4a6da4]
cmp dword [eax], 0
jne 0x41a384
jmp 0x41a3b3
imul eax, ebx, 0xc
mov eax, dword [eax + 0x4a6da0]
mov dword [edi], eax
mov edx, dword [ebp - 4]
imul eax, ebx, 0xc
cmp dword [eax + 0x4a6da4], 0
jne 0x41a3ca
or dword [edi], 0xffffffff
mov esi, 0x80020006
add edi, 4
dec edx
mov dword [ebp - 4], edx
jne 0x41a375
pop edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41a400
cmp esi, 0x80020006
jne 0x41a449
push dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x10]
push dword [ebp + 0x18]
mov eax, dword [ecx]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push ecx
call dword [eax + 0x14]
mov esi, eax
jmp 0x41a403
mov ebx, dword [ebp + 0x10]
cmp esi, 0x80020006
jne 0x41a449
push 0x103
lea eax, [ebp - 0x10b]
mov byte [ebp - 0x10c], 0
push 0
push eax
call fcn.00443b90
push dword [ebx]
lea eax, [ebp - 0x10c]
push str.Failed_to_resolve__S_as_a_window.external_method_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x41c68c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47409a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push ebx
push 0x13
mov edx, dword [edi + 0x148]
pop ecx
call fcn.00411da6
mov edx, dword [edi + 0x148]
pop ecx
pop ecx
lea ecx, [edx + 0x10b97]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c6d1
sub ecx, esi
je 0x41c6f7
lea ecx, [edx + 0x10a98]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c6e5
sub ecx, edx
je 0x41c6f7
mov ecx, edi
call fcn.0041e09d
mov eax, dword [edi + 0xf4]
mov ecx, dword [0x4ae5c8]
mov dword [0x4ae5c4], eax
mov eax, dword [edi + 0x148]
push 1
test byte [eax + 0xaf68], 1
pop eax
cmovne ecx, eax
mov dword [0x4ae5c8], ecx
mov eax, dword [edi + 0x148]
push 2
test byte [eax + 0xaf68], 2
pop eax
cmovne ecx, eax
push 0x928
mov dword [0x4ae5c8], ecx
call fcn.0043d630
mov esi, eax
pop ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], ebx
test esi, esi
je 0x41c776
mov edx, dword [edi + 0x148]
mov ecx, dword [0x4ae5c8]
mov dword [esi + 0x924], ecx
mov ecx, esi
push edx
call fcn.0041278f
mov ecx, esi
call fcn.004129a2
jmp 0x41c778
mov esi, ebx
or dword [esp + 0x1c], 0xffffffff
call fcn.00413b89
mov ecx, esi
call fcn.00413460
mov edx, 0x4ae2a0
mov ecx, esi
sub edx, esi
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x41c792
lea ecx, [esi + 0x208]
mov edx, 0x4ae4a8
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x41c7ae
lea ecx, [esi + 0x410]
mov edx, 0x4ae5ac
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x41c7c5
test esi, esi
je 0x41c7df
push esi
call fcn.0043d605
pop ecx
push ebx
push ebx
push 0x4ae2a0
push 0x41c80b
push ebx
push ebx
call fcn.00440307
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov byte [edi + 0xd], 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d7ba
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push ebx
push 0x1c
mov edx, dword [edi + 0x148]
pop ecx
call fcn.00411da6
mov eax, dword [edi + 0x148]
pop ecx
pop ecx
push 0x50
push ebx
push ebx
push 1
add eax, 0x1224
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
mov ebx, eax
test ebx, ebx
jne 0x41d80b
push 0x69
push dword [edi + 0xf0]
call dword [sym.imp.USER32.dll_LoadIconA]
mov ebx, eax
push 0x1e8
call fcn.0043d630
mov esi, eax
xor eax, eax
push 0xfe
mov dword [esi], 0x1e8
mov ecx, dword [edi + 0xf4]
and dword [esi + 8], 0
mov dword [esi + 0x14], ebx
xor ebx, ebx
mov dword [esi + 4], ecx
mov dword [esi + 0xc], 7
mov dword [esi + 0x10], 0x406
mov word [ebp - 0x100], ax
lea eax, [ebp - 0xfe]
push ebx
push eax
call fcn.00443b90
push 0x23
mov edx, 0x80
lea ecx, [ebp - 0x100]
call fcn.0040e652
lea eax, [ebp - 0x100]
push eax
lea eax, [esi + 0x18]
push 0x481d54
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
mov dword [edi + 0x100], esi
push esi
push ebx
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 6
push dword [edi + 0xf4]
call esi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [edi + 0xf4]
mov byte [edi + 0x142], 1
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41d9d5
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
push 5
push dword [edi + 0xf4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [edi + 0xf4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [edi + 0x100]
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov byte [edi + 0x142], 0
pop edi
ret
Function at 0x41dc8e
Capabilities:
Access peb ldr_data
Get kernel32 base address
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47478e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0040e0f6
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [esp + 0x70], ax
lea eax, [esp + 0x72]
push eax
call fcn.00443b90
add esp, 0xc
mov eax, 0x480b28
cmp dword [esi], 0
cmovne eax, dword [esi]
push eax
lea eax, [esp + 0x6c]
push 0x483e38
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
and dword [esp + 0x3c], 0
lea edi, [esp + 0x40]
add esp, 0xc
xor eax, eax
push 9
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0xf0]
push 0x69
push eax
mov dword [esp + 0x3c], 0x419e1c
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
xor edi, edi
mov dword [esp + 0x48], eax
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x48], eax
mov esi, str.ChatWindow
lea eax, [esp + 0x30]
mov dword [esp + 0x54], esi
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
lea eax, [esp + 0x58]
xorps xmm0, xmm0
push eax
push dword [ebx + 0xf4]
movdqu xmmword [esp + 0x60], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
movdqa xmm0, xmmword [0x486460]
lea eax, [esp + 0xc]
push edi
push edi
push eax
movdqu xmmword [esp + 0x18], xmm0
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
push ebx
push dword [ebx + 0xf0]
push edi
push dword [ebx + 0xf4]
push eax
push ecx
push edi
push edi
push 0xc80000
lea eax, [esp + 0x8c]
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x4c
mov dword [ebx + 0x120], eax
call fcn.0043d630
pop ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x27c], edi
test eax, eax
je 0x41dde8
push ecx
push ebx
lea ecx, [esp + 0x14]
push ecx
push dword [ebx + 0x120]
mov ecx, eax
call fcn.0041573d
jmp 0x41ddea
mov eax, edi
or dword [esp + 0x27c], 0xffffffff
mov ecx, eax
mov dword [ebx + 0x12c], eax
call fcn.0040ba54
mov ecx, dword [ebx + 0x12c]
push edi
push 1
mov eax, dword [ecx]
call dword [eax + 0x30]
push dword [ebp + 0xc]
mov ecx, dword [ebx + 0x12c]
push dword [ebp + 8]
call fcn.0040bb4a
mov ecx, dword [ebx + 0x12c]
call fcn.004158fb
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
push dword [ebx + 0xf4]
movdqu xmmword [esp + 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x20]
push 1
push edi
push edi
add eax, 0x14
push eax
mov eax, dword [esp + 0x2c]
add eax, 0x14
push eax
push 0xffffffffffffffff
push dword [ebx + 0x120]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [ebx + 0x120]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x274]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41e96d
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4747b7
call fcn.00473d84
sub esp, 0x134
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], ecx
xor ebx, ebx
lea ecx, [ebp - 0x1c]
call fcn.0040dacf
and dword [ebp - 4], ebx
mov ecx, eax
call fcn.0040db8d
mov ecx, eax
call fcn.00420d12
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.0040db31
test esi, esi
je 0x41eae5
and dword [ebp - 0x20], 0
mov edi, str.gcsdk.dll
and dword [ebp - 0x14], 0
inc ebx
mov dword [ebp - 0x30], edi
xor esi, esi
mov dword [ebp - 0x2c], str.gcsdk_core.dll
mov dword [ebp - 0x28], str.rdpwatcher.dll
mov dword [ebp - 0x24], str.wpsapi.dll
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x148]
lea eax, [ecx + 0x1025c]
add eax, esi
push eax
lea eax, [ecx + 0x10258]
add eax, esi
push eax
lea eax, [ecx + 0xd851]
push eax
push edi
call fcn.004121bc
push 0x103
lea eax, [ebp - 0x13f]
mov byte [ebp - 0x140], 0
push 0
push eax
call fcn.00443b90
add esp, 0x1c
lea eax, [ebp - 0x140]
push edi
push dword [ebp + 8]
push str._S_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x41ea96
mov ecx, dword [edi + 0x148]
lea edx, [ebp - 0x34]
push 0
push edx
push dword [ecx + esi + 0x1025c]
push dword [ecx + esi + 0x10258]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x18]
neg eax
sbb eax, eax
and ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esi + 0x10364]
add edx, dword [edi + 0x148]
lea ecx, [ebp - 0x140]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x41eaa8
mov eax, dword [edi + 0x148]
push dword [esi + eax + 0x10258]
add eax, 0xd851
push eax
call fcn.004121f1
mov eax, dword [ebp - 0x14]
add esi, 0x210
inc eax
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + eax*4 - 0x30]
test edi, edi
jne 0x41e9df
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41f02b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov esi, 0x4830ec
mov dword [ebp - 4], edi
push esi
mov dword [edi], ebx
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x41f188
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x41f188
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
push 3
push ebx
push 2
push ebx
push str..C:
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41f133
xor eax, eax
push eax
push 0x4000000
push eax
push eax
push eax
push eax
push str..VWIN32
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41f188
push 0
lea eax, [ebp - 0x58]
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x2c], eax
xor ecx, ecx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x30], 3
push eax
push 0x1c
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], 0x860
push eax
push 0x1c
inc ecx
mov dword [ebp - 0x24], 0x440d
push eax
push ecx
push ebx
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41f181
test byte [ebp - 0x18], 1
jne 0x41f181
and dword [edi], 0
and dword [edi + 4], 0
movzx edi, word [ebp - 0x51]
movzx edx, word [ebp - 0x44]
mov ecx, edi
mov esi, dword [ebp - 8]
mov eax, edx
not eax
shl ecx, 2
xor ecx, eax
not edi
mov eax, dword [ebp - 4]
xor ecx, esi
not esi
mov dword [eax], ecx
mov eax, edx
mov ecx, dword [ebp - 4]
shl eax, 2
xor eax, edi
xor eax, esi
mov dword [ecx + 4], eax
jmp 0x41f181
xor ecx, ecx
lea eax, [ebp - 4]
push ecx
push eax
push 0x18
lea eax, [ebp - 0x30]
push eax
push ecx
push ecx
push 0x70000
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41f181
cmp dword [ebp - 4], 0
jbe 0x41f181
mov esi, dword [ebp - 0x1c]
mov ecx, esi
mov edx, dword [ebp - 0x20]
not esi
and dword [edi], 0
mov eax, edx
shl ecx, 2
not eax
xor ecx, eax
shl edx, 2
mov eax, dword [ebp - 8]
xor edx, esi
xor ecx, eax
not eax
xor edx, eax
mov dword [edi], ecx
mov dword [edi + 4], edx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41fa6d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x114]
cmp eax, 0xffffffff
je 0x41faa6
push ebx
xor ebx, ebx
lea ecx, [ebp - 4]
push ebx
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41faa1
cmp dword [ebp - 4], ebx
je 0x41faa1
inc ebx
mov al, bl
pop ebx
jmp 0x41fad0
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 0x118]
jb 0x41fab5
xor al, al
jmp 0x41fad0
mov eax, dword [edi]
push esi
mov esi, dword [ebp + 0xc]
add eax, ecx
push esi
push eax
push dword [ebp + 8]
call fcn.004434a0
add esp, 0xc
mov al, 1
add dword [edi + 4], esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8