joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403fe0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x412a98]
test eax, eax
je 0x40400e
push 0
call fcn.00401cf0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
push 1
call fcn.00401cf0
mov eax, dword [0x412a5c]
add esp, 4
test eax, eax
je 0x40403a
mov eax, dword [esp + 0x38]
push eax
call fcn.00401e60
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
mov eax, dword [0x412a9c]
test eax, eax
je 0x404071
push 0xe
call fcn.00401c80
mov ecx, dword [0x412a60]
mov edx, dword [0x412a94]
add esp, 4
push pe_nt_image_headers32
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
push 0xf
call fcn.00401b90
add esp, 4
test eax, eax
je 0x404151
mov edi, dword [esp + 0x30]
push edi
call fcn.00404160
add esp, 4
test eax, eax
je 0x404151
mov eax, dword [0x412aa0]
push 0
mov ecx, dword [0x412a80]
push edi
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x404151
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x3e8
push 1
push esi
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [0x412aa0]
push edx
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
mov esi, eax
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
call edi
test eax, eax
je 0x404151
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x404140
lea eax, [esp + 0x10]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea edx, [esp + 0x18]
push 0
push edx
call edi
test eax, eax
jne 0x40411d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x402871
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ecx + 0x14], 8
mov dword [ebp - 4], edx
jb 0x402880
mov ecx, dword [ecx]
push edi
mov edx, 0x438524
call fcn.004072ee
mov edi, eax
test edi, edi
jne 0x402895
xor al, al
jmp 0x402902
push ebx
push esi
push 2
xor ebx, ebx
push ebx
push edi
call fcn.004159e0
push edi
call fcn.00415ffc
mov esi, eax
add esp, 0x10
cmp esi, dword [ebp + 8]
jl 0x4028f7
sub esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x4028c1
cmp esi, eax
cmovg esi, eax
mov ecx, dword [ebp - 4]
lea eax, [ebp + 0xf]
push eax
push esi
call fcn.0040227f
push ebx
push dword [ebp + 8]
push edi
call fcn.004159e0
add esp, 0xc
test esi, esi
je 0x4028f2
mov eax, dword [ebp - 4]
push edi
push esi
push 1
push dword [eax]
call fcn.004155e9
add esp, 0x10
mov ebx, eax
cmp ebx, esi
sete bl
push edi
call fcn.0041537f
pop ecx
pop esi
mov al, bl
pop ebx
pop edi
leave
ret 8
Function at 0x4039f2
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x114
mov eax, 0x42cf61
call fcn.0040fcb5
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x118], ebx
mov eax, esi
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x11c], 4
cmp dword [esi + 0x14], 8
jb 0x403a28
mov eax, dword [esi]
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x114]
push ecx
push ebx
push eax
push dword [edi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x403b0f
cmp eax, 0x3fa
je 0x403b0f
test eax, eax
js 0x403b1a
push 4
pop ebx
cmp dword [ebp - 0x114], ebx
je 0x403b07
push str.Unexpected_type_for_registry_value_
lea ecx, [ebp - 0x28]
call fcn.00403380
mov dword [ebp - 4], ebx
lea edx, [edi + 8]
push 0x5c
lea ecx, [ebp - 0x40]
call fcn.00403001
mov byte [ebp - 4], 5
mov edx, eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00402f89
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
push eax
call fcn.00403877
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.00401360
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.00401360
push str.._REG_DWORD_expected.
lea ecx, [ebp - 0x28]
call fcn.00403880
push str.WT::System::Win32::CRegistryKey::GetUint32
push 0x14b
push str.WtSystemWin32RegistryKey.cpp
push ecx
push ecx
lea ecx, [ebp - 0x28]
mov esi, esp
call fcn.00403e08
push eax
mov ecx, esi
call fcn.00403428
lea ecx, [ebp - 0xb4]
call fcn.00406313
mov byte [ebp - 4], 7
jmp 0x403ba9
mov eax, dword [ebp - 0x118]
jmp 0x403b12
mov eax, dword [ebp + 0xc]
call fcn.0040fc5f
ret 8
push str.RegQueryValueEx_failure_reading_registry_value_
lea ecx, [ebp - 0x28]
call fcn.00403380
mov dword [ebp - 4], ebx
lea edx, [edi + 8]
push 0x5c
lea ecx, [ebp - 0x58]
call fcn.00403001
mov byte [ebp - 4], 1
mov edx, eax
push esi
lea ecx, [ebp - 0x40]
call fcn.00402f89
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.00403877
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00401360
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x58]
call fcn.00401360
push 0x438744
lea ecx, [ebp - 0x28]
call fcn.00403880
push str.WT::System::Win32::CRegistryKey::GetUint32
push 0x143
push str.WtSystemWin32RegistryKey.cpp
push ecx
push ecx
lea ecx, [ebp - 0x28]
mov esi, esp
call fcn.00403e08
push eax
mov ecx, esi
call fcn.00403428
lea ecx, [ebp - 0xb4]
call fcn.00406313
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb4]
call fcn.00406707
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x110]
call fcn.00406179
push 0x44971c
lea eax, [ebp - 0x110]
push eax
call fcn.0041145d
int3
Function at 0x404260
Capabilities:
Encode data using xor

Disassembly:
push 0x38
mov eax, 0x42d074
call fcn.0040fcb5
mov dword [ebp - 0x44], edx
mov ebx, ecx
mov eax, dword [ebx + 4]
xor ecx, ecx
sub eax, dword [ebx]
mov dword [ebp - 0x30], ecx
push ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x40], cl
lea ecx, [ebp - 0x40]
push eax
mov dword [ebp - 0x2c], 0xf
call fcn.004043b7
and dword [ebp - 4], 0
mov esi, 0x438938
mov eax, dword [ebx + 4]
lea edi, [ebp - 0x24]
xor edx, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebx]
sub eax, esi
je 0x4042d8
mov eax, edx
and eax, 0xf
mov cl, byte [ebp + eax - 0x24]
lea eax, [ebp - 0x40]
xor cl, byte [esi + edx]
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
mov byte [eax + edx], cl
inc edx
mov eax, dword [ebx + 4]
mov esi, dword [ebx]
sub eax, esi
cmp edx, eax
jb 0x4042b2
mov esi, dword [ebp - 0x44]
lea edi, [ebp - 0x28]
push 6
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x44]
lea esi, [ebp - 0x40]
push 6
pop ecx
rep movsd dword es:[edi], dword [esi]
push 6
pop ecx
lea esi, [ebp - 0x28]
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
or dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x40432c
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404323
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404341
push edx
push ecx
call fcn.0040f9bd
pop ecx
pop ecx
and dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0040fc5f
ret
call fcn.0041521a
int3
Function at 0x409053
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
sub esp, 0xc
cmp byte [edx], 0
je 0x409089
push esi
xor esi, esi
cmp dword [edx + 0x3c8], esi
jle 0x409084
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, ecx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
inc esi
cmp esi, dword [edx + 0x3c8]
jl 0x409074
pop edi
pop esi
leave
ret 8
push dword [0x44e07c]
lea ecx, [ebp - 0xc]
call fcn.00407c3c
push 0x44aad0
lea eax, [ebp - 0xc]
push eax
call fcn.0041145d
int3

Function at 0x40a79b
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
xor edx, edx
mov esi, edx
mov dword [ebp - 4], edx
mov cl, byte [esi + ebx]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x40a7bc
sub cl, 0x41
jmp 0x40a7d2
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x40a7c8
sub cl, 0x47
jmp 0x40a7d2
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x40a7d8
add cl, 4
mov byte [ebp + esi - 4], cl
jmp 0x40a7ff
cmp cl, 0x2b
jne 0x40a7e4
mov byte [ebp + esi - 4], 0x3e
jmp 0x40a7ff
cmp cl, 0x2f
jne 0x40a7f0
mov byte [ebp + esi - 4], 0x3f
jmp 0x40a7ff
cmp cl, 0x3d
jne 0x40a805
cmp esi, 2
je 0x40a7ff
cmp esi, 3
jne 0x40a805
inc esi
cmp esi, 4
jb 0x40a7ad
cmp esi, 4
jne 0x40a84e
mov eax, dword [ebp - 4]
mov dl, al
mov cl, ah
shl dl, 2
shr cl, 4
or dl, cl
mov byte [edi], dl
cmp byte [ebx + 2], 0x3d
je 0x40a84c
mov al, ah
shl al, 4
cmp byte [ebx + 3], 0x3d
je 0x40a841
mov dl, byte [ebp - 2]
mov cl, dl
shl dl, 6
shr cl, 2
or cl, al
or dl, byte [ebp - 1]
mov byte [edi + 2], dl
jmp 0x40a849
mov cl, byte [ebp - 2]
shr cl, 2
or cl, al
mov byte [edi + 1], cl
mov dl, 1
pop edi
pop esi
mov al, dl
pop ebx
leave
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x40bde7
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40bdfa
test al, 0x10
je 0x40bdfa
mov al, 1
ret
xor al, al
ret
Function at 0x40cef4
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e5c5
mov eax, dword fs:[0]
push eax
mov eax, 0x2994
call fcn.004109f0
mov eax, dword [0x44e0d8]
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 dword [ebp - 0x2998], edx
mov esi, ecx
mov dword [ebp - 0x299c], esi
mov edi, 0x43d080
mov dword [ebp - 0x29a0], esi
xor ebx, ebx
mov edx, 0xe7
mov ecx, edi
mov dword [ebp - 0x2994], ebx
call fcn.0040e719
lea eax, [ebp - 0x299c]
mov dword [ebp - 0x299c], 0x2880
push eax
lea eax, [ebp - 0x2990]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
je 0x40cf92
mov edx, 0xf2
mov ecx, edi
call fcn.0040e719
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
jmp 0x40d0c7
mov edx, 0xf8
lea edi, [ebp - 0x2990]
mov ecx, 0x43d080
call fcn.0040e719
cmp byte [edi + 0x196], 0
jne 0x40d013
cmp byte [edi + 0x197], 0
jne 0x40d013
cmp byte [edi + 0x198], 0
jne 0x40d013
cmp byte [edi + 0x199], 0
jne 0x40d013
mov edx, 0x10e
mov ecx, 0x43d080
call fcn.0040e719
cmp dword [ebp - 0x2998], ebx
jne 0x40d030
mov edx, 0x111
mov ecx, 0x43d080
call fcn.0040e719
mov edx, 0x11a
mov ecx, 0x43d080
call fcn.0040e719
xor ebx, ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
jmp 0x40d0c7
mov edx, pe_nt_image_headers32
mov ecx, 0x43d080
call fcn.0040e719
mov eax, dword [ebp - 0x2998]
test eax, eax
js 0x40d03d
cmp eax, ebx
je 0x40d03d
mov edi, dword [edi]
inc ebx
test edi, edi
jne 0x40cfa7
jmp 0x40cff1
mov edx, 0x103
mov ecx, 0x43d080
call fcn.0040e719
movzx eax, byte [edi + 0x199]
push eax
movzx eax, byte [edi + 0x198]
push eax
movzx eax, byte [edi + 0x197]
push eax
movzx eax, byte [edi + 0x196]
push eax
movzx eax, byte [edi + 0x195]
push eax
movzx eax, byte [edi + 0x194]
push eax
push str._02X__02X__02X__02X__02X__02X
lea eax, [ebp - 0x110]
push pe_nt_image_headers32
push eax
call fcn.0040e21e
add esp, 0x24
mov dword [esi + 0x14], 0xf
xor ebx, ebx
lea ecx, [ebp - 0x110]
mov dword [esi + 0x10], ebx
lea edx, [ecx + 1]
mov byte [ebp - 0x11], bl
mov byte [esi], bl
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d0af
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, esi
call fcn.00401d00
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2994], 1
mov eax, esi
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.0040f9cb
leave
ret
Function at 0x40d5a2
Capabilities:
Get disk information

Disassembly:
push 0x154
mov eax, 0x42e670
call fcn.0040fcb5
mov esi, edx
mov bl, cl
mov edi, dword [ebp + 8]
mov edx, 0x133
mov ecx, 0x43d080
mov byte [ebp - 0x160], bl
call fcn.0040e719
and dword [esi], 0
test bl, bl
jne 0x40d5df
call fcn.0040db4d
mov byte [ebp - 0x160], al
mov edx, 0x13c
mov ecx, 0x43d080
call fcn.0040e719
xor ebx, ebx
lea ecx, [ebp - 0x144]
push 2
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
push 0x43d0ac
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], bl
call fcn.00401d00
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x12c]
push dword [ebp - 0x160]
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], ebx
push 1
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], bl
call fcn.004043b7
mov byte [ebp - 4], 1
lea eax, [ebp - 0x144]
push eax
lea edx, [ebp - 0x12c]
lea ecx, [ebp - 0x15c]
call fcn.0040450c
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40d6b5
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d6ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d7c5
push edx
push ecx
call fcn.0040f9bd
pop ecx
pop ecx
mov edx, 0x140
mov dword [ebp - 0x11c], ebx
mov ecx, 0x43d080
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], bl
call fcn.0040e719
mov ebx, 0x104
lea eax, [ebp - 0x114]
push ebx
push 0
push eax
call fcn.00412370
add esp, 0xc
lea eax, [ebp - 0x15c]
cmp dword [ebp - 0x148], 0x10
cmovae eax, dword [ebp - 0x15c]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push esi
push ebx
lea ecx, [ebp - 0x114]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40d74d
lea edx, [ebx + 0x41]
mov ecx, 0x43d080
call fcn.0040e719
lea edx, [ebp - 0x114]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40d735
sub edx, esi
lea eax, [ebp - 0x114]
push edx
push eax
mov ecx, edi
call fcn.00401d00
mov edx, 0x149
mov ecx, 0x43d080
call fcn.0040e719
xor ebx, ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x15c]
call fcn.00402823
or dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x130]
cmp edx, 0x10
jb 0x40d7a5
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d79c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d7c5
push edx
push ecx
call fcn.0040f9bd
pop ecx
pop ecx
mov dword [ebp - 0x134], ebx
mov al, 1
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], bl
call fcn.0040fc5f
ret 4
call fcn.0041521a
int3
Function at 0x40e23a
Capabilities:
Get session user name

Disassembly:
push 0x2d4
mov eax, 0x42e825
call fcn.0040fcb5
mov esi, ecx
mov dword [ebp - 0x2d4], esi
mov ebx, 0x208
mov dword [ebp - 0x2dc], esi
xor edi, edi
lea eax, [ebp - 0x218]
push ebx
push edi
push eax
mov dword [ebp - 0x2d8], edi
call fcn.00412370
add esp, 0xc
mov dword [ebp - 0x2d4], 0x104
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x218]
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x40e2c4
cmp word [ebp - 0x218], di
je 0x40e2c4
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00403380
mov dword [ebp - 4], edi
mov dword [ebp - 0x2d8], 1
mov eax, esi
call fcn.0040fc5f
ret
xor eax, eax
mov dword [ebp - 0x2d4], 0x104
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x40e31e
cmp word [ebp - 0x218], di
je 0x40e31e
mov eax, dword [ebp - 0x2d4]
add eax, eax
cmp eax, ebx
jae 0x40e37b
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00403380
jmp 0x40e2af
push str.WT::System::Win32::CElevation::GetWinUserName
push 0x205
push str.WtSystemWin32Elevation.cpp
push ecx
push ecx
mov ecx, esp
push str.Error_getting_user_name___should_not_happen
call fcn.00403428
lea ecx, [ebp - 0x274]
call fcn.00406313
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x274]
call fcn.00406707
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x2d0]
call fcn.00406179
push 0x44971c
lea eax, [ebp - 0x2d0]
push eax
call fcn.0041145d
call fcn.0041031c
int3

Function at 0x40e423
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov edx, dword [edi]
test esi, esi
je 0x40e44f
movzx ecx, byte [ebx]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x44ec18]
inc ebx
sub esi, 1
jne 0x40e437
mov dword [edi], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40eb23
Capabilities:
Enumerate process modules

Disassembly:
push 0x1c
mov eax, 0x42e9d9
call fcn.0040fc81
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor ebx, ebx
lea eax, [ebp - 0xd]
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x28]
push eax
push 0x200
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.0040e85b
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], ebx
jmp 0x40eb83
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
sar ecx, 2
mov eax, ecx
shl eax, 2
cmp edx, eax
jne 0x40ebd9
lea eax, [ecx + ecx]
lea ecx, [ebp - 0xd]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e8a4
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
sub eax, dword [ebp - 0x28]
push ecx
and eax, 0xfffffffc
push eax
push dword [ebp - 0x28]
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
jne 0x40eb5e
mov eax, dword [ebp - 0x28]
mov ecx, esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040c7a5
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x40ebd1
mov edx, dword [ebp - 0x20]
sub edx, ecx
and edx, 0xfffffffc
call fcn.004021b3
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov eax, esi
call fcn.0040fc4a
ret
lea eax, [ebp - 0xd]
shr edx, 2
push eax
push edx
lea ecx, [ebp - 0x28]
call fcn.0040e8a4
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040c7a5
jmp 0x40ebae

Function at 0x40efae
Capabilities:
Hash data via wincrypt

Disassembly:
push 0x14
mov eax, 0x42ea28
call fcn.0040fc81
mov esi, edx
mov edi, ecx
push 0x18
lea ecx, [ebp - 0x20]
call fcn.0040eefa
and dword [ebp - 4], 0
cmp byte [ebp - 0x1c], 0
jne 0x40efd6
xor bl, bl
jmp 0x40f03c
push 0x800c
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040eecc
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
cmp byte [ebp - 0x14], 0
je 0x40f027
push 0
push esi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp eax, ebx
jne 0x40f027
push 0x20
pop esi
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp eax, ebx
jne 0x40f027
cmp dword [ebp - 0x10], esi
je 0x40f029
xor bl, bl
mov byte [ebp - 4], 0
cmp byte [ebp - 0x14], 0
je 0x40f03c
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x1c], 0
je 0x40f051
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
call fcn.0040fc4a
ret 4
Function at 0x40f251
Capabilities:
Get process image filename

Disassembly:
push 0x258
mov eax, 0x42eaaa
call fcn.0040fcb5
lea ecx, [ebp - 0x260]
call fcn.0040eb23
xor eax, eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 4], eax
mov edi, dword [ebp - 0x260]
mov ebx, dword [ebp - 0x25c]
cmp edi, ebx
je 0x40f3fe
push dword [edi]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea ecx, [ebp - 0x250]
push esi
call fcn.00409fe8
mov byte [ebp - 4], 1
test esi, esi
je 0x40f3ae
push 0x104
lea eax, [ebp - 0x21c]
push eax
push esi
call sub.KERNEL32.dll_K32GetProcessImageFileNameW
test eax, eax
je 0x40f3ae
add eax, eax
cmp eax, 0x20a
jae 0x40f415
xor ecx, ecx
mov word [ebp + eax - 0x21c], cx
lea eax, [ebp - 0x21c]
push ecx
push ecx
mov edx, esp
mov ecx, eax
mov dword [edx], eax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x254]
jne 0x40f2f4
sub ecx, esi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x24c]
call fcn.0040b996
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x40f324
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.0040b065
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24c]
call fcn.00402846
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x234]
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x234]
cmovae ecx, dword [ebp - 0x234]
cmovae edx, dword [ebp - 0x234]
lea eax, [ecx + eax*2]
jmp 0x40f372
inc word [edx]
add edx, 2
cmp edx, eax
jne 0x40f36c
mov esi, 0x43d59c
push dword [esi]
lea ecx, [ebp - 0x234]
call fcn.0040baf7
test al, al
jne 0x40f397
add esi, 4
cmp esi, 0x43d5a4
jne 0x40f37b
cmp esi, 0x43d5a4
jne 0x40f3cc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.00402846
xor eax, eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x250]
call fcn.00409ffc
add edi, 4
cmp edi, ebx
je 0x40f3fe
xor eax, eax
jmp 0x40f28a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.00402846
xor eax, eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x250]
call fcn.00409ffc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.0040595f
mov al, 1
jmp 0x40f40f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.0040595f
xor al, al
call fcn.0040fc5f
ret
call fcn.0041031c
int3

Function at 0x422291
Capabilities:
Read file on windows

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