joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404cdc
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404f0c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404d5f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404f0c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404d5f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404f28
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404de8
xor eax, eax
push ebp
push 0x404de1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404b24
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404dc6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404f48
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404dc6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404de8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404f02
cmp byte [ebp - 0xd], 0
jne 0x404e2f
cmp byte [ebp - 0x12], 0
je 0x404f02
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404e48
dec ebx
cmp byte [ebx], 0x2e
je 0x404e57
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404e47
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404f02
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404e94
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404f02
cmp byte [ebp - 0xd], 0
je 0x404f02
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404f02
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4055cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405632
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403dc4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b34
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40561c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405639
lea eax, [ebp - 0x10]
call fcn.00403b54
ret

Function at 0x40983c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409875
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403c44
jmp 0x40987e
mov eax, ebx
mov edx, esi
call fcn.00403ba8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409888
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4098a9
mov al, byte [esp]
jmp 0x4098ab
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409f40
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409da8
mov eax, dword [0x415564]
cmp byte [eax], 0
je 0x409fbc
mov eax, dword [0x415450]
call fcn.00402a44
call fcn.00402734
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407190
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a004
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409ff2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x415420]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x416660]
call fcn.00404ae8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40ad04
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40ad68
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403dc4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406d44
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ad6f
lea eax, [ebp - 0xc]
call fcn.00403b54
ret

Function at 0x4123f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
call sub.kernel32.dll_GetTickCount
mov esi, eax
push edi
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, esi
mov edx, edi
sub edx, 0x64
cmp edx, eax
jbe 0x412416
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x412968
Capabilities:
Create thread

Disassembly:
push ecx
push esp
push 0
push eax
push 0x412958
push 0
push 0
call sub.kernel32.dll_CreateThread
push 0xffffffffffffffff
push eax
call sub.kernel32.dll_WaitForSingleObject
pop edx
ret

Function at 0x412b34
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x412b6d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403c44
jmp 0x412b76
mov eax, ebx
mov edx, esi
call fcn.00403ba8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41318c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe78
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00403fe0
xor eax, eax
push ebp
push 0x41339e
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov edx, edi
lea eax, [ebp - 0x60]
mov ecx, 0x40
call fcn.0041317c
cmp word [ebp - 0x60], 0x5a4d
jne 0x413370
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x24]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, eax
lea eax, [ebp - 0x158]
mov ecx, 0xf8
call fcn.0041317c
cmp dword [ebp - 0x158], 0x4550
jne 0x413370
mov edx, dword [ebp - 0xe0]
add edx, edi
lea eax, [ebp - 0x180]
mov ecx, 0x28
call fcn.0041317c
mov ebx, dword [ebp - 0x124]
add edi, dword [ebp - 0xe0]
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0xdc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x168]
dec eax
test eax, eax
jb 0x413370
inc eax
mov dword [ebp - 0x20], eax
xor edi, edi
mov edx, dword [ebp - 0x160]
add edx, ebx
mov eax, edi
shl eax, 2
add edx, eax
lea eax, [ebp - 0xc]
mov ecx, 4
call fcn.0041317c
lea eax, [ebp - 0x184]
mov edx, dword [ebp - 0xc]
add edx, ebx
call fcn.00403d4c
mov eax, dword [ebp - 0x184]
mov edx, dword [ebp - 4]
call fcn.00403f3c
jne 0x413366
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x15c]
add edx, ebx
mov eax, edi
add eax, eax
add edx, eax
lea eax, [ebp - 0x10]
mov ecx, 2
call fcn.0041317c
mov edx, dword [ebp - 0x164]
add edx, ebx
mov eax, dword [ebp - 0x10]
shl eax, 2
add edx, eax
lea eax, [ebp - 8]
mov ecx, 4
call fcn.0041317c
mov esi, dword [ebp - 8]
add esi, ebx
mov eax, esi
cmp eax, dword [ebp - 0x14]
jb 0x413370
cmp eax, dword [ebp - 0x18]
ja 0x413370
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.00403d4c
lea eax, [ebp - 0x188]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, 0x4133b8
call fcn.00404088
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.00404048
mov eax, dword [ebp - 0x188]
call fcn.00403ff0
push eax
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, 0x4133b8
call fcn.00404088
inc eax
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00403df0
mov ecx, eax
mov eax, dword [ebp - 0x1c]
pop edx
call fcn.00404048
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.0041318c
mov esi, eax
jmp 0x413370
inc edi
dec dword [ebp - 0x20]
jne 0x41325f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4133a5
lea eax, [ebp - 0x188]
mov edx, 2
call fcn.00403b78
lea eax, [ebp - 0x1c]
call fcn.00403b54
lea eax, [ebp - 4]
call fcn.00403b54
ret
Function at 0x484cf7
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x484a08
or ebx, eax
call fcn.00484d2d
and eax, eax
inc eax
and eax, eax
xor dword [esi], ecx
sub ebx, 0xeff4e0c3
mov ebx, 0x1c111be
add eax, 1
add esi, 2
dec ebx
cmp esi, edx
jl fcn.00484cf7
mov ebx, eax
ret
Function at 0x401c0e
Capabilities:
Encode data using base64

Disassembly:
push 0x64
mov eax, 0xd992c6
call fcn.00d7292a
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x54]
xor ebx, ebx
mov dword [ebp - 0x70], esi
push 0x41
push ebx
push eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x6c], ebx
call fcn.00d74480
add esp, 0xc
mov ecx, ebx
lea eax, [ecx + 0x41]
mov byte [ebp + ecx - 0x54], al
inc ecx
cmp ecx, 0x1a
jl 0x401c39
mov ecx, ebx
lea eax, [ecx + 0x61]
mov byte [ebp + ecx - 0x3a], al
inc ecx
cmp ecx, 0x1a
jl 0x401c48
mov ecx, ebx
lea eax, [ecx + 0x30]
mov byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 0xa
jl 0x401c57
mov edi, esi
mov word [ebp - 0x16], 0x2f2b
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
mov eax, dword [ebp + 0x10]
mov edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x6c], 1
test eax, eax
je 0x401dc3
push 3
pop esi
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
mov byte [ebp + edi - 0x58], al
inc edi
mov dl, byte [ebp - 0x57]
inc ecx
mov dword [ebp + 0xc], ecx
mov ch, byte [ebp - 0x56]
mov cl, byte [ebp - 0x58]
mov byte [ebp - 0x5f], ch
mov byte [ebp - 0x5d], dl
mov byte [ebp - 0x5e], cl
cmp edi, esi
jne 0x401d1b
mov esi, dword [ebp - 0x64]
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x5c], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x5b], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
and ch, 0x3f
mov byte [ebp - 0x5a], cl
mov byte [ebp - 0x59], ch
movzx eax, byte [ebp + edi - 0x5c]
mov ecx, esi
movzx eax, byte [ebp + eax - 0x54]
push eax
call fcn.0040493d
inc edi
cmp edi, 4
jl 0x401cf5
mov dl, byte [ebp - 0x5d]
mov edi, ebx
mov cl, byte [ebp - 0x5e]
mov ch, byte [ebp - 0x5f]
push 3
pop esi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x401c98
mov dword [ebp - 0x68], edi
test edi, edi
je 0x401dc0
mov eax, edi
cmp edi, esi
jge 0x401d51
cmp eax, esi
jae 0x401dcd
mov byte [ebp + eax - 0x58], bl
inc eax
cmp eax, esi
jl 0x401d39
mov ch, byte [ebp - 0x56]
mov dl, byte [ebp - 0x57]
mov cl, byte [ebp - 0x58]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x5c], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x5b], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x59], ch
lea eax, [edi + 1]
mov byte [ebp - 0x5a], dl
mov dword [ebp - 0x58], eax
test eax, eax
jle 0x401dab
mov esi, dword [ebp - 0x64]
mov edi, eax
movzx eax, byte [ebp + ebx - 0x5c]
mov ecx, esi
movzx eax, byte [ebp + eax - 0x54]
push eax
call fcn.0040493d
inc ebx
cmp ebx, edi
jl 0x401d8e
mov edi, dword [ebp - 0x68]
push 3
pop esi
cmp edi, esi
jge 0x401dc0
sub esi, edi
mov ecx, dword [ebp - 0x64]
push 0x3d
call fcn.0040493d
sub esi, 1
jne 0x401db1
mov esi, dword [ebp - 0x64]
mov eax, esi
call fcn.00d728d9
ret 0xc
call fcn.00d722e4
int3
Function at 0x554298
Capabilities:
Get disk information via ioctl

Disassembly:
push 0x70
mov eax, 0xd996c8
call fcn.00d7292a
mov esi, ecx
mov dword [ebp - 0x60], esi
xor eax, eax
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], cl
mov dword [ebp - 4], ecx
call dword [esi + 0xc]
mov bl, 0x41
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x58], bl
xor edi, edi
xor edx, edx
mov eax, edi
mov ecx, edi
shr eax, 5
and ecx, 0x1f
inc edx
shl edx, cl
test dword [ebp + eax*4 - 0x14], edx
je 0x5543fc
push 0xda59d0
lea ecx, [ebp - 0x7c]
call fcn.00461e24
push dword [ebp - 0x58]
mov ecx, eax
mov byte [ebp - 4], 1
push 1
push 0
call fcn.00554a92
push eax
lea ecx, [ebp - 0x2c]
call fcn.004048c3
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
cmova eax, dword [ebp - 0x2c]
push eax
call dword [esi + 0x10]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00404917
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0
call fcn.00404917
cmp esi, 3
jne 0x5543f9
push str.._
lea ecx, [ebp - 0x2c]
call fcn.00461e24
push dword [ebp - 0x58]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040493d
push 1
push 0xda59dc
lea ecx, [ebp - 0x2c]
call fcn.0055484b
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
xor ecx, ecx
push ecx
push ecx
push esi
push ecx
push esi
mov esi, dword [ebp - 0x60]
push ecx
push eax
call dword [esi + 0x18]
mov dword [ebp - 0x64], eax
cmp eax, 0xffffffff
je 0x5543eb
xor edx, edx
lea ecx, [ebp - 0x48]
push edx
push ecx
push 0xc
lea ecx, [ebp - 0x54]
push ecx
push edx
push edx
push 0x2d1080
push eax
call dword [esi + 8]
push dword [ebp - 0x64]
or ecx, 0xffffffff
test eax, eax
cmovne ecx, dword [ebp - 0x50]
mov dword [ebp - 0x5c], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x5c]
cmp eax, 0xffffffff
je 0x5543eb
lea ecx, [ebp - 0x44]
push ecx
push eax
mov ecx, esi
call fcn.0054ef27
test eax, eax
jne 0x5543eb
sub esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, esp
push eax
call fcn.00438dfa
mov ecx, esi
call fcn.00544894
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00404917
jmp 0x5543fc
mov esi, dword [ebp - 0x60]
inc bl
inc edi
mov byte [ebp - 0x58], bl
cmp bl, 0x5a
jle 0x5542d1
lea ecx, [ebp - 0x44]
call fcn.00404917
call fcn.00d728d9
ret
Function at 0x555472
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 8], edx
mov edi, edx
lea eax, [ecx - 1]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], eax
sar eax, 1
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], eax
cmp edx, eax
jge 0x5554dc
lea esi, [edi + edi]
lea eax, [esi + 2]
imul ecx, eax, 0x18
add ecx, ebx
lea eax, [ecx - 0x18]
push eax
push ecx
call fcn.0055541f
imul ecx, dword [ebp - 8], 0x18
movzx edi, al
xor edi, 1
inc edi
add edi, esi
imul eax, edi, 0x18
add ecx, ebx
add eax, ebx
push eax
call fcn.0046a1ba
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], edi
cmp edi, eax
jl 0x5554a0
mov ecx, dword [ebp - 0x18]
mov esi, edi
cmp edi, eax
jne 0x5554fd
test cl, 1
jne 0x5554fd
imul eax, ecx, 0x18
imul ecx, edi, 0x18
add eax, 0xffffffe8
add eax, ebx
add ecx, ebx
push eax
call fcn.0046a1ba
mov esi, dword [ebp - 4]
cmp dword [ebp - 0xc], esi
jge 0x555530
push dword [ebp - 0x10]
lea edi, [esi - 1]
sar edi, 1
imul eax, edi, 0x18
add eax, ebx
push eax
mov dword [ebp - 4], eax
call fcn.0055541f
test al, al
je 0x555530
push dword [ebp - 4]
imul ecx, esi, 0x18
add ecx, ebx
call fcn.0046a1ba
mov esi, edi
cmp dword [ebp - 0xc], edi
jl 0x555502
push dword [ebp - 0x10]
imul ecx, esi, 0x18
add ecx, ebx
call fcn.0046a1ba
pop edi
pop esi
pop ebx
leave
ret

Function at 0x572480
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push esi
push edi
push 0x11
call ebx
movzx esi, ax
shr esi, 7
push 0x12
and esi, 1
call ebx
mov edi, esi
or edi, 2
test al, 0x80
push 0x10
cmove edi, esi
call ebx
mov esi, edi
or esi, 4
test al, 0x80
push 0x5b
cmove esi, edi
call ebx
mov edi, esi
or edi, 8
test al, 0x80
push 0x5c
cmove edi, esi
call ebx
mov ecx, edi
or ecx, 8
test al, 0x80
cmove ecx, edi
pop edi
pop esi
mov eax, ecx
pop ebx
ret

Function at 0x572fe7
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xorps xmm0, xmm0
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x572ffc
movaps xmm0, xmm1
movsd qword [ebp - 8], xmm0
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [ebp + ecx - 8]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 8
jb 0x573008
mov eax, edx
leave
ret
Function at 0x575298
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 4], ecx
push eax
push dword [ebp + 0x10]
mov ebx, edx
push eax
push eax
call fcn.00524e3a
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.00d7a4c9
mov esi, eax
mov edx, str.char__
or eax, 0xffffffff
test esi, esi
cmovs esi, eax
inc esi
mov ecx, esi
call fcn.0056e6f5
push dword [ebp + 0x14]
mov edi, eax
push 0
push dword [ebp + 0x10]
push esi
push edi
call fcn.0056dc32
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push dword [ebp - 4]
push str._libui___hs:_hs:_hs____hs_hs_n
call fcn.00578963
add esp, 0x48
mov ecx, edi
mov esi, eax
call fcn.0056e81b
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, esi
call fcn.0056e81b
call dword [sym.imp.KERNEL32.dll_DebugBreak]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5c7375
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 0x14], 0
and dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0xc6f5fc
Capabilities:
Hash data using sha1

Disassembly:
push 4
mov eax, 0xd9a630
call fcn.00d728f7
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x14]
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 0xf
mov byte [ecx], al
mov dword [ebp - 4], eax
push eax
push 0xda59b4
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
call fcn.00438e5f
mov eax, esi
call fcn.00d728c5
ret
Function at 0xd29f50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push str.kernel32
mov esi, ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0xd29f74
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0xda8ab8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push 0xda8ab0
push esi
mov dword [ebp - 8], ebx
call fcn.00d85148
add esp, 8
test eax, eax
je 0xd29fbc
test ebx, ebx
je 0xd29fac
push 8
push 0
push esi
call ebx
pop ebx
mov edi, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop ebx
mov edi, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0xd29fe5
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0xd29fe5
push 0x800
push 0
push esi
call ebx
pop ebx
mov edi, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0xd2a0a8
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xd2a001
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0xddedd4]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0xd2a09e
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0xd2a09e
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xd2a040
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xd2a060
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0xd2a075
mov eax, dword [ebp - 8]
test eax, eax
je 0xd2a095
push 8
push 0
push ebx
call eax
jmp 0xd2a09c
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0xddeddc]
add esp, 4
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xd2a710
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, edx
mov dword [ebp - 0xc], ecx
call fcn.00d2bd40
mov edx, edi
mov dword [ebp - 0x14], eax
call fcn.00d2bd20
mov edx, dword [ebp + 8]
mov cl, 1
mov byte [ebp - 1], cl
mov dword [edx], 0
test eax, eax
je 0xd2a83b
cmp byte [eax + 0x3c], 0
je 0xd2a83b
mov esi, dword [edi + 0x8d0]
test esi, esi
je 0xd2a83b
mov eax, dword [edi + 0x78]
test eax, eax
je 0xd2a76c
test byte [eax + 4], 0x10
je 0xd2a76c
add eax, 0x78
jmp 0xd2a772
lea eax, [edi + 0x8d4]
mov edi, dword [edi + 0x4a4]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
test edi, edi
je 0xd2a83a
nop dword [eax]
cmp dword [esi + 0xc], 0
je 0xd2a82b
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi]
mov eax, dword [ecx + 8]
mov ecx, dword [eax + 8]
call fcn.00d3bfc0
test eax, eax
je 0xd2a82b
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi + 4]
mov edi, dword [ecx + 0xc]
cmp byte [edi + 0x1c9], 0
jne 0xd2a7c6
test edx, edx
je 0xd2a7d9
jmp 0xd2a828
test edx, edx
je 0xd2a828
mov ecx, dword [edi + 0x64]
call fcn.00d3bfc0
test eax, eax
je 0xd2a828
mov ecx, dword [ebp - 0xc]
cmp byte [edi + 0x1ca], 0
jne 0xd2a7ea
cmp dword [esi + 0x1c], 0xffffffff
je 0xd2a7fa
jmp 0xd2a828
mov eax, dword [esi + 0x1c]
cmp eax, 0xffffffff
je 0xd2a828
cmp dword [edi + 0x440], eax
jne 0xd2a828
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0x30]
cmp eax, dword [esi + 0x18]
jne 0xd2a828
mov ecx, dword [edi + 0x1e0]
mov edx, dword [esi + 8]
mov ecx, dword [ecx]
call fcn.00d3bfc0
test eax, eax
je 0xd2a828
mov ecx, dword [ebp - 0x14]
lea edx, [esi + 0x20]
call fcn.00d2a1a0
test al, al
jne 0xd2a843
mov edi, dword [ebp - 8]
inc ebx
add esi, 0x60
cmp ebx, edi
jb 0xd2a790
mov cl, byte [ebp - 1]
pop ebx
pop edi
mov al, cl
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
pop ebx
pop edi
inc dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
xor cl, cl
mov al, cl
pop esi
mov esp, ebp
pop ebp
ret