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

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x411bcf
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x4706f4]
test eax, eax
je 0x411bdd
call fcn.00411b60
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x411cdf
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x477f88]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x477f88]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x477f88]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x477f88]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x477f88]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x477f88]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x477f88]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x477f88]
xor eax, ecx
inc esi
dec edi
jne 0x411bf7
pop edi
test edx, edx
je 0x411d01
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x477f88]
xor eax, ecx
inc esi
dec edx
jne 0x411ce3
pop ebx
pop esi
not eax
ret 0xc
Function at 0x41f48e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41f4d5
call fcn.004184b1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41f4d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41f4f1
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041f008
mov esi, eax
test edi, edi
je 0x41f4ef
test ebx, ebx
je 0x41f4ef
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x420631
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x458d7c
call fcn.00442d6b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x420656
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42069c
lea ecx, [ebp - 0x10]
call fcn.00401570
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004172fc
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401040
mov eax, esi
call fcn.00442e43
ret 8
Function at 0x4240ed
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x473204]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x42418b
push 0x460524
push 4
push eax
call fcn.00444c70
push eax
call fcn.0040c300
add esp, 0x10
push ebx
push edi
call fcn.0044326e
mov edi, dword [eax]
call fcn.0044326e
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0043eee5
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.0044326e
cmp dword [eax], ebx
je 0x4241a2
call fcn.0044326e
push dword [eax]
call fcn.004174d1
pop ecx
jmp 0x4241a9
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x424133
jmp 0x424230
call fcn.0044326e
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x42422c
cmp dword [ebp - 0x11c], esi
jae 0x42422c
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.0043edd0
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x42421b
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x42421b
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x42421b
push ebx
push ebx
push esi
jmp 0x424224
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x42422e
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043e7e7
leave
ret

Function at 0x425f49
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004184b1
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x425f82
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00425b9a
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x425fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x426004
cmp dword [edi + 0x54], 0
jne 0x426004
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004184b1
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00425fa1
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4264d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x426518
call fcn.004184b1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x426518
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42655b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x426544
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x426544
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x426558
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x428179
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x4281a4
call fcn.004184b1
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x4281c7
push eax
push dword [esi + 4]
call fcn.004280ff
push esi
push eax
mov ecx, 0x479ec0
call fcn.00427db3
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x42a259
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x42a28b
push dword [ebp + 8]
call edi
push eax
call fcn.0042aa2b
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x42a2b6
test byte [ebp - 4], 1
je 0x42a2b6
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42a2b6
push dword [ebp + 8]
call edi
push eax
call fcn.0042aa2b
lea eax, [ebx + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x42a370
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.0042a1bb
pop ecx
lea eax, [ebx + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x42a2ec
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.0042a1bb
pop ecx
lea eax, [ebp - 0x10]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebx]
or eax, dword [ebx + 4]
je 0x42a302
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.0042a1bb
pop ecx
pop ecx
lea esi, [ebp - 0x18]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42a32f
push dword [ebp + 8]
call edi
push eax
call fcn.0042aa2b
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x42a35b
call edi
push ebx
mov dword [ebp - 8], eax
call esi
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0042aa2b
push ebx
call esi
test eax, eax
jne 0x42a36d
push dword [ebp + 8]
call edi
push eax
call fcn.0042aa2b
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x42a398
test byte [ebp - 4], 1
jne 0x42a398
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42a398
push dword [ebp + 8]
call edi
push eax
call fcn.0042aa2b
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x43e7e7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x473204]
jne 0x43e7f1
repz ret
jmp fcn.0044a3dc
Function at 0x43ea6c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x43ea9d
call fcn.00443281
mov dword [eax], esi
call fcn.0044326e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0044765f
add esp, 0x14
push 0x16
pop eax
jmp 0x43eaf2
test dword [ebp + 0xc], 0xfffffff9
jne 0x43ea79
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43eaca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00443294
pop ecx
call fcn.0044326e
mov eax, dword [eax]
jmp 0x43eaf2
test al, 0x10
jne 0x43eaf0
test al, 1
je 0x43eaf0
test byte [ebp + 0xc], 2
je 0x43eaf0
call fcn.00443281
mov dword [eax], 5
call fcn.0044326e
mov dword [eax], 0xd
jmp 0x43eac1
xor eax, eax
pop esi
pop ebp
ret
Function at 0x453d21
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00449d22
and dword [ebp - 4], 0
cmp dword [0x47aca8], 0
mov ebx, eax
jne 0x453dd2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x453e83
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4646ec
push edi
call esi
test eax, eax
je 0x453e83
push eax
call fcn.00449cb0
mov dword [esp], 0x4646dc
push edi
mov dword [0x47aca8], eax
call esi
push eax
call fcn.00449cb0
mov dword [esp], 0x4646c8
push edi
mov dword [0x47acac], eax
call esi
push eax
call fcn.00449cb0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47acb0], eax
call esi
push eax
call fcn.00449cb0
pop ecx
mov dword [0x47acb8], eax
test eax, eax
je 0x453dd2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00449cb0
pop ecx
mov dword [0x47acb4], eax
mov eax, dword [0x47acb4]
cmp eax, ebx
je 0x453e2a
cmp dword [0x47acb8], ebx
je 0x453e2a
push eax
call fcn.00449d2b
push dword [0x47acb8]
mov esi, eax
call fcn.00449d2b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x453e2a
test edi, edi
je 0x453e2a
call esi
test eax, eax
je 0x453e21
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x453e21
test byte [ebp - 0xc], 1
jne 0x453e2a
or dword [ebp + 0x10], 0x200000
jmp 0x453e63
mov eax, dword [0x47acac]
cmp eax, ebx
je 0x453e63
push eax
call fcn.00449d2b
pop ecx
test eax, eax
je 0x453e63
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x453e63
mov eax, dword [0x47acb0]
cmp eax, ebx
je 0x453e63
push eax
call fcn.00449d2b
pop ecx
test eax, eax
je 0x453e63
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47aca8]
call fcn.00449d2b
pop ecx
test eax, eax
je 0x453e83
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x453e85
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406e80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f67c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6817dc]
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
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0x1c]
mov eax, edx
mov ecx, dword [ebp + 0x18]
sub eax, ecx
cmp eax, 1
jb 0x406eec
cmp edx, 8
lea esi, [ebp + 8]
push 2
cmovae esi, dword [ebp + 8]
lea edi, [ecx + 1]
push 0x664eac
mov dword [ebp + 0x18], edi
lea eax, [esi + ecx*2]
push eax
call fcn.005c9d10
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x406f04
push 1
push 0x664eac
mov byte [ebp - 0x2c], 0
lea ecx, [ebp + 8]
push dword [ebp - 0x2c]
push 1
call fcn.0040dca0
mov edx, dword [ebp + 0x1c]
lea ecx, [ebp + 8]
mov ebx, dword [ebp + 8]
cmp edx, 8
mov edi, dword [ebp + 0x18]
cmovae ecx, ebx
test edi, edi
je 0x406f32
mov eax, edi
mov esi, ecx
nop
cmp word [esi], 0x5c
je 0x406ff5
add esi, 2
sub eax, 1
jne 0x406f20
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x407010
xor eax, eax
mov dword [ebp - 0x18], 0
cmp edi, esi
mov word [ebp - 0x28], ax
mov ecx, esi
mov dword [ebp - 0x14], 7
cmovb ecx, edi
lea eax, [ebp + 8]
cmp edx, 8
push ecx
cmovae eax, ebx
lea ecx, [ebp - 0x28]
push eax
call fcn.00405d50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, dword [ebp + 8]
lea ecx, [ebp + 8]
mov edi, dword [ebp + 0x18]
inc esi
cmp dword [ebp + 0x1c], 8
cmovae ecx, ebx
cmp esi, edi
jae 0x406fae
mov eax, edi
sub eax, esi
lea esi, [ecx + esi*2]
je 0x406fae
nop
cmp word [esi], 0x5c
je 0x407006
add esi, 2
sub eax, 1
jne 0x406fa0
or esi, 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x406fed
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406fdd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40705c
push edx
push ecx
call fcn.0055e71a
mov edi, dword [ebp + 0x18]
add esp, 8
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x1c]
jmp 0x406f35
test esi, esi
je 0x406f32
sub esi, ecx
sar esi, 1
jmp 0x406f35
test esi, esi
je 0x406fae
sub esi, ecx
sar esi, 1
jmp 0x406fb1
cmp edx, 8
jb 0x407040
lea edx, [edx*2 + 2]
mov eax, ebx
cmp edx, 0x1000
jb 0x407036
mov ebx, dword [ebx - 4]
add edx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40705c
push edx
push ebx
call fcn.0055e71a
add esp, 8
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.0055e6d4
mov esp, ebp
pop ebp
ret
call fcn.005ce7a3
int3
Function at 0x4078b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f685b
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push esi
push edi
mov eax, dword [0x6817dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0xc8]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
push str.ckbox_agree
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0041a946
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.0041a88e
test bl, bl
je 0x407a90
mov dword [ebp - 0x28], 0xeba8eba1
xor ecx, ecx
mov dword [ebp - 0x24], 0xebaaeba6
mov dword [ebp - 0x20], 0xeb98ebbe
mov dword [ebp - 0x1c], 0xebaeeba9
mov dword [ebp - 0x18], 0xebaeebb8
mov dword [ebp - 0x14], 0xeba9
mov byte [ebp - 0x10], 1
nop dword [eax + eax]
lea eax, [ecx - 0x143e]
xor word [ebp + ecx*2 - 0x28], ax
inc ecx
cmp ecx, 0xb
jb 0x407950
lea eax, [ebp - 0x28]
mov byte [ebp - 0x10], 0
add esi, 0x2c
push eax
mov ecx, esi
call fcn.00414dd7
mov ecx, eax
call fcn.00419b8d
mov bl, al
mov dword [ebp - 0x28], 0xeba8eba1
mov byte [ebp + 8], bl
xor ecx, ecx
mov dword [ebp - 0x24], 0xebaaeba6
mov dword [ebp - 0x20], 0xeb98ebbe
mov dword [ebp - 0x1c], 0xebaeeba9
mov dword [ebp - 0x18], 0xebaeebb8
mov dword [ebp - 0x14], 0xeba9
mov byte [ebp - 0x10], 1
nop
lea eax, [ecx - 0x143e]
xor word [ebp + ecx*2 - 0x28], ax
inc ecx
cmp ecx, 0xb
jb 0x4079b0
push 1
push dword [ebp + 8]
lea eax, [ebp - 0x28]
mov byte [ebp - 0x10], 0
push eax
mov ecx, esi
call fcn.00414dd7
mov ecx, eax
call fcn.00413d74
test bl, bl
je 0x407a34
mov dword [ebp - 0x28], 0xebb7eba0
xor edx, edx
mov dword [ebp - 0x24], 0xeb9aebaa
mov dword [ebp - 0x20], 0xeba9ebaf
mov dword [ebp - 0x1c], 0xebbdebbb
mov dword [ebp - 0x18], 0xeba7ebab
mov dword [ebp - 0x14], 0xeba0
mov byte [ebp - 0x10], 1
lea eax, [edx - 0x143e]
xor word [ebp + edx*2 - 0x28], ax
inc edx
cmp edx, 0xb
jb 0x407a10
lea eax, [ebp - 0x28]
mov byte [ebp - 0x10], 0
push eax
mov ecx, esi
call fcn.00414dd7
push 1
jmp 0x407a86
mov dword [ebp - 0x44], 0xebb7eba0
xor eax, eax
mov dword [ebp - 0x40], 0xeb9aebaa
mov dword [ebp - 0x3c], 0xeba9ebaf
mov dword [ebp - 0x38], 0xebbdebbb
mov dword [ebp - 0x34], 0xeba7ebab
mov dword [ebp - 0x30], 0xeba0
mov byte [ebp - 0x2c], 1
lea ecx, [eax - 0x143e]
xor word [ebp + eax*2 - 0x44], cx
inc eax
cmp eax, 0xb
jb 0x407a64
lea eax, [ebp - 0x44]
mov byte [ebp - 0x2c], 0
push eax
mov ecx, esi
call fcn.00414dd7
push 0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xe0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4084c0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6930
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6817dc]
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
mov edi, ecx
push 0x664fb4
push 0x8a
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4086a6
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4086a6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x4086a6
cmp dword [edi + 0x4cc], 8
lea edx, [edi + 0x4b8]
jb 0x408550
mov edx, dword [edx]
lea ecx, [ebp - 0x28]
call fcn.004063f0
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x34], 0xababb09e
mov dword [ebp - 0x30], 0xaca3e9a1
mov word [ebp - 0x2c], 0xb3
mov byte [ebp - 0x2a], 1
nop dword [eax]
lea eax, [ecx - 0x3e]
xor byte [ebp + ecx - 0x34], al
inc ecx
cmp ecx, 9
jb 0x408580
push 9
lea eax, [ebp - 0x34]
mov byte [ebp - 0x2a], 0
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.004042b0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x58]
mov ebx, dword [ebp - 0x44]
cmp ebx, 0x10
mov edi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x14]
cmovae edx, edi
mov esi, dword [ebp - 0x18]
sub eax, esi
mov ecx, dword [ebp - 0x48]
push ecx
push edx
cmp ecx, eax
ja 0x4085fa
cmp dword [ebp - 0x14], 0x10
lea eax, [ecx + esi]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
add esi, eax
push esi
call fcn.005c9d10
mov eax, dword [ebp - 0x48]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x408610
mov byte [ebp - 0x38], 0
push dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004055c0
mov ebx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x58]
cmp ebx, 0x10
jb 0x408640
lea ecx, [ebx + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x408636
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4086c2
push ecx
push edi
call fcn.0055e71a
add esp, 8
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x664fc4
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.005d3db0
mov esi, eax
add esp, 8
test esi, esi
je 0x408676
push esi
push 1
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.005cdbc8
push esi
call fcn.005cd62e
add esp, 0x14
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4086a6
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40869c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4086c7
push edx
push ecx
call fcn.0055e71a
add esp, 8
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.0055e6d4
mov esp, ebp
pop ebp
ret
call fcn.005ce7a3
call fcn.005ce7a3
int3
Function at 0x4095b0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
push edi
mov edi, ecx
cmp byte [esi + 0xb], 0
je 0x4095d2
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax - 0x3e]
inc eax
xor byte [edx], cl
cmp eax, 0xa
jb 0x4095c0
mov byte [esi + 0xb], 0
lea ecx, [edi + 0x10]
mov edx, esi
call fcn.0040d710
mov eax, edi
pop edi
pop esi
ret

Function at 0x4095f0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
push edi
mov edi, ecx
cmp byte [esi + 9], 0
je 0x409612
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax - 0x3e]
inc eax
xor byte [edx], cl
cmp eax, 8
jb 0x409600
mov byte [esi + 9], 0
lea ecx, [edi + 0x10]
mov edx, esi
call fcn.0040d710
mov eax, edi
pop edi
pop esi
ret