joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1016f7a6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101e6040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10166db8
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10166db8
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1016f81d
cmp word [ecx], dx
je 0x1016f81d
mov eax, dword [0x10188adc]
push edi
dec eax
push eax
push 0x101889c8
call fcn.1016f745
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1016f890
cmp word [eax], dx
je 0x1016f890
mov eax, dword [edi]
test eax, eax
je 0x1016f841
cmp word [eax], dx
je 0x1016f841
lea eax, [ebp - 0x10]
push eax
call fcn.1016f128
jmp 0x1016f84a
lea eax, [ebp - 0x10]
push eax
call fcn.1016f1c3
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1016f8ba
mov eax, dword [0x101889c4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x101886b8
call fcn.1016f745
add esp, 0xc
test al, al
je 0x1016f8ba
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1016f885
cmp word [eax], di
je 0x1016f885
lea eax, [ebp - 0x10]
push eax
call fcn.1016f128
pop ecx
jmp 0x1016f8bc
lea eax, [ebp - 0x10]
push eax
call fcn.1016f1c3
jmp 0x1016f882
mov eax, dword [edi]
test eax, eax
je 0x1016f8a7
cmp word [eax], dx
je 0x1016f8a7
lea eax, [ebp - 0x10]
push eax
call fcn.1016f0dd
pop ecx
jmp 0x1016f8ba
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1016f985
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1016f5ca
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1016f985
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1016f985
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1016f985
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1016f912
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1016771a
test ebx, ebx
je 0x1016f980
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1016771a
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1016f985
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1016f985
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10174a33
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1016f987
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10151433
leave
ret
Function at 0x101745db
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101e6040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1017461e
call fcn.1015536c
mov dword [eax], 0xf
call fcn.1015537f
mov dword [eax], 0xd
call fcn.10155281
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10151433
leave
ret
test eax, eax
jne 0x10174625
inc eax
jmp 0x10174612
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x10174610
xor eax, eax
cmp ecx, 1
setne al
jmp 0x10174612
Function at 0x10174b03
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10174a7f
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10174c72
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10174c72
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10174c27
jg 0x10174b5f
test eax, eax
je 0x10174c1d
push 1
push 0x1000
call fcn.10167b3d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10174b82
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10174c14
push 0x8000
push ebx
call fcn.10166343
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10174bab
jg 0x10174ba6
cmp ecx, 0x1000
jb 0x10174bab
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1017134f
add esp, 0x10
cmp eax, 0xffffffff
je 0x10174bf0
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10174ba6
jl 0x10174bd7
test ecx, ecx
jne 0x10174b98
push dword [ebp - 0xc]
push ebx
call fcn.10166343
push esi
call fcn.101678dc
add esp, 0xc
xor ebx, ebx
jmp 0x10174c80
cmp byte [edi + 0x24], 0
je 0x10174c07
cmp dword [edi + 0x20], 5
jne 0x10174c07
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10174c12
mov ebx, dword [edi + 0x18]
jmp 0x10174c14
xor ebx, ebx
push esi
call fcn.101678dc
pop ecx
jmp 0x10174c80
test ecx, ecx
jg 0x10174be9
jl 0x10174c27
test eax, eax
jae 0x10174be9
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1016bd61
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10174c47
cmp byte [edi + 0x1c], 0
je 0x10174be9
jmp 0x10174c78
push ebx
call fcn.10162726
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10174be9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10174c80
cmp byte [edi + 0x1c], 0
je 0x10174c7d
mov ebx, dword [edi + 0x18]
jmp 0x10174c80
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1016bd61
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10178770
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1017879d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1017879d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x30b042d2
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x648433e6
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x21c
mov eax, dword [0x5c96a4]
xor eax, esp
mov dword [esp + 0x218], eax
test esi, esi
je 0x40112c
cmp ebx, 0x3f
ja 0x40112c
xor eax, eax
push eax
push eax
push 1
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x1ff
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1d]
push 0
push eax
call fcn.00542e50
push ebx
lea ecx, [esp + 0x29]
push esi
push ecx
mov byte [esp + 0x30], 4
call fcn.00545960
add esp, 0x18
lea edx, [esp + 4]
push edx
lea eax, [esp + 4]
push eax
push 0x40
lea ecx, [esp + 0x24]
push ecx
push edi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4010f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4010f1
mov edx, dword [esp + 0x14]
push 0x7d0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4010db
push edi
call dword [sym.imp.KERNEL32.dll_CancelIo]
test eax, eax
je 0x4010fe
push 1
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x4010fe
test eax, eax
jne 0x4010f1
push eax
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp dword [esp], 0x40
mov dword [esp], 0x3f
je 0x401105
mov dword [esp], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401114
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0053fb0e
add esp, 0x21c
ret
mov ecx, dword [esp + 0x218]
xor ecx, esp
xor eax, eax
call fcn.0053fb0e
add esp, 0x21c
ret
Function at 0x4034f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00443a89

Function at 0x403d00
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push eax
mov dword [0x5e1220], eax
mov dword [0x5e1224], eax
mov dword [0x5e1228], eax
mov dword [0x5e122c], eax
mov dword [0x5e1230], eax
mov dword [0x5e1234], eax
mov dword [0x5e1238], eax
mov dword [0x5e123c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0x64
push 0
push 0
mov dword [0x5e122c], eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov ecx, dword [esp + 8]
push 0x5e1220
mov dword [0x5e1228], eax
mov eax, dword [esp + 8]
push 0
push 0x403da0
mov dword [0x5e1224], eax
mov dword [0x5e1220], 0x5a1b24
mov dword [0x5e1234], 0x42b
mov dword [0x5e1238], 0x42b060
mov dword [0x5e123c], ecx
call fcn.00540204
add esp, 0xc
ret

Function at 0x405d20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405d39
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405d74
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405d70
lea ebx, [ebx]
cmp esi, eax
jae 0x405d74
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405d60
cmp esi, eax
jb 0x405d7a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x406200
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x804
mov eax, dword [0x5c96a4]
xor eax, esp
mov dword [esp + 0x800], eax
cmp dword [0x5e1240], 0
je 0x40624e
mov ecx, dword [esp + 0x808]
lea eax, [esp + 0x80c]
push eax
push ecx
push 0x3ff
lea edx, [esp + 0xc]
push 0x400
push edx
call fcn.0053ffbd
add esp, 0x14
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.0053fb0e
add esp, 0x804
ret
Function at 0x406320
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x5c96a4]
xor eax, esp
mov dword [esp + 0x20c], eax
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 4]
push ecx
push str._sLog.txt
push 0x103
push 0x104
push 0x5d1780
call fcn.005403d0
add esp, 0x14
cmp dword [0x5e1240], 2
mov dword [0x5e1244], 0x406200
jne 0x40642c
push 0x59982c
lea edx, [esp + 4]
push 0x5d1780
push edx
mov dword [esp + 0xc], 0
call fcn.005405e7
add esp, 0xc
test eax, eax
je 0x4063c2
push 0x599830
call fcn.00406200
add esp, 4
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0053fb0e
add esp, 0x210
ret
mov eax, dword [esp]
push esi
push 2
push 0
push eax
call fcn.005408fd
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00540b1f
mov edx, dword [esp + 0x14]
push 0
push 0
push edx
mov esi, eax
call fcn.005408fd
add esp, 0x1c
cmp esi, 0x7d000
pop esi
jle 0x406416
mov eax, dword [esp]
push eax
call fcn.005407f7
push 0x599894
lea ecx, [esp + 8]
push 0x5d1780
push ecx
call fcn.005405e7
add esp, 0x10
mov edx, dword [esp]
push edx
call fcn.005407f7
mov dword [0x5e1244], 0x406270
add esp, 4
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0053fb0e
add esp, 0x210
ret
Function at 0x407460
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x568326
mov eax, dword fs:[0]
push eax
sub esp, 0x534
mov eax, dword [0x5c96a4]
xor eax, esp
mov dword [esp + 0x530], eax
push esi
push edi
mov eax, dword [0x5c96a4]
xor eax, esp
push eax
lea eax, [esp + 0x540]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x80]
test eax, eax
je 0x4074a8
mov eax, dword [eax + 0x20]
mov edi, dword [esp + 0x554]
cmp edi, eax
je 0x40764c
lea eax, [esi + 0x340]
test eax, eax
je 0x4074c4
mov eax, dword [eax + 0x20]
cmp edi, eax
je 0x40764c
lea eax, [esi + 0x1e0]
test eax, eax
je 0x4074d9
mov eax, dword [eax + 0x20]
cmp edi, eax
jne 0x407599
mov ecx, dword [esi + 0x774]
push 0x104
lea eax, [esp + 0x338]
push eax
call fcn.0044be5f
cmp word [esp + 0x334], 0
je 0x407522
push 0xffffffffffffffff
lea ecx, [esp + 0x338]
push ecx
lea edx, [esi + 0x77c]
push 0x104
push edx
call fcn.00540b8d
add esp, 0x10
mov ecx, dword [esi + 0x778]
push 0x104
lea eax, [esp + 0x338]
push eax
call fcn.0044be5f
lea ecx, [esp + 0x334]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40757b
push 0xffffffffffffffff
lea edx, [esp + 0x338]
push edx
lea eax, [esi + 0x984]
push 0x104
push eax
call fcn.00540b8d
mov edx, dword [esi]
mov eax, dword [edx + 0x158]
add esp, 0x10
mov ecx, esi
call eax
jmp 0x407656
push 0
push str.Error
push str.___File_not_found.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
jmp 0x407666
lea eax, [esi + 0x4a0]
test eax, eax
je 0x4075a6
mov eax, dword [eax + 0x20]
cmp edi, eax
jne 0x407629
push 1
push 0
push esi
push str.exe_.exe_.exe
push 2
push 0x599a4c
push str..exe
push 1
lea ecx, [esp + 0x30]
call fcn.0044dbf6
lea ecx, [esp + 0x10]
mov dword [esp + 0x548], 0
call fcn.0044e457
cmp eax, 1
jne 0x407613
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.0044e586
mov byte [esp + 0x548], 1
mov edx, dword [esp + 0xc]
mov ecx, dword [esi + 0x778]
push edx
call fcn.0044b7f3
lea ecx, [esp + 0xc]
call fcn.0041a0e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x548], 0xffffffff
call fcn.0044da63
jmp 0x407656
lea eax, [esi + 0x600]
test eax, eax
je 0x407636
mov eax, dword [eax + 0x20]
cmp edi, eax
jne 0x407656
mov ecx, dword [esi + 0x778]
push 0x599828
call fcn.0044b7f3
jmp 0x407656
mov eax, dword [esi]
mov edx, dword [eax + 0x15c]
call edx
mov eax, dword [esp + 0x550]
push edi
push eax
mov ecx, esi
call fcn.00449a58
mov ecx, dword [esp + 0x540]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x530]
xor ecx, esp
call fcn.0053fb0e
add esp, 0x540
ret 8
Function at 0x4124a0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x474
mov eax, dword [0x5c96a4]
xor eax, esp
mov dword [esp + 0x46c], eax
mov eax, dword [esp + 0x478]
push ebx
mov ebx, dword [esp + 0x484]
push ebp
push esi
push edi
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41263a
xor ecx, ecx
cmp cx, word [eax]
je 0x41263a
push 0xffffffffffffffff
push eax
lea edx, [esp + 0x278]
push 0x104
push edx
mov dword [esp + 0x24], 1
call fcn.00540b8d
lea eax, [esp + 0x280]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412507
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, 0x101
jl 0x41252a
mov eax, 1
jmp 0x41263c
mov eax, 0x5c
xor edx, edx
lea ecx, [eax - 0x32]
cmp ax, word [esp + esi*2 + 0x26e]
jne 0x412551
mov word [esp + esi*2 + 0x270], cx
mov word [esp + esi*2 + 0x272], dx
inc esi
jmp 0x41256c
mov word [esp + esi*2 + 0x270], ax
mov word [esp + esi*2 + 0x272], cx
mov word [esp + esi*2 + 0x274], dx
add esi, 2
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x274]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x412520
mov edi, dword [esp + 0x494]
mov ebp, dword [esp + 0x48c]
test byte [esp + 0x20], 0x10
je 0x4125eb
test ebp, ebp
je 0x4125fc
mov ax, word [esp + 0x4c]
mov edx, 0x2e
cmp dx, ax
je 0x4125fc
mov ecx, 0x24
cmp cx, ax
je 0x4125fc
push 0xffffffffffffffff
lea edx, [esp + 0x50]
push edx
mov eax, 0x104
sub eax, esi
push eax
lea ecx, [esp + esi*2 + 0x27a]
push ecx
call fcn.00540b8d
push edi
push ebx
lea edx, [esp + 0x288]
push ebp
push edx
call fcn.004124a0
add esp, 0x20
jmp 0x4125f8
mov ecx, dword [esp + 0x1c]
push edi
lea eax, [esp + 0x24]
push eax
push ecx
call ebx
test eax, eax
je 0x412621
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412596
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
jmp 0x41263c
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
jmp 0x41263c
xor eax, eax
mov ecx, dword [esp + 0x47c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053fb0e
add esp, 0x474
ret
Function at 0x418a70
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x5682d6
mov eax, dword fs:[0]
push eax
sub esp, 0x58c
mov eax, dword [0x5c96a4]
xor eax, esp
mov dword [esp + 0x588], eax
push ebx
push esi
mov eax, dword [0x5c96a4]
xor eax, esp
push eax
lea eax, [esp + 0x598]
mov dword fs:[0], eax
push 0
push 9
mov esi, ecx
mov eax, dword [esi + 0x1130]
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x1230]
test ecx, ecx
je 0x418c00
nop
mov edx, dword [ecx]
cmp dword [edx], eax
je 0x418ae2
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x418ad0
jmp 0x418c00
cmp dword [edx + 0x18], 1
jne 0x418c00
lea ecx, [esp + 0x38c]
push ecx
mov ecx, dword [edx]
lea ebx, [esi + 0x1110]
call fcn.00418f00
add esp, 4
call fcn.00417a60
xor ebx, ebx
cmp eax, ebx
je 0x418c00
add eax, 0x14
push eax
push 0x59b9ac
push 0x27
lea edx, [esp + 0x348]
push 0x28
push edx
call fcn.005403d0
add esp, 0x14
push 1
push ebx
push esi
push str.mly_.mly_.mly
push 2
lea eax, [esp + 0x350]
push eax
push str..mly
push ebx
lea ecx, [esp + 0x34]
call fcn.0044dbf6
lea ecx, [esp + 0x14]
mov dword [esp + 0x5a0], ebx
call fcn.0044e457
cmp eax, 1
jne 0x418bec
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.0044e586
mov byte [esp + 0x5a0], 1
mov eax, dword [esp + 0x10]
cmp dword [eax - 4], 1
jle 0x418b9c
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.00403ad0
mov eax, dword [esp + 0x10]
push ebx
push eax
lea eax, [esp + 0x394]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x418bc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ExportMacro:_copy_file_err0x_x
call dword [0x5e1244]
add esp, 8
mov byte [esp + 0x5a0], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418bec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x5a0], 0xffffffff
call fcn.0044da63
mov ecx, dword [esp + 0x598]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x588]
xor ecx, esp
call fcn.0053fb0e
add esp, 0x598
ret
Function at 0x418c30
Capabilities:
Log keystrokes via input method manager

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 4]
push edi
mov edi, ecx
cmp eax, 0x101
je 0x418c5b
cmp eax, 0x100
je 0x418c5b
cmp eax, 0x104
je 0x418c5b
cmp eax, 0x105
jne 0x418d22
cmp dword [edi + 0x13a8], 0
je 0x418d0b
cmp dword [esi + 8], 0xe5
jne 0x418c7c
mov eax, dword [esi]
push eax
call sub.IMM32.dll_ImmGetVirtualKey
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
cmp eax, 0x101
je 0x418c91
cmp eax, 0x105
je 0x418c91
xor ecx, ecx
jmp 0x418c96
mov ecx, 0x80
mov eax, dword [esi + 8]
cmp eax, 0x11
jne 0x418cbf
test dword [esi + 0xc], 0x1000000
je 0x418cf8
push ecx
mov eax, 0xa3
push eax
mov ecx, edi
call fcn.00415c50
pop edi
mov eax, 1
pop esi
ret 4
cmp eax, 0x12
jne 0x418ce5
test dword [esi + 0xc], 0x1000000
je 0x418cf8
push ecx
mov eax, 0xa5
push eax
mov ecx, edi
call fcn.00415c50
pop edi
mov eax, 1
pop esi
ret 4
cmp eax, 0x10
jne 0x418cf8
test dword [esi + 0xc], 0x100000
je 0x418cf8
mov eax, 0xa1
push ecx
push eax
mov ecx, edi
call fcn.00415c50
pop edi
mov eax, 1
pop esi
ret 4
mov eax, dword [esi + 8]
cmp eax, 0xd
je 0x418d01
cmp eax, 0x1b
je 0x418d01
cmp eax, 0x20
je 0x418d01
cmp eax, 0x70
je 0x418d01
push esi
call fcn.004432a9
pop edi
pop esi
ret 4

Function at 0x4190b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x5c96a4]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x418]
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
push 0x104
lea ecx, [esp + 0x228]
push ecx
push 0x104
lea edx, [esp + 0x28]
push edx
push eax
call fcn.00540cff
lea eax, [esp + 0x30]
push eax
push 0x5996c0
push 0x103
mov ecx, eax
push 0x104
push ecx
call fcn.005403d0
lea edx, [esp + 0x24e]
push 0x59ba18
push edx
mov esi, eax
call fcn.00540f1f
add esp, 0x40
test eax, eax
je 0x419195
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x419140
push eax
push 0x59ba00
mov eax, 0x103
sub eax, esi
push eax
mov ecx, 0x104
sub ecx, esi
push ecx
lea edx, [esp + esi*2 + 0x1c]
push edx
call fcn.005403d0
add esi, eax
add esp, 0x14
lea eax, [esp + 0xc]
push eax
call edi
cmp eax, 0xffffffff
je 0x419175
test al, 0x10
jne 0x419182
push 0
lea ecx, [esp + 0x10]
push ecx
call ebx
test eax, eax
je 0x4191b2
push 0x59ba18
push 0
call fcn.00540f1f
add esp, 8
test eax, eax
jne 0x419140
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0053fb0e
add esp, 0x414
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push edx
push str.MakeSureFolderExist:_create_dir__s__err0x_x
call dword [0x5e1244]
mov ecx, dword [esp + 0x428]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0053fb0e
add esp, 0x414
ret