joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431f37
Capabilities:
Resolve function by parsing pe exports

Disassembly:
and eax, 0x5e1f
xor eax, 0x923a
call 0x431ed9
add byte [ebx + 0x49], al
inc ebx
xor eax, 0x83354948
les eax, [eax + ebx*2]
push esi
and esi, 0xa477
pop esi
push ecx
xor ecx, 0x37d9
pop ecx
cmp dword [ebp - 0xc58], 0
jne 0x431f05
mov dword [ebp - 0x710], 0
jmp 0x432150
mov edx, dword [ebp - 0xc58]
mov dword [ebp - 0x4e8], edx
push ecx
push ecx
add esp, 4
add ecx, 0x4fc0
or ecx, 0x11d17
sub ecx, 0x6db3
call 0x431f37
add byte [edx], dh
inc ecx
dec edx
dec ebx
inc ecx
aaa
xor al, 0x42
dec ebp
add esp, 4
pop ecx
push edi
or edi, 0x10ec2
pop edi
lea eax, [ebp - 0x16e8]
mov dword [ebp - 0xc54], eax
mov ecx, dword [ebp - 0x4e8]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xc50], edx
xor eax, eax
mov word [ebp - 0x208], ax
xor ecx, ecx
mov word [ebp - 0x3c], cx
push eax
push edi
add esp, 4
xor eax, 0x937c
jmp 0x431f7e
pop eax
push ebx
add ebx, 0x4976
xor ebx, 0x7fb3
sub ebx, 0x5a0b
add byte [eax], al
pop ebx
push esi
push ecx
add esp, 4
add esi, 0xcf14
pop esi
mov edx, dword [ebp - 0xc50]
mov ax, word [edx]
mov word [ebp - 0xf8e], ax
mov ecx, dword [ebp - 0xc50]
add ecx, 2
mov dword [ebp - 0xc50], ecx
mov dx, word [ebp - 0xf8e]
mov word [ebp - 0x208], dx
mov eax, dword [ebp - 0xc54]
mov cx, word [eax]
mov word [ebp - 0xf90], cx
mov edx, dword [ebp - 0xc54]
add edx, 2
mov dword [ebp - 0xc54], edx
mov ax, word [ebp - 0xf90]
mov word [ebp - 0x3c], ax
push edi
push edi
add esp, 4
and edi, 0x14347
pop edi
push eax
or eax, 0x5be7
and eax, 0x185c2
pop eax
push ebx
push edi
add esp, 4
sub ebx, 0x13f3e
or ebx, 0x1d6
and ebx, 0x3f66
pop ebx
movzx ecx, word [ebp - 0x3c]
test ecx, ecx
jne 0x432045
movzx edx, word [ebp - 0x208]
movzx eax, word [ebp - 0x3c]
sub edx, eax
mov dword [ebp - 0x1560], edx
jmp 0x43209f
movzx ecx, word [ebp - 0x208]
movzx edx, word [ebp - 0x3c]
cmp ecx, edx
je 0x431f6d
movzx eax, word [ebp - 0x208]
xor eax, 0x20
movzx ecx, word [ebp - 0x3c]
cmp eax, ecx
je 0x431f6d
movzx edx, word [ebp - 0x208]
movzx eax, word [ebp - 0x3c]
cmp edx, eax
jge 0x432089
mov dword [ebp - 0x151c], 0xffffffff
jmp 0x432093
mov dword [ebp - 0x151c], 1
mov ecx, dword [ebp - 0x151c]
mov dword [ebp - 0x1560], ecx
cmp dword [ebp - 0x1560], 0
jne 0x4320e8
push edx
or edx, 0xd00b
call 0x4320bf
add byte [eax], bh
push eax
inc ebx
aaa
xor al, 0x3a
dec ebx
xor cl, byte [edx + 0x3f]
add esp, 4
add edx, 0x1846b
jmp 0x4320cd
pop edx
push ebx
push ecx
add esp, 4
xor ebx, 0x9907
pop ebx
mov edx, dword [ebp - 0x4e8]
push ecx
push esi
add esp, 4
jmp 0x4320f3
xor ecx, 0xf8eb
and ecx, 0x12363
pop ecx
push edx
sub edx, 0x173e1
sub edx, 0x9e2e
pop edx
push edi
push eax
add esp, 4
xor edi, 0x5640
pop edi
mov eax, dword [ebp - 0x4e8]
mov ecx, dword [eax]
mov dword [ebp - 0x4e8], ecx
mov edx, dword [ebp - 0x4e8]
cmp edx, dword [ebp - 0xc58]
je 0x432146
mov eax, dword [ebp - 0x4e8]
cmp dword [eax + 0x30], 0
jne 0x431f11
mov dword [ebp - 0x710], 0
Function at 0x4320bf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
and eax, 0x5e1f
xor eax, 0x923a
call 0x431ed9
add byte [ebx + 0x49], al
inc ebx
xor eax, 0x83354948
les eax, [eax + ebx*2]
push esi
and esi, 0xa477
pop esi
push ecx
xor ecx, 0x37d9
pop ecx
cmp dword [ebp - 0xc58], 0
jne 0x431f05
mov dword [ebp - 0x710], 0
jmp 0x432150
mov edx, dword [ebp - 0xc58]
mov dword [ebp - 0x4e8], edx
push ecx
push ecx
add esp, 4
add ecx, 0x4fc0
or ecx, 0x11d17
sub ecx, 0x6db3
call 0x431f37
add byte [edx], dh
inc ecx
dec edx
dec ebx
inc ecx
aaa
xor al, 0x42
dec ebp
add esp, 4
pop ecx
push edi
or edi, 0x10ec2
pop edi
lea eax, [ebp - 0x16e8]
mov dword [ebp - 0xc54], eax
mov ecx, dword [ebp - 0x4e8]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xc50], edx
xor eax, eax
mov word [ebp - 0x208], ax
xor ecx, ecx
mov word [ebp - 0x3c], cx
push eax
push edi
add esp, 4
xor eax, 0x937c
jmp 0x431f7e
pop eax
push ebx
add ebx, 0x4976
xor ebx, 0x7fb3
sub ebx, 0x5a0b
add byte [eax], al
pop ebx
push esi
push ecx
add esp, 4
add esi, 0xcf14
pop esi
mov edx, dword [ebp - 0xc50]
mov ax, word [edx]
mov word [ebp - 0xf8e], ax
mov ecx, dword [ebp - 0xc50]
add ecx, 2
mov dword [ebp - 0xc50], ecx
mov dx, word [ebp - 0xf8e]
mov word [ebp - 0x208], dx
mov eax, dword [ebp - 0xc54]
mov cx, word [eax]
mov word [ebp - 0xf90], cx
mov edx, dword [ebp - 0xc54]
add edx, 2
mov dword [ebp - 0xc54], edx
mov ax, word [ebp - 0xf90]
mov word [ebp - 0x3c], ax
push edi
push edi
add esp, 4
and edi, 0x14347
pop edi
push eax
or eax, 0x5be7
and eax, 0x185c2
pop eax
push ebx
push edi
add esp, 4
sub ebx, 0x13f3e
or ebx, 0x1d6
and ebx, 0x3f66
pop ebx
movzx ecx, word [ebp - 0x3c]
test ecx, ecx
jne 0x432045
movzx edx, word [ebp - 0x208]
movzx eax, word [ebp - 0x3c]
sub edx, eax
mov dword [ebp - 0x1560], edx
jmp 0x43209f
movzx ecx, word [ebp - 0x208]
movzx edx, word [ebp - 0x3c]
cmp ecx, edx
je 0x431f6d
movzx eax, word [ebp - 0x208]
xor eax, 0x20
movzx ecx, word [ebp - 0x3c]
cmp eax, ecx
je 0x431f6d
movzx edx, word [ebp - 0x208]
movzx eax, word [ebp - 0x3c]
cmp edx, eax
jge 0x432089
mov dword [ebp - 0x151c], 0xffffffff
jmp 0x432093
mov dword [ebp - 0x151c], 1
mov ecx, dword [ebp - 0x151c]
mov dword [ebp - 0x1560], ecx
cmp dword [ebp - 0x1560], 0
jne 0x4320e8
push edx
or edx, 0xd00b
call 0x4320bf
add byte [eax], bh
push eax
inc ebx
aaa
xor al, 0x3a
dec ebx
xor cl, byte [edx + 0x3f]
add esp, 4
add edx, 0x1846b
jmp 0x4320cd
pop edx
push ebx
push ecx
add esp, 4
xor ebx, 0x9907
pop ebx
mov edx, dword [ebp - 0x4e8]
push ecx
push esi
add esp, 4
jmp 0x4320f3
xor ecx, 0xf8eb
and ecx, 0x12363
pop ecx
push edx
sub edx, 0x173e1
sub edx, 0x9e2e
pop edx
push edi
push eax
add esp, 4
xor edi, 0x5640
pop edi
mov eax, dword [ebp - 0x4e8]
mov ecx, dword [eax]
mov dword [ebp - 0x4e8], ecx
mov edx, dword [ebp - 0x4e8]
cmp edx, dword [ebp - 0xc58]
je 0x432146
mov eax, dword [ebp - 0x4e8]
cmp dword [eax + 0x30], 0
jne 0x431f11
mov dword [ebp - 0x710], 0
Function at 0x4328d4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
add esi, 0x53a6
pop esi
mov edx, dword [ebp - 0x4ec]
mov dword [ebp - 0x2a8], edx
jmp 0x432954
Function at 0x4357b0
Capabilities:
Execute syscall

Disassembly:
std
inc dword [esp + eax]
nop
or eax, 0xfffd928e
add al, 4
nop
lcall 0x9a40, 0x404fffd
push ecx
clc
add al, 4
jns 0x4357df
nop
mov bh, ch
inc dword [esp + eax]
mov byte [ebp + 0x35], bh
add eax, 0x2d08a14
add al, 4
int3
add al, 5
add eax, 0x5c5c0505
mov cl, cl
or dword [esi + 0x687fed4], eax
add eax, 0xe05cc86
add eax, 0xc1f48605
pop ebp
add eax, 0x6cf48605
sub byte [0xed566405], al
syscall
add eax, 0x4d390505
dec ecx
push edx
aaa
cmp eax, 0x88423d41
leave
or dword [esi - 0x78], ebx
ret 0xfda5

Function at 0x442f20
Capabilities:
Execute syscall

Disassembly:
and eax, dword [esi]
add eax, 0x8abc1463
fyl2x
add al, 4
sub al, byte [eax + ecx]
add eax, 0x8a8e6b05
test eax, 0x900404ff
push edx
stc
mov ss, word [edx + 0x4040099]
pop ebx
push ebp
mov cl, cl
or ebp, ebp
syscall
add eax, 0x3b550505
inc ebp
dec eax
invalid

Function at 0x44dab0
Capabilities:
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
mov eax, ecx
mov ecx, dword [esp + 0xc]
push ebx
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [eax + 0xc], edx
mov edx, dword [esp + 8]
push esi
mov dword [eax], 0x540a34
mov dword [eax + 8], ecx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
xor ebx, ebx
lea esi, [eax + 0x43c]
mov edx, ebx
shr edx, 1
test bl, 1
je 0x44daf1
xor edx, 0xedb88320
test dl, 1
je 0x44db00
shr edx, 1
xor edx, 0xedb88320
jmp 0x44db02
shr edx, 1
test dl, 1
je 0x44db11
shr edx, 1
xor edx, 0xedb88320
jmp 0x44db13
shr edx, 1
test dl, 1
je 0x44db22
shr edx, 1
xor edx, 0xedb88320
jmp 0x44db24
shr edx, 1
test dl, 1
je 0x44db33
shr edx, 1
xor edx, 0xedb88320
jmp 0x44db35
shr edx, 1
test dl, 1
je 0x44db44
shr edx, 1
xor edx, 0xedb88320
jmp 0x44db46
shr edx, 1
test dl, 1
je 0x44db55
shr edx, 1
xor edx, 0xedb88320
jmp 0x44db57
shr edx, 1
test dl, 1
je 0x44db66
shr edx, 1
xor edx, 0xedb88320
jmp 0x44db68
shr edx, 1
mov dword [esi], edx
inc ebx
add esi, 4
cmp ebx, 0x100
jb 0x44dae2
pop esi
mov byte [eax + 0x93b], cl
pop ebx
ret 0xc
Function at 0x44dbe0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [ecx + 0x10]
test edx, edx
push ebx
push ebp
push esi
push edi
je 0x44dcd1
mov edi, dword [ecx + 8]
mov ebp, dword [ecx + 0xc]
lea esi, [edi + 4]
cmp esi, ebp
jae 0x44dcd1
xor eax, eax
mov dword [ecx + 8], esi
mov ah, byte [edi + edx]
movzx ebx, byte [edi + edx + 2]
mov al, byte [edi + edx + 1]
movzx edi, byte [edi + edx + 3]
shl eax, 8
or eax, ebx
shl eax, 8
or edi, eax
lea eax, [esi + 4]
cmp eax, ebp
jae 0x44dcd1
xor ebx, ebx
mov dword [ecx + 8], eax
mov bh, byte [esi + edx]
movzx eax, byte [esi + edx + 2]
mov bl, byte [esi + edx + 1]
movzx edx, byte [esi + edx + 3]
shl ebx, 8
or ebx, eax
mov eax, dword [esp + 0x18]
shl ebx, 8
or ebx, edx
mov dword [eax], ebx
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
lea edx, [eax + edi + 4]
cmp edx, esi
mov dword [esp + 0x10], ebx
jae 0x44dcd1
mov esi, 0xfffffffc
or edx, 0xffffffff
cmp edi, esi
jle 0x44dc96
mov ebx, dword [ecx + 0x10]
lea ebp, [eax + ebx]
xor ebx, ebx
mov bl, byte [esi + ebp]
xor ebx, edx
and ebx, 0xff
shr edx, 8
xor edx, dword [ecx + ebx*4 + 0x43c]
inc esi
cmp esi, edi
jl 0x44dc76
mov ebx, dword [esp + 0x10]
mov ebp, dword [ecx + 0x10]
lea esi, [eax + edi]
movzx ecx, byte [esi + ebp + 2]
xor eax, eax
mov ah, byte [esi + ebp]
add esi, ebp
not edx
mov al, byte [esi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 3]
shl eax, 8
or eax, ecx
cmp edx, eax
jne 0x44dcd1
cmp ebx, 0x49454e44
je 0x44dcd1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 4
Function at 0x498280
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
xor ecx, ecx
mov cx, word [edx]
xor eax, eax
test cx, cx
je 0x4982ae
push esi
mov esi, eax
shl eax, 4
sar esi, 0x1c
xor esi, eax
movzx eax, cx
add edx, 2
xor ecx, ecx
mov cx, word [edx]
xor eax, esi
test cx, cx
jne 0x498291
pop esi
ret 4
Function at 0x4c9760
Capabilities:
Get keyboard layout

Disassembly:
mov eax, dword [0x563d54]
sub esp, 8
test eax, eax
push edi
mov edi, str.UNKNOWN
jne 0x4c9777
call fcn.004c9560
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp dword [0x563d54], 2
jne 0x4c9898
mov eax, dword [0x563d74]
test eax, eax
je 0x4c9898
mov eax, dword [esp + 0x10]
push esi
push eax
call dword [0x563d58]
mov esi, eax
test esi, esi
je 0x4c9897
push ebx
call fcn.004c9670
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push esi
mov ebx, eax
call dword [0x563d74]
test eax, eax
je case.0x4c9810.17
mov eax, dword [esp + 0xc]
cmp eax, 0x400
jbe 0x4c97e0
sub eax, 0x400
lea ecx, [ebx - 0x3a4]
cmp ecx, 0x12
ja case.0x4c9810.17
movzx ecx, byte [ecx + 0x4c98b0]
jmp dword [ecx*4 + 0x4c98a0]
add eax, 0xfffffff0
cmp eax, 0xb
ja case.0x4c9810.17
movzx edx, byte [eax + 0x4c98dc]
jmp dword [edx*4 + 0x4c98c4]
pop ebx
mov edi, str.ALPHANUMERIC_FULL
pop esi
mov eax, edi
pop edi
add esp, 8
ret
pop ebx
mov edi, str.JAPANESE_KATAKANA_FULL
pop esi
mov eax, edi
pop edi
add esp, 8
ret
pop ebx
mov edi, str.JAPANESE_KATAKANA_HALF
pop esi
mov eax, edi
pop edi
add esp, 8
ret
pop ebx
mov edi, str.JAPANESE_HIRAGANA
pop esi
mov eax, edi
pop edi
add esp, 8
ret
cmp eax, 9
ja case.0x4c9810.17
movzx eax, byte [eax + 0x4c98f8]
jmp dword [eax*4 + 0x4c98e8]
pop ebx
mov edi, str.ALPHANUMERIC_HALF
pop esi
mov eax, edi
pop edi
add esp, 8
ret
pop ebx
mov edi, str.KOREAN
pop esi
mov eax, edi
pop edi
add esp, 8
ret
cmp eax, 9
ja case.0x4c9810.17
movzx ecx, byte [eax + 0x4c9914]
jmp dword [ecx*4 + 0x4c9904]
mov edi, str.CHINESE
pop ebx
pop esi
mov eax, edi
pop edi
add esp, 8
ret
Function at 0x4cb130
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
lea eax, [esp + 4]
push eax
mov esi, str.Windows
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
dec eax
je 0x4cb1a1
dec eax
jne 0x4cb1bf
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x4cb18d
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x4cb17a
mov esi, str.Windows_XP
mov eax, esi
pop esi
add esp, 0x94
ret
test eax, eax
jne 0x4cb1bf
mov esi, str.Windows_2000
mov eax, esi
pop esi
add esp, 0x94
ret
cmp eax, 4
jne 0x4cb1bf
mov esi, str.Windows_NT
mov eax, esi
pop esi
add esp, 0x94
ret
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x4cb1b8
mov esi, str.Windows_98_ME
mov eax, esi
pop esi
add esp, 0x94
ret
jne 0x4cb1bf
mov esi, str.Windows_95
mov eax, esi
pop esi
add esp, 0x94
ret

Function at 0x4cb850
Capabilities:
Identify system language via api

Disassembly:
cmp dword [esp + 4], 7
jl 0x4cb8a7
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4cb87e
push str.GetUserDefaultUILanguage
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4cb87e
call eax
jmp 0x4cb884
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
test esi, esi
mov edi, eax
je 0x4cb891
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test di, di
je 0x4cb8a2
push edi
call fcn.004cb1d0
add esp, 4
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [esp + 4], eax
jmp fcn.004cb1d0
Function at 0x4cdb40
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xc5c]
test eax, eax
je 0x4cdba3
mov eax, dword [edi]
call dword [eax + 0xd4]
test eax, eax
jne 0x4cdb69
mov dword [edi + 0x658], 1
pop edi
pop esi
ret 0xc
mov esi, dword [edi + 0xc5c]
mov dword [esi + 0x18], eax
mov dword [edi + 0xc5c], 0
lea eax, [esp + 0x14]
push eax
push 0
push esi
push 0x4cc140
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4cdb9e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 0xc
push 0x1c
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4cdb9e
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00435680
mov edx, dword [esp + 0x14]
push edx
mov dword [esi], eax
call fcn.00435680
mov dword [esi + 4], eax
mov al, byte [esp + 0x1c]
add esp, 8
mov byte [esi + 8], al
call fcn.004cb0e0
mov byte [esi + 9], al
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xd8]
mov dword [esi + 0x14], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xd4]
mov ecx, edi
mov dword [esi + 0x18], eax
call fcn.004cb510
test al, al
je 0x4cdc0e
mov ecx, dword [edi + 0xae8]
mov dword [esi + 0xc], ecx
jmp 0x4cdc15
mov dword [esi + 0xc], 0
mov edx, dword [edi]
push ebx
push ebp
mov ecx, edi
call dword [edx + 0xd8]
mov ebx, eax
call fcn.004cb0e0
test al, al
mov ebp, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
je 0x4cdc5b
call ebp
and eax, 0x3ff
mov dword [esp + 0x1c], eax
call ebp
mov ecx, dword [esp + 0x1c]
and eax, 0xfc00
or ecx, eax
push ecx
push 0x238d
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
jmp 0x4cdc82
call ebp
and eax, 0x3ff
mov dword [esp + 0x1c], eax
call ebp
mov ecx, dword [esp + 0x1c]
and eax, 0xfc00
or ecx, eax
push ecx
push 0x238d
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
pop ebp
mov dword [esi + 0x10], eax
pop ebx
je 0x4cdb9e
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x4cdb7c
mov dword [edi + 0xc5c], esi
mov dword [edi + 0x658], 1
pop edi
pop esi
ret 0xc
Function at 0x4cf0a0
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4cf1ab
cmp byte [esi], 0
je 0x4cf1ab
mov ecx, dword [esp + 0x18]
push ebx
xor bl, bl
test ecx, ecx
push edi
je 0x4cf196
call fcn.00497d20
mov edi, eax
call fcn.004cb0e0
test al, al
je 0x4cf162
push 0x5481a0
lea ecx, [esp + 0x10]
call fcn.00435980
push esi
lea ecx, [esp + 0x10]
call fcn.00435140
cmp edi, 5
jle 0x4cf10b
mov eax, dword [esp + 0xc]
push eax
call fcn.004b8000
add esp, 4
mov esi, eax
jmp 0x4cf133
mov ecx, dword [esp + 0xc]
push 0
push 6
push ecx
call fcn.004b8440
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4cf14c
push edi
call fcn.004b8000
push edi
mov esi, eax
call fcn.00439d00
add esp, 8
test esi, esi
je 0x4cf14c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
push esi
setne bl
call fcn.00439d00
add esp, 4
mov edx, dword [esp + 0xc]
push edx
call fcn.00439d00
add esp, 4
pop edi
mov al, bl
pop ebx
pop esi
add esp, 0xc
ret
cmp edi, 5
jle 0x4cf196
push 0
push esi
call fcn.004d9d70
mov esi, eax
add esp, 8
test esi, esi
je 0x4cf1a2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
push esi
setne bl
call fcn.00439d00
add esp, 4
pop edi
mov al, bl
pop ebx
pop esi
add esp, 0xc
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne bl
pop edi
mov al, bl
pop ebx
pop esi
add esp, 0xc
ret
xor al, al
pop esi
add esp, 0xc
ret

Function at 0x4cf4c0
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4cf570
cmp byte [esi], 0
je 0x4cf570
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4cf5af
push edi
call fcn.00497d20
mov edi, eax
call fcn.004cb0e0
test al, al
je 0x4cf575
push 0x5481a0
lea ecx, [esp + 0xc]
call fcn.00435980
push esi
lea ecx, [esp + 0xc]
call fcn.00435140
cmp edi, 5
jle 0x4cf524
mov eax, dword [esp + 8]
push eax
call fcn.004b8000
add esp, 4
mov esi, eax
jmp 0x4cf54c
mov ecx, dword [esp + 8]
push 0
push 6
push ecx
call fcn.004b8440
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4cf562
push edi
call fcn.004b8000
push edi
mov esi, eax
call fcn.00439d00
add esp, 8
test esi, esi
je 0x4cf562
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call fcn.00439d00
add esp, 4
mov edx, dword [esp + 8]
push edx
call fcn.00439d00
add esp, 4
pop edi
pop esi
add esp, 0xc
ret
cmp edi, 5
push 0
push esi
jle 0x4cf5a3
call fcn.004d9d70
mov esi, eax
add esp, 8
test esi, esi
je 0x4cf56f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call fcn.00439d00
add esp, 4
pop edi
pop esi
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
add esp, 0xc
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop esi
add esp, 0xc
ret

Function at 0x4cfa00
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret
Function at 0x4cfa30
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp]
pop ecx
ret

Function at 0x4cfa60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
push esi
mov esi, dword [esp + 0x418]
test esi, esi
jne 0x4cfa7c
xor al, al
pop esi
add esp, 0x410
ret
mov ecx, dword [esp + 0x41c]
test ecx, ecx
push ebx
push edi
je 0x4cfbfd
call fcn.00497d20
mov ebx, eax
call fcn.004cb0e0
test al, al
je 0x4cfb5f
lea eax, [esp + 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x4cfc56
lea ecx, [esp + 0xc]
push ecx
push 0
push str.flash
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x4cfc56
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004b8350
mov edi, eax
add esp, 8
test edi, edi
je 0x4cfc56
cmp ebx, 5
jle 0x4cfb1f
mov edx, esi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4cfb00
push edi
call fcn.00439d00
add esp, 4
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x410
ret
push 0
push edi
call fcn.004d9d70
push edi
mov ebx, eax
call fcn.00439d00
add esp, 0xc
test ebx, ebx
je 0x4cfc56
mov edx, esi
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4cfb40
push ebx
call fcn.00439d00
add esp, 4
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x410
ret
lea ecx, [esp + 0x214]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x4cfc56
lea edx, [esp + 0xc]
push edx
push 0
push 0x548210
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jbe 0x4cfc56
cmp ebx, 5
lea ecx, [esp + 0xc]
jle 0x4cfbdf
push 0
push 6
push ecx
call fcn.004b8440
add esp, 0xc
test eax, eax
je 0x4cfc56
mov ecx, eax
sub esi, eax
mov edi, edi
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x4cfbc0
push eax
call fcn.00439d00
add esp, 4
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x410
ret
mov edx, esi
lea eax, [esp + 0xc]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4cfbe7
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x410
ret
lea edx, [esp + 0x214]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x4cfc56
lea eax, [esp + 0xc]
push eax
push 0
push 0x548210
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jbe 0x4cfc56
lea eax, [esp + 0xc]
mov edx, esi
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4cfc40
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x410
ret
pop edi
pop ebx
xor al, al
pop esi
add esp, 0x410
ret
Function at 0x4d0a80
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x18], 2
jne 0x4d0aff
cmp dword [esp + 0xc], 5
jb 0x4d0aff
cmp dword [esp + 0x10], 1
jb 0x4d0aff
push esi
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x4a
call esi
test eax, eax
je 0x4d0af5
cmp dword [esp + 8], 1
jne 0x4d0af5
push 0
lea edx, [esp + 8]
push edx
push 0
push 0x200a
call esi
test eax, eax
je 0x4d0af5
cmp dword [esp + 4], 2
jne 0x4d0af5
mov eax, 1
pop esi
add esp, 0x9c
ret
xor eax, eax
pop esi
add esp, 0x9c
ret
xor al, al
add esp, 0x9c
ret

Function at 0x4d2c60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
push edi
call fcn.004fc970
mov esi, dword [ebp + 8]
xor eax, eax
mov ecx, 0x22c
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [esi + 0x8ac], eax
call fcn.0041bf60
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ebx, [esi + 0x884]
push eax
mov dword [ebx], 0
mov dword [esi + 0x888], 0
mov byte [esi + 0x880], 0
mov byte [esi + 0x88c], 0
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x14], 5
ja 0x4d2d25
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x4d2d25
push ebx
push 0x551470
push 3
push 0
push 0x551460
mov byte [esi + 0x88c], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4d2d25
mov ecx, dword [ebx]
lea edi, [esi + 0x888]
push edi
push 0x548404
push ebx
call dword [ecx]
cmp dword [edi], 0
je 0x4d2d25
mov byte [esi + 0x880], 1
add esi, 0x894
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d2e60
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push 2
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ebx, eax
test ebx, ebx
jl 0x4d2ecd
cmp ebx, 0xff
jg 0x4d2ecd
cmp ebx, 0x7f
jg 0x4d2ec6
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
mov al, byte [esi + 9]
je 0x4d2eb6
test al, al
je 0x4d2ec6
push ebx
call fcn.00435d00
add esp, 4
test al, al
jne 0x4d2eba
push ebx
mov ecx, esi
call fcn.004d2d40
movzx ebx, al
pop esi
mov al, bl
pop ebx
ret 4
test al, al
jne 0x4d2ea4
movzx eax, bl
movzx ebx, byte [eax + 0x53ff38]
xor ebx, eax
pop esi
mov al, bl
pop ebx
ret 4
mov al, byte [esp + 0xc]
pop esi
pop ebx
ret 4