joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5346c6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2120
call fcn.005a3e40
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x61afcc
push esi
mov edi, edx
mov dword [ebp - 8], ecx
call fcn.00533feb
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
je 0x53481b
mov eax, dword [ebp + 8]
push dword [ebp - 8]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x2120]
push 0x61afc4
push eax
mov ebx, edi
call fcn.005a3b0e
push dword [ebp + 0xc]
mov esi, 0x1000
lea eax, [ebp - 0x1120]
push esi
push eax
call fcn.005340f6
add esp, 0x18
test eax, eax
je 0x534810
push 1
pop edx
lea ecx, [ebp - 0x1120]
call fcn.00534669
lea eax, [ebp - 0x1120]
push eax
lea eax, [ebp - 0x2120]
push eax
call fcn.005a5310
pop ecx
pop ecx
push dword [ebp + 0xc]
test eax, eax
push esi
lea eax, [ebp - 0x1120]
push eax
je 0x534772
call fcn.005340f6
add esp, 0xc
jmp 0x53472e
call fcn.005340f6
add esp, 0xc
test eax, eax
je 0x534810
push 1
pop edx
lea ecx, [ebp - 0x1120]
call fcn.00534669
cmp byte [ebp - 0x1120], 0x5b
je 0x534810
cmp byte [ebp - 0x1120], 0
je 0x5347fd
and dword [ebp - 8], 0
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp - 0x1120]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea eax, [esi + 2]
cmp eax, dword [ebp + 8]
jbe 0x5347cd
mov eax, dword [ebp + 8]
lea esi, [eax - 2]
mov dword [ebp - 8], 1
push esi
lea eax, [ebp - 0x1120]
push eax
push ebx
call fcn.005a3a10
and byte [esi + ebx], 0
add esp, 0xc
inc esi
and byte [esi + ebx], 0
sub dword [ebp + 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 0
lea eax, [esi + ebx]
mov ebx, eax
jne 0x53480d
mov esi, 0x1000
push dword [ebp + 0xc]
lea eax, [ebp - 0x1120]
push esi
push eax
jmp 0x534772
dec dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.00534075
pop ecx
jmp 0x534872
lea eax, [ebp - 0x120]
push eax
push esi
call fcn.005c2105
mov ebx, eax
mov al, byte [ebp - 0x110]
and byte [ebp - 0x110], 0xfe
mov byte [ebp + 0xf], al
lea eax, [ebp - 0x120]
push eax
push esi
call fcn.005c226a
push esi
push dword [ebp + 8]
push edi
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_GetPrivateProfileSectionA]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x534872
mov al, byte [ebp + 0xf]
mov byte [ebp - 0x110], al
lea eax, [ebp - 0x120]
push eax
push esi
call fcn.005c226a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x535264
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, ecx
mov eax, dword [ebx]
push esi
xor esi, esi
cmp eax, esi
je 0x5352f8
push esi
push esi
push esi
push 6
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebx + 4], eax
je 0x5352f8
or ecx, 0xffffffff
push edi
mov edi, dword [ebp + 8]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [ebp - 0x104]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x61afdc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [ebp - 0x104]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x104]
push eax
mov ecx, edx
push 0
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov dword [ebx + 8], eax
pop edi
mov eax, dword [ebx + 4]
pop esi
pop ebx
leave
ret 4

Function at 0x5353f5
Capabilities:
Read file via mapping
Terminate process

Disassembly:
push 0x24
push 0x61b01c
push 0x61afe8
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
cmp eax, 6
jne 0x535413
jmp fcn.00535bd0
push 0
call fcn.005a646e
push esi
push edi
mov esi, ecx
call dword [sym.imp.winmm.dll_timeGetTime]
mov ecx, eax
mov edi, 0x3e8
xor edx, edx
div edi
pop edi
mov dword [esi], eax
xor eax, eax
mov ax, word [esi]
imul ax, ax, 0x3e8
sub ecx, eax
mov word [esi + 4], cx
pop esi
ret

Function at 0x535444
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, edx
xor edx, edx
cmp dword [0x61afe4], edx
push edi
mov dword [ebp - 8], ecx
je 0x5354e5
mov edi, dword [ebp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
push 0xa00018
push edx
push edx
not ecx
push 6
push dword [0x645368]
dec ecx
mov dword [ebp - 4], ecx
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x5354e5
mov edi, dword [ebx + 4]
mov eax, dword [ebp - 4]
lea eax, [edi + eax + 0xd]
cmp eax, 0xa00000
jb 0x5354a1
call fcn.005353f5
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], esi
lea edi, [edi + ebx + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 4]
mov esi, dword [ebp + 0xc]
lea ecx, [eax + 1]
lea edi, [edx + ebx + 0x24]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add eax, 0xd
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 4], eax
push ebx
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x535808
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x645368]
test eax, eax
push esi
push edi
mov esi, edx
mov edi, ecx
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
je 0x5358bc
push ebx
push 0xa00018
push 0
push 0
push 6
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov ebx, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [ebx + 4]
lea eax, [esi*4 + 0xc]
mov dword [ebp - 0x10], eax
not ecx
add eax, edi
add eax, ecx
cmp eax, 0xa00000
mov dword [ebp - 4], ecx
jb 0x535865
call fcn.005353f5
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], esi
lea edi, [edi + ebx + 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 1
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 4]
mov esi, dword [ebp + 0xc]
lea eax, [ebx + 0x18]
lea edi, [edx + eax + 0xc]
mov edx, dword [ebp - 0x10]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebx + 4]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
add edi, edx
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add edx, eax
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 4], edx
push ebx
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x5358c2
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
mov edi, ecx
xor ecx, ecx
cmp dword [0x61afe4], ecx
mov esi, edx
mov dword [ebp - 0xc], edi
jne 0x5359be
mov eax, dword [0x645368]
cmp eax, ecx
je 0x5359be
push ebx
push 0xa00018
push ecx
push ecx
push 6
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
or ecx, 0xffffffff
mov ebx, eax
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [ebp + 0x18]
not ecx
dec ecx
mov edx, ecx
inc edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [ebx + 4]
not ecx
lea eax, [edi + ecx]
lea eax, [eax + edx + 0x24]
cmp eax, 0xa00000
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
jb 0x535932
call fcn.005353f5
mov ecx, dword [ebp + 8]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0x10]
lea eax, [edi + ebx + 0x18]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x1c]
mov edi, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 3
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], eax
add eax, 0xc
mov edi, eax
push 6
pop ecx
lea esi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0x18]
mov edx, ecx
shr ecx, 2
add eax, 0x18
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
add eax, edx
mov edx, ecx
shr ecx, 2
mov edi, eax
sub eax, dword [ebp - 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add eax, edx
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 4], eax
push ebx
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
pop ebx
pop edi
pop esi
leave
ret 0x18
Function at 0x535a07
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x645368]
test eax, eax
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 0xc], edi
je 0x535ace
push ebx
push 0xa00018
push 0
push 0
push 6
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
or ecx, 0xffffffff
mov ebx, eax
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [ebp + 0xc]
not ecx
dec ecx
mov edx, ecx
inc edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [ebx + 4]
not ecx
lea eax, [edi + ecx]
lea eax, [eax + edx + 0x10]
cmp eax, 0xa00000
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
jb 0x535a6b
call fcn.005353f5
mov ecx, dword [ebp + 8]
lea eax, [edi + ebx + 0x18]
mov dword [ebp - 0x18], esi
mov edi, eax
mov dword [ebp - 0x1c], 2
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 4]
mov edx, ecx
mov dword [ebp - 0x10], eax
add eax, 0xc
shr ecx, 2
add eax, 4
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
add eax, edx
mov edx, ecx
shr ecx, 2
mov edi, eax
sub eax, dword [ebp - 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add eax, edx
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 4], eax
push ebx
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x535ad4
Capabilities:
Read file via mapping

Disassembly:
push esi
xor esi, esi
cmp dword [0x645368], esi
jne 0x535b36
push 0x61b0c4
push esi
push 0xf001f
call dword [sym.imp.kernel32.dll_OpenFileMappingA]
cmp eax, esi
mov dword [0x645368], eax
je 0x535b36
push 0xa00018
push esi
push esi
push 6
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
cmp eax, esi
jne 0x535b2f
mov ecx, 0x61b068
call fcn.00535b38
mov eax, dword [0x645368]
cmp eax, esi
je 0x535b36
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [0x645368], esi
pop esi
ret
push eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
pop esi
ret
Function at 0x535bd0
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x645368]
test eax, eax
push esi
je 0x535c90
push 0xa00018
push 0
push 0
push 6
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x535c01
mov ecx, 0x61b0e4
pop esi
jmp fcn.00535b38
push ebx
push edi
call dword [sym.imp.winmm.dll_timeGetTime]
mov ecx, eax
mov edi, 0x3e8
xor edx, edx
div edi
and dword [esi + 4], 0
or dword [esi + 0x14], 1
and dword [esi + 0xc], 0
mov dword [esi], 0x3fc
mov dword [esi + 8], 0xa00000
mov edi, eax
imul eax, eax, 0x3e8
sub ecx, eax
mov bx, cx
mov eax, dword [esi + 0x14]
and eax, 0xfffffffd
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
and eax, 0xfffffffb
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
and eax, 0xfffffff7
mov dword [esi + 0x14], eax
or eax, 1
push 0x5fc710
push 0x61b0d8
mov dword [esi + 0x14], eax
call fcn.005a3d3e
test eax, eax
pop ecx
pop ecx
je 0x535c77
push eax
call fcn.005a3c54
pop ecx
imul edi, edi, 0x3e8
xor eax, eax
mov ax, bx
push esi
add edi, eax
mov dword [esi + 0x10], edi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
pop edi
pop ebx
pop esi
ret

Function at 0x535cd7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.005a4832
add esp, 0xc
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
leave
ret

Function at 0x535daf
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, edx
xor edx, edx
mov esi, 0x3e8
mov edi, esi
div edi
xor edx, edx
mov edi, eax
mov eax, dword [ebp + 8]
div esi
push edi
mov eax, edi
push edx
push 0x3c
pop esi
cdq
idiv esi
mov eax, edi
push edx
cdq
idiv esi
push eax
push ebx
push ecx
lea eax, [ebp - 0x100]
push 0x61b134
push eax
call fcn.005a3b0e
add esp, 0x20
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x5360fd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
test edx, edx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, ecx
jle 0x5361d8
mov esi, dword [0x61b570]
mov eax, edi
and eax, 3
je 0x536148
push 4
pop ecx
sub ecx, eax
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x53614b
movzx edx, byte [edi]
xor ebx, ebx
mov bl, al
shr eax, 8
xor edx, ebx
mov edx, dword [esi + edx*4]
xor eax, edx
inc edi
dec dword [ebp - 4]
dec ecx
cmp dword [ebp - 4], 0
jne 0x536126
jmp 0x53614b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
and ecx, 3
sar dword [ebp - 4], 2
mov dword [ebp + 8], ecx
je 0x5361b9
mov ecx, dword [edi]
xor edx, edx
xor ebx, ebx
mov bl, al
mov dl, cl
sar ecx, 8
add edi, 4
xor edx, ebx
mov ebx, eax
mov eax, dword [esi + edx*4]
shr ebx, 8
xor eax, ebx
xor edx, edx
xor ebx, ebx
mov bl, al
mov dl, cl
shr eax, 8
sar ecx, 8
xor edx, ebx
mov ebx, dword [esi + edx*4]
xor ebx, eax
xor eax, eax
xor edx, edx
mov al, cl
mov dl, bl
shr ebx, 8
sar ecx, 8
movzx ecx, cl
xor eax, edx
mov eax, dword [esi + eax*4]
xor eax, ebx
xor edx, edx
mov dl, al
shr eax, 8
xor ecx, edx
mov ecx, dword [esi + ecx*4]
xor eax, ecx
dec dword [ebp - 4]
jne 0x53615a
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x5361db
mov edx, dword [edi]
xor ebx, ebx
mov bl, al
movzx edi, dl
shr eax, 8
sar edx, 8
xor edi, ebx
mov edi, dword [esi + edi*4]
xor eax, edi
dec ecx
jne 0x5361bf
jmp 0x5361db
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x538f3c
Capabilities:
Connect to http server
Create http request

Disassembly:
mov eax, 0x5d301b
call fcn.005a39e4
sub esp, 0x14
push ebx
xor ebx, ebx
cmp cl, bl
je 0x538f9b
push esi
push edi
push 0x10000000
push ebx
push ebx
push ebx
push 0x61b758
call dword [sym.imp.wininet.dll_InternetOpenA]
push ebx
push ebx
push 3
mov esi, eax
mov eax, 0x5fc4dc
push eax
push eax
push 0x50
push 0x61b73c
push esi
call dword [sym.imp.wininet.dll_InternetConnectA]
mov edi, eax
xor eax, eax
cmp edi, ebx
setne al
push esi
mov esi, dword [sym.imp.wininet.dll_InternetCloseHandle]
mov ebx, eax
call esi
push edi
call esi
pop edi
pop esi
jmp 0x538fc3
lea ecx, [ebp - 0x20]
call fcn.005ccd2f
push 0x50
push 0x61b724
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.005cc92f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
mov ebx, eax
call fcn.005ccda5
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x541906
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
mov al, byte [ebp + 0x10]
push esi
mov esi, ecx
mov cl, byte [ebp + 0xc]
mov byte [esi + 1], al
mov eax, dword [0x6485b0]
test eax, eax
push edi
mov byte [esi], cl
je 0x54192c
cmp byte [eax], 0
jne 0x541980
test cl, cl
je 0x541980
mov edi, dword [sym.imp.kernel32.dll_GetTempPathA]
push ebx
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
jle 0x541959
lea eax, [ebx + 1]
push eax
call fcn.005a3f79
pop ecx
push eax
push ebx
mov dword [ebp + 0x10], eax
call edi
mov edi, dword [ebp + 0x10]
jmp 0x54196d
push 0x61b8f0
call fcn.005a763f
mov edi, eax
push edi
call fcn.005a6d39
pop ecx
pop ecx
mov ecx, edi
call fcn.00541a5e
test edi, edi
pop ebx
je 0x541980
push edi
call fcn.005a3d51
pop ecx
mov eax, dword [0x6485b4]
test eax, eax
je 0x54198e
cmp byte [eax], 0
jne 0x5419a3
call fcn.005c93be
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x78]
call fcn.00541a2d
mov eax, dword [0x6485b4]
mov ecx, dword [ebp + 8]
test ecx, ecx
mov dword [esi + 4], ecx
jne 0x5419b0
mov dword [esi + 4], eax
cmp byte [ebp + 0xc], 0
je 0x541a09
push dword [esi + 4]
lea ecx, [ebp - 0x304]
call fcn.00533550
push 0x61b8ec
lea ecx, [ebp - 0x304]
call fcn.0053368d
lea eax, [ebp - 0x301]
test eax, eax
je 0x5419e7
cmp byte [ebp - 0x301], 0
jne 0x5419f8
push dword [0x6485b0]
lea ecx, [ebp - 0x304]
call fcn.005335ec
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x304]
call fcn.00533726
jmp 0x541a24
push 0x200
push dword [esi + 4]
lea eax, [esi + 8]
push eax
call fcn.005a3a10
add esp, 0xc
and byte [esi + 0x207], 0
pop edi
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x5464ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x5d396f
call fcn.005a39e4
sub esp, 0x20c
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
push 0x10b
mov dword [ebp - 0x10], esi
call fcn.005c1431
lea ebx, [esi + 0x5c]
xor edi, edi
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.005bde99
mov dword [ebx], 0x5e4934
lea eax, [esi + 0xa0]
mov dword [eax + 4], edi
mov dword [eax], 0x5e59d4
push 0x30
mov byte [ebp - 4], 2
mov dword [esi], 0x5db520
mov dword [esi + 0xb0], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xb4], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa8], edi
call fcn.005bca7e
pop ecx
mov ecx, eax
mov dword [ebp + 0xc], ecx
cmp ecx, edi
mov byte [ebp - 4], 3
je 0x546564
push edi
call fcn.004dfc51
mov ebx, eax
jmp 0x546566
xor ebx, ebx
cmp ebx, edi
mov byte [ebp - 4], 2
mov dword [esi + 0x98], ebx
je 0x54659e
mov ecx, ebx
call fcn.004dfc7f
cmp dword [ebp + 8], edi
push edi
je 0x54658c
call fcn.005564ed
push eax
push dword [ebp + 8]
jmp 0x546597
call fcn.005564ed
push eax
push 0x61bc58
mov ecx, ebx
call fcn.004dfe6a
push 2
push 0x11a
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, edi
mov dword [0x64861c], eax
je 0x5465c2
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [0x648608], eax
mov eax, dword [0x648608]
cmp eax, edi
je 0x5465d7
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov dword [0x6485f4], eax
mov edx, 0x208
lea ecx, [ebp - 0x218]
call fcn.0054672b
lea eax, [ebp - 0x218]
push eax
call fcn.005a763f
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0x9c], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x547362
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
push edi
lea eax, [ebp - 0x200]
mov esi, ecx
push eax
xor edi, edi
call fcn.005472f3
cmp dword [ebp + 8], edi
je 0x5473c6
lea eax, [ebp - 0x200]
push eax
push 0xff
lea eax, [ebp - 0x400]
push eax
mov eax, dword [esi]
push edi
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 0x10c]
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
mov edi, eax
test edi, edi
jle 0x5473c6
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x5473c6
lea eax, [ebp - 0x400]
push eax
call fcn.005a51b7
pop ecx
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x547431
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push esi
push edi
lea eax, [ebp - 0x200]
mov esi, ecx
push eax
xor edi, edi
call fcn.005472f3
cmp dword [ebp + 8], edi
je 0x547475
lea eax, [ebp - 0x200]
push eax
push dword [ebp + 0x10]
mov eax, dword [esi]
push dword [ebp + 0xc]
mov ecx, esi
push edi
push dword [ebp + 8]
call dword [eax + 0x10c]
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 0xc
Function at 0x5474c5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
lea eax, [ebp - 0x208]
mov esi, ecx
push eax
xor ebx, ebx
call fcn.005472f3
cmp dword [ebp + 8], ebx
je 0x5475d6
push 0x200
call fcn.005bca7e
pop ecx
mov edi, eax
lea eax, [ebp - 0x208]
push eax
mov eax, dword [esi]
push 0x1ff
push edi
push ebx
push dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [eax + 0x10c]
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x5475cb
mov ebx, dword [ebp + 0x10]
or ecx, 0xffffffff
xor esi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebx], esi
je 0x547557
mov edi, dword [ebp - 8]
movsx eax, byte [esi + edi]
push eax
call fcn.005a6dae
pop ecx
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jb 0x54753a
cmp dword [ebp - 8], 0
je 0x5475c5
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5475c5
and dword [ebp + 8], eax
push 0x10
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
call fcn.005a4e40
add esp, 0xc
test eax, eax
jge 0x547589
xor eax, eax
mov ecx, 0xff
cmp eax, ecx
jle 0x547594
mov eax, ecx
mov byte [esi], al
inc esi
inc dword [ebx]
cmp dword [ebp + 8], 0
je 0x5475c5
push 0x2c
push dword [ebp + 8]
call fcn.005a4d50
test eax, eax
pop ecx
pop ecx
je 0x5475c5
inc eax
mov dword [ebp - 4], eax
je 0x5475c5
cmp byte [eax], 0
jne 0x5475c1
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x547560
mov edi, dword [ebp - 8]
push 1
pop ebx
test edi, edi
je 0x5475d6
push edi
call fcn.005bcaa7
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x549732
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push edi
mov edi, ecx
je 0x5497e0
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x5497e0
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [eax + ecx*4 + 0x44]
cmp esi, ebx
mov byte [ebp - 0x40], bl
je 0x549797
push 0x40
lea eax, [ebp - 0x40]
push eax
mov eax, esi
shl eax, 0x10
push eax
mov byte [ebp - 0x40], bl
call dword [sym.imp.user32.dll_GetKeyNameTextA]
cmp byte [ebp - 0x40], bl
jne 0x5497cd
push 0x40
lea eax, [ebp - 0x40]
push eax
push esi
mov ecx, 0x646fa0
call fcn.00537deb
test al, al
jne 0x5497cd
push 0x61c1c4
jmp 0x54979c
push 0x61c1a4
mov ecx, edi
call fcn.005472a6
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
or ecx, 0xffffffff
mov esi, edi
lea edx, [ebp - 0x40]
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0x14]
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0x10]
call fcn.005a3a10
add esp, 0xc
pop esi
pop edi
pop ebx
leave
ret 0x10