joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4144e9
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push ebx
push ecx
push edx
push esi
xor ecx, ecx
mov esi, dword fs:[ecx + 0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
mov eax, dword [esi + 8]
mov edi, dword [esi + 0x20]
mov esi, dword [esi]
cmp byte [edi + 0x18], cl
jne 0x414505
nop
nop
mov dword [ebp - 0x94], eax
push ebp
mov ebp, eax
mov eax, dword [ebp + 0x3c]
mov edx, dword [ebp + eax + 0x78]
add edx, ebp
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, ebp
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, ebp
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x41452e
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x41452e
mov ebx, dword [edx + 0x24]
add ebx, ebp
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, ebp
mov eax, dword [ebx + ecx*4]
add eax, ebp
pop ebp
pop esi
pop edx
pop ecx
pop ebx
mov dword [ebp - 0x90], eax
mov cl, 0x72
mov dl, 0x61
mov al, 0x65
xor bl, bl
mov byte [ebp - 0x8c], 0x56
mov byte [ebp - 0x8b], 0x69
mov byte [ebp - 0x8a], cl
mov byte [ebp - 0x89], 0x74
mov byte [ebp - 0x88], 0x75
mov byte [ebp - 0x87], dl
mov byte [ebp - 0x86], 0x6c
mov byte [ebp - 0x85], 0x50
mov byte [ebp - 0x84], cl
mov byte [ebp - 0x83], 0x6f
mov byte [ebp - 0x82], 0x74
mov byte [ebp - 0x81], al
mov byte [ebp - 0x80], 0x63
mov byte [ebp - 0x7f], 0x74
mov byte [ebp - 0x7e], bl
mov byte [ebp - 0x4c], 0x4c
mov byte [ebp - 0x4b], 0x6f
mov byte [ebp - 0x4a], dl
mov byte [ebp - 0x49], 0x64
mov byte [ebp - 0x48], 0x4c
mov byte [ebp - 0x47], 0x69
mov byte [ebp - 0x46], 0x62
mov byte [ebp - 0x45], cl
mov byte [ebp - 0x44], dl
mov byte [ebp - 0x43], cl
mov byte [ebp - 0x42], 0x79
mov byte [ebp - 0x41], 0x41
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x5c], 0x56
mov byte [ebp - 0x5b], 0x69
mov byte [ebp - 0x5a], cl
mov byte [ebp - 0x59], 0x74
mov byte [ebp - 0x58], 0x75
mov byte [ebp - 0x57], dl
mov byte [ebp - 0x56], 0x6c
mov byte [ebp - 0x55], 0x41
mov byte [ebp - 0x54], 0x6c
mov byte [ebp - 0x53], 0x6c
mov byte [ebp - 0x52], 0x6f
mov byte [ebp - 0x51], 0x63
mov byte [ebp - 0x50], bl
mov byte [ebp - 0x3c], 0x56
mov byte [ebp - 0x3b], 0x69
mov byte [ebp - 0x3a], cl
mov byte [ebp - 0x39], 0x74
mov byte [ebp - 0x38], 0x75
mov byte [ebp - 0x37], dl
mov byte [ebp - 0x36], 0x6c
mov byte [ebp - 0x35], 0x46
mov byte [ebp - 0x34], cl
mov byte [ebp - 0x33], al
mov byte [ebp - 0x32], al
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x6c], 0x49
mov byte [ebp - 0x6b], 0x73
mov byte [ebp - 0x6a], 0x42
mov byte [ebp - 0x69], dl
mov byte [ebp - 0x68], 0x64
mov byte [ebp - 0x67], 0x52

Function at 0x41489d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
Function at 0x422bf0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x422c42
mov dword [ebp - 0xc], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x422c3a
push 0x4f
push 0x401d8f0
push 6
call fcn.00483259
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x422c7b
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
push 0
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x422c78
push 0x7d
push 0x401d8f0
push 6
call fcn.00483259
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x422c8f
mov eax, 0
jmp 0x422cf7
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x422cc0
push 0x10b
push 0x401d8f0
push 6
call fcn.00483259
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x422cef
push 0x12f
push 0x401d8f0
push 6
call fcn.00483259
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x422cf7
mov esp, ebp
pop ebp
ret 8

Function at 0x422cfd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push reloc.OLEAUT32.dll_SysStringLen
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.004840c0
add esp, 0x10
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
call fcn.00422d7c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x422d71
push 0x60
push 0x401d941
push 6
call fcn.00483259
add esp, 0xc
jmp 0x422d76
mov esp, ebp
pop ebp
ret 0x14
Function at 0x422dcf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x422e19
push 0x19
push 0x401e4bb
push 6
call fcn.00483259
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x422eb0
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x497a9c]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.00401048
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.00483ce0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x422e71
push ebx
call fcn.00483253
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00414d9c
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x422eb0
push 0xda
push 0x401e4bb
push 6
call fcn.00483259
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x422eca
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0048324d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x422ecf
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x422ee0
push ebx
call fcn.00483253
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x425eaa
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push VariantClear
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x425ec8
mov eax, 0x497aee
push eax
push 1
mov ebx, 0x194
call fcn.00483d70
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x425ef2
mov eax, 0
jmp 0x425f66
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jle 0x425f53
add eax, 8
mov edi, eax
mov ebx, edi
push edi
xor al, al
pop esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edi, eax
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x425f3c
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x425f2b
xor ecx, eax
xor edx, ebx
dec edi
jne 0x425f1c
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 4
mov esp, ebp
pop ebp
ret 4
Function at 0x425f6c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
test esi, esi
jne 0x425f91
xor eax, eax
jmp 0x425f96
mov eax, dword [esi + 4]
add eax, eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x184
call fcn.00483d10
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x425fcc
push ebx
call fcn.00483253
add esp, 4
pop eax
mov dword [ebp - 4], eax
test esi, esi
je 0x425fd9
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42602e
lea edx, [esi + 8]
mov dword [ebp - 0x14], 0x33323130
mov dword [ebp - 0x10], 0x37363534
mov dword [ebp - 0xc], 0x42413938
mov dword [ebp - 8], 0x46454443
test edx, edx
je 0x42602e
test eax, eax
je 0x42602e
lea esi, [edx + ecx]
cmp edx, esi
jae 0x42602e
nop
movzx ecx, byte [edx]
shr ecx, 4
inc edx
movzx ecx, byte [ebp + ecx - 0x14]
mov byte [eax], cl
movzx ecx, byte [edx - 1]
and ecx, 0xf
lea eax, [eax + 2]
movzx ecx, byte [ebp + ecx - 0x14]
mov byte [eax - 1], cl
cmp edx, esi
jb 0x42600a
pop esi
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x426ea4
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
bswap eax
mov edi, eax
mov eax, dword [esi + 4]
bswap eax
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp + 8], eax
mov eax, dword [ebx + esi*4]
bswap eax
mov dword [ebp + esi*4 - 0x10], eax
inc esi
cmp esi, 4
jl 0x426ec3
mov ebx, dword [ebp + 8]
mov edx, 0xe3779b90
mov esi, 0x10
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 8]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x426edf
bswap edi
mov esi, dword [ebp + 0x10]
mov dword [esi], edi
bswap ebx
pop edi
mov dword [esi + 4], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42d73c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x42d75b
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
nop
cmp dword [ebp - 8], esp
je 0x42d782
push 0x19
push 0x401e4b0
push 6
call fcn.00483259
add esp, 0xc
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp + 0xc]
push 1
mov ebx, 0xc0
call fcn.00487f70
add esp, 0x10
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc4
call fcn.00487f80
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x42d7da
add eax, 8
push eax
xor eax, eax
call dword [0x6099c9]
nop
nop
cmp dword [ebp - 8], esp
je 0x42d801
push 0x94
push 0x401e4b0
push 6
call fcn.00483259
add esp, 0xc
jmp 0x42d806
mov esp, ebp
pop ebp
ret 8
Function at 0x430b91
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x430d27
mov dword [ebp - 4], 0x400
fild dword [ebp - 4]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fmul qword [0x4b735d]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.00401048
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 8]
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x430c2a
push 0xba
push 0x401dd97
push 6
call fcn.00483259
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x430c60
push 0xf3
push 0x401dd97
push 6
call fcn.00483259
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x430cfb
fild dword [ebp - 0x14]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fsub qword [0x4b735d]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.00401048
push eax
lea eax, [ebp - 0x18]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x430cf8
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.004119c5
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [ebp + 8], eax
jne 0x430cf0
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x430ce6
push 0x1f4
push 0x401dd97
push 6
call fcn.00483259
add esp, 0xc
mov eax, 1
jmp 0x430d31
pop ebx
pop ecx
pop edx
add ecx, 4
jmp 0x430c93
add esp, 0xc
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x430d27
push 0x24f
push 0x401dd97
push 6
call fcn.00483259
add esp, 0xc
mov eax, 0
jmp 0x430d31
mov esp, ebp
pop ebp
ret 4
Function at 0x4313ab
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push VariantClear
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4313f3
mov eax, 0x497aee
push eax
push 1
mov ebx, 0x194
call fcn.00483d70
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jge 0x431418
jmp 0x4315a0
push dword [ebp + 8]
call fcn.00414d9c
mov dword [ebp - 8], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x497a9c]
fstp qword [ebp - 0x28]
mov dword [ebp - 0x2c], esp
fld qword [ebp - 0x28]
call fcn.00401048
push eax
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x43146c
push 0x129
push 0x401e440
push 6
call fcn.00483259
add esp, 0xc
mov dword [ebp - 0xc], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0x497a9c]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.00401048
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x431571
fild dword [ebp - 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.00401048
push eax
call fcn.004119e5
mov word [ebp - 0x14], ax
cmp word [ebp - 0x14], 0
jne 0x43150f
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x431505
push 0x222
push 0x401e440
push 6
call fcn.00483259
add esp, 0xc
jmp 0x431571
cmp word [ebp - 0x14], 0x5c
jne 0x431558
cmp dword [ebp - 0x18], 0
jle 0x431555
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x431555
push 0x2c3
push 0x401e440
push 6
call fcn.00483259
add esp, 0xc
inc dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.004315a6
pop ebx
pop ecx
pop edx
add ecx, 2
jmp 0x431495
add esp, 0xc
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4315a0
push 0x374
push 0x401e440
push 6
call fcn.00483259
add esp, 0xc
mov esp, ebp
pop ebp
ret 4
Function at 0x44d945
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x44d988
push 0x19
push 0x401e45e
push 6
call fcn.00483259
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x44d99f
mov eax, 0x497aee
jmp 0x44da4e
inc dword [ebp - 4]
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x497a9c]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.00401048
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.00483ce0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x44d9ed
push ebx
call fcn.00483253
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00414d9c
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x44da2f
push 0x136
push 0x401e45e
push 6
call fcn.00483259
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x44da49
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0048324d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x44da4e
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x44da5f
push ebx
call fcn.00483253
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x463234
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.IMM32.dll_ImmGetContext]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x46327e
push 0x19
push 0x4023f43
push 6
call fcn.00483259
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4633cd
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00484010
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push 0
push dword [ebp - 0x10]
push 0x800
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4632e5
push 0xa5
push 0x4023f43
push 6
call fcn.00483259
add esp, 0xc
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4632f8
push ebx
call fcn.00483253
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x184
call fcn.00483d10
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x463331
push ebx
call fcn.00483253
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x800
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x46336c
push 0x100
push 0x4023f43
push 6
call fcn.00483259
add esp, 0xc
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x46339b
push 0x131
push 0x4023f43
push 6
call fcn.00483259
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
call fcn.004633ef
test eax, eax
je 0x4633cd
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4633c8
push eax
mov ebx, eax
call fcn.00401a42
inc eax
push eax
call fcn.0048324d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4633d7
mov eax, 0x497ac7
jmp 0x4633d7
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4633e8
push ebx
call fcn.00483253
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x47eed2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x20], 0
jne 0x47eeec
mov dword [ebp + 0x1c], 1
cmp dword [ebp + 0x18], 0
jne 0x47ef14
mov eax, str.open
push eax
mov ebx, dword [ebp + 0x14]
mov ebx, dword [ebx]
test ebx, ebx
je 0x47ef0e
push ebx
call fcn.00483253
add esp, 4
pop eax
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov dword [ebp - 4], esp
push dword [ebp + 0x1c]
push 0x497ac7
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
cmp dword [ebp - 4], esp
je 0x47ef59
push 0xc9
push 0x4023ed4
push 6
call fcn.00483259
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x20
mov eax, 0
setg al
jmp 0x47ef6d
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4841a0
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
ret

Function at 0x484460
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x4844ca
push esi
lea edi, [eax + 0x400]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x48449a
push esi
xor edi, edi
call dword [0x609fbc]
add esp, 4
test eax, eax
je 0x4844e6
push eax
push esi
call fcn.0048a200
add esp, 8
mov edi, eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x487160
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4871c9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00483700
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x487300
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x10
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x487316
mov eax, 1
pop edi
add esp, 0x10
ret
push edi
call fcn.0048a890
add esp, 4
test eax, eax
jne 0x48732d
mov eax, 1
pop edi
add esp, 0x10
ret
mov eax, dword [edi]
push ebx
push ebp
mov ebp, 1
cmp eax, ebp
push esi
mov dword [esp + 0x10], ebp
je 0x4873d1
cmp eax, 3
je 0x4873d1
cmp eax, 2
jne 0x487478
mov esi, dword [edi + 4]
mov ecx, esi
call fcn.0048a880
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov edi, eax
cmp edi, ebx
jae 0x487478
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], 0
test eax, eax
je 0x487478
mov eax, dword [esp + 0x34]
test eax, eax
je 0x487478
mov edx, dword [esi]
lea eax, [esp + 0x28]
push ebp
push eax
mov ecx, esi
call dword [edx + 0x20]
mov edx, dword [esi]
push 0
push edi
mov ecx, esi
mov ebx, eax
call dword [edx + 0x18]
test ebx, ebx
je 0x487478
mov al, byte [esp + 0x28]
test al, al
je 0x4873c3
cmp al, 0x1a
jne 0x487478
mov dword [esp + 0x10], ebp
mov eax, ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x10
ret
mov esi, dword [edi + 4]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push esi
mov dword [esp + 0x24], eax
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
je 0x487478
cmp ebx, dword [esp + 0x14]
jae 0x487478
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], 0
test eax, eax
je 0x487478
mov eax, dword [esp + 0x34]
test eax, eax
je 0x487478
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x30]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push ebx
push esi
mov dword [esp + 0x24], eax
call ebp
cmp dword [edi], 3
jne 0x48745c
mov ecx, dword [edi + 0x130]
lea eax, [edi + 0xc]
push eax
add edi, 0x2c
push ecx
push edi
lea edx, [esp + 0x34]
push 1
push edx
push ebx
call fcn.00489e40
add esp, 0x18
mov eax, dword [esp + 0x14]
test eax, eax
je 0x487478
mov al, byte [esp + 0x28]
test al, al
je 0x487470
cmp al, 0x1a
jne 0x487478
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x10
ret