joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c30
Capabilities:
Hash data using crc32b

Disassembly:
push ecx
mov edx, 1
mov dword [0x57de50], edx
xor ecx, ecx
mov edi, edi
mov eax, ecx
shl eax, 0x18
test eax, eax
jns 0x412c52
add eax, eax
xor eax, 0x4c11db7
jmp 0x412c54
add eax, eax
test eax, eax
jns 0x412c61
add eax, eax
xor eax, 0x4c11db7
jmp 0x412c63
add eax, eax
test eax, eax
jns 0x412c70
add eax, eax
xor eax, 0x4c11db7
jmp 0x412c72
add eax, eax
test eax, eax
jns 0x412c7f
add eax, eax
xor eax, 0x4c11db7
jmp 0x412c81
add eax, eax
test eax, eax
jns 0x412c8e
add eax, eax
xor eax, 0x4c11db7
jmp 0x412c90
add eax, eax
test eax, eax
jns 0x412c9d
add eax, eax
xor eax, 0x4c11db7
jmp 0x412c9f
add eax, eax
test eax, eax
jns 0x412cac
add eax, eax
xor eax, 0x4c11db7
jmp 0x412cae
add eax, eax
test eax, eax
jns 0x412cbb
add eax, eax
xor eax, 0x4c11db7
jmp 0x412cbd
add eax, eax
mov dword [ecx*4 + 0x57da50], eax
add ecx, edx
cmp ecx, 0x100
jb 0x412c40
xor ecx, ecx
push esi
movzx eax, cx
test dl, al
je 0x412ce9
shr ax, 1
mov esi, 0x8408
xor ax, si
jmp 0x412cec
shr ax, 1
movzx eax, ax
mov dword [esp + 4], eax
test dl, al
je 0x412d0b
shr ax, 1
mov esi, 0x8408
xor ax, si
movzx eax, ax
mov dword [esp + 4], eax
jmp 0x412d10
shr word [esp + 4], 1
test byte [esp + 4], dl
je 0x412d2f
mov ax, word [esp + 4]
shr ax, 1
mov esi, 0x8408
xor ax, si
movzx eax, ax
mov dword [esp + 4], eax
jmp 0x412d34
shr word [esp + 4], 1
test byte [esp + 4], dl
je 0x412d53
mov ax, word [esp + 4]
shr ax, 1
mov esi, 0x8408
xor ax, si
movzx eax, ax
mov dword [esp + 4], eax
jmp 0x412d58
shr word [esp + 4], 1
test byte [esp + 4], dl
je 0x412d77
mov ax, word [esp + 4]
shr ax, 1
mov esi, 0x8408
xor ax, si
movzx eax, ax
mov dword [esp + 4], eax
jmp 0x412d7c
shr word [esp + 4], 1
test byte [esp + 4], dl
je 0x412d9b
mov ax, word [esp + 4]
shr ax, 1
mov esi, 0x8408
xor ax, si
movzx eax, ax
mov dword [esp + 4], eax
jmp 0x412da0
shr word [esp + 4], 1
test byte [esp + 4], dl
je 0x412dbf
mov ax, word [esp + 4]
shr ax, 1
mov esi, 0x8408
xor ax, si
movzx eax, ax
mov dword [esp + 4], eax
jmp 0x412dc4
shr word [esp + 4], 1
test byte [esp + 4], dl
je 0x412de3
mov ax, word [esp + 4]
shr ax, 1
mov esi, 0x8408
xor ax, si
movzx eax, ax
mov dword [esp + 4], eax
jmp 0x412de8
shr word [esp + 4], 1
mov ax, word [esp + 4]
mov word [ecx*2 + 0x57d850], ax
add ecx, edx
cmp ecx, 0x100
jb 0x412cd5
pop esi
pop ecx
ret

Function at 0x412e10
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x57de50], 0
jne 0x412e1e
call fcn.00412c30
push esi
mov esi, dword [esp + 8]
sub esi, 1
mov eax, 0xffff
js 0x412e4d
mov edx, dword [esp + 0xc]
mov cl, byte [edx]
xor cl, al
movzx ecx, cl
shr ax, 8
xor ax, word [ecx*2 + 0x57d850]
inc edx
sub esi, 1
movzx eax, ax
jns 0x412e31
not eax
pop esi
ret
Function at 0x41a9d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5195c6
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x56617c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CStringBase.0
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 7
mov word [esi + 0x1c], ax
lea edi, [esi + 0x34]
mov byte [ebp - 4], 1
push 0x18
mov dword [ebp - 0x14], edi
mov dword [edi], eax
mov dword [edi + 4], eax
call fcn.004fe2bc
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
mov byte [ebp - 4], 2
cmp dword [esi + 0x38], 0
je 0x41aa78
mov ecx, edi
call fcn.0041a760
mov ecx, dword [ebp + 8]
mov edx, ecx
mov dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x40], 0xffffffff
lea edi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x41aa90
sub edx, edi
push edx
push ecx
lea ecx, [esi + 4]
call fcn.0041bc00
mov dword [esi], vtable.CStringUTF8.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41ad80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51963b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x56617c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CStringBase.0
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 7
mov word [esi + 0x1c], ax
lea edi, [esi + 0x34]
mov byte [ebp - 4], 1
push 0x18
mov dword [ebp - 0x14], edi
mov dword [edi], eax
mov dword [edi + 4], eax
call fcn.004fe2bc
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
cmp dword [esi + 0x38], 0
je 0x41ae23
mov ecx, edi
call fcn.0041a760
mov dword [esi + 0x3c], 0xffffffff
mov eax, esi
mov dword [esi + 0x40], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41c960
Capabilities:
Get file size

Disassembly:
lea eax, [ecx + 0xc]
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
ret
Function at 0x41da50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519c6d
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x56617c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
mov eax, dword [ebp + 8]
call dword [eax + 0x7c]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x41dabe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea ecx, [ebp + 8]
call fcn.0041c2a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x44
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
call dword [eax + 0x7c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x41da9f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41daf6
cmp eax, 0x80
je 0x41daf6
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
jmp 0x41da99
mov dword [edi + 0x268], esi
mov esi, 1
jmp 0x41daa1
Function at 0x4249b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b1c6
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x56617c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041c050
mov dword [esi], vtable.CStringBase.0
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], 0
xor eax, eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 7
mov word [esi + 0x1c], ax
lea edi, [esi + 0x34]
mov byte [ebp - 4], 3
push 0x18
mov dword [ebp - 0x10], edi
mov dword [edi], eax
mov dword [edi + 4], eax
call fcn.004fe2bc
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
mov byte [ebp - 4], 4
cmp dword [esi + 0x38], 0
je 0x424a67
mov ecx, edi
call fcn.0041a760
cmp dword [ebp - 0x18], 0x10
lea edi, [ebp - 0x2c]
mov dword [esi + 0x3c], 0xffffffff
cmovae edi, dword [ebp - 0x2c]
mov edx, edi
mov dword [esi + 0x40], 0xffffffff
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x424a85
sub edx, ecx
lea ecx, [esi + 4]
push edx
push edi
call fcn.0041bc00
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x424ac8
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424abe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424b14
push edx
push ecx
call fcn.004fe28b
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [esi], vtable.CStringUTF8.0
cmp edx, 0x10
jb 0x424afe
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424af4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424b19
push edx
push ecx
call fcn.004fe28b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
call fcn.00501acf
call fcn.00501acf
int3
Function at 0x42e750
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x42e770
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 4

Function at 0x42e7a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x42e7fe
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x42e7c0
mov eax, dword [edi]
jmp 0x42e8e9
cmp eax, 0x4e0
jb 0x42e8e9
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x42e820
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x42e870
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x435120
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c79d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push eax
push 4
push ebx
push esi
mov dword [ebp - 0x2c], esi
call edi
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebx + 4]
push eax
push esi
call edi
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push esi
call edi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x435250
xor ecx, ecx
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], ecx
lea edi, [eax + 1]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
test edi, edi
je 0x4351e5
push edi
lea ecx, [ebp - 0x20]
call fcn.00435820
mov eax, dword [ebp - 0x20]
push edi
push 0
push eax
lea esi, [edi + eax]
call fcn.005001b0
add esp, 0xc
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
call fcn.00435670
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
push 0
lea edx, [ebp - 0x14]
mov dword [ebp - 4], 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x20]
lea ecx, [ebp - 0x70]
call fcn.0041a9d0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebx + 8]
call fcn.0041a900
lea ecx, [ebp - 0x70]
call fcn.0041c2a0
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x435278
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x435244
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435296
push ecx
push edx
call fcn.004fe28b
add esp, 8
jmp 0x435278
push 0x53e7d2
lea ecx, [ebp - 0x70]
call fcn.0041a9d0
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebx + 8]
call fcn.0041a900
lea ecx, [ebp - 0x70]
call fcn.0041c2a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe27d
mov esp, ebp
pop ebp
ret 4
call fcn.00501acf
int3
Function at 0x4353e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, 0x6bca1af3
mov ecx, dword [ebp + 8]
push edi
push 0
mov edx, dword [esi + 4]
sub edx, dword [esi]
imul edx
mov dword [ebp - 0x1c], esi
sar edx, 5
mov eax, edx
mov dword [ebp - 0x18], ecx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
cmp dword [ebp - 0x10], edi
jbe 0x4354ae
push ebx
xor ebx, ebx
mov esi, dword [esi]
add esi, ebx
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
call dword [eax + 0x50]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [esi + 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0xc], 0
je 0x4354a1
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
call dword [eax + 0x40]
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0xc]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp - 0x1c]
inc edi
add ebx, 0x4c
cmp edi, dword [ebp - 0x10]
jb 0x435433
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004fe27d
mov esp, ebp
pop ebp
ret 4
Function at 0x437580
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51cb7b
mov eax, dword fs:[0]
push eax
sub esp, 0x868
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x810]
push 0x800
push 0
push eax
mov dword [ebp - 0x874], ebx
call fcn.005001b0
add esp, 0xc
push ebx
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov ecx, dword [edi + 0x2020]
mov ebx, eax
lea eax, [ebp - 0x810]
push dword [ecx + 0x34]
push eax
push 8
push ebx
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
test eax, eax
jne 0x437615
mov eax, dword [edi + 0x2020]
mov eax, dword [eax + 0x34]
add eax, eax
cmp eax, 0x800
jae 0x4377a7
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
push 0x44
lea eax, [ebp - 0x854]
push 0
push eax
call fcn.005001b0
add esp, 0xc
lea eax, [ebp - 0x810]
lea ecx, [ebp - 0x854]
push eax
call fcn.0041f320
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x854]
mov eax, dword [edi + 0x2020]
push dword [eax + 0x34]
mov eax, dword [ebp - 0x854]
call dword [eax + 0x24]
lea eax, [ebp - 0x86c]
push eax
mov eax, dword [ebp - 0x854]
lea ecx, [ebp - 0x854]
call dword [eax + 0xd4]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x86c]
cmp dword [ebp - 0x858], 8
lea esi, [edi + 0x1c]
cmovae eax, dword [ebp - 0x86c]
push eax
push 0x400
push esi
call fcn.00505e3a
mov eax, dword [edi + 0x2020]
add esp, 0xc
push dword [eax + 0x34]
push esi
mov esi, dword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
push 0x80
push ebx
call esi
mov dword [edi + 0x201c], eax
lea ecx, [ebp - 0x854]
mov eax, dword [ebp - 0x854]
call dword [eax + 0x48]
cmp eax, dword [edi + 0x201c]
lea edx, [edi + 0x201c]
lea ecx, [ebp - 0x870]
mov dword [ebp - 0x870], eax
cmovge ecx, edx
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [edi + 0x2020]
push dword [eax + 0x34]
lea eax, [ebp - 0x810]
push eax
push 0x100
push ebx
call esi
mov edx, dword [ebp - 0x854]
lea ecx, [ebp - 0x854]
mov esi, eax
call dword [edx + 0x48]
cmp esi, eax
jle 0x437726
mov eax, dword [ebp - 0x854]
lea ecx, [ebp - 0x854]
call dword [eax + 0x48]
mov esi, eax
mov eax, dword [ebp - 0x854]
lea ecx, [ebp - 0x854]
call dword [eax + 0x48]
cmp dword [edi + 0x201c], eax
jne 0x437756
cmp dword [edi + 0x14], 0
je 0x43775f
mov eax, dword [ebp - 0x854]
lea ecx, [ebp - 0x854]
call dword [eax + 0x48]
cmp esi, eax
jne 0x43775f
mov dword [edi + 0x14], 1
jmp 0x437766
mov dword [edi + 0x14], 0
push ebx
push dword [ebp - 0x874]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
lea ecx, [ebp - 0x86c]
call fcn.0041c1d0
lea ecx, [ebp - 0x854]
call fcn.0041c2a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe27d
mov esp, ebp
pop ebp
ret 4
call fcn.004fea08
int3
Function at 0x439820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
lea edx, [ebp - 0x14]
mov ecx, dword [ebp + 8]
push edi
push 4
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
push edx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
call dword [eax + 0x18]
xor edi, edi
mov dword [ebp - 0x24], edi
cmp dword [ebp - 0x14], edi
jbe 0x439962
xor ecx, ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x28], ecx
nop dword [eax]
mov eax, dword [ebx]
add eax, ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
push 0
mov ebx, dword [ecx + 4]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
mov eax, 0x6bca1af3
imul ecx
mov dword [ebp - 0x1c], ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 4
push dword [ebp - 0x20]
push ebx
call esi
push 0
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
xor esi, esi
cmp dword [ebp - 0x10], esi
jbe 0x439942
xor ebx, ebx
mov eax, dword [ebp - 0x20]
mov edi, dword [eax + 4]
add edi, ebx
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
call dword [eax + 0x50]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [edi + 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0xc], 0
je 0x439936
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
call dword [eax + 0x40]
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0xc]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc esi
add ebx, 0x4c
cmp esi, dword [ebp - 0x10]
jb 0x4398c4
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
inc edi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add ecx, 0x10
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
cmp edi, dword [ebp - 0x14]
jb 0x439870
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004fe27d
mov esp, ebp
pop ebp
ret 4
Function at 0x439980
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
lea edx, [ebp - 8]
mov ecx, dword [ebp + 8]
push esi
push edi
push 4
mov eax, dword [ecx]
push edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ecx
call dword [eax + 0x14]
mov esi, dword [ebx + 4]
mov edi, esi
mov edx, dword [ebx]
sub edi, edx
mov ecx, dword [ebp - 8]
sar edi, 4
cmp ecx, edi
jae 0x4399ec
mov ebx, ecx
shl ebx, 4
add ebx, edx
mov edi, ebx
cmp ebx, esi
je 0x4399e2
nop dword [eax]
lea ecx, [edi + 4]
call fcn.00435580
add edi, 0x10
cmp edi, esi
jne 0x4399d0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], ebx
mov ebx, eax
jmp 0x439a3d
jbe 0x439a3d
mov eax, dword [ebx + 8]
sub eax, edx
sar eax, 4
cmp ecx, eax
jbe 0x439a08
push ecx
push ecx
mov ecx, ebx
call fcn.0043a000
mov ecx, dword [ebp - 8]
jmp 0x439a3d
mov edx, ecx
sub edx, edi
je 0x439a3a
lea eax, [esi + 0xc]
xorps xmm0, xmm0
lea eax, [eax + 0x10]
movups xmmword [esi], xmm0
add esi, 0x10
mov dword [eax - 0x18], 0
mov dword [eax - 0x14], 0
mov dword [eax - 0x10], 0
sub edx, 1
jne 0x439a11
mov ecx, dword [ebp - 8]
mov dword [ebx + 4], esi
mov dword [ebp - 0x18], 0
test ecx, ecx
je 0x439ae1
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov esi, dword [ebx]
mov eax, dword [ebp - 0x20]
add esi, ecx
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 4]
push 0
mov edi, dword [eax + 4]
lea ebx, [esi + 4]
mov eax, 0x6bca1af3
mov dword [ebp - 0x24], edi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call esi
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call esi
push dword [ebp - 0xc]
mov ecx, ebx
call fcn.004354c0
xor edi, edi
cmp dword [ebp - 0xc], edi
jbe 0x439ac5
xor esi, esi
nop
mov ecx, dword [ebx]
push dword [ebp - 0x24]
add ecx, esi
call fcn.00435120
inc edi
add esi, 0x4c
cmp edi, dword [ebp - 0xc]
jb 0x439ab0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
inc eax
mov ebx, dword [ebp - 0x14]
add ecx, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
cmp eax, dword [ebp - 8]
jb 0x439a51
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fe27d
mov esp, ebp
pop ebp
ret 4