joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4458c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x49d874]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 8]
push esi
push edi
push 1
push 0x10
push eax
push 0
mov edi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x445916
push 1
push 0x19
lea eax, [esp + 0x220]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x445916
mov esi, 1
jmp 0x445918
xor esi, esi
push ecx
push ebx
push ecx
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.00445540
add esp, 0xc
test al, al
jne 0x445947
push ecx
push ebx
push ecx
mov edx, edi
lea ecx, [esp + 0x224]
call fcn.00445540
add esp, 0xc
test al, al
mov eax, esi
je 0x44594c
mov eax, 1
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00465436
mov esp, ebp
pop ebp
ret

Function at 0x445970
Capabilities:
Create directory
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x738
mov eax, dword [0x49d874]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 0x734], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esi], 0
cmp ebx, 0xa
ja 0x445c47
lea edi, [eax + ebx*4]
mov eax, dword [edi]
mov dword [ebp - 0x730], edi
test eax, eax
je 0x4459c9
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00465436
mov esp, ebp
pop ebp
ret 0xc
push 0x400
call fcn.0041e6e0
push 0x400
push 0
push eax
mov dword [esi], eax
call fcn.00469380
add esp, 0x10
jmp dword [ebx*4 + 0x445c60]
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465436
mov esp, ebp
pop ebp
ret 0xc

Function at 0x445c90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x49d874]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x445d28
test esi, esi
je 0x445d28
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.00469380
push edi
lea eax, [ebp - 0x404]
push 0x3ff
push eax
call fcn.0044d3e5
push 0x4849c0
lea eax, [ebp - 0x404]
push 0x3ff
push eax
call fcn.0044d4cb
push esi
lea eax, [ebp - 0x404]
push 0x3ff
push eax
call fcn.0044d4cb
add esp, 0x30
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x445d28
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465436
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00465436
mov esp, ebp
pop ebp
ret
Function at 0x445d40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
mov eax, dword [0x49d874]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x445f0b
test esi, esi
je 0x445f0b
push 0x800
lea eax, [ebp - 0x848]
push 0
push eax
call fcn.00469380
add esp, 0xc
lea eax, [ebp - 0x848]
push edi
push 0x3ff
push eax
call fcn.0044d072
add esp, 0xc
lea eax, [ebp - 0x848]
push 0x485444
push 0x3ff
push eax
call fcn.0044d0d6
add esp, 0xc
lea eax, [ebp - 0x848]
push esi
push 0x3ff
push eax
call fcn.0044d0d6
add esp, 0xc
lea eax, [ebp - 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x445f0b
xor eax, eax
lea edx, [ebp - 0x858]
mov word [ebp - 0x858], ax
lea ecx, [ebp - 0x848]
mov word [ebp - 0x854], ax
mov word [ebp - 0x850], ax
mov word [ebp - 0x84c], ax
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x854]
push eax
call fcn.00443b60
add esp, 0xc
test al, al
je 0x445f0b
push 0x40
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00469380
movzx eax, word [ebp - 0x84c]
add esp, 0xc
push eax
movzx eax, word [ebp - 0x850]
push eax
movzx eax, word [ebp - 0x854]
push eax
movzx eax, word [ebp - 0x858]
push eax
push 0x48af8c
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.00401344
add esp, 0x1c
lea eax, [ebp - 0x48]
mov ecx, str.6.1.1.41705
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x445e92
test dl, dl
je 0x445e8e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x445e92
add eax, 2
add ecx, 2
test dl, dl
jne 0x445e72
xor eax, eax
jmp 0x445e97
sbb eax, eax
or eax, 1
test eax, eax
jne 0x445f0b
xor edi, edi
lea eax, [ebp - 0x848]
push edi
push edi
push 3
push edi
push 7
push SysReAllocString
push eax
mov dword [ebp - 0x858], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
push ecx
cmove esi, eax
lea eax, [ebp - 0x858]
push eax
push ecx
mov edx, esi
lea ecx, [ebp - 0x848]
call fcn.00447600
add esp, 0xc
mov ecx, 1
test eax, eax
cmovne edi, ecx
test esi, esi
je 0x445ef9
cmp esi, 0xffffffff
je 0x445ef9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465436
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00465436
mov esp, ebp
pop ebp
ret
Function at 0x446790
Capabilities:
Check if file exists
Delete directory
Get file attributes
Print debug messages

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x44679b
xor eax, eax
pop esi
ret
push str._CZoomProductPathHelper::RecursiveRemoveDirA__Path_is:
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4467bf
mov eax, 1
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4467d7
and eax, 0x410
cmp eax, 0x410
je 0x4467eb
push ecx
mov edx, 0x444a40
mov ecx, esi
call fcn.00444b30
add esp, 4
test eax, eax
je 0x4467f2
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
ret

Function at 0x446800
Capabilities:
Check if file exists
Delete directory
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477330
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x49d874]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
test edi, edi
je 0x44694e
push str._ProductPathHelper::RecursiveRemoveDirA__Path_is:
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x492320
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, 0xfde9
mov ecx, edi
call fcn.00447dc0
mov esi, eax
test esi, esi
jne 0x446876
xor edx, edx
mov ecx, edi
call fcn.00447dc0
mov esi, eax
test esi, esi
je 0x44694e
push esi
lea ecx, [ebp - 0x28]
call fcn.0040639f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
jb 0x4468ab
mov esi, dword [ebp - 0x28]
test esi, esi
jne 0x4468ab
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0x4468f2
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4468bb
lea edi, [eax + 1]
jmp 0x4468f2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4468d3
and eax, 0x410
cmp eax, 0x410
je 0x4468e9
push ecx
mov edx, 0x444a40
mov ecx, esi
call fcn.00444b30
mov edi, eax
add esp, 4
test edi, edi
je 0x4468f2
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x44692f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x446925
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44696b
push edx
push ecx
call fcn.00465474
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
jmp 0x446950
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00465436
mov esp, ebp
pop ebp
ret
call fcn.0044c736
int3
Function at 0x446980
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x49d874]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
test edi, edi
je 0x446a2f
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.00469380
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x404]
push eax
push 0
push 0
push dword [esi + 0x492324]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x446a27
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.0044c787
add esp, 8
test eax, eax
je 0x446a27
cmp eax, 0x400
je 0x446a27
cmp byte [ebp + eax - 0x405], 0x5c
jne 0x446a12
lea ecx, [eax - 1]
mov eax, ecx
cmp ecx, 0x400
jae 0x446a56
mov byte [ebp + ecx - 0x404], 0
push eax
lea eax, [ebp - 0x404]
push eax
push edi
call fcn.004626dc
add esp, 0xc
test eax, eax
je 0x446a41
add esi, 4
cmp esi, 8
jb 0x4469b7
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465436
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00465436
mov esp, ebp
pop ebp
ret
call fcn.0046582b
int3

Function at 0x4477e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x49d874]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x447885
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x447885
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x22c
push 0
push eax
call fcn.00469380
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x447868
lea eax, [ebp - 0x230]
push ebx
push eax
call edi
add esp, 8
test eax, eax
jne 0x447868
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x447845
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465436
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465436
mov esp, ebp
pop ebp
ret
Function at 0x45bde9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045ba9a

Function at 0x467ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x49d874]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x467ae5
xor eax, eax
jmp 0x467b41
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x467b12
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x467b12
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x467bc8
cmp dword [edi + 0x4c], 0
je 0x467b3b
mov ecx, edi
call fcn.00467725
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x467b51
push dword [edi + 0x4c]
push ebx
call fcn.00467189
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x467b40
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00465436
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x4784fc]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x467b9b
sub eax, 1
je 0x467b9b
dec eax
sub eax, 1
jne 0x467b3b
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x467b2d
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x467bb8
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0044dd39
add esp, 0x10
cmp esi, eax
jne 0x467b3b
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x467b3b
mov ax, bx
jmp 0x467b40
Function at 0x4170d3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41c098]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x417166
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x417166
shr ecx, 1
push 0xffffffffffffffff
cmp word [ebp + ecx*2 - 0x210], 0x5c
sete al
lea eax, [eax*2 + str.Microsoft_SharedOffice16_]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00417179
jmp 0x417168
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004158e5
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x14c], esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0
lea eax, [ebp - 0x124]
mov ecx, eax
lea eax, [ebp - 0x13c]
mov edx, eax
mov eax, 1
call fcn.004043a0
call fcn.004044a0
push eax
test eax, eax
jne 0x402655
mov eax, dword [ebp - 4]
test eax, eax
je 0x4024d4
jmp 0x4024fc
push 0x105
lea eax, [ebp - 0x118]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x118]
lea eax, [ebp - 8]
call fcn.00404c60
jmp 0x402655
call sub.kernel32.dll_GetCommandLineA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00402820
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
call fcn.00402880
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x402529
jmp 0x40252b
jmp 0x402542
dec dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, 0
jl 0x402542
jmp 0x402538
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x402542
jmp 0x402504
lea edx, [ebp - 0x144]
mov eax, edx
call fcn.004044d0
mov dword [ebp - 0x144], 0
mov ebx, dword [ebp - 0xc]
sub ebx, dword [ebp - 0x10]
mov esi, 1
lea edx, [ebp - 0x148]
mov eax, edx
call fcn.004044d0
mov dword [ebp - 0x148], 0
mov eax, dword [ebp - 0x10]
call fcn.00404ca0
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov ecx, ebx
mov edx, esi
call fcn.00404d00
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
call fcn.00404dc0
lea edx, [ebp - 8]
mov eax, edx
call fcn.004044d0
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x144]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4025cd
mov eax, dword [eax - 4]
cmp eax, 2
jge 0x4025d7
jmp 0x402655
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x22
je 0x4025e2
jmp 0x402655
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4025ef
mov eax, dword [eax - 4]
mov al, byte [edx + eax - 1]
cmp al, 0x22
je 0x4025f9
jmp 0x402655
lea edx, [ebp - 0x148]
mov eax, edx
call fcn.004044d0
mov dword [ebp - 0x148], 0
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x40261a
mov ecx, dword [ecx - 4]
sub ecx, 2
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.00404d00
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
call fcn.00404dc0
lea edx, [ebp - 8]
mov eax, edx
call fcn.004044d0
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x148]
mov dword [ebp - 8], eax
call fcn.004045a0
lea edx, [ebp - 0x148]
mov eax, edx
call fcn.004044d0
mov dword [ebp - 0x148], 0
lea edx, [ebp - 0x144]
mov eax, edx
call fcn.004044d0
mov dword [ebp - 0x144], 0
pop eax
test eax, eax
je 0x40269f
mov edx, str._t_nAnsiString
lea eax, [ebp - 8]
call fcn.00404830
call fcn.00404630
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x150]
mov esi, dword [ebp - 0x14c]
leave
ret
Function at 0x417100
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
push 0x10
call sub.user32.dll_GetKeyState
movsx eax, ax
cmp eax, 0
jl 0x41711e
jmp 0x417127
mov eax, dword [ebp - 4]
or eax, 4
mov dword [ebp - 4], eax
push 0x11
call sub.user32.dll_GetKeyState
movsx eax, ax
cmp eax, 0
jl 0x417138
jmp 0x417141
mov eax, dword [ebp - 4]
or eax, 8
mov dword [ebp - 4], eax
push 0x12
call sub.user32.dll_GetKeyState
movsx eax, ax
cmp eax, 0
jl 0x417152
jmp 0x41715b
mov eax, dword [ebp - 4]
or eax, 0x20
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret
Function at 0x423517
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x423556
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x423556
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x423556
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x423556
cmp dword [ecx + 0x74], 0xe
jbe 0x423556
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x462e1c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4840d4
push 0x4840cc
push str.FlsAlloc
push 0x1e
call fcn.00462aec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x462e50
push dword [ebp + 8]
mov ecx, esi
call dword [0x47e1a8]
call esi
jmp 0x462e56
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x462e9a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4840e4
push 0x4840dc
push str.FlsGetValue
push 0x20
call fcn.00462aec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x462ed1
push dword [ebp + 8]
mov ecx, esi
call dword [0x47e1a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x464952
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00464539

Function at 0x46495d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004646c8
Function at 0x46657e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00423bc0
mov eax, dword [0x493024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00461f2f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4665c0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46671c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00479240
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x495c28]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00466d05
mov ecx, dword [esi*4 + 0x495c28]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x466715
cmp eax, dword [edi + ecx + 0x24]
jne 0x466715
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x466715
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00466d05
add esp, 0x14
test edx, edx
jl 0x466715
jg 0x46668b
test eax, eax
jb 0x466715
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x466715
jl 0x4666a5
cmp dword [ebp - 0x1008], eax
ja 0x466715
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4666c3
test ebx, ebx
je 0x4666fc
cmp ecx, edi
jae 0x4666fc
mov al, byte [ecx]
cmp al, 0xd
jne 0x4666dd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4666e9
cmp byte [ecx + 1], 0xa
jne 0x4666e9
inc ecx
jmp 0x4666e9
movzx eax, al
movsx eax, byte [eax + 0x493998]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4666c3
cmp edx, ebx
jne 0x4666c3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46671a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00422b7f
leave
ret

Function at 0x469dc3
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00469c97
Function at 0x46a600
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x493024]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x46a64b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0046a9da
test al, al
jne 0x46a645
sub edx, 2
cmp edx, edi
jne 0x46a62b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x46a66d
lea eax, [edi + 2]
cmp edx, eax
je 0x46a66d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0046a2c7
add esp, 0x10
jmp 0x46a767
push esi
lea ecx, [ebp - 0x255]
call fcn.0046a9da
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46a6b0
push dword [ebp - 0x25c]
jmp 0x46a65d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x46a6ed
cmp word [ebp - 0x226], 0
je 0x46a70e
cmp word [ebp - 0x226], ax
jne 0x46a6ed
cmp word [ebp - 0x224], 0
je 0x46a70e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0046a2c7
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x46a75a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x46a6c7
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x46a742
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x46a767
push 0x469de6
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00476710
add esp, 0x10
jmp 0x46a737
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422b7f
leave
ret