joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51829a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x5182d5
push 6
call fcn.0052f61d
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00530090
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x518338
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00530fe0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x51835c
push 6
call fcn.0052f61d
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00530090
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5183bf
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00530fe0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x5183e3
push 6
call fcn.0052f61d
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00530090
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x518446
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00530fe0
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x51844e
mov esp, ebp
pop ebp
ret
Function at 0x51b315
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x51b35b
push 6
call fcn.0052f61d
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x57a956]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00401eca
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.00531030
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x51b3ae
push ebx
call fcn.0052f617
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x51b3e7
push 6
call fcn.0052f61d
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x51b403
push eax
mov ebx, eax
call fcn.00401348
inc eax
push eax
call fcn.0052f611
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x51b408
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x51b419
push ebx
call fcn.0052f617
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x530ba0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x530bbe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x530bb3
pop esi
ret

Function at 0x530dd0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x530e53
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x530e53
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x530e46
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret
Function at 0x531b40
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
test ebx, ebx
push edi
jne 0x531b59
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push ebx
call fcn.00534da0
add esp, 4
test eax, eax
jne 0x531b6e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x34]
test edi, edi
je 0x531b88
mov eax, dword [esp + 0x2c]
test eax, eax
jg 0x531b88
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x531c70
mov ebp, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push esi
push esi
push ebp
call edi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x531bc0
push 2
push esi
push esi
push ebp
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x531bd7
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
sub esi, ebx
jmp 0x531bdb
mov esi, dword [esp + 0x2c]
push esi
call fcn.0054813a
add esp, 4
mov ebx, eax
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x531c14
push 2
push eax
push eax
push ebp
call edi
push ebx
call fcn.00548163
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
xor edi, edi
test edx, edx
mov ecx, ebx
jbe 0x531c30
mov al, byte [ecx]
test al, al
je 0x531c30
cmp al, 0x1a
je 0x531c30
inc edi
inc ecx
cmp edi, edx
jb 0x531c20
lea ecx, [edi + 1]
push ecx
call fcn.0052f880
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
push 0
lea eax, [edi + edx]
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push ebx
push esi
call fcn.0053c780
push ebx
mov byte [edi + esi], 0
call fcn.00548163
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x531ceb
mov ebx, dword [ebx + 4]
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x14]
test edi, edi
mov ebp, eax
jne 0x531c8a
or eax, 0xffffffff
jmp 0x531c8e
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
mov ecx, ebx
call dword [edx + 0x30]
mov edx, dword [esp + 0x10]
xor edi, edi
test eax, eax
jbe 0x531cbd
mov cl, byte [edx]
test cl, cl
je 0x531cbd
cmp cl, 0x1a
je 0x531cbd
inc edi
inc edx
cmp edi, eax
jb 0x531cac
lea edx, [edi + 1]
push edx
call fcn.0052f880
add esp, 4
lea ecx, [edi + ebp]
mov esi, eax
mov eax, dword [ebx]
push 0
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov edx, dword [esp + 0x10]
push edi
push edx
push esi
call fcn.0053c780
add esp, 0xc
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x532050
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.0054813a
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x5320ba
push esi
lea edi, [eax + 0x400]
call fcn.00548163
push edi
call fcn.0054813a
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x53208a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5320d6
push ecx
push esi
call fcn.00533e90
add esp, 8
mov ebx, eax
push esi
call fcn.00548163
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5376f0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x63aa74]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x537703
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x537744
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x63ab1c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x537776
mov bl, byte [esp + ecx + 0x4c]
jmp 0x53777a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x53776b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x537798
mov bl, byte [esp + ecx + 0x4c]
jmp 0x53779c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x53778d
xor ecx, ecx
mov eax, 0x63aa84
xor ebx, ebx
mov bl, byte [ecx + 0x63ab2c]
cmp byte [esp + ebx + 0x14], 0
je 0x5377c7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x63ab44]
cmp byte [esp + ebx + 0x14], 0
je 0x5377de
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x5377ae
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x537737
lea edx, [esp + 0x84]
push edx
call fcn.00537820
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x539850
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, eax
mov eax, dword [edi]
push eax
call ebx
mov ecx, dword [edi + 4]
push ecx
mov esi, eax
call ebx
mov edx, dword [ebp]
push edx
mov edi, eax
call ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 4]
push eax
call ebx
mov ecx, dword [ebp + 8]
push ecx
mov dword [esp + 0x24], eax
call ebx
mov edx, dword [ebp + 0xc]
push edx
mov dword [esp + 0x1c], eax
call ebx
mov dword [esp + 0x14], eax
mov edx, 0x10
xor ecx, ecx
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x20]
mov ebx, edi
shl ebx, 4
add ebx, dword [esp + 0x10]
sub ecx, 0x61c88647
xor eax, ebx
lea ebx, [ecx + edi]
xor eax, ebx
add esi, eax
mov eax, esi
shr eax, 5
add eax, dword [esp + 0x14]
mov ebx, esi
shl ebx, 4
add ebx, dword [esp + 0x18]
sub edx, 1
xor eax, ebx
lea ebx, [ecx + esi]
xor eax, ebx
add edi, eax
test edx, edx
ja 0x5398a1
push esi
mov esi, dword [sym.imp.WS2_32.dll_htonl]
call esi
mov ebx, dword [esp + 0x24]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
pop ebp
mov dword [ebx + 4], eax
pop ebx
add esp, 0xc
ret

Function at 0x53a300
Capabilities:
Access peb ldr_data
Get ntdll base address
Reference http user-agent string

Disassembly:
push 0xffffffffffffffff
push 0x54f386
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov byte [esi + 0x40], al
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov cl, byte [esp + 0xb]
mov dword [esp + 0x18], edi
mov byte [esi + 0x50], cl
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov byte [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esi + 0x18]
mov dword [esi + 0x6c], eax
push edx
push str.Mozilla_5.0__Windows__U__Windows_NT_6.1__en_US__AppleWebKit_534.10__KHTML__like_Gecko__Chrome_7.0.536.2_Safari_534.10
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov word [esi + 0x24], di
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
call fcn.0053a3c0
mov dword [esi + 0x14], eax
lea eax, [esi + 0x60]
push 0x80
push eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov byte [esi + 0x3c], 1
mov byte [esi + 0x3d], 1
call fcn.0053b7a0
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x53a7af
Capabilities:
Parse url

Disassembly:
sub esp, 0x95c
push ebx
mov ebx, dword [esp + 0x968]
push ebp
push esi
mov esi, ecx
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x14]
mov ebp, ecx
mov ecx, 0xe
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0x3c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x6c], eax
je 0x53a7ff
push 0
push 0x63c8a8
push 0x7eb
call fcn.00533ab0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x95c
ret 8
lea ecx, [esp + 0x16c]
lea eax, [esp + 0x6c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x10]
xor eax, eax
push ecx
push eax
lea edx, [esp + 0x54]
push ebp
push ebx
mov dword [esp + 0x34], pe_nt_image_headers32
mov dword [esp + 0x50], 0x800
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 0x20
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x53a7f0
mov ecx, esi
call fcn.0053b0c0
mov edx, dword [esp + 0x20]
push edx
call fcn.0053a450
push ebx
mov dword [esi + 4], eax
call fcn.0053b460
push eax
call fcn.0053a450
push ebp
push ebx
mov dword [esi + 8], eax
call fcn.0053a4a0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esi], eax
mov ax, word [esp + 0x3c]
push edx
mov word [esi + 0x24], ax
mov dword [esi + 0x28], ecx
call fcn.0053a450
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x988]
push eax
call fcn.0053a450
add esp, 0x1c
mov ecx, esi
mov dword [esi + 0x10], eax
call fcn.0053b080
mov ecx, esi
call fcn.0053a760
test eax, eax
je 0x53a7f0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x95c
ret 8

Function at 0x54ab08
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x54ab4a
call fcn.0054de5b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x54ab4a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x54ab41
xor eax, eax
jmp 0x54ab52
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0054ab58
pop edi
pop esi
pop ebx
ret 4
Function at 0x54bae6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x54f774
call fcn.0053e6c8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0054de5b
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x54bb25
call fcn.0054de5b
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x54bb33
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x54bb41
or eax, 0xffffffff
jmp 0x54bc29
mov ecx, esi
call fcn.0054ba5c
mov dword [ebp - 0x14], eax
call fcn.0054914f
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x54bb78
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x54bb78
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00549103
push dword [ebp - 0x14]
call fcn.00548c35
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0054b7f4
cmp eax, edi
je 0x54bbeb
test byte [esi + 0x24], 0x10
je 0x54bbb9
push 4
mov ecx, esi
pop ebx
call fcn.00548635
test ah, 1
je 0x54bbb1
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0054ac5a
cmp dword [esi + 0x1c], edi
je 0x54bbeb
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00548669
jmp 0x54bbeb
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x54bbff
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x54bc18
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x54bc18
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0054ba96
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x54d9cd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x54d9fb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x54da19
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0054d933
jmp 0x54da19
mov eax, dword [esi + 0x14]
test eax, eax
je 0x54da19
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0054d933
test edi, edi
mov eax, edi
jne 0x54da03
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40102a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp + 8]
or dword [ebp - 4], 0xffffffff
push eax
push 0xf003f
push 0
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401078
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x40107d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push esi
xor esi, esi
push eax
push 0xf003f
push esi
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4010cc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x200
push eax
push dword [ebp + 0x10]
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4010c3
push 1
pop esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x4010d1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
lea eax, [ebp + 8]
push esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40111c
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x401113
push 1
pop esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x401651
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
lea eax, [ebp - 0x100]
push dword [ebp + 0xc]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0xc]
push esi
push eax
push esi
push 0xf003f
push esi
push esi
lea eax, [ebp - 0x100]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [ebp + 0x14], esi
je 0x4016c1
cmp eax, esi
jne 0x4016c1
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4016b8
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x4016c6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
lea eax, [ebp - 0x100]
push dword [ebp + 0xc]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0xc]
push esi
push eax
push esi
push 0xf003f
push esi
push esi
lea eax, [ebp - 0x100]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [ebp + 0x14], esi
je 0x401736
cmp eax, esi
jne 0x401736
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40172d
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret