joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007c7de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x10161528], 0
mov dword [ebp - 4], ecx
jne 0x1007c7f4
xor eax, eax
jmp 0x1007c82e
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x1007c804
call fcn.1000b545
mov esi, dword [eax + 0xc]
push edi
push dword [0x10162e4c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x1007c82a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x1007c832
xor eax, eax
pop edi
pop esi
leave
ret 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x1007c850
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x1007c82c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.1007c6ff
mov esi, eax
jmp 0x1007c842
Function at 0x1008ff56
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x10114788
call fcn.100f5e71
xor edi, edi
cmp dword [0x1015b664], edi
je 0x1009001f
cmp dword [0x1015c30c], 0xfffffffe
jne 0x1009000c
cmp dword [ebp + 8], 0xffffffff
je 0x1009001f
test byte [0x101630f4], 1
mov esi, 0x101630d4
jne 0x1008ffb5
or dword [0x101630f4], 1
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.10067734
push 0x1011b768
call fcn.100f669d
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, esi
call fcn.1006778b
cmp dword [0x101630d0], edi
je 0x1008ffc9
call fcn.100088f6
push edi
push edi
push 0x1008fefd
call fcn.100fa181
add esp, 0xc
mov dword [0x101630d0], eax
cmp eax, edi
jbe 0x1008fff9
cmp eax, 0xffffffff
je 0x1008fff9
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
mov dword [0x1015c30c], eax
jmp 0x1008ffff
mov dword [0x101630d0], edi
push 0x101630dc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1009001f
mov eax, dword [ebp + 8]
mov dword [0x1015c30c], eax
cmp eax, 0xffffffff
jne 0x1009001f
mov dword [0x101630d0], edi
call fcn.100f5f49
ret

Function at 0x10091a7c
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1015dfe0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x108], esi
call fcn.1009153c
mov ebx, eax
cmp ebx, esi
je 0x10091ae9
lea ecx, [ebp - 0x10c]
call fcn.1000c9fc
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100f3dd0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x10091b07
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x10c]
call fcn.10091a7c
cmp eax, esi
jne 0x10091b4e
lea eax, [ebp - 0x11c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x100
call ebx
test eax, eax
je 0x10091af1
lea ecx, [ebp - 0x10c]
call fcn.1000c9fc
push dword [ebp - 0x114]
mov ecx, edi
call fcn.100914dd
lea ecx, [ebp - 0x10c]
mov esi, eax
call fcn.1000c9fc
mov eax, esi
jmp 0x10091ad8
Function at 0x100b6a15
Capabilities:
Get common file path

Disassembly:
push 0x120
mov eax, 0x10116203
call fcn.100f5eda
mov esi, ecx
mov dword [ebp - 0x128], esi
call fcn.100d37b9
push 0x15c
call fcn.100077b8
pop ecx
mov ecx, eax
mov dword [ebp - 0x124], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x100b6a59
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.100d5bba
jmp 0x100b6a5b
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.100d378b
call fcn.1000b545
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x88]
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov byte [ebp + esi - 0x114], 0x5c
inc esi
mov dword [ebp - 0x124], esi
mov byte [ebp + esi - 0x114], bl
mov dword [ebp - 0x120], ebx
cmp edi, ebx
je 0x100b6bf5
cmp dword [edi + 4], ebx
jle 0x100b6bf5
lea ecx, [ebp - 0x118]
call fcn.10004110
mov edx, dword [edi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x114]
push eax
push ebx
lea eax, [ebp - 0x118]
push eax
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x100b6bd9
lea ecx, [ebp - 0x11c]
call fcn.10004110
mov eax, dword [ebp - 0x120]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x100b6b2a
push dword [ebp - 0x118]
lea eax, [ebp - 0x11c]
push 0x10130d40
push eax
call fcn.10006370
add esp, 0xc
jmp 0x100b6b5c
jge 0x100b6b4a
push dword [ebp - 0x118]
inc eax
push eax
lea eax, [ebp - 0x11c]
push str._d__s
push eax
call fcn.10006370
add esp, 0x10
jmp 0x100b6b5c
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.10004940
push 0x15c
call fcn.100077b8
pop ecx
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x100b6b80
mov ecx, eax
call fcn.100bb6d7
mov esi, eax
jmp 0x100b6b82
xor esi, esi
push dword [ebp - 0x11c]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebx + 0xe110]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push ebx
mov ecx, edi
call fcn.10017e2b
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x128]
push esi
call fcn.100d378b
mov ecx, dword [ebp - 0x11c]
inc dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.100010d0
mov esi, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x118]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.100010d0
inc ebx
cmp ebx, dword [edi + 4]
jl 0x100b6ac3
call fcn.100f5f5d
ret
Function at 0x100c1cd9
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push 0x44
mov eax, 0x10116b92
call fcn.100f5eda
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], eax
call fcn.10004110
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp esi, 0x13
jne 0x100c1d07
push str.Pause
jmp 0x100c1d4a
push 0x33
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.100f6740
add esp, 0xc
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
shl eax, 0x10
add esi, 0xffffffdf
or eax, 1
cmp esi, 0xe
ja 0x100c1d39
or eax, 0x1000000
push 0x32
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x48]
call fcn.10004b50
lea ecx, [ebp - 0x48]
call fcn.10048a03
mov esi, dword [ebp - 0x48]
xor edi, edi
cmp dword [esi - 0xc], ebx
jle 0x100c1da2
push edi
lea ecx, [ebp - 0x48]
call fcn.1002f61b
mov byte [ebp - 0x4c], al
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_IsCharLowerA]
test eax, eax
jne 0x100c1d85
inc edi
cmp edi, dword [esi - 0xc]
jl 0x100c1d64
jmp 0x100c1da2
movsx eax, byte [ebp - 0x4c]
push eax
call fcn.100f9bf0
pop ecx
mov byte [ebp - 0x4c], al
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
push edi
call fcn.10017c60
mov esi, dword [ebp - 0x48]
push dword [esi - 0xc]
mov ecx, dword [ebp - 0x50]
push esi
call fcn.1000a055
cmp dword [ebp + 0x10], ebx
jne 0x100c1dbd
mov ecx, dword [ebp - 0x50]
push 0x2b
call fcn.1000a028
lea ecx, [esi - 0x10]
call fcn.100010d0
call fcn.100f5f5d
ret 0xc

Function at 0x100cc6cb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.1001344d
call fcn.1000850d
cmp eax, esi
pop esi
jne 0x100cc6e7
mov ecx, 0x101613c0
jmp fcn.10022eb6
ret

Function at 0x100cff2c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x100cff44
mov edi, dword [esi + 0xc]
jmp 0x100cff84
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100cff5d
call fcn.10015424
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x100cff72
call fcn.10015424
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x100cff84
call fcn.10015424
call fcn.1000b545
cmp dword [eax + 0x3c], 0
je 0x100cff99
push edi
mov ecx, ebx
call fcn.100ced8f
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.100cfe52
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x100cffb7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x100cffc3
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100eecfc
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp byte [ebp + 0xc], 0
jne 0x100eed3c
test edi, edi
jl 0x100eed3c
cmp al, 0x20
je 0x100eed31
cmp word [ebp + 8], 0x71
jne 0x100eed3c
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x100f3dd0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1015dfe0]
jne 0x100f3dda
repz ret
jmp fcn.100fad04

Function at 0x1010899d
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.100fc8dc
and dword [ebp - 4], 0
cmp dword [0x10164fa4], 0
mov ebx, eax
jne 0x10108a4e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10108aff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10140e50
push edi
call esi
test eax, eax
je 0x10108aff
push eax
call fcn.100fc86a
mov dword [esp], 0x10140e40
push edi
mov dword [0x10164fa4], eax
call esi
push eax
call fcn.100fc86a
mov dword [esp], 0x10140e2c
push edi
mov dword [0x10164fa8], eax
call esi
push eax
call fcn.100fc86a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10164fac], eax
call esi
push eax
call fcn.100fc86a
pop ecx
mov dword [0x10164fb4], eax
test eax, eax
je 0x10108a4e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100fc86a
pop ecx
mov dword [0x10164fb0], eax
mov eax, dword [0x10164fb0]
cmp eax, ebx
je 0x10108aa6
cmp dword [0x10164fb4], ebx
je 0x10108aa6
push eax
call fcn.100fc8e5
push dword [0x10164fb4]
mov esi, eax
call fcn.100fc8e5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10108aa6
test edi, edi
je 0x10108aa6
call esi
test eax, eax
je 0x10108a9d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10108a9d
test byte [ebp - 0xc], 1
jne 0x10108aa6
or dword [ebp + 0x10], 0x200000
jmp 0x10108adf
mov eax, dword [0x10164fa8]
cmp eax, ebx
je 0x10108adf
push eax
call fcn.100fc8e5
pop ecx
test eax, eax
je 0x10108adf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10108adf
mov eax, dword [0x10164fac]
cmp eax, ebx
je 0x10108adf
push eax
call fcn.100fc8e5
pop ecx
test eax, eax
je 0x10108adf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10164fa4]
call fcn.100fc8e5
pop ecx
test eax, eax
je 0x10108aff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10108b01
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10113381
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x101133bc
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x101133a3
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x101133b4
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x101133be
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10113399
xor eax, eax
pop edi
pop esi
ret
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x10007c1f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10007c2e
pop dword [ebp - 0x20]
mov eax, 0x10007c2e
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x332d6d10
add dword [ebp - 0x30], 0x1b24d83b
mov dword [ebp - 0x2c], 0x8fe22127
sub dword [ebp - 0x2c], 0x5daed4e2
mov dword [ebp - 0x28], 0x4b222e6
sub dword [ebp - 0x28], 0xb865deb8
mov dword [ebp - 0x24], 0x375bc76c
add dword [ebp - 0x24], 0xc8a43894
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xf3c2945d
sub dword [ebp - 0x30], 0x7f502b07
mov dword [ebp - 0x2c], 0xf0c0787
add dword [ebp - 0x2c], 0x326059ee
mov dword [ebp - 0x28], 0x9580cf09
add dword [ebp - 0x28], 0xcdee9d63
mov dword [ebp - 0x24], 0xf3db76b
add dword [ebp - 0x24], 0xf0c24895
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xc2e6b531
add eax, 0x4d19cb1f
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x37c0e
push 0
call eax
mov ecx, 0x69906dab
add ecx, 0x966fdead
mov edi, eax
mov ebx, 0xce6313be
sub ebx, 0xbe6219be
add ebx, dword [ebp - 0x20]
mov esi, 0x85c1cd94
xor dword [ebp - 4], ecx
mov edx, dword [ebx]
sub dword [ebp - 8], 0x5bcfad47
add edx, esi
xor dword [ebp - 4], 0x921f7e92
mov dword [edi], edx
add dword [ebp - 0x14], 0x9020229b
add edi, 0xcacda89f
add edi, 0x35325765
add ebx, 0x9643c0a4
add ebx, 0x69bc3f60
loop 0x10007d40
add eax, 0x12433
xor ebx, ebx
add ebx, eax
add eax, 0x4272e6e1
sub eax, 0x4272e6dc
mov ecx, 0x10000000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x3ad7258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3ad7a064]
jne 0x3ad72597
repz ret
jmp fcn.3ad73d0c

Function at 0x3ad76f7d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x3ad76f8c
pop dword [ebp - 0x34]
mov eax, 0x1328cabf
add eax, 0x27aea4cd
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x3b8dd
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x3f1a7670
sub ecx, 0x3f1a1ea9
xor edi, edi
add edi, eax
mov edx, 0x428922e7
add edx, 0xf84f1b19
add edx, dword [ebp - 0x34]
mov esi, 0x880262b0
sub dword [ebp - 0x18], edi
mov ebx, dword [edx]
xor dword [ebp - 0x14], 0x5fec830b
sub ebx, esi
sub dword [ebp - 0x14], ecx
mov dword [edi], ebx
xor dword [ebp - 0x10], edi
add edi, 0xb8bb1cf4
sub edi, 0xb8bb1cf0
add edx, 0xf3e744be
add edx, 0xc18bb46
loop 0x3ad76fe2
add eax, 0x1c903b7b
sub eax, 0x1c8ee98c
xor ebx, ebx
add ebx, eax
add eax, 0xe208ba87
add eax, 0x1df7457e
mov ecx, 0x3ad70000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x40fdd3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x40fde1
and dword [esi], 0
xor eax, eax
inc eax
cmp dword [ebp + 0x10], 0
jbe 0x40fe19
mov eax, 0x8000
cmp dword [ebp + 0x10], eax
jae 0x40fdf7
mov eax, dword [ebp + 0x10]
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 0xc]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x40fe19
mov ecx, dword [ebp + 0x10]
add dword [esi], ecx
test eax, eax
setne al
movzx eax, al
push eax
call fcn.0040fb9e
pop esi
pop ebp
ret 0x10

Function at 0x412ba4
Capabilities:
Set file attributes

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret 8

Function at 0x41304c
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, 0x105
push eax
push eax
mov ecx, esi
call fcn.00412d96
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [esi]
push edi
mov ebx, eax
call fcn.0040dac4
mov byte [edi + eax], 0
mov dword [esi + 4], eax
dec ebx
mov eax, 0x103
cmp eax, ebx
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
ret 4

Function at 0x413208
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4515bc], 0
jne 0x41323f
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00413001
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call fcn.00412ba4
push dword [ebp - 0xc]
mov bl, al
call fcn.0041838f
pop ecx
mov al, bl
pop ebx
jmp 0x413250
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
leave
ret 8

Function at 0x413254
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4515bc], 0
jne 0x413287
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00413001
push dword [eax]
call fcn.00412bba
push dword [ebp - 0xc]
mov bl, al
call fcn.0041838f
pop ecx
mov al, bl
pop ebx
jmp 0x413295
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
leave
ret 4

Function at 0x413305
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4515bc], 0
jne 0x413338
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00413001
push dword [eax]
call fcn.00412be2
push dword [ebp - 0xc]
mov bl, al
call fcn.0041838f
pop ecx
mov al, bl
pop ebx
jmp 0x413348
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
leave
ret 4
Function at 0x41335b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4515bc], 0
jne 0x41338e
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00413001
push dword [eax]
call fcn.00412bf6
push dword [ebp - 0xc]
mov bl, al
call fcn.0041838f
pop ecx
mov al, bl
pop ebx
jmp 0x4133aa
push 0
push dword [ebp + 8]
call fcn.00413208
test al, al
je 0x4133aa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
leave
ret 4

Function at 0x413485
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, 0x105
push edi
mov ecx, esi
call fcn.00412d96
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, dword [esi]
push edi
mov ebx, eax
call fcn.0040dac4
mov byte [edi + eax], 0
mov dword [esi + 4], eax
dec ebx
mov eax, 0x103
cmp eax, ebx
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
ret 4

Function at 0x413604
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, 0x105
push edi
mov ecx, esi
call fcn.00412d96
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [esi]
push edi
mov ebx, eax
call fcn.0040dac4
mov byte [edi + eax], 0
mov dword [esi + 4], eax
dec ebx
mov eax, 0x103
cmp eax, ebx
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
ret 4

Function at 0x413728
Capabilities:
Get common file path

Disassembly:
push 0x28
mov eax, 0x43c972
call fcn.00422f18
xor edi, edi
mov dword [ebp - 0x10], edi
cmp byte [0x4515bc], 0
je 0x413779
mov esi, dword [ebp + 0x10]
push 0x104
mov ecx, esi
call fcn.00404f05
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, dword [esi]
push edi
mov ebx, eax
call fcn.004017d9
xor ecx, ecx
mov word [edi + eax*2], cx
mov dword [esi + 4], eax
mov eax, ebx
jmp 0x413827
lea ecx, [ebp - 0x1c]
call fcn.004127a9
mov dword [ebp - 4], edi
cmp dword [ebp + 0xc], edi
je 0x4137a4
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
call fcn.00413001
mov esi, dword [eax]
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 1
jmp 0x4137a6
xor esi, esi
cmp dword [ebp + 8], 0
push 2
pop ebx
je 0x4137c5
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00413001
or dword [ebp - 0x10], ebx
mov eax, dword [eax]
mov dword [ebp - 4], ebx
jmp 0x4137c7
xor eax, eax
lea ecx, [ebp - 0x1c]
push ecx
push esi
push eax
call fcn.004136eb
mov esi, eax
test byte [ebp - 0x10], bl
je 0x4137e6
push dword [ebp - 0x28]
and dword [ebp - 0x10], 0xfffffffd
call fcn.0041838f
pop ecx
and dword [ebp - 4], 0
test byte [ebp - 0x10], 1
je 0x4137f9
push dword [ebp - 0x34]
call fcn.0041838f
pop ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00412c9f
mov ecx, dword [ebp + 0x10]
push eax
mov byte [ebp - 4], 3
call fcn.0040c822
push dword [ebp - 0x34]
call fcn.0041838f
push dword [ebp - 0x1c]
call fcn.0041838f
pop ecx
pop ecx
mov eax, esi
call fcn.00422ff0
ret 0xc
Function at 0x415299
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4152bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4152bf
xor al, al
jmp 0x4152df
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004266b0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x416cf7
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
and dword [esi + 4], 0
mov eax, dword [esi]
push edi
mov ebx, ecx
mov byte [eax], 0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
test edi, edi
jne 0x416d24
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
jmp 0x416d5c
push edi
mov ecx, esi
call fcn.00412d96
inc edi
push edi
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edi, dword [esi]
push edi
mov ebx, eax
call fcn.0040dac4
mov byte [edi + eax], 0
mov dword [esi + 4], eax
test ebx, ebx
jne 0x416d5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
neg eax
jmp 0x416d5c
mov al, 1
pop edi
pop esi
pop ebx
ret 4

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

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x41e66a
mov dword [ecx*4 + 0x4520a0], eax
inc ecx
cmp ecx, 0x100
jb 0x41e665
pop esi
ret

Function at 0x41e691
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
mov ecx, edx
mov edx, dword [esp + 4]
test edx, edx
jbe 0x41e6ba
push esi
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4520a0]
dec edx
inc ecx
test edx, edx
ja 0x41e69e
pop esi
ret 4