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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004a3c68
test byte [ebp + 0xd], 0xc0
jne 0x4a2e20
mov eax, dword [0x4b1c78]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4a2e2d
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4a2e5a
je 0x4a2e6c
sub ecx, 0x100
je 0x4a2e7a
sub ecx, 0x100
je 0x4a2e81
sub ecx, 0x100
je 0x4a2e73
jmp 0x4a2e88
sub ecx, 0x600
je 0x4a2e81
sub ecx, 0x100
je 0x4a2e6c
jmp 0x4a2e88
mov edi, 1
jmp 0x4a2e8d
mov edi, 2
jmp 0x4a2e8d
mov edi, 4
jmp 0x4a2e8d
mov edi, 5
jmp 0x4a2e8d
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4a2eb4
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4b16f0]
test al, 0x80
je 0x4a2ead
mov ebx, 0x80
jmp 0x4a2ec6
mov ebx, 1
jmp 0x4a2ec6
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4a2ec6
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4a2ed8
je 0x4a2ee1
dec eax
je 0x4a2eea
jmp 0x4a2ef3
mov dword [ebp - 4], SysStringLen
jmp 0x4a2f02
mov dword [ebp - 4], 0x40000000
jmp 0x4a2f02
mov dword [ebp - 4], 0xc0000000
jmp 0x4a2f02
push 1
call fcn.004a4060
pop ecx
mov ebx, eax
jmp 0x4a2ff2
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4a2f1e
sub eax, 0x10
je 0x4a2f25
sub eax, 0x10
je 0x4a2f2e
sub eax, 0x10
je 0x4a2f37
jmp 0x4a2f37
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4a2f3e
mov dword [ebp - 8], 1
jmp 0x4a2f3e
mov dword [ebp - 8], 2
jmp 0x4a2f3e
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4a2fab
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4a2fa0
test byte [ebp + 0xd], 1
je 0x4a2f9b
mov ebx, 0x50
jmp 0x4a2fa0
mov ebx, 2
push ebx
call fcn.004a4060
pop ecx
mov ebx, eax
jmp 0x4a2ff2
mov edi, esi
push edi
call fcn.004a2d60
pop ecx
test eax, eax
je 0x4a2fbf
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4a2fcb
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004a3d88
add esp, 8
mov ebx, eax
inc eax
jne 0x4a2ff2
push 4
call fcn.004a4060
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004a3c9c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a7b98
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4a7bfa
call fcn.004a7b48
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004a1a64
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004a1a64
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4a7c78
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4b2b1c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4a7d52
cmp dword [0x4b2b18], 0
jne 0x4a7d52
cmp dword [0x4b2cfc], 0
je 0x4a7d0c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004a7a48
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4a7cf2
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004a7a48
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4a7cf2
lea ebx, [ebp - 0x84]
jmp 0x4a7cf3
inc ebx
call fcn.004a7c34
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4a7d8d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4b2b20
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004a1a64
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4b2b23
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4a7d8d
cmp dword [0x4b2b18], 0
je 0x4a7d6c
cmp dword [0x4b2b18], 0xffffffff
je 0x4a7d8d
push esi
call dword [0x4b2b18]
pop ecx
mov eax, dword [0x4b2b1c]
test eax, eax
je 0x4a7d8d
cmp dword [0x4b2b1c], 0xffffffff
je 0x4a7d8d
cmp byte [eax], 0
je 0x4a7d8d
push esi
push eax
call fcn.004a7b98
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401120
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4114f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x416420]
push str.http:__
lea ecx, [esp + 4]
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const__]
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 4]
mov dword [esp + 0x2c], 0
call dword [0x412048]
cmp dword [esp + 0x18], 8
mov eax, dword [esp + 4]
jae 0x401176
lea eax, [esp + 4]
push 1
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1c]
call fcn.00410fd7
add esp, 0x2c
ret

Function at 0x401740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x411603
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x412060]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x40e250
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x411c06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x1c]
push esi
mov esi, ecx
xor ecx, ecx
mov dword [esi], eax
push edi
mov dword [esp + 8], esi
mov dword [esi + 4], ecx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x28]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
lea eax, [esi + 0x44]
mov byte [esi + 0x3f], cl
mov dword [esi + 0x40], eax
lea edi, [esi + 0x40]
mov dword [eax + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [eax], edi
mov dword [eax + 4], ecx
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x2c]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x1c], 1
call fcn.0040d680
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18
Function at 0x410140
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xe4
cmp cl, 0x39
mov eax, 0x412603
mov dword [esp], eax
mov dword [esp + 4], 0x412a04
mov dword [esp + 8], 0x412a00
mov dword [esp + 0xc], 0x4129fc
mov dword [esp + 0x10], 0x4129f8
mov dword [esp + 0x14], 0x4129f4
mov dword [esp + 0x18], 0x4129f0
mov dword [esp + 0x1c], 0x4129ec
mov dword [esp + 0x20], 0x4129e8
mov dword [esp + 0x24], 0x4129e4
mov dword [esp + 0x28], 0x4129e0
mov dword [esp + 0x2c], 0x4129dc
mov dword [esp + 0x30], 0x4129d8
mov dword [esp + 0x34], 0x4129d4
mov dword [esp + 0x38], 0x4129d0
mov dword [esp + 0x3c], 0x4129cc
mov dword [esp + 0x40], str.____.___
mov dword [esp + 0x44], 0x4129bc
mov dword [esp + 0x48], 0x4126a4
mov dword [esp + 0x4c], 0x41276c
mov dword [esp + 0x50], 0x4129b8
mov dword [esp + 0x54], 0x4129b4
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x4129b0
mov dword [esp + 0x64], 0x4129ac
mov dword [esp + 0x68], 0x4129a8
mov dword [esp + 0x6c], 0x4129a4
mov dword [esp + 0x70], 0x4126a8
mov dword [esp + 0x74], 0x412694
mov dword [esp + 0x78], 0x412674
mov dword [esp + 0x7c], 0x412664
mov dword [esp + 0x80], 0x41265c
mov dword [esp + 0x84], 0x412654
mov dword [esp + 0x88], 0x412650
mov dword [esp + 0x8c], 0x4126a0
mov dword [esp + 0x90], 0x4129a0
mov dword [esp + 0x94], 0x41299c
mov dword [esp + 0x98], 0x412698
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0x412760
mov dword [esp + 0xc0], 0x412730
mov dword [esp + 0xc4], 0x412714
mov dword [esp + 0xc8], 0x412768
mov dword [esp + 0xcc], str.ZYXWVUTSRQPONMLKJIHGFEDCBA
mov dword [esp + 0xd0], 0x412758
mov dword [esp + 0xd4], str._:__n__
mov dword [esp + 0xd8], 0x41266c
mov dword [esp + 0xdc], 0x412734
mov dword [esp + 0xe0], 0x41273c
jae 0x41033c
movzx eax, cl
mov eax, dword [esp + eax*4]
add esp, 0xe4
ret
Function at 0x410370
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x98
mov eax, 0x903
mov word [esp + 8], ax
mov word [esp + 0xa], ax
mov eax, 0x9d7
mov word [esp + 0x20], ax
mov word [esp + 0x22], ax
mov eax, 0xa83
mov word [esp + 0x28], ax
mov word [esp + 0x2a], ax
mov eax, 0xb3e
mov word [esp + 0x38], ax
mov word [esp + 0x3a], ax
mov eax, 0xb40
mov word [esp + 0x3c], ax
mov word [esp + 0x3e], ax
mov eax, 0xb57
mov word [esp + 0x44], ax
mov word [esp + 0x46], ax
mov eax, 0xb83
mov word [esp + 0x48], ax
mov word [esp + 0x4a], ax
mov eax, 0xbd7
mov word [esp + 0x54], ax
mov word [esp + 0x56], ax
mov eax, 0xcbe
mov word [esp + 0x64], ax
mov word [esp + 0x66], ax
mov eax, 0xd57
mov word [esp + 0x80], ax
mov word [esp + 0x82], ax
mov eax, 0xf7f
mov word [esp], 0x300
mov word [esp + 2], 0x361
mov word [esp + 4], 0x483
mov word [esp + 6], 0x486
mov word [esp + 0xc], 0x93e
mov word [esp + 0xe], 0x940
mov word [esp + 0x10], 0x949
mov word [esp + 0x12], 0x94c
mov word [esp + 0x14], 0x982
mov word [esp + 0x16], 0x983
mov word [esp + 0x18], 0x9be
mov word [esp + 0x1a], 0x9c0
mov word [esp + 0x1c], 0x9c7
mov word [esp + 0x1e], 0x9cc
mov word [esp + 0x24], 0xa3e
mov word [esp + 0x26], 0xa40
mov word [esp + 0x2c], 0xabe
mov word [esp + 0x2e], 0xac0
mov word [esp + 0x30], 0xac9
mov word [esp + 0x32], 0xacc
mov word [esp + 0x34], 0xb02
mov word [esp + 0x36], 0xb03
mov word [esp + 0x40], 0xb47
mov word [esp + 0x42], 0xb4c
mov word [esp + 0x4c], 0xbbe
mov word [esp + 0x4e], 0xbbf
mov word [esp + 0x50], 0xbc1
mov word [esp + 0x52], 0xbcc
mov word [esp + 0x58], 0xc01
mov word [esp + 0x5a], 0xc03
mov word [esp + 0x5c], 0xc41
mov word [esp + 0x5e], 0xc44
mov word [esp + 0x60], 0xc82
mov word [esp + 0x62], 0xc83
mov word [esp + 0x68], 0xcc0
mov word [esp + 0x6a], 0xcc4
mov word [esp + 0x6c], 0xcc7
mov word [esp + 0x6e], 0xccb
mov word [esp + 0x70], 0xcd5
mov word [esp + 0x72], 0xcd6
mov word [esp + 0x74], 0xd02
mov word [esp + 0x76], 0xd03
mov word [esp + 0x78], 0xd3e
mov word [esp + 0x7a], 0xd40
mov word [esp + 0x7c], 0xd46
mov word [esp + 0x7e], 0xd4c
mov word [esp + 0x84], ax
mov word [esp + 0x86], ax
mov word [esp + 0x88], 0x20d0
mov word [esp + 0x8a], 0x20e1
cmp cx, 0x361
mov eax, 0xffff
mov word [esp + 0x94], ax
mov word [esp + 0x96], ax
mov word [esp + 0x8c], 0x3099
mov word [esp + 0x8e], 0x309a
mov word [esp + 0x90], 0xfe20
mov word [esp + 0x92], 0xfe23
lea eax, [esp + 2]
jbe 0x4105cc
add eax, 4
cmp word [eax], cx
jb 0x4105c4
sub eax, 2
cmp cx, word [eax]
jb 0x4105e3
cmp cx, word [eax + 2]
ja 0x4105e3
mov al, 1
add esp, 0x98
ret
xor al, al
add esp, 0x98
ret
Function at 0x41103e
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x412d40
call fcn.004112fc
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41107e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41107e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x411096
cmp eax, 0x20b
je 0x411083
mov dword [ebp - 0x1c], ebx
jmp 0x4110aa
cmp dword [ecx + 0x84], 0xe
jbe 0x41107e
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x4110a4
cmp dword [ecx + 0x74], 0xe
jbe 0x41107e
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4164bc], 0xffffffff
or dword [0x4164c0], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x4164b4]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x4164b0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4164b8], eax
call fcn.00411418
call fcn.004114b8
cmp dword [0x41643c], ebx
jne 0x41110a
push fcn.004114b8
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004114a6
push 0x416010
push 0x41600c
call sub.MSVCR71.dll__initterm
push 0x41145c
call fcn.00411276
mov eax, dword [0x4164ac]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4164a8]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x41115e
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x416008
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4111dc
cmp al, bl
je 0x411188
cmp dword [ebp - 0x20], ebx
jne 0x4111dc
mov al, byte [esi]
cmp al, bl
je 0x411198
cmp al, 0x20
ja 0x411198
inc esi
mov dword [ebp - 0x24], esi
jmp 0x411188
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x4111b4
movzx eax, word [ebp - 0x54]
jmp 0x4111b7
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.004014c0
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x4111d4
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x411231
cmp al, 0x22
jne 0x4111eb
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x4111fe
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x411176
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00411337
ret
Function at 0x40d2c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46abab
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.0045f459
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40d342
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045d370
mov eax, dword [eax]
push 0x7fb1f0
push eax
call fcn.0044ffa4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045f6e4
test bl, bl
je 0x40d342
push 0x7fb1f0
lea ecx, [esp + 0xc]
call fcn.0045fa74
push 0x7fed80
lea ecx, [esp + 0xc]
call fcn.0045fa74
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 0x40d37e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045f6e4
jmp 0x40d449
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 0x40d402
lea edx, [esp + 0x7c]
push 0x7fed7c
push edx
call fcn.0044ffa4
add esp, 8
test eax, eax
je 0x40d402
lea eax, [esp + 0x7c]
push 0x7fed78
push eax
call fcn.0044ffa4
add esp, 8
test eax, eax
je 0x40d402
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 0x40d392
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.0045f6e4
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 0x40dc40
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 0x40dca2
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 0x40dcb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ac2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x8052c0]
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 0x40dde8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40dd16
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045f6e4
xor eax, eax
jmp 0x40de5f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045f821
push esi
lea ecx, [esp + 0xc]
call fcn.0045fab0
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x7fedb8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40de3d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040dc40
test eax, eax
jne 0x40de3d
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 closesocket
mov ecx, edi
call fcn.0040dc40
test eax, eax
jne 0x40de3d
lea eax, [esp + 0x14]
push 0x7fed94
push eax
call fcn.00450fe0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40de1c
lea ecx, [esp + 0x14]
push 0x7fed90
push ecx
call fcn.00450f60
mov esi, eax
add esp, 8
test esi, esi
jne 0x40de1c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40de1f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045f7d1
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40dd2e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045f6e4
xor eax, eax
jmp 0x40de5f
mov byte [esi], 0
push 0x7fed8c
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.0045f6e4
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 0x4203a0
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 0x42040e
cmp si, 0x69
ja 0x42040e
add esi, 0xffd0
cmp si, 0x11
je 0x4203de
push 0x11
call edi
test ax, ax
jge 0x4203de
or esi, 0x2000
cmp si, 0x10
je 0x4203f3
push 0x10
call edi
test ax, ax
jge 0x4203f3
or esi, 0x4000
cmp si, 0x12
je 0x420408
push 0x12
call edi
test ax, ax
jge 0x420408
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42041b
mov esi, 0xbd
jmp 0x4203cf
cmp si, 0x6e
jne 0x420428
mov esi, 0xbe
jmp 0x4203cf
cmp si, 0x6f
jne 0x4203c9
mov esi, 0xbf
jmp 0x4203cf

Function at 0x421ac0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x815930]
xor edx, edx
cmp eax, edx
jne 0x421ae6
xor eax, eax
mov byte [eax + 0x815830], al
inc eax
cmp eax, 0x100
jl 0x421ace
mov dword [0x815930], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x815830
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x421b77
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 0x421b4a
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 0x421b18
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x421bf0
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 0x421c43
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 0x421c2a
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