joyce8/EMBER2024-capa huggingface dataset:
Function at 0x589900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov edx, dword [edi + 8]
mov ecx, dword [edi + 4]
xor esi, esi
test edx, edx
jbe 0x589937
xor eax, eax
mov al, byte [ecx]
mov ebx, eax
xor ebx, esi
xor ebx, 0x946a4f
shl ebx, 8
add ebx, esi
xor ebx, 0x573ed587
add ebx, eax
inc ecx
dec edx
mov esi, ebx
jne 0x589916
mov ebx, 0x631de0
mov dword [ebp + 8], ebx
mov ecx, dword [ebp + 8]
mov edx, 1
xchg dword [ecx], edx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
test eax, eax
jne 0x589969
mov dword [0x631df4], str.C:4017_buildmysql_4.0.17innobasecomcom0shm.c
mov dword [0x631df8], 0x237
jmp 0x58997c
push 0x237
push str.C:4017_buildmysql_4.0.17innobasecomcom0shm.c
push ebx
call fcn.0051e0f0
add esp, 0xc
mov dword [edi + 0x2c], 0
mov ecx, dword [0x631e1c]
mov eax, esi
xor eax, 0x62946a4f
xor edx, edx
div dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [eax + edx*4]
test ecx, ecx
lea eax, [eax + edx*4]
jne 0x5899a5
mov dword [eax], edi
jmp 0x5899b8
mov eax, dword [ecx + 0x2c]
test eax, eax
je 0x5899b5
mov ecx, eax
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x5899ac
mov dword [ecx + 0x2c], edi
mov edx, dword [0x631e10]
mov ecx, dword [0x631e18]
inc edx
mov dword [0x631e10], edx
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], 0
mov eax, dword [0x631e18]
test eax, eax
je 0x5899e1
mov dword [eax + 0x28], edi
mov eax, dword [0x631e14]
test eax, eax
mov dword [0x631e18], edi
jne 0x5899f6
mov dword [0x631e14], edi
mov dword [ebp + 8], ebx
mov edx, 0
mov ecx, dword [ebp + 8]
xchg dword [ecx], edx
mov eax, dword [0x631de4]
test eax, eax
je 0x589a15
push ebx
call fcn.0051e330
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x59b55a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x59b57a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005998c3
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x59b59d
test byte [esp + 8], 2
je 0x59b59d
call fcn.00599936
mov dword [eax], 0xd
call fcn.0059993f
mov dword [eax], 5
jmp 0x59b576
xor eax, eax
ret

Function at 0x59f4f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x621268
cmp edx, dword [eax]
je 0x59f516
add eax, 8
inc ecx
cmp eax, 0x6212f8
jl 0x59f507
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x621268]
jne 0x59f644
mov eax, dword [0x6316d8]
cmp eax, 1
je 0x59f61e
test eax, eax
jne 0x59f547
cmp dword [0x620d94], 1
je 0x59f61e
cmp edx, 0xfc
je 0x59f644
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x59f57e
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.005a37b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0059f2c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x59f5c1
lea eax, [ebp - 0x1a4]
push eax
call fcn.0059f2c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5daf84
push edi
call fcn.0059d620
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.005a37b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.005a37c0
lea eax, [ebp - 0xa0]
push 0x5d6e14
push eax
call fcn.005a37c0
push dword [esi + 0x62126c]
lea eax, [ebp - 0xa0]
push eax
call fcn.005a37c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.005a69fe
add esp, 0x2c
pop edi
jmp 0x59f644
lea eax, [ebp + 8]
lea esi, [esi + 0x62126c]
push 0
push eax
push dword [esi]
call fcn.0059f2c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x5a8dff
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x5a8e2a
test byte [esp + 8], 0x80
je 0x5a8e19
and al, 0xfe
jmp 0x5a8e1b
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x5a8e3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005998c3
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x10001ce0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], 1
test byte [0x10004048], 8
jne 0x10001db8
test ebx, ebx
je 0x10001e00
cmp word [ebx], 0
je 0x10001e00
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcsrchr]
test eax, eax
je 0x10001d37
cmp word [eax + 2], 0
lea ebx, [eax + 2]
je 0x10001e00
cmp esi, 1
mov eax, 0x80000001
lea edx, [ebp - 0x10]
mov dword [esp + 4], 0x10006300
sbb eax, 0xffffffff
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x10001df0
lea eax, [ebp - 0xc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x10]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret 8
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s___d__n
mov dword [esp + 8], str.WerAddExcludedApplication
mov dword [esp + 4], 0x10004048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001d02
mov esi, 0x80070005
jmp 0x10001da8
mov esi, 0x80070057
jmp 0x10001da8

Function at 0x10001e10
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x10004048], 8
jne 0x10001ec8
test ebx, ebx
je 0x10001f10
cmp word [ebx], 0
je 0x10001f10
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcsrchr]
test eax, eax
je 0x10001e60
cmp word [eax + 2], 0
lea ebx, [eax + 2]
je 0x10001f10
cmp esi, 1
mov eax, 0x80000001
lea edx, [ebp - 0xc]
mov dword [esp + 4], 0x10006300
sbb eax, 0xffffffff
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
test eax, eax
jne 0x10001f00
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov ebx, eax
mov eax, dword [ebp - 0xc]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, 0x800700cb
sub esp, 4
test ebx, ebx
cmovne ebx, eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s___d__n
mov dword [esp + 8], str.WerRemoveExcludedApplication
mov dword [esp + 4], 0x10004048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001e2b
mov ebx, 0x80070005
jmp 0x10001eb8
mov ebx, 0x80070057
jmp 0x10001eb8
Function at 0x10002ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10002f18
cmp byte [esi + ebx - 1], 0xa
je 0x10002eec
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10004118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x403af7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x45b170]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xd], 0
je 0x403b5d
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea edi, [eax + 1]
mov eax, edi
call fcn.00443680
mov ebx, esp
test ebx, ebx
je 0x403b5d
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esi + 0xd]
push ebx
add ecx, 0x133
call fcn.00434e8e
mov ecx, dword [esi + 0xd]
push ecx
mov eax, dword [ecx]
push 0
push 0
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00417bae
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004363cf
leave
ret
Function at 0x40bb99
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x309], 0
je 0x40bc01
cmp dword [ebp + 8], 0x100
jne 0x40bbf1
cmp byte [ebp + 0xc], 0xd
jne 0x40bbf1
cmp byte [esi + 0x30f], 0
je 0x40bbd6
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x40bbf1
cmp byte [esi + 0x310], 0
jne 0x40bbf1
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x40bbed
push ecx
push 0
push 0
push str.return
push esi
call fcn.00417bae
xor eax, eax
jmp 0x40bc04
mov eax, dword [esi + 0x309]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebp
ret 0x10
Function at 0x414328
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 8]
push ebx
mov edx, eax
push esi
shr edx, 0x10
push edi
mov esi, ecx
test dx, dx
je 0x414364
cmp byte [eax], 0x3c
jne 0x41435b
push eax
call fcn.00418859
test al, al
jne 0x4143f4
xor eax, eax
jmp 0x414404
push ecx
push eax
call fcn.0041897b
jmp 0x41434c
mov ecx, dword [0x45e568]
mov ebx, dword [ebp + 0xc]
push ebx
test ecx, ecx
cmove ecx, dword [0x45e56c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x414354
mov eax, dword [0x45e568]
test eax, eax
cmove eax, dword [0x45e56c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4143ac
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x414354
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xa7], eax
mov eax, dword [0x45e568]
push ecx
test eax, eax
cmove eax, dword [0x45e56c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, esi
call fcn.004188a8
test al, al
je 0x414354
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [esi + 0xab], ebx
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0041440d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4157f2
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
xor esi, esi
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x415815
or esi, 1
push 1
call edi
test ax, ax
jns 0x415821
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x41582d
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x415839
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x416017
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0xd5], ebx
jle 0x41605a
mov eax, dword [esi + 0xd1]
lea edx, [ebp + 0xb]
push edx
push dword [ebp + 0x10]
mov byte [ebp + 0xb], 0
mov ecx, dword [eax + ebx*4]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push edi
call dword [eax]
cmp byte [ebp + 0xb], 0
jne 0x4160b3
inc ebx
cmp ebx, dword [esi + 0xd5]
jl 0x41602f
sub edi, 0x100
je 0x41610b
sub edi, 4
je 0x4160b7
dec edi
dec edi
jne 0x416102
push dword [ebp + 0xc]
mov word [ebp + 8], di
call fcn.00437556
pop ecx
mov ecx, dword [esi + 0x51]
push 0x8000000a
lea edx, [ebp + 8]
mov byte [ebp + 8], al
mov eax, dword [ecx]
push edx
push 0x418420
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x416102
mov edx, dword [esi]
mov ecx, esi
call dword [edx + pe_nt_image_headers32]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x416104
cmp dword [esi + 0x55], 0
je 0x416102
xor eax, eax
push 6
pop edx
mov ecx, edx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0xc], al
mov eax, dword [esi + 0x65]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x69]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], eax
call fcn.004157f2
mov word [ebp - 0xb], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x55]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x416102
mov ecx, dword [esi + 0x55]
test ecx, ecx
je 0x416158
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x416158
mov ecx, dword [esi + 0x55]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x416158
mov ecx, dword [esi + 0x55]
mov eax, dword [ecx]
call dword [eax + 0xc]
push str.RichEditUI
push eax
call fcn.00436876
pop ecx
pop ecx
test eax, eax
je 0x416158
mov eax, dword [esi + 0x55]
cmp byte [eax + 0x30e], 0
jne 0x416102
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns al
movzx eax, al
push eax
mov ecx, esi
call fcn.00417a86
jmp 0x4160b3
Function at 0x4176ff
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [ebp + 8]
cmp eax, dword [ebx]
je 0x41772b
cmp esi, dword [ebx + 0x55]
je 0x4177fb
push dword [ebx]
call dword [sym.imp.USER32.dll_SetFocus]
cmp esi, dword [ebx + 0x55]
je 0x4177fb
cmp dword [ebx + 0x55], 0
je 0x417785
push 6
xor eax, eax
pop ecx
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x10], 0x14
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x55]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
call dword [eax + 0x108]
xor edi, edi
push ecx
push edi
push edi
push 0x45065c
push dword [ebx + 0x55]
mov ecx, ebx
call fcn.00417bae
mov dword [ebx + 0x55], edi
test esi, esi
je 0x4177fb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x4177fb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc8]
test al, al
je 0x4177fb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd4]
test al, al
je 0x4177fb
push 6
xor eax, eax
pop ecx
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebx + 0x55], esi
mov dword [esp + 0x10], 0x15
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x55]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
call dword [eax + 0x108]
push ecx
push 0
push 0
push 0x450668
push dword [ebx + 0x55]
mov ecx, ebx
call fcn.00417bae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41897b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x45b170]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
call fcn.00418a91
push 0x45d3a0
lea ecx, [ebp - 0x48]
call fcn.00434cf7
mov eax, dword [0x45d3e8]
cmp byte [eax], 0
jne 0x418a74
test esi, esi
je 0x4189c0
push esi
lea ecx, [ebp - 0x48]
call fcn.00434d28
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
push esi
cmp ebx, 0xffffffff
jne 0x4189ea
push str.Error_opening_file
jmp 0x418a51
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x4189ff
push eax
push str.File_is_empty
jmp 0x418a51
cmp esi, 0x400000
jbe 0x418a10
push 0
push str.File_too_large
jmp 0x418a51
and dword [ebp - 0x50], 0
push esi
call fcn.00436372
pop ecx
push 0
lea ecx, [ebp - 0x50]
push ecx
push esi
push eax
push ebx
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x50], esi
je 0x418a5c
mov esi, dword [ebp - 0x4c]
push esi
call fcn.00436fe4
pop ecx
mov ecx, edi
call fcn.00418a91
push 0
push str.Could_not_read_file
mov ecx, edi
call fcn.0041928b
mov bl, al
jmp 0x418a76
push ecx
push esi
mov esi, dword [ebp - 0x4c]
push esi
mov ecx, edi
call fcn.004188a8
push esi
mov bl, al
call fcn.00436fe4
pop ecx
jmp 0x418a76
xor bl, bl
lea ecx, [ebp - 0x48]
call fcn.00434d18
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004363cf
leave
ret 8
Function at 0x4204c3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push str.click
mov ecx, edi
call fcn.00434f00
test al, al
je 0x420536
mov eax, dword [edi + 0x88]
cmp eax, dword [esi + 0x215]
je 0x420527
cmp eax, dword [esi + 0x219]
je 0x420527
cmp eax, dword [esi + 0x21d]
jne 0x420513
xor eax, eax
push eax
push eax
push eax
push str.http:__www.harxon.com
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x420536
cmp eax, dword [esi + 0x221]
jne 0x420536
xor eax, eax
push eax
push eax
push eax
push str.mailto:sales_harxon.com
jmp 0x420505
push 0
push 2
push 0x10
push dword [esi - 0x19]
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov ecx, esi
call fcn.00436062
pop edi
pop esi
pop ebp
ret 4
Function at 0x4226dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x45b170]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x208]
push eax
push 0x20019
push 0
push str.SoftwareConfigD
push 0x80000001
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4228d5
push ebx
mov eax, 0x100
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x210]
push eax
xor ecx, ecx
lea eax, [ebp - 0x204]
push eax
push ecx
push ecx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x104]
push eax
push ecx
push dword [ebp - 0x208]
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x4228c8
push edi
push 5
lea eax, [ebp - 0x104]
push str.Baud
push eax
call fcn.004418b1
add esp, 0xc
test eax, eax
jne 0x4227d4
lea eax, [ebp - 0x204]
push eax
call fcn.00436859
mov edi, eax
pop ecx
test edi, edi
js 0x42287d
mov ecx, dword [esi + 0x4af]
add ecx, 0x2d5
mov edx, dword [ecx]
call dword [edx + 0xc]
cmp edi, eax
jge 0x42287d
mov ecx, dword [esi + 0x4af]
add ecx, 0x2d5
push edi
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xd0]
mov ecx, dword [esi + 0x4af]
jmp 0x422839
push 5
lea eax, [ebp - 0x104]
push str.Port
push eax
call fcn.004418b1
add esp, 0xc
test eax, eax
jne 0x422849
lea eax, [ebp - 0x204]
push eax
call fcn.00436859
mov edi, eax
pop ecx
test edi, edi
js 0x42287d
mov ecx, dword [esi + 0x4ab]
add ecx, 0x2d5
mov edx, dword [ecx]
call dword [edx + 0xc]
cmp edi, eax
jge 0x42287d
mov ecx, dword [esi + 0x4ab]
add ecx, 0x2d5
push edi
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xd0]
mov ecx, dword [esi + 0x4ab]
add ecx, 0x305
push 0
mov eax, dword [ecx]
push edi
call dword [eax + 8]
jmp 0x42287d
push 8
lea eax, [ebp - 0x104]
push str.Chinese
push eax
call fcn.004418b1
add esp, 0xc
test eax, eax
jne 0x42287d
lea eax, [ebp - 0x204]
push eax
call fcn.00436859
dec eax
neg eax
sbb al, al
inc al
pop ecx
mov byte [esi + 0x34e], al
mov eax, 0x100
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x104]
push eax
inc ebx
push ebx
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x422765
pop edi
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004363cf
leave
ret
Function at 0x423762
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov eax, ecx
push 1
push str.main
lea ecx, [eax + 0x14a]
mov dword [esp + 0x14], eax
call fcn.00435319
mov ecx, dword [esp + 0xc]
mov ebx, eax
lea edi, [ebx + 0x2d5]
mov esi, dword [edi]
call fcn.00420dd8
push eax
mov ecx, edi
call dword [esi + 0x10]
mov ecx, dword [esp + 0xc]
mov esi, dword [edi]
call fcn.00421087
push eax
mov ecx, edi
call dword [esi + 0x10]
mov ecx, dword [esp + 0xc]
mov esi, dword [edi]
call fcn.00421678
push eax
mov ecx, edi
call dword [esi + 0x10]
push ebx
mov ebx, dword [esp + 0x10]
mov ecx, ebx
call fcn.004211b9
mov ecx, ebx
call fcn.00427df8
mov ecx, ebx
call fcn.00423592
cmp byte [ebx + 0x34e], 0
mov ecx, ebx
sete al
mov byte [ebx + 0x34e], al
call fcn.00428a9d
xor eax, eax
push eax
push eax
push ebx
push 0x4293a7
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4269f7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x45b170]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x4ab]
lea edx, [ebp - 0x48]
mov eax, dword [ecx]
xor ebx, ebx
push edx
mov dword [ebp - 0x4c], ebx
call dword [eax + 0x28]
mov eax, dword [eax]
add eax, 4
push eax
call fcn.00436859
pop ecx
lea ecx, [ebp - 0x48]
mov dword [esi + 0x339], eax
call fcn.00434d18
cmp byte [ebp + 8], bl
je 0x426a46
mov eax, 0x1c200
jmp 0x426a64
mov ecx, dword [esi + 0x4af]
lea edx, [ebp - 0x48]
mov eax, dword [ecx]
push edx
mov dword [ebp - 0x4c], 1
call dword [eax + 0x28]
push dword [eax]
call fcn.00436859
pop ecx
test byte [ebp - 0x4c], 1
mov dword [esi + 0x33d], eax
je 0x426a78
lea ecx, [ebp - 0x48]
call fcn.00434d18
sub esp, 0x14
push dword [esi + 0x33d]
lea edi, [esi + 0x4e7]
push dword [esi + 0x339]
mov ecx, edi
call fcn.0042cee4
test eax, eax
je 0x426ab0
push ebx
push ebx
push edi
push 0x42d0e7
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [edi + 8], eax
setne bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004363cf
leave
ret 4