joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40d090
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40d088]
sub esp, 4
test ebx, ebx
je 0x402315
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40230e
test esi, esi
je 0x40230e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4022f0
mov dword [esp], 0x40d090
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402640
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402665
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402670
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402665
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4026b8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4026ae
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4026ba
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4026a0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x433a01
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x441480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00426e53
and dword [ebp - 0x14], 0
cmp dword [0x444984], 0
mov dword [ebp - 0x18], eax
jne 0x433ab4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x433b5c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x433b5c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x444984], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x444988], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44498c], eax
call edi
push eax
call esi
mov dword [0x444994], eax
test eax, eax
je 0x433ab4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x444990], eax
mov eax, dword [0x444990]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x433b0d
cmp dword [0x444994], ecx
je 0x433b0d
push eax
call esi
push dword [0x444994]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x433b0d
test ebx, ebx
je 0x433b0d
call edi
test eax, eax
je 0x433b04
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x433b04
test byte [ebp - 8], 1
jne 0x433b0d
or dword [ebp + 0x10], 0x200000
jmp 0x433b40
mov eax, dword [0x444988]
cmp eax, dword [ebp - 0x18]
je 0x433b40
push eax
call esi
test eax, eax
je 0x433b40
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x433b40
mov eax, dword [0x44498c]
cmp eax, dword [ebp - 0x18]
je 0x433b40
push eax
call esi
test eax, eax
je 0x433b40
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x444984]
call esi
test eax, eax
je 0x433b5c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x433b5e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420bc6
leave
ret

Function at 0x4ed423
Capabilities:
Encode data using xor

Disassembly:
add esp, 0x10
mov esp, ebp
pop ebp
jmp fcn.008b7b2c
Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x35b16aa4
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x138819f9
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402a80
Capabilities:
Create directory
Get common file path
Set file attributes
Timestomp file

Disassembly:
sub esp, 0x224
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
mov esi, dword [esp + 0x230]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x2a]
push ecx
mov word [esp + 0x2c], ax
call fcn.00403bf0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0xc
push 0
push 0x2000000
push 3
push 0
push 3
push 0
push esi
call ebx
cmp eax, 0xffffffff
je 0x402af7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00403be0
add esp, 0x224
ret
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 7
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x2000000
push 3
push 0
push 5
push 0xc0000000
push esi
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
je 0x402be8
push edi
push 0x208
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.00403bf0
add esp, 0xc
push 0x104
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [esp + 0x28]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402b56
push 0
push 0x80
push 3
push 0
push 1
mov ecx, 7
mov esi, 0x40d378
rep movsd dword es:[edi], dword [esi]
push 0x80000000
lea ecx, [esp + 0x40]
push ecx
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x402bc7
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x402bc4
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call edi
push ebp
call edi
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00403be0
add esp, 0x224
ret
mov ecx, dword [esp + 0x22c]
pop ebp
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00403be0
add esp, 0x224
ret
Function at 0x402c10
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x64
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x68]
push ebx
xor ebx, ebx
xor eax, eax
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
movzx ecx, word [eax + str.._]
mov word [esp + eax + 0x40], cx
add eax, 2
cmp cx, bx
jne 0x402c50
mov eax, edx
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402c66
push edi
lea edi, [esp + 0x44]
sub eax, edx
add edi, 0xfffffffe
jmp 0x402c80
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x402c80
mov ecx, eax
shr ecx, 2
push ebx
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push ebx
push 3
push ebx
push 3
mov ecx, eax
push 0x80000000
lea eax, [esp + 0x5c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
lea ecx, [esp + 0x10]
push ecx
push 0x28
lea edx, [esp + 0x28]
push edx
mov esi, eax
push 0xc
lea eax, [esp + 0x24]
push eax
push 0x2d1400
push esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], 0x28
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
test eax, eax
je 0x402cf4
xor ebx, ebx
cmp dword [esp + 0x34], 7
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x68]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00403be0
add esp, 0x64
ret
Function at 0x403890
Capabilities:
Get disk information
Get storage device properties

Disassembly:
sub esp, 0x470
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x46c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x480]
xor ebx, ebx
push 0xd0
mov dword [esi + 4], ebx
mov dword [esp + 0x18], esi
add esi, 8
push ebx
push esi
call fcn.00403bf0
push 0x400
lea eax, [esp + 0x88]
push ebx
push eax
mov dword [esp + 0x28], ebx
call fcn.00403bf0
add esp, 0x18
lea ecx, [esp + 0x78]
push ecx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea ebp, [esp + 0x78]
cmp word [esp + 0x78], bx
je 0x403a4f
mov dword [esp + 0xc], esi
push edi
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov edi, edi
movzx ecx, word [eax + str.._]
mov word [esp + eax + 0x54], cx
add eax, 2
cmp cx, bx
jne 0x403930
mov eax, ebp
mov edx, ebp
jmp 0x403950
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403950
lea edi, [esp + 0x54]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x403964
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x54]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403987
push ebx
push ebx
push 3
sub eax, edx
push ebx
sar eax, 1
xor edx, edx
push 3
mov word [esp + eax*2 + 0x66], dx
push 0x80000000
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0x28
lea edx, [esp + 0x38]
push edx
mov esi, eax
push 0xc
lea eax, [esp + 0x34]
push eax
push 0x2d1400
push esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x50], 0x28
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x403a24
cmp dword [esp + 0x48], 7
jne 0x403a24
mov edx, dword [esp + 0x10]
mov eax, ebp
sub edx, ebp
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x403a00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
add dword [esp + 0x10], 8
mov dword [esp + 0x14], eax
mov dword [ecx + 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403a30
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 + 2], bx
lea ebp, [ebp + eax*2 + 2]
jne 0x403904
pop edi
mov ecx, dword [esp + 0x478]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00403be0
add esp, 0x470
ret
Function at 0x409de5
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.004071bb
and dword [ebp - 4], 0
cmp dword [0x41185c], 0
mov ebx, eax
jne 0x409e96
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409f47
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409f47
push eax
call fcn.00407149
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41185c], eax
call esi
push eax
call fcn.00407149
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x411860], eax
call esi
push eax
call fcn.00407149
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x411864], eax
call esi
push eax
call fcn.00407149
pop ecx
mov dword [0x41186c], eax
test eax, eax
je 0x409e96
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407149
pop ecx
mov dword [0x411868], eax
mov eax, dword [0x411868]
cmp eax, ebx
je 0x409eee
cmp dword [0x41186c], ebx
je 0x409eee
push eax
call fcn.004071c4
push dword [0x41186c]
mov esi, eax
call fcn.004071c4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409eee
test edi, edi
je 0x409eee
call esi
test eax, eax
je 0x409ee5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409ee5
test byte [ebp - 0xc], 1
jne 0x409eee
or dword [ebp + 0x10], 0x200000
jmp 0x409f27
mov eax, dword [0x411860]
cmp eax, ebx
je 0x409f27
push eax
call fcn.004071c4
pop ecx
test eax, eax
je 0x409f27
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409f27
mov eax, dword [0x411864]
cmp eax, ebx
je 0x409f27
push eax
call fcn.004071c4
pop ecx
test eax, eax
je 0x409f27
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41185c]
call fcn.004071c4
pop ecx
test eax, eax
je 0x409f47
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409f49
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6844a98c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea eax, [edx]
mov ebx, 0x30a16403
add byte [eax], al
add byte [ebx + 0x708b0c40], cl
sbb al, 0xad
cmp byte [eax + 0x1c], 0x18
je 0x6844a9a5
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.684487e1
imul edx, dword [eax + 0x7a], 0x1e
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.684487e1
xchg byte [ebp + edx*8 - 0x36], bl
fdivp st(7)
inc dword [esi + 0x49cad55c]
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x6844a9ce
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x6844a9ce
out 0xe8, eax
cmc
invalid
call fcn.684487e1
nop
mov edx, 0x5a8be554
and al, 3
fbld tbyte [esi - 0x75]
or al, 0x4b
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.684487e1
fld xword [ebp + 0x34]
and edi, edi
jne 0x6844aa18
push dword [ebp + 4]
push dword [ebp]
call fcn.68448fe1
add byte [eax], al
add byte [edx + 0x7d8b0846], cl
adc byte [eax + 0x609e8b07], cl
or al, 0
add byte [edi], cl
mov dh, 0x6e
or byte [ecx + 0x18ebc1d9], cl
in eax, 0xff
inc dword [eax]
add byte [eax], al
mov al, byte [esi + 8]
mov edi, dword [ebp + 0x10]
mov byte [edi], al
mov ebx, dword [esi + 0xc60]
movzx ebp, byte [esi + 8]
mov ecx, ebx
shr ebx, 0x18
xor ebx, ebp
shl ecx, 8
xor ecx, dword [ebx*4 + 0x6844e040]
mov ebp, dword [esi]
dec dword [esi + 0xc]
mov dword [esi + 0xc60], ecx
mov edx, dword [ebp + 0x18]
inc edx
inc dword [ebp + 0x10]
dec dword [ebp + 0x14]
test edx, edx
mov dword [ebp + 0x18], edx
jne 0x6844aa0c
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x6844aa13
xor eax, eax
test al, al
jne 0x6844b7f7
mov edi, dword [esi + 0x12a40]
inc edi
cmp dword [esi + 0x440], edi
jne 0x6844b811
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x6844b811
mov edx, dword [esi + 0xc60]
mov eax, dword [esi + 0x30]
not edx
cmp eax, 2
mov dword [esi + 0xc60], edx
jg 0x6844b6fc
dec eax
jg 0x6844b6e0
mov edx, dword [esi + 0xc60]
cmp edx, dword [esi + 0xc58]
jne 0x6844b7f7
mov eax, dword [esi + 0xc64]
rol eax, 1
xor eax, edx
mov dword [esi + 0xc64], eax
mov dword [esi + 4], 0xe
jmp 0x6844a9c7
mov ebx, dword [sym.imp.msvcrt.dll__iob]
sub esp, 8
add ebx, 0x40
push ebx
push 0x5d
call sub.msvcrt.dll_fputc
add esp, 0x10
jmp 0x6844aab0
push edx
push dword [esi + 0xc58]
mov ebp, dword [sym.imp.msvcrt.dll__iob]
push str._0x_08x__0x_08x
add ebp, 0x40
push ebp
call sub.msvcrt.dll_fprintf
add esp, 0x10
mov eax, dword [esi + 0x30]
jmp 0x6844aaa9
mov edx, 0xfffffffc
jmp 0x6844a9e6
xor edx, edx
jmp 0x6844a9e6
Function at 0x6844c330
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [esp + 0x20]
test edi, edi
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
je 0x6844c351
mov dword [edi], 0
test esi, esi
je 0x6844c48e
test eax, eax
je 0x6844c484
test ebp, ebp
js 0x6844c484
cmp byte [esi + 0x1390], 0
je 0x6844c39c
test edi, edi
je 0x6844c386
mov dword [esi + 0x13c4], 0
mov dword [edi], 0xffffffff
mov dword [esi + 0x13c4], 0xffffffff
xor eax, eax
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
test ebp, ebp
je 0x6844c4b0
mov dword [esi + 0x13a4], eax
lea eax, [esi + 4]
mov dword [esi + 0x13c4], 0
mov dword [esi + 0x13a8], ebp
mov dword [esp + 8], eax
lea esi, [esi]
mov ebx, dword [esi]
test byte [ebx + 0xc], 0x20
jne 0x6844c51c
mov edx, dword [esi + 0x1398]
test edx, edx
jne 0x6844c407
sub esp, 0xc
push ebx
call sub.msvcrt.dll_fgetc
add esp, 0x10
cmp eax, 0xffffffff
mov edx, 1
je 0x6844c3ff
sub esp, 8
push ebx
push eax
call sub.msvcrt.dll_ungetc
add esp, 0x10
xor edx, edx
test edx, edx
je 0x6844c4e4
sub esp, 0xc
lea eax, [esi + 0x1394]
push eax
call sym.bzip2.dll_BZ2_bzDecompress
add esp, 0x10
test eax, eax
jne 0x6844c535
sub esp, 0xc
mov ebx, dword [esi]
push ebx
call sub.msvcrt.dll_fgetc
add esp, 0x10
cmp eax, 0xffffffff
mov edx, 1
je 0x6844c448
sub esp, 8
push ebx
push eax
call sub.msvcrt.dll_ungetc
add esp, 0x10
xor edx, edx
test edx, edx
je 0x6844c4d4
mov edx, dword [esi + 0x1398]
test edx, edx
jne 0x6844c4d4
mov ecx, dword [esi + 0x13a8]
test ecx, ecx
jne 0x6844c56c
test edi, edi
je 0x6844c472
mov dword [edi], 0
mov eax, ebp
mov dword [esi + 0x13c4], 0
jmp 0x6844c392
mov dword [esi + 0x13c4], 0
test edi, edi
je 0x6844c498
mov dword [edi], 0xfffffffe
test esi, esi
je 0x6844c390
mov dword [esi + 0x13c4], 0xfffffffe
jmp 0x6844c390
test edi, edi
je 0x6844c4c4
mov dword [esi + 0x13c4], 0
mov dword [edi], 0
mov dword [esi + 0x13c4], 0
jmp 0x6844c390
mov ebx, dword [esi + 0x13a8]
test ebx, ebx
jne 0x6844c3c4
jmp 0x6844c468
push dword [esi]
push 0x1388
push 1
push dword [esp + 0x14]
call sub.msvcrt.dll_fread
mov ecx, dword [esi]
add esp, 0x10
test byte [ecx + 0xc], 0x20
jne 0x6844c51c
mov ebx, dword [esp + 8]
mov dword [esi + 0x138c], eax
mov dword [esi + 0x1398], eax
mov dword [esi + 0x1394], ebx
jmp 0x6844c407
test edi, edi
je 0x6844c526
mov dword [edi], 0xfffffffa
mov dword [esi + 0x13c4], 0xfffffffa
jmp 0x6844c390
cmp eax, 4
je 0x6844c54b
test edi, edi
je 0x6844c540
mov dword [edi], eax
mov dword [esi + 0x13c4], eax
jmp 0x6844c390
test edi, edi
je 0x6844c555
mov dword [edi], 4
mov eax, ebp
sub eax, dword [esi + 0x13a8]
mov dword [esi + 0x13c4], 4
jmp 0x6844c392
test edi, edi
je 0x6844c576
mov dword [edi], 0xfffffff9
mov dword [esi + 0x13c4], 0xfffffff9
jmp 0x6844c390
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x4738d9
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4735cc
mov ebx, esi
sub esi, 1
call fcn.00473912
add ebx, 0x899021a7
add esi, 0x2bd5d4dd
xor dword [edi], ecx
or esi, ebx
add edi, 2
sub ebx, 0x670ccdf8
cmp edi, edx
jl fcn.004738d9
and esi, ebx
add ebx, esi
ret
Function at 0x4014b0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x5c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
cmp esi, 0x3e7
jle 0x401570
mov dword [ebp - 0x24], 0xa
mov dword [ebp - 0x20], 0xa
mov dword [ebp - 0x1c], 0xa
mov eax, dword [ecx]
lea esi, [ebp - 0x24]
mov dword [esp], ebx
mov edi, esi
mov dword [esp + 4], eax
call sub.gdi32.dll_SelectObject
sub esp, 8
mov dword [ebp - 0x30], eax
mov dword [esp + 0x20], 0xcc0020
imul eax, dword [edi], 0x17
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x17
mov dword [esp + 0xc], 0xc
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, edi
add edi, 4
sub eax, esi
lea eax, [eax + eax*2]
add eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x18]
sub esp, 0x24
cmp eax, edi
jne 0x4014fb
mov eax, dword [ebp - 0x30]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.gdi32.dll_SelectObject
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test esi, esi
js 0x4015b4
mov eax, esi
mov edx, 0x51eb851f
imul edx
mov eax, esi
sar eax, 0x1f
sar edx, 5
sub edx, eax
imul eax, edx, 0x64
sub esi, eax
mov eax, esi
mov dword [ebp - 0x24], edx
mov edx, 0x66666667
imul edx
mov eax, esi
sar eax, 0x1f
sar edx, 2
sub edx, eax
lea eax, [edx + edx*4]
mov dword [ebp - 0x20], edx
add eax, eax
sub esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x4014e2
neg esi
mov edx, 0xa
jmp 0x40158c