joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460c40
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492210
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4bf454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0xd
push eax
call dword [sym.imp.USER32.dll_GetPriorityClipboardFormat]
mov esi, eax
test esi, esi
je 0x460d14
cmp esi, 0xffffffff
je 0x460d14
push dword [edi + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x460d14
push esi
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x460d0e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
lea ecx, [ebp - 0x20]
call fcn.0044cbc0
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00460d30
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.0044cd60
lea ecx, [ebp - 0x30]
call fcn.0044cd00
lea ecx, [ebp - 0x20]
call fcn.0044cd00
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.USER32.dll_CloseClipboard]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x460ec0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492268
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4bf454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.00460aa0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.0044d120
push dword [esi + 8]
lea edi, [eax*2 + 2]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x460f74
cmp dword [esi + 4], 0
je 0x460f2e
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
lea ecx, [ebp - 0x1c]
mov dword [esi + 4], eax
call fcn.00426960
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.00466c70
add esp, 0xc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 4]
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov bl, 1
jmp 0x460f76
xor bl, bl
lea ecx, [ebp - 0x1c]
call fcn.0044cd00
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x461c30
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4c1bd8]
sub esp, 0x28
test eax, eax
je 0x461c46
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, dword [ebp + 8]
push 0
mov dword [0x4c1bd8], 0
mov dword [0x4c1bdc], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push eax
push 0x461be0
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4c1bd8], eax
test eax, eax
je 0x461c7d
mov esp, ebp
pop ebp
ret
push 0x49bb3c
lea ecx, [ebp - 0x28]
call fcn.00462e80
push 0x4bbd64
lea eax, [ebp - 0x28]
push eax
call fcn.00466a95
int3
Function at 0x461f70
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492438
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4bf454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
cmp dword [edi + 4], 0
jne 0x461fb9
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x40], vtable.RegistryKey.0
mov bl, 1
call fcn.0044cc70
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x34]
push dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0
call dword [eax + 4]
lea ecx, [ebp - 0x34]
call fcn.0044d220
test al, al
jne 0x462011
push 0x5c
lea ecx, [ebp - 0x34]
call fcn.0044cf90
test al, al
jne 0x462011
push 0x4ab224
lea ecx, [ebp - 0x34]
call fcn.0044ced0
lea ecx, [ebp - 0x34]
call fcn.00426960
lea ecx, [ebp - 0x3c]
mov esi, eax
mov eax, dword [ebp - 0x38]
push ecx
push esi
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x46203f
lea eax, [ebp - 0x3c]
push eax
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
push 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], 0
call fcn.00462160
test al, al
je 0x4620bf
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x4620bf
lea eax, [ebp - 0xd]
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00461cb0
push 0
push dword [ebp - 0x24]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00462160
test esi, esi
je 0x4620b5
xor edi, edi
nop word [eax + eax]
mov ecx, dword [ebp - 0x24]
lea ecx, [edi + ecx]
call fcn.00426960
push eax
lea ecx, [ebp - 0x40]
call fcn.00461f70
neg al
lea edi, [edi + 0x10]
sbb al, al
and bl, al
sub esi, 1
jne 0x462090
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.0041e0f0
jmp 0x4620c1
xor bl, bl
mov eax, dword [edi + 4]
test eax, eax
jne 0x4620cc
xor dl, dl
jmp 0x4620db
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete dl
xor ecx, ecx
movzx eax, bl
test dl, dl
mov dword [ebp - 0x40], vtable.RegistryKey.0
cmovne ecx, eax
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x462109
cmp ecx, dword [ebp - 0x38]
je 0x462102
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x34]
call fcn.0044cd00
mov al, byte [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x462160
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492470
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4bf454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [esi + 4], 0
jne 0x4621a9
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x30]
call fcn.0044cc70
mov dword [ebp - 4], 0
mov edi, 0x400
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
push 0x401
mov ecx, eax
call fcn.0041c970
push edi
push dword [ebp - 0x20]
push ebx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
je 0x462237
cmp esi, 0xea
jne 0x462243
add edi, 0x400
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x20]
lea eax, [edi + 1]
push eax
call fcn.0041c970
mov eax, dword [ebp - 0x14]
push edi
push dword [ebp - 0x20]
push ebx
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x462202
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
push dword [ebp - 0x20]
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x462295
mov eax, dword [ebp - 0x18]
sub eax, ecx
sar eax, 1
lea edx, [eax + eax]
mov eax, ecx
cmp edx, 0x1000
jb 0x462276
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4622fd
push edx
push ecx
call fcn.00464d6f
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
test esi, esi
jne 0x4622cf
mov edi, dword [ebp - 0x10]
cmp dword [ebp + 8], esi
je 0x4622b1
mov esi, dword [edi]
lea ecx, [ebp - 0x30]
call fcn.00426960
push eax
mov ecx, edi
call dword [esi + 4]
add edi, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], edi
inc ebx
call fcn.0044cd00
mov esi, dword [ebp - 0x14]
jmp 0x4621b1
lea ecx, [ebp - 0x30]
call fcn.0044cd00
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4622e0
mov dword [eax], ebx
cmp esi, 0x103
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004715c1
int3

Function at 0x462640
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 4]
test edx, edx
jne 0x462650
xor al, al
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push edi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x462657
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop edi
sete al
pop ebp
ret 8
Function at 0x462c10
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x4bf454]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x194]
movzx ecx, byte [ebp + 8]
push eax
movzx eax, byte [ebp + 0xc]
shl cx, 8
or cx, ax
mov dword [esi], vtable.WsaStartup.0
movzx eax, cx
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x462c63
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00464d5e
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x1a8]
push 0x49bcf8
push eax
call fcn.0044d560
add esp, 8
lea eax, [ebp - 0x1a8]
push 0x4bbb64
push eax
call fcn.00466a95
int3

Function at 0x463160
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492598
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x4bf454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
call fcn.00489870
push dword [ebp + 8]
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
mov dword [ebx], vtable.WinCommandLineArgs.0
call fcn.0044cbc0
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.004500b0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0044cd00
lea ecx, [ebp - 0x34]
call fcn.0044d120
test eax, eax
je 0x463279
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x34]
call fcn.00426960
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x463297
xor edi, edi
cmp dword [ebp - 0x10], edi
jle 0x463272
nop word [eax + eax]
push dword [esi + edi*4]
lea ecx, [ebp - 0x44]
call fcn.00450120
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.0044cc70
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x44]
call fcn.004502c0
lea ecx, [ebp - 0x24]
call fcn.0044d120
test eax, eax
je 0x463258
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x24]
push ecx
cmp dword [ebx + 0xc], eax
je 0x46324c
mov ecx, eax
call fcn.0044cb50
add dword [ebx + 8], 0x10
jmp 0x463255
push eax
lea ecx, [ebx + 4]
call fcn.0041e1d0
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.0044cd00
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00450260
inc edi
cmp edi, dword [ebp - 0x10]
jl 0x463200
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x34]
call fcn.00450260
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x48]
push 0x49becc
push eax
call fcn.0044d560
add esp, 8
lea eax, [ebp - 0x48]
push 0x4bbb64
push eax
call fcn.00466a95
int3
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x4df990
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x89000]
push edi
jmp 0x4df9aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4df9b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4df9a0
mov eax, 1
add ebx, ebx
jne 0x4df9c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4df9d4
jne 0x4df9f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4df9f3
dec eax
add ebx, ebx
jne 0x4df9e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4df9b8
add ebx, ebx
jne 0x4df9ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4dfa45
xor ecx, ecx
sub eax, 3
jb 0x4dfa0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4dfa7a
sar eax, 1
mov ebp, eax
jmp 0x4dfa16
add ebx, ebx
jne 0x4dfa16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4df9e4
inc ecx
add ebx, ebx
jne 0x4dfa24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4df9e4
add ebx, ebx
jne 0x4dfa31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4dfa26
jne 0x4dfa42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4dfa26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4dfa64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4dfa56
jmp 0x4df9a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4dfa64
add edi, ecx
jmp 0x4df9a6
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4dfa82
cmp byte [edi], 0x11
jne 0x4dfa82
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4dfa87
lea edi, [esi + 0xd8000]
mov eax, dword [edi]
or eax, eax
je 0x4dfaff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe6320]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe649c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4dfab4
mov ecx, edi
jns 0x4dfae3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe64a0]
or eax, eax
je 0x4dfaf9
mov dword [ebx], eax
add ebx, 4
jmp 0x4dfad1
call dword [esi + 0xe64b0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4dfb30
cmp al, 0xef
ja 0x4dfb23
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4dfb05
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4dfb12
mov ebp, dword [esi + 0xe64a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4dfb64
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x401937
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, section..data
mov ecx, 0x73e2
mov esi, 0x375e30
imul ecx, ecx, 0x19660d
add ecx, 0x3c6ef35f
mov edx, ecx
shr edx, 0xc
xor byte [eax], dl
inc eax
dec esi
jne 0x401947
pop esi
ret

Function at 0x401aa3
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
push ebx
mov ebx, eax
push esi
mov esi, dword [ebx + 0x3c]
add esi, ebx
movzx eax, word [esi + 0x14]
push edi
lea edi, [eax + esi + 0x18]
xor eax, eax
cmp ax, word [esi + 6]
jae 0x401aea
push 7
push str..custom
push edi
call fcn.0040161c
add esp, 0xc
test eax, eax
je 0x401af1
movzx eax, word [esi + 6]
inc dword [ebp - 4]
add edi, 0x28
cmp dword [ebp - 4], eax
jl 0x401ac7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [edi + 0xc]
mov esi, dword [eax + ebx]
lea edi, [eax + ebx + 8]
mov ebx, dword [eax + ebx + 4]
push esi
call fcn.00401e30
and dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 8]
push ecx
push 1
push 5
push edi
lea ecx, [ebp - 0xc]
push ecx
add edi, 5
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], 0x401960
mov dword [ebp - 0x14], 0x40196b
call fcn.0040379c
add esp, 0x28
test eax, eax
je 0x401b51
push dword [ebp - 4]
call fcn.00401e47
pop ecx
jmp 0x401aea
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp - 4]
jmp 0x401aec

Function at 0x401d84
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
xor esi, esi
test ebx, ebx
je 0x401dc3
push edi
mov edi, dword [esp + 0x14]
sub edi, 0x116ee38
imul edx, edx, 0x19660d
add edx, 0x3c6ef35f
mov eax, edx
shr eax, 0xc
xor al, byte [edi + esi + 0x116ee38]
inc esi
mov byte [esi + 0x116ee37], al
cmp esi, ebx
jb 0x401d9f
pop edi
pop esi
mov byte [ebx + 0x116ee38], 0
mov eax, 0x116ee38
pop ebx
ret

Function at 0x401dd2
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
je 0x401e10
mov eax, dword [esp + 0x10]
sub eax, 0x116ee38
push ebx
imul edx, edx, 0x19660d
add edx, 0x3c6ef35f
mov ebx, edx
shr ebx, 0xc
xor bl, byte [eax + esi + 0x116ee38]
inc esi
mov byte [esi + 0x116ee37], bl
cmp esi, edi
jb 0x401dec
pop ebx
mov byte [edi + 0x116ee38], 0
mov byte [edi + 0x116ee39], 0
pop edi
mov eax, 0x116ee38
pop esi
ret
Function at 0x40320c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40500c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4032a4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403284
xor eax, eax
push ebp
push 0x40327d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4032c0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403284
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40500c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40500c], ax
mov esp, ebp
pop ebp
ret

Function at 0x40390c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x406034], 0
je 0x40396d
cmp word [0x406208], 0xd7b2
jne 0x403935
cmp dword [0x406210], 0
jbe 0x403935
mov eax, 0x406204
call dword [0x406220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x405058
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403994
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x405018], 0
jne 0x403989
push 0
push 0x405050
push 0x405058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403ec4
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 0x403f2a
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.00403b90
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f5c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403f14
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403f31
lea eax, [ebp - 0x10]
call fcn.00403a90
ret
Function at 0x10011620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100578ce
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10083a30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 4]
cmp dword [ecx + 0x16], 0
mov eax, 0x32
je 0x1001172e
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp + 8]
call fcn.10055012
mov edi, dword [esi + 4]
mov dword [ebp - 4], 0
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::getBinary_void_
cmp dword [edi + 0x12], eax
setne al
cmp byte [ebp + 0xc], 0
je 0x10011692
test al, al
je 0x10011692
mov eax, dword [edi + 0x22]
push eax
lea ecx, [ebp + 8]
call fcn.10055012
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x12]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 8]
call fcn.10055012
mov edi, eax
test edi, edi
jne 0x100116d7
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100116d7
mov edx, dword [esi + 4]
mov ecx, dword [edx + 0x16]
mov edx, dword [ebp - 0x14]
push ecx
push 1
push eax
push edx
call dword [sym.imp.msvcr100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x100116d7
mov edi, 0x34
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x16]
push ecx
call dword [sym.imp.msvcr100.dll_ferror]
add esp, 4
test eax, eax
je 0x10011702
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x16]
push eax
call dword [sym.imp.msvcr100.dll_clearerr]
add esp, 4
mov edi, 0x34
jmp 0x1001171d
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x16]
push edx
call dword [sym.imp.msvcr100.dll_ftell]
mov esi, dword [esi + 4]
add esp, 4
cmp eax, dword [esi + 0x1a]
jle 0x1001171d
mov dword [esi + 0x1a], eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sym.ScCore.dll_public:_void___thiscall_ScCore::String::destructor_void_
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8