joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ee30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x40ee37
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x40ef14
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44d168]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x44d168]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x44d168]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44d168]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44d168]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44d168]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44d168]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44d168]
inc ecx
sub edx, 8
sub esi, 1
jne 0x40ee50
pop edi
test edx, edx
je 0x40ef3b
jmp 0x40ef20
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x44d168]
inc ecx
sub edx, 1
jne 0x40ef20
not eax
pop esi
ret

Function at 0x40f630
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x40f662
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f658
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x40f675
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
push esi
add eax, ecx
push eax
push edx
call fcn.00433b20
add dword [edi + 0x18], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret

Function at 0x40f690
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x40f6c3
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f6bd
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x40f6ef
mov eax, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x18]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x40f6d5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x10]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.00433b20
add esp, 0xc
add ebx, edi
mov dword [esi + 0x18], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x40f706
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x40f700
cmp byte [esi + 8], 0
je 0x40f700
or eax, 0xffffffff
add esp, 8
ret
Function at 0x40f840
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x40f885
cmp byte [esi + 1], 0
je 0x40f88d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x40f8a1
cmp byte [esi + 1], 0
je 0x40f893
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x40f8aa
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x40f85e
xor eax, eax
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40f8aa
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x40f8be
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0042ec25
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40f8d9
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0
cmp edi, eax
jbe 0x40f9ec
jmp 0x40f8fc
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x40f90d
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x40f926
mov ebp, 0x404
cmp byte [esi], 0
je 0x40f94b
cmp byte [esi + 1], 0
je 0x40f9ec
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40f94e
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebp
je 0x40f976
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f970
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x40f99c
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40f987
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00433b20
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x40f9ec
lea eax, [ebp - 3]
test eax, eax
jle 0x40f9de
lea esp, [esp]
dec eax
cmp byte [eax + ebx], 0x50
jne 0x40f9cc
cmp byte [eax + ebx + 1], 0x4b
jne 0x40f9cc
cmp byte [eax + ebx + 2], 5
jne 0x40f9cc
cmp byte [eax + ebx + 3], 6
je 0x40f9d2
test eax, eax
jg 0x40f9b0
jmp 0x40f9de
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
jne 0x40f9ec
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x40f8f0
push ebx
call fcn.0042e480
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x410860
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x4108cc
cmp dword [ebx + 4], 0xffffffff
jne 0x4108cc
lea edi, [ebx + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x410883
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [0x449f28]
push ecx
push edx
lea esi, [esp + 0x1c]
mov dword [edi], eax
call fcn.0040f5e0
add esp, 8
test eax, eax
jne 0x4108ba
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ecx
ret 8
call fcn.0040fa00
mov dword [ebx], eax
mov eax, dword [0x45b944]
pop edi
pop esi
pop ecx
ret 8
pop edi
mov eax, 0x1000000
pop esi
pop ecx
ret 8

Function at 0x412e9d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x457600]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x412f35
push 0x444e1c
push 4
push eax
call fcn.0042d97f
push eax
call fcn.00406640
add esp, 0x10
push ebx
push edi
call fcn.0042f67c
mov edi, dword [eax]
call fcn.0042f67c
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0042df77
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0042f67c
cmp dword [eax], ebx
je 0x412f4c
call fcn.0042f67c
push dword [eax]
call fcn.0041126b
pop ecx
jmp 0x412f53
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x412ee0
jmp 0x412fda
call fcn.0042f67c
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x412fd6
cmp dword [ebp - 0x234], esi
jae 0x412fd6
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.0042fb00
add esp, 0xc
push 0x444b7c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x412fc5
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x412fc5
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x412fc5
push ebx
push ebx
push esi
jmp 0x412fce
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x412fd8
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042d791
leave
ret
Function at 0x413c4e
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 0x413c96
call fcn.00417b4e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x413c96
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x413cd9
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 0x413cc2
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 0x413cc2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x413cd6
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 0x418311
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x441748
call fcn.0042f4e4
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x418336
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41837c
lea ecx, [ebp - 0x10]
call fcn.004062b0
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.00411196
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00406880
mov eax, esi
call fcn.0042f5bc
ret 8

Function at 0x41dc7c
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 0x41dcc3
call fcn.00417b4e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41dcc3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41dcdf
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041d7f4
mov esi, eax
test edi, edi
je 0x41dcdd
test ebx, ebx
je 0x41dcdd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42d791
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x457600]
jne 0x42d79b
repz ret
jmp fcn.00433a0e

Function at 0x43a9e0
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.00433372
and dword [ebp - 4], 0
cmp dword [0x45b64c], 0
mov ebx, eax
jne 0x43aa91
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43ab42
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x43ab42
push eax
call fcn.00433300
mov dword [esp], 0x448528
push edi
mov dword [0x45b64c], eax
call esi
push eax
call fcn.00433300
mov dword [esp], 0x448514
push edi
mov dword [0x45b650], eax
call esi
push eax
call fcn.00433300
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45b654], eax
call esi
push eax
call fcn.00433300
pop ecx
mov dword [0x45b65c], eax
test eax, eax
je 0x43aa91
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00433300
pop ecx
mov dword [0x45b658], eax
mov eax, dword [0x45b658]
cmp eax, ebx
je 0x43aae9
cmp dword [0x45b65c], ebx
je 0x43aae9
push eax
call fcn.0043337b
push dword [0x45b65c]
mov esi, eax
call fcn.0043337b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43aae9
test edi, edi
je 0x43aae9
call esi
test eax, eax
je 0x43aae0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43aae0
test byte [ebp - 0xc], 1
jne 0x43aae9
or dword [ebp + 0x10], 0x200000
jmp 0x43ab22
mov eax, dword [0x45b650]
cmp eax, ebx
je 0x43ab22
push eax
call fcn.0043337b
pop ecx
test eax, eax
je 0x43ab22
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43ab22
mov eax, dword [0x45b654]
cmp eax, ebx
je 0x43ab22
push eax
call fcn.0043337b
pop ecx
test eax, eax
je 0x43ab22
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45b64c]
call fcn.0043337b
pop ecx
test eax, eax
je 0x43ab42
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43ab44
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004d40
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc0d5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100e9f80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.10004c20
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10004dd3
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 8], 0xccccccc
je 0x10004f2f
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
push 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.100ac242
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
inc eax
movss xmm3, dword [edi]
mov dword [ebp - 4], 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100c9fe0]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x100c9fe0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x10004ed1
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x1c], xmm0
fld qword [ebp - 0x1c]
fstp qword [esp]
call sub.msvcrt.dll_ceil
fstp qword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x1c]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.100ac290
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x10004eb3
cmp ebx, 0x200
jae 0x10004eb1
shl ebx, 3
cmp ebx, ecx
jae 0x10004eb3
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.10007600
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10004c20
mov edx, dword [eax]
jmp 0x10004ed4
mov edx, dword [ebp - 0x1c]
mov ebx, dword [edx + 4]
inc dword [edi + 8]
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x10]
jne 0x10004eff
mov dword [ecx + eax*8], esi
jmp 0x10004f0e
cmp edi, edx
jne 0x10004f08
mov dword [ecx + eax*8], esi
jmp 0x10004f12
cmp dword [ecx + eax*8 + 4], ebx
jne 0x10004f12
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.10094afb
int3
Function at 0x10005770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100e9f80]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1f4
xorps xmm0, xmm0
mov dword [ebp - 0x204], 0
lea eax, [ebp - 0x1f8]
mov dword [ebp - 0x200], 0xf
push 0
movups xmmword [ebp - 0x214], xmm0
push eax
mov byte [ebp - 0x214], 0
mov dword [ebp - 0x1fc], 0
call sub.msvcrt.dll_memset
push 0x1f3
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x1f8]
push 0x1f4
push eax
call fcn.100ada60
mov ecx, dword [ebp - 0x200]
add esp, 0x1c
cmp ecx, 0xf
jbe 0x1000581b
mov edx, dword [ebp - 0x214]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005811
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005873
push ecx
push edx
call fcn.100ac272
add esp, 8
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1f8]
push 0x1f4
push eax
call fcn.10008610
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.100b0ac0
add esp, 0x1c
lea eax, [ebp - 0x1fc]
push 0
push 0x100ee450
push 0x1f8
push eax
push dword [0x100e9338]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ac280
mov esp, ebp
pop ebp
ret
call fcn.100ad740
int3

Function at 0x100058f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100e9f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x100ee3d4]
push edi
push eax
push ecx
push esi
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1000595c
xorps xmm0, xmm0
mov eax, ebx
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x10], 0
pop edi
mov dword [ebx + 0x14], 0xf
pop esi
mov byte [ebx], 0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ac280
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10005924
push dword [ebp - 0x20]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x20]
mov esi, eax
push dword [ebp - 0x24]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [ebp - 0xc], 0
xorps xmm0, xmm0
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x1c]
movups xmmword [ebp - 0x1c], xmm0
push dword [ebp - 0x20]
push esi
call fcn.10004b90
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
mov eax, ebx
movups xmm0, xmmword [ebp - 0x1c]
mov dword [ebx + 0x14], 0
xor ecx, ebp
pop edi
movups xmmword [ebx], xmm0
pop esi
movq xmm0, qword [ebp - 0xc]
movq qword [ebx + 0x10], xmm0
pop ebx
call fcn.100ac280
mov esp, ebp
pop ebp
ret
Function at 0x10006040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc215
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x100e9f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x44], esi
mov eax, dword [esi + 0x5f8]
test eax, eax
je 0x1000608d
push dword [esi]
push eax
push str._p____p
call fcn.10005770
add esp, 0xc
mov eax, dword [0x100ee444]
inc eax
mov dword [0x100ee444], eax
cmp eax, 0x9c4
jl 0x100060b3
push str.too_many_hooks:_cant_insert
call fcn.10005770
add esp, 4
xor al, al
jmp 0x10006202
test edi, edi
je 0x100060d0
cmp byte [edi], 0
je 0x100060d0
push 0x3b
push edi
lea eax, [esi + 0x1d0]
push 0x3c
push eax
call fcn.100ada60
add esp, 0x10
push dword [esi]
lea eax, [esi + 0x1d0]
push eax
push str.inserting_hook:__s__p
call fcn.10005770
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
sub esp, 0xa08
lea eax, [ebp - 0x28]
mov edi, esp
mov ecx, 0x282
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.10075d70
add esp, 0xa10
cmp dword [eax + 0x14], 7
jbe 0x10006113
mov eax, dword [eax]
mov esi, dword [ebp - 0x44]
push eax
push 0x1f4
lea ecx, [esi + 0x20c]
push ecx
mov dword [ebp - 0x48], ecx
call fcn.100ad8d0
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.10005450
imul eax, dword [0x100ee444], 0xac8
sub esp, 0xa08
mov edi, esp
mov ecx, 0x282
rep movsd dword es:[edi], dword [esi]
add eax, dword [0x100ee440]
mov ecx, eax
call fcn.10008c20
test al, al
jne 0x100061d1
push dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
call fcn.10005070
push 0xfde9
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10074400
add esp, 0xc
cmp dword [eax + 0x14], 0xf
mov byte [ebp - 4], 1
jbe 0x10006193
mov eax, dword [eax]
push eax
push str.failed_to_insert_hook__s
call fcn.10005770
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.10005400
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10005450
imul ecx, dword [0x100ee444], 0xac8
add ecx, dword [0x100ee440]
call fcn.100089d0
xor al, al
jmp 0x10006202
mov eax, dword [ebp - 0x44]
push 0
push 0x100ee450
push 0x10
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x58]
push eax
push dword [0x100e9338]
mov dword [ebp - 0x58], 4
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ac280
mov esp, ebp
pop ebp
ret
Function at 0x10006220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe18
mov eax, dword [0x100e9f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xa10]
push esi
push edi
mov dword [ebp - 0xe18], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
sub esp, 0xa08
lea eax, [ebp - 0x1c]
mov edi, esp
lea esi, [ebp + 8]
mov ecx, 0x282
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.10075d70
add esp, 0xa10
cmp dword [eax + 0x14], 7
jbe 0x10006271
mov eax, dword [eax]
push eax
lea eax, [ebp + 0x214]
push 0x1f4
push eax
call fcn.100ad8d0
mov ecx, dword [ebp - 8]
add esp, 0xc
cmp ecx, 7
jbe 0x100062c0
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100062b6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000633b
push ecx
push edx
call fcn.100ac272
add esp, 8
push 0x3e8
lea eax, [ebp - 0x404]
mov dword [ebp - 0xe14], 2
mov ecx, 0x282
lea esi, [ebp + 8]
lea edi, [ebp - 0xe0c]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call sub.msvcrt.dll_memset
push 0x1f3
push dword [ebp - 0xe18]
lea eax, [ebp - 0x404]
push 0x1f4
push eax
call fcn.100ad970
add esp, 0x1c
lea eax, [ebp - 0xe14]
push 0
push 0x100ee450
push 0xdf8
push eax
push dword [0x100e9338]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100ac280
mov esp, ebp
pop ebp
ret
call fcn.100ad740
int3

Function at 0x10006350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x10
test eax, eax
je 0x1000636b
push eax
push str.removing_hook:__s
call fcn.10005770
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 0
push 0x100ee450
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push dword [0x100e9338]
mov dword [ebp - 0x10], 3
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret