joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439100
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
push esi
mov al, byte [esp + 0x1c]
push eax
lea eax, [esp + 8]
push eax
call fcn.004390c0
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x43916c
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x439149
cmp eax, 3
jbe 0x439161
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x439156
push eax
call sub.KERNEL32.dll_CloseHandle
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
sub ax, ax
pop esi
add esp, 0x10
ret 8

Function at 0x439190
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push esi
push edi
mov esi, dword [esp + 0x14]
push esi
mov word [esi + 6], 0xffff
call fcn.00438e60
lea eax, [esp + 8]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov eax, dword [esp + 0x1c]
push esi
mov eax, dword [eax]
push eax
call sub.KERNEL32.dll_ReadFile
mov edi, eax
push esi
call fcn.00438e20
cmp edi, 1
jne 0x4391d5
cmp word [esi + 6], 0xffff
jne 0x4391db
mov word [esi + 6], 0x23b
mov ax, word [esi + 6]
pop edi
pop esi
add esp, 4
ret 8

Function at 0x4392c0
Capabilities:
Contain obfuscated stackstrings
Read .ini file

Disassembly:
sub esp, 0x24
mov byte [esp + 8], 0x53
mov byte [esp + 9], 0x59
mov byte [esp + 0xa], 0x53
mov byte [esp + 0xb], 0x54
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xd], 0x4d
mov byte [esp + 0xe], 0x2e
mov byte [esp + 0xf], 0x49
mov byte [esp + 0x10], 0x4e
mov byte [esp + 0x11], 0x49
mov byte [esp + 0x12], 0
mov byte [esp + 0x14], 0x53
mov byte [esp + 0x15], 0x65
mov byte [esp + 0x16], 0x6e
mov byte [esp + 0x17], 0x74
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1a], 0x65
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x1c], 0x53
mov byte [esp + 0x1d], 0x65
mov byte [esp + 0x1e], 0x74
mov byte [esp + 0x1f], 0x75
mov byte [esp + 0x20], 0x70
mov byte [esp + 0x21], 0
mov byte [esp], 0x49
mov byte [esp + 1], 0x6f
lea eax, [esp + 8]
mov byte [esp + 2], 0x45
mov byte [esp + 3], 0x6e
mov byte [esp + 4], 0x74
mov byte [esp + 5], 0x72
mov byte [esp + 6], 0x79
mov byte [esp + 7], 0
push eax
lea eax, [esp + 4]
push 0
push eax
lea eax, [esp + 0x20]
push eax
call sub.KERNEL32.dll_GetPrivateProfileIntA
add esp, 0x24
ret
Function at 0x439390
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
sub esp, 0x58
push esi
mov byte [esp + 0x24], 0x53
mov byte [esp + 0x25], 0x79
mov byte [esp + 0x26], 0x73
mov byte [esp + 0x27], 0x74
sub si, si
mov byte [esp + 0x28], 0x65
mov byte [esp + 0x29], 0x6d
mov byte [esp + 0x2a], 0x5c
mov byte [esp + 0x2b], 0x43
mov byte [esp + 0x2c], 0x75
mov byte [esp + 0x2d], 0x72
mov byte [esp + 0x2e], 0x72
mov byte [esp + 0x2f], 0x65
mov byte [esp + 0x30], 0x6e
mov byte [esp + 0x31], 0x74
mov byte [esp + 0x32], 0x43
mov byte [esp + 0x33], 0x6f
mov byte [esp + 0x34], 0x6e
mov byte [esp + 0x35], 0x74
mov byte [esp + 0x36], 0x72
mov byte [esp + 0x37], 0x6f
mov byte [esp + 0x38], 0x6c
mov byte [esp + 0x39], 0x53
mov byte [esp + 0x3a], 0x65
mov byte [esp + 0x3b], 0x74
mov byte [esp + 0x3c], 0x5c
mov byte [esp + 0x3d], 0x53
mov byte [esp + 0x3e], 0x65
mov byte [esp + 0x3f], 0x72
mov byte [esp + 0x40], 0x76
mov byte [esp + 0x41], 0x69
mov byte [esp + 0x42], 0x63
mov byte [esp + 0x43], 0x65
mov byte [esp + 0x44], 0x73
mov byte [esp + 0x45], 0x5c
mov byte [esp + 0x46], 0x56
mov byte [esp + 0x47], 0x78
mov byte [esp + 0x48], 0x44
mov byte [esp + 0x49], 0x5c
mov byte [esp + 0x4a], 0x53
mov byte [esp + 0x4b], 0x65
mov byte [esp + 0x4c], 0x6e
mov byte [esp + 0x4d], 0x74
mov byte [esp + 0x4e], 0x69
mov byte [esp + 0x4f], 0x6e
mov byte [esp + 0x50], 0x65
mov byte [esp + 0x51], 0x6c
mov byte [esp + 0x52], 0x5c
mov byte [esp + 0x53], 0x53
mov byte [esp + 0x54], 0x65
mov byte [esp + 0x55], 0x74
mov byte [esp + 0x56], 0x75
mov byte [esp + 0x57], 0x70
mov byte [esp + 0x58], 0
mov byte [esp + 0x10], 0x49
mov byte [esp + 0x11], 0x6f
mov byte [esp + 0x12], 0x45
mov byte [esp + 0x13], 0x6e
mov byte [esp + 0x14], 0x74
mov byte [esp + 0x15], 0x72
mov byte [esp + 0x16], 0x79
mov byte [esp + 0x17], 0
mov dword [esp + 0xc], 0xa
mov dword [esp + 4], 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x28]
push eax
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyA
or eax, eax
jne 0x43952f
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.ADVAPI32.dll_RegQueryValueA
or eax, eax
jne 0x439525
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00437cc0
or al, al
je 0x439525
mov si, word [esp + 8]
mov eax, dword [esp + 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
mov ax, si
pop esi
add esp, 0x58
ret
Function at 0x43bde0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push esi
push edi
lea eax, [esp + 0xa]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push eax
push esi
call fcn.00439d40
mov eax, dword [esp + 0xc]
push 0xd
mov ax, word [eax + 4]
push eax
call fcn.0043b960
or al, al
jne 0x43be65
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.0043c6f0
or al, al
jne 0x43be65
mov eax, dword [esp + 0xc]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x10]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x18]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.0043c560
mov di, ax
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.0043c750
mov ax, di
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x43bef0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push esi
push edi
lea eax, [esp + 0xa]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
mov edi, dword [esp + 0x24]
push eax
mov esi, dword [esp + 0x24]
push edi
push esi
call fcn.00439d40
lea eax, [esp + 0xa]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
push esi
call fcn.00439d40
mov eax, dword [esp + 0xc]
push 0xe
mov ax, word [eax + 4]
push eax
call fcn.0043b960
or al, al
jne 0x43bf9d
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.0043c6f0
or al, al
jne 0x43bf9d
mov eax, dword [esp + 0xc]
mov ax, word [eax + 0xe]
push eax
mov eax, dword [esp + 0x10]
mov ax, word [eax + 0xc]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x18]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x1c]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x20]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x28]
push eax
push esi
call fcn.0043c5c0
mov di, ax
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.0043c750
mov ax, di
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x4432a6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4432c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00441338
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4432e9
test byte [esp + 8], 2
je 0x4432e9
call fcn.004413ab
mov dword [eax], 0xd
call fcn.004413b4
mov dword [eax], 5
jmp 0x4432c2
xor eax, eax
ret
Function at 0x444465
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x47d138
cmp edx, dword [eax]
je 0x444487
add eax, 8
inc ecx
cmp eax, str.__t__r_
jl 0x444478
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x47d138]
jne 0x4445b5
mov eax, dword [0x484130]
cmp eax, 1
je 0x44458f
test eax, eax
jne 0x4444b8
cmp dword [0x47c9a4], 1
je 0x44458f
cmp edx, 0xfc
je 0x4445b5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4444ef
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00440fa0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00440880
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x444532
lea eax, [ebp - 0x1a4]
push eax
call fcn.00440880
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x474978
push edi
call fcn.00441090
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00440fa0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00440fb0
lea eax, [ebp - 0xa0]
push 0x474958
push eax
call fcn.00440fb0
push dword [esi + 0x47d13c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00440fb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00448aa1
add esp, 0x2c
pop edi
jmp 0x4445b5
lea eax, [ebp + 8]
lea esi, [esi + 0x47d13c]
push 0
push eax
push dword [esi]
call fcn.00440880
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 0x44a8f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
push edi
push 0xc8
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
movsx eax, byte [ebp - 0xc8]
cmp eax, 0x41
jne 0x44a92c
mov al, byte [ebp - 0xc8]
mov ecx, dword [str.c:_flexlm_]
mov byte [ecx], al
lea eax, [ebp - 0x258]
push eax
push 0x101
call fcn.00415162
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0044a960
add esp, 8
call fcn.00415181
xor eax, eax
jmp 0x44a959
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44e270
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push ebx
push esi
push edi
cmp dword [0x482bc0], 0
je 0x44e299
mov eax, dword [0x482bc0]
movsx eax, byte [eax]
test eax, eax
jne 0x44e306
push 0xc8
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
movsx eax, byte [ebp - 0xc8]
cmp eax, 0x41
jne 0x44e2c5
mov dword [0x47e6f0], 0x47e70c
mov eax, dword [0x48a568]
add eax, 0xc8
push eax
movsx eax, byte [0x47e6e4]
push eax
mov eax, dword [str.exlm]
push eax
mov eax, dword [0x47e6ec]
push eax
mov eax, dword [0x47e6f0]
push eax
push str._s_s_s_c_s
push 0x4844c0
call fcn.004411d2
add esp, 0x1c
mov dword [0x482bc0], 0x4844c0
push 0x180
push 0x102
mov eax, dword [0x482bc0]
push eax
call fcn.00448c9f
add esp, 0xc
mov dword [0x486294], eax
cmp dword [0x486294], 0
jge 0x44e33a
mov eax, 0xffffffff
jmp 0x44e373
push 1
push 2
mov eax, dword [0x486294]
push eax
call fcn.00471ee0
add esp, 0xc
test eax, eax
je 0x44e36c
mov eax, dword [0x486294]
push eax
call fcn.00447f93
add esp, 4
mov eax, 1
jmp 0x44e373
xor eax, eax
jmp 0x44e373
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4631c7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [0x480894], 1
cmp dword [0x48a564], 0
je 0x4631f3
call fcn.00450140
cmp dword [ebp + 8], 0x18
je 0x46324a
cmp dword [ebp + 8], 0x17
jge 0x46324a
cmp dword [ebp + 8], 0
jle 0x46324a
cmp dword [0x47d6e0], 0
je 0x463228
cmp dword [ebp + 8], 0xf
je 0x46324a
push 0
push 1
call fcn.004635c2
add esp, 8
mov eax, dword [ebp + 8]
push eax
push str.EXITING_DUE_TO_SIGNAL__d_n
call fcn.0046376f
add esp, 8
jmp 0x46327a
cmp dword [ebp + 8], 0x18
jne 0x46327a
cmp dword [0x48a564], 0
je 0x46327a
push 0
push 1
call fcn.004635c2
add esp, 8
push str.daemon_shutdown_requested___shutting_down_n
call fcn.0046376f
add esp, 4
cmp dword [0x47d6e0], 0
je 0x463291
call fcn.0044d0d8
jmp 0x46329b
push 1
call fcn.00467ca2
add esp, 4
cmp dword [0x48a564], 0
jne 0x4632b5
cmp dword [0x47d6e0], 0
je 0x463326
push 0x4808e0
push 0x480888
call fcn.00468180
add esp, 8
push 0x4808e8
push 0x48088c
call fcn.00468180
add esp, 8
push str.on_exit
push 0x480890
call fcn.00468180
add esp, 8
call fcn.00465104
mov dword [ebp - 8], eax
jmp 0x463301
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x463326
mov eax, dword [ebp - 8]
mov dword [eax + 0x60], 0
mov eax, dword [ebp - 8]
push eax
call fcn.00465304
add esp, 4
jmp 0x4632f8
call fcn.00467c05
push 1
call fcn.0044e489
add esp, 4
cmp dword [ebp + 8], 0x18
jne 0x46334e
push 0x25
call fcn.004415c4
add esp, 4
jmp 0x46335a
mov eax, dword [ebp + 8]
push eax
call fcn.004415c4
add esp, 4
pop edi
pop esi
pop ebx
leave
ret
Function at 0x467190
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 4], 0
push 0
call fcn.00440798
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x18], 6
jne 0x4671ce
push 0xe
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004151f9
mov dword [ebp - 8], eax
jmp 0x4671e0
push 0x10
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004151f9
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4673ef
cmp dword [0x47d6e0], 0
je 0x4673ef
call fcn.00414fc1
cmp eax, 0x2740
jne 0x4673ef
mov eax, dword [ebp + 0x14]
mov ax, word [eax]
push eax
call fcn.004150ab
movzx eax, ax
cmp eax, 0x6978
jl 0x467242
mov eax, dword [ebp + 0x14]
mov ax, word [eax]
push eax
call fcn.004150ab
movzx eax, ax
mov ecx, dword [0x48a568]
cmp eax, dword [ecx + 0x2f0]
jle 0x4673ef
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
inc dword [ebp - 4]
cmp dword [ebp - 0x10], 0x4b
jg 0x4673ef
cmp dword [ebp - 4], 6
jne 0x46736e
push 0
push 1
call fcn.004635c2
add esp, 8
mov eax, dword [ebp + 0x14]
mov ax, word [eax]
push eax
call fcn.004150ab
movzx eax, ax
push eax
push str.The_TCP_port_number_in_the_license___d__is_already_in_use._n
call fcn.0046376f
add esp, 8
push 0
push 1
call fcn.004635c2
add esp, 8
push str.Possible_causes:__n
call fcn.0046376f
add esp, 4
push 0
push 1
call fcn.004635c2
add esp, 8
push str.___1__lmgrd_is_already_running_for_this_license._n
call fcn.0046376f
add esp, 4
push 0
push 1
call fcn.004635c2
add esp, 8
push str.___2__The_OS_has_not__cleared__this_port_since_lmgrd_died._n
call fcn.0046376f
add esp, 4
push 0
push 1
call fcn.004635c2
add esp, 8
push str.___3__Another_process_is_using_this_port_number__unlikely_._n
call fcn.0046376f
add esp, 4
push 0
push 1
call fcn.004635c2
add esp, 8
push str.Solutions:_n
call fcn.0046376f
add esp, 4
push 0
push 1
call fcn.004635c2
add esp, 8
push str.___1__Make_sure_lmgrd_and_all_vendor_daemons_for_this__n
call fcn.0046376f
add esp, 4
push 0
push 1
call fcn.004635c2
add esp, 8
push str.______license_are_not_running._n
call fcn.0046376f
add esp, 4
push 0
push 1
call fcn.004635c2
add esp, 8
push str.___2__You_may_have_to_wait_for_the_OS_to_clear_this_port._n
call fcn.0046376f
add esp, 4
push 0
push 1
call fcn.004635c2
add esp, 8
push str.Retrying_for_about_5_more_minutes_n
call fcn.0046376f
add esp, 4
jmp 0x4673da
push 0
call fcn.00440798
add esp, 4
sub eax, dword [ebp - 0xc]
cmp eax, 0x12c
jle 0x4673ae
push 0
push 1
call fcn.004635c2
add esp, 8
push str.Exiting_...__n
call fcn.0046376f
add esp, 4
push 0x1a
call fcn.004415c4
add esp, 4
jmp 0x4673da
mov ecx, 6
mov eax, dword [ebp - 4]
cdq
idiv ecx
test edx, edx
jne 0x4673da
push 0
push 1
call fcn.004635c2
add esp, 8
push str.Still_trying...__n
call fcn.0046376f
add esp, 4
push 3
mov eax, dword [0x48a568]
push eax
call fcn.0040cb5c
add esp, 8
jmp 0x4673f4
jmp 0x4673f9
jmp 0x4671ad
mov eax, dword [ebp - 8]
jmp 0x467401
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4089b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x461e7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00456e78
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408a32
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00454dc7
mov eax, dword [eax]
push 0x4761c0
push eax
call fcn.00447cc4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00457103
test bl, bl
je 0x408a32
push 0x4761c0
lea ecx, [esp + 0xc]
call fcn.00457493
push 0x479d10
lea ecx, [esp + 0xc]
call fcn.00457493
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x408a6e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00457103
jmp 0x408b39
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x408af2
lea edx, [esp + 0x7c]
push 0x479d0c
push edx
call fcn.00447cc4
add esp, 8
test eax, eax
je 0x408af2
lea eax, [esp + 0x7c]
push 0x479d08
push eax
call fcn.00447cc4
add esp, 8
test eax, eax
je 0x408af2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408a82
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00457103
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x409330
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409392
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4093a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x461efb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4801a0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x4094d8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409406
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00457103
xor eax, eax
jmp 0x40954f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00457240
push esi
lea ecx, [esp + 0xc]
call fcn.004574cf
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40952d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00409330
test eax, eax
jne 0x40952d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.00409330
test eax, eax
jne 0x40952d
lea eax, [esp + 0x14]
push 0x479d24
push eax
call fcn.00448d00
mov esi, eax
add esp, 8
test esi, esi
jne 0x40950c
lea ecx, [esp + 0x14]
push 0x479d20
push ecx
call fcn.00448c80
mov esi, eax
add esp, 8
test esi, esi
jne 0x40950c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40950f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004571f0
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40941e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00457103
xor eax, eax
jmp 0x40954f
mov byte [esi], 0
push 0x479d1c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00457103
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4

Function at 0x40f896
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3ac]
test eax, eax
jne 0x40f8be
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3ac], eax
pop esi
add esp, 0x190
ret
Function at 0x414a40
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x414aae
cmp si, 0x69
ja 0x414aae
add esi, 0xffd0
cmp si, 0x11
je 0x414a7e
push 0x11
call edi
test ax, ax
jge 0x414a7e
or esi, 0x2000
cmp si, 0x10
je 0x414a93
push 0x10
call edi
test ax, ax
jge 0x414a93
or esi, 0x4000
cmp si, 0x12
je 0x414aa8
push 0x12
call edi
test ax, ax
jge 0x414aa8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x414abb
mov esi, 0xbd
jmp 0x414a6f
cmp si, 0x6e
jne 0x414ac8
mov esi, 0xbe
jmp 0x414a6f
cmp si, 0x6f
jne 0x414a69
mov esi, 0xbf
jmp 0x414a6f

Function at 0x416070
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4907b0]
xor edx, edx
cmp eax, edx
jne 0x416096
xor eax, eax
mov byte [eax + 0x4906b0], al
inc eax
cmp eax, 0x100
jl 0x41607e
mov dword [0x4907b0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4906b0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x416127
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4160fa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4160c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4161a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4161f3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4161da
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret