joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4097cd
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jge 0x4097e3
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x4097ef
or edi, 1
push 1
call esi
test ax, ax
jge 0x4097fb
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x409807
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x409813
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x40b1d1
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x40b1f6
cmp ebx, dword [esi + 0x54]
je 0x40b1f6
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x54]
cmp ebx, eax
je 0x40b2b8
push edi
test eax, eax
je 0x40b249
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x54]
mov ecx, esi
call fcn.0040abeb
mov dword [esi + 0x54], edi
test ebx, ebx
je 0x40b2b7
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x40b2b7
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x40b2b7
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x40b2b7
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x54], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x54]
mov ecx, esi
call fcn.0040abeb
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40b4be
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xd0]
mov ecx, edi
xor ebx, ebx
call fcn.004212ae
test eax, eax
jle 0x40b50d
push ebx
mov ecx, edi
mov byte [ebp - 1], 0
call fcn.0040cc1b
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x40b56b
mov ecx, edi
inc ebx
call fcn.004212ae
cmp ebx, eax
jl 0x40b4dc
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x40b5c2
sub eax, 4
je 0x40b56f
dec eax
dec eax
jne 0x40b5b9
push dword [ebp + 0xc]
mov byte [ebp + 8], al
lea edi, [ebp + 9]
stosb byte es:[edi], al
call fcn.00446e8e
pop ecx
mov ecx, dword [esi + 0x50]
push VariantTimeToDosDateTime
lea edx, [ebp + 8]
push edx
mov byte [ebp + 8], al
mov eax, dword [ecx]
push 0x40a600
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x40b5b9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + pe_nt_image_headers32]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x40b5bb
cmp dword [esi + 0x54], 0
je 0x40b5b9
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov al, byte [ebp + 0xc]
mov byte [ebp - 0x10], al
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.004097cd
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x40b5b9
cmp dword [esi + 0x54], 0
je 0x40b611
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x40b611
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x40b611
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc]
push str.RichEditUI
push eax
call fcn.0044390e
pop ecx
pop ecx
test eax, eax
je 0x40b611
mov ecx, dword [esi + 0x54]
call fcn.0041b998
test al, al
jne 0x40b5b9
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge al
movzx eax, al
push eax
mov ecx, esi
call fcn.0040b369
jmp 0x40b56b
Function at 0x4118d1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x4118dc
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x411997
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x45f720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x45f720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x45f720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x45f720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x45f720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x45f720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x45f720]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x45f720]
inc edx
sub edi, 8
dec esi
jne 0x4118fc
pop ebx
test edi, edi
je 0x4119b0
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x45f720]
inc edx
dec edi
jne 0x41199b
pop edi
not eax
pop esi
ret

Function at 0x411df2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x411e26
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411e21
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x411e4e
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x411e37
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00446010
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x412be6
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x472940]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x412c7a
mov al, byte [esi]
test al, al
je 0x412c7a
push edi
mov edi, esi
mov ecx, esi
cmp al, 0x2f
je 0x412c18
cmp al, 0x5c
jne 0x412c1a
mov edi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x412c10
cmp edi, esi
je 0x412c4d
sub edi, esi
push edi
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004459ed
lea eax, [ebp - 0x108]
push eax
push ebx
mov byte [ebp + edi - 0x108], 0
call fcn.00412be6
add esp, 0x14
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00446c80
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00446c90
add esp, 0x10
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00443100
leave
ret
Function at 0x4142dd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x414358
cmp dword [esi + 4], 0xffffffff
jne 0x414358
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x467c0c
push edi
call fcn.00446c90
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x41432a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x41432a
mov eax, 0x2000000
jmp 0x41435d
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00411c08
add esp, 0x10
test eax, eax
jne 0x414348
mov eax, dword [ebp + 0x10]
jmp 0x41435d
push eax
call fcn.00413ed9
mov dword [esi], eax
mov eax, dword [0x473e7c]
pop ecx
jmp 0x41435d
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x41bb8c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x314], ebx
je 0x41bbf3
cmp dword [ebp + 8], 0x100
jne 0x41bbe2
cmp byte [ebp + 0xc], 0xd
jne 0x41bbe2
cmp byte [esi + 0x31a], bl
je 0x41bbc9
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x41bbe2
cmp byte [esi + 0x31b], bl
jne 0x41bbe2
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x41bbde
push ebx
push ebx
push ebx
push str.return
push esi
call fcn.0040abeb
xor eax, eax
jmp 0x41bbf6
mov eax, dword [esi + 0x314]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x425297
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x472940]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x425307
cmp dword [esi + 0x10], ebx
je 0x425307
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
inc edi
mov eax, edi
call fcn.004475b0
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x425307
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x138
call fcn.0040cd9f
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0040abeb
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443100
leave
ret 0x10
Function at 0x432697
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x4326bc
cmp eax, edi
jge 0x4326b4
mov eax, esi
call fcn.0043204b
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x4326de
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x4326c3
cmp ecx, 4
jge 0x4326fd
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x4326eb
xor eax, eax
jmp 0x4326f3
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x4326e1
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x43272f
mov eax, str.zlib_corrupt
call fcn.0042fc68
jmp 0x43276a
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x43273f
mov eax, str.read_past_buffer
jmp 0x432728
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x432754
mov ecx, edi
call fcn.00432076
test eax, eax
je 0x43276a
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00446010
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x4376aa
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 0x4376d5
call fcn.00438aa7
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 0x4376f8
push eax
push dword [esi + 4]
call fcn.00437630
push esi
push eax
mov ecx, 0x474004
call fcn.004372be
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x437fde
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x45b467
call fcn.00446874
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00437f9e
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401380
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x438044
push eax
push dword [esi + 8]
call fcn.00437630
push dword [esi + 0xc]
mov ecx, 0x474004
push eax
call fcn.004372be
mov eax, esi
call fcn.0044694c
ret 0x18

Function at 0x443100
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x472940]
jne 0x44310a
repz ret
jmp fcn.0044b1ab
Function at 0x456042
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.0044b323
and dword [ebp - 4], 0
cmp dword [0x47688c], 0
mov ebx, eax
jne 0x4560f3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4561a4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x467ac8
push edi
call esi
test eax, eax
je 0x4561a4
push eax
call fcn.0044b2b1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x47688c], eax
call esi
push eax
call fcn.0044b2b1
mov dword [esp], 0x467aa4
push edi
mov dword [0x476890], eax
call esi
push eax
call fcn.0044b2b1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x476894], eax
call esi
push eax
call fcn.0044b2b1
pop ecx
mov dword [0x47689c], eax
test eax, eax
je 0x4560f3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044b2b1
pop ecx
mov dword [0x476898], eax
mov eax, dword [0x476898]
cmp eax, ebx
je 0x45614b
cmp dword [0x47689c], ebx
je 0x45614b
push eax
call fcn.0044b32c
push dword [0x47689c]
mov esi, eax
call fcn.0044b32c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45614b
test edi, edi
je 0x45614b
call esi
test eax, eax
je 0x456142
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x456142
test byte [ebp - 0xc], 1
jne 0x45614b
or dword [ebp + 0x10], 0x200000
jmp 0x456184
mov eax, dword [0x476890]
cmp eax, ebx
je 0x456184
push eax
call fcn.0044b32c
pop ecx
test eax, eax
je 0x456184
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x456184
mov eax, dword [0x476894]
cmp eax, ebx
je 0x456184
push eax
call fcn.0044b32c
pop ecx
test eax, eax
je 0x456184
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47688c]
call fcn.0044b32c
pop ecx
test eax, eax
je 0x4561a4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4561a6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5393700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0539378f
jae 0x539370e
xor ecx, ecx
call fcn.0539378f
jae 0x539373d
xor eax, eax
call fcn.0539378f
jae 0x539374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0539378f
adc al, al
jae 0x539372f
jne 0x5393779
stosb byte es:[edi], al
jmp 0x5393711
call fcn.0539379b
sub ecx, ebx
jne 0x5393756
call fcn.05393799
jmp 0x5393775
lodsb al, byte [esi]
shr eax, 1
je 0x5393783
adc ecx, ecx
jmp 0x5393772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.05393799
cmp eax, 0x7d00
jae 0x5393772
cmp ah, 5
jae 0x5393773
cmp eax, 0x7f
ja 0x5393774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5393711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x100944e
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1003a70
call fcn.01009674
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1009489
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1009489
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10094a1
cmp eax, 0x20b
je 0x100948e
mov dword [ebp - 0x1c], edi
jmp 0x10094b5
cmp dword [ecx + 0x84], 0xe
jbe 0x1009489
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10094af
cmp dword [ecx + 0x74], 0xe
jbe 0x1009489
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100f950], 0xffffffff
or dword [0x100f954], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100c030]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100c02c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100f958], eax
call fcn.010092b9
cmp dword [0x100c000], edi
jne 0x1009510
push 0x100966a
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01009653
push 0x100b010
push 0x100b00c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100c028]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100c024]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x100b008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01005792
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1009587
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10095bc
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010096af
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x3aa3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.03aa378f
jae 0x3aa370e
xor ecx, ecx
call fcn.03aa378f
jae 0x3aa373d
xor eax, eax
call fcn.03aa378f
jae 0x3aa374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.03aa378f
adc al, al
jae 0x3aa372f
jne 0x3aa3779
stosb byte es:[edi], al
jmp 0x3aa3711
call fcn.03aa379b
sub ecx, ebx
jne 0x3aa3756
call fcn.03aa3799
jmp 0x3aa3775
lodsb al, byte [esi]
shr eax, 1
je 0x3aa3783
adc ecx, ecx
jmp 0x3aa3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03aa3799
cmp eax, 0x7d00
jae 0x3aa3772
cmp ah, 5
jae 0x3aa3773
cmp eax, 0x7f
ja 0x3aa3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3aa3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
inc eax
invalid
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10006890
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100637db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.1005834f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10006912
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.100561a7
mov eax, dword [eax]
push 0x100771d0
push eax
call fcn.10048754
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.100585da
test bl, bl
je 0x10006912
push 0x100771d0
lea ecx, [esp + 0xc]
call fcn.1005896a
push 0x1007ad18
lea ecx, [esp + 0xc]
call fcn.1005896a
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1000694e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.100585da
jmp 0x10006a19
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x100069d2
lea edx, [esp + 0x7c]
push 0x1007ad14
push edx
call fcn.10048754
add esp, 8
test eax, eax
je 0x100069d2
lea eax, [esp + 0x7c]
push 0x1007ad10
push eax
call fcn.10048754
add esp, 8
test eax, eax
je 0x100069d2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10006962
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.100585da
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x10007210
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10007272
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc