joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4545c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x50c0b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x40], 0
je 0x454600
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x45460c
mov al, 1
jmp 0x4547b1
mov dword [ebp - 0x54], 8
call fcn.0043d4c0
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.0043d4c0
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.0043d540
add esp, 8
movzx eax, al
test eax, eax
je 0x45464f
xor al, al
jmp 0x4547b1
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00454340
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x28]
call fcn.0043a1c0
mov ecx, eax
call fcn.004319e0
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.0044abe0
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.0043a1c0
mov ecx, eax
call fcn.004319e0
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x40]
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4546cb
cmp dword [ebp - 0x38], 1
je 0x4546d2
cmp dword [ebp - 0x38], 3
je 0x45476d
jmp 0x454785
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x45], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0043a1c0
mov ecx, eax
call fcn.004319e0
mov edx, dword [ebp - 0x44]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x454736
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.0043a1c0
mov ecx, eax
call fcn.004319e0
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x454736
mov byte [ebp - 0x2f], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0042a460
mov al, byte [ebp - 0x2f]
jmp 0x4547b1
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x454759
mov byte [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0042a460
mov al, byte [ebp - 0x30]
jmp 0x4547b1
cmp dword [ebp - 0x34], 0
jne 0x45476b
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00439980
jmp 0x45479d
mov byte [ebp - 0x2e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0042a460
mov al, byte [ebp - 0x2e]
jmp 0x4547b1
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0042a460
mov al, byte [ebp - 0x2d]
jmp 0x4547b1
jmp 0x454662
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049a2a4
mov esp, ebp
pop ebp
ret
Function at 0x4556b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
push 0
call fcn.00455690
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jg 0x455719
jl 0x4556e1
cmp dword [ebp - 0xc], 0
jae 0x455719
push 0
call fcn.00455690
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jg 0x455719
jl 0x455703
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x1c]
jae 0x455719
push str.LOGGING_LIB_internal_error___should_NEVER_happen._Please_report_this_to_the_author_of_the_lib
call dword [sym.imp.MSVCR110.dll_printf]
add esp, 4
push 0
call dword [sym.imp.MSVCR110.dll_exit]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x4561d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 1
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0043a470
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret 4

Function at 0x456200
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1d83
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x50c0b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
push 0x18
call sub.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x456253
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00422f50
mov dword [ebp - 0x14], eax
jmp 0x45625a
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0x456350
push 0
push 0
call dword [sym.imp.MSVCR110.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x45629a
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x456300
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
call fcn.0047b2d0
cmp eax, 1
jne 0x456339
push 0
push str.Progman
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x456339
push 0
push 0
push 0x12
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 4
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov esp, ebp
pop ebp
ret
Function at 0x470c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x470cf1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x470cbf
cmp eax, 2
jne 0x470cdb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x470ceb
test ecx, ecx
je 0x470ce6
test cl, 1
jne 0x470cdb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x470ceb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x472600
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0049a8f0
mov eax, dword [0x50c0b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor bl, bl
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 0
test eax, eax
je 0x4727d3
push esi
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerRunMRU
push 0x80000001
lea ecx, [ebp - 0x1020]
call fcn.00451d30
mov esi, dword [ebp - 0x1020]
test eax, eax
jne 0x4727b6
push edi
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
mov bl, 1
call sub.MSVCR110.dll_memset
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0x18
xor edi, edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x804]
push eax
push edi
push esi
mov dword [ebp - 0x1008], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4727b5
lea esp, [esp]
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x1014]
push eax
push 0
lea eax, [ebp - 0x804]
push eax
push esi
mov dword [ebp - 0x100c], 0x800
mov dword [ebp - 0x1008], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x472784
mov eax, dword [ebp - 0x1014]
cmp eax, 1
je 0x47271d
cmp eax, 2
jne 0x472784
mov ecx, dword [ebp - 0x100c]
test ecx, ecx
je 0x47273d
test cl, 1
jne 0x472784
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x1006], 0
je 0x472746
jmp 0x472784
xor eax, eax
mov word [ebp - 0x1004], ax
shr ecx, 1
push ecx
lea eax, [ebp - 0x1004]
push eax
mov dword [ebp - 0x1008], ecx
call dword [sym.imp.MSVCR110.dll__wcslwr_s]
push dword [ebp - 0x1010]
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.MSVCR110.dll_wcsstr]
add esp, 0x10
test eax, eax
je 0x472784
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x804]
push eax
inc edi
push edi
push esi
mov dword [ebp - 0x1008], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4726d0
pop edi
test esi, esi
je 0x4727c1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a2a4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0049a2a4
mov esp, ebp
pop ebp
ret
Function at 0x472a60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test esi, esi
je 0x472b34
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472a80
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jb 0x472b34
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x472ab2
test al, 0x10
je 0x472ab2
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0x5c
push esi
call dword [sym.imp.MSVCR110.dll_wcsrchr]
mov edi, eax
add esp, 8
test edi, edi
je 0x472b2b
sub edi, esi
sar edi, 1
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
push ebx
neg ecx
or ecx, eax
push ecx
call sub.MSVCR110.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x472b2a
push edi
push esi
lea eax, [edi + 1]
push eax
push ebx
call dword [sym.imp.MSVCR110.dll_wcsncpy_s]
xor eax, eax
push ebx
mov word [ebx + edi*2], ax
call fcn.004737c0
add esp, 0x14
test eax, eax
jne 0x472b15
push ebx
call fcn.00472a60
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
mov dword [ebp - 4], eax
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4737dc
test al, 0x10
je 0x4737dc
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4790f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push ebx
push esi
push eax
push dword [ebp + 8]
xor esi, esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x479169
push edi
push ebx
call sub.MSVCR110.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
je 0x479160
push edi
push ebx
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x479157
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x4b1d78
push edi
mov dword [ebp - 4], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x479157
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ecx + 0x10]
test eax, eax
je 0x479157
mov ecx, dword [ecx + 0x14]
mov dword [eax], ecx
push edi
call sub.MSVCR110.dll_void___cdecl_operator_delete___void__
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b170
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x314
mov eax, dword [0x50c0b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
push 0x200
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
mov dword [ebp - 0x320], 0
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 0x31c], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea esi, [ebp - 0x214]
lea eax, [ebp - 0x314]
mov dword [ebp - 0x318], eax
lea ecx, [esi + 2]
jmp 0x47b200
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x47b200
sub esi, ecx
push 0x80
lea eax, [ebp - 0x314]
push eax
sar esi, 1
inc esi
lea eax, [ebp - 0x318]
push esi
push eax
call fcn.00452970
lea eax, [esi + esi]
push eax
lea ecx, [ebp - 0x214]
push ecx
push eax
push dword [ebp - 0x318]
call dword [sym.imp.MSVCR110.dll_memcpy_s]
push eax
call fcn.00434830
add esp, 0x24
mov edx, dword [ebp - 0x318]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov dword [ebp - 4], 0
cmp word [edx], ax
je 0x47b283
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47b274
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, edi
call fcn.0043a040
mov eax, dword [ebp - 0x318]
lea ecx, [ebp - 0x314]
cmp eax, ecx
je 0x47b2a6
push eax
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049a2a4
mov esp, ebp
pop ebp
ret
Function at 0x47da10
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5039
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x50c0b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov eax, dword [0x50a898]
mov ecx, 0x50a898
mov dword [ebp - 4], 0
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
jge 0x47da89
push 0x104
mov ecx, edi
call fcn.00435960
push 0x104
push dword [edi]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [edi]
test eax, eax
jne 0x47daa3
xor ecx, ecx
jmp 0x47daba
push dword [eax - 8]
push eax
call dword [sym.imp.MSVCR110.dll_wcsnlen]
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x47dc0b
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x47dc0b
mov esi, dword [sym.imp.MSVCR110.dll_wcsstr]
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [edi]
or ebx, 0xffffffff
cmp dword [eax - 0xc], edx
jl 0x47db37
push str._COMMON_APPDATA_
push eax
call esi
add esp, 8
test eax, eax
je 0x47db37
sub eax, dword [edi]
sar eax, 1
js 0x47db37
lea eax, [ebp - 0x10]
push eax
call fcn.00453930
add esp, 4
push dword [ebp - 0x10]
mov ecx, edi
push str._COMMON_APPDATA_
mov dword [ebp - 4], 1
call fcn.004617d0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47db37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x47dbf7
push str._COMMON_DOCUMENTS_
push eax
call esi
add esp, 8
test eax, eax
je 0x47dbf7
sub eax, dword [edi]
sar eax, 1
js 0x47dbf7
mov eax, dword [0x50a898]
mov ecx, 0x50a898
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], 2
jge 0x47db9e
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00435960
mov esi, dword [ebp - 0x10]
push esi
push 0
push 0
push 0x802e
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push dword [esi - 8]
push esi
call dword [sym.imp.MSVCR110.dll_wcsnlen]
add esp, 8
test eax, eax
js 0x47dc0b
cmp eax, dword [esi - 8]
jg 0x47dc0b
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
push str._COMMON_DOCUMENTS_
mov ecx, edi
call fcn.004617d0
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x47dbf7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00434a20
int3
Function at 0x480920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a55bb
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x50c0b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x22c], eax
xor eax, eax
push 0x1fc
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
xor edi, edi
push eax
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x234], edi
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x20019
push edi
push str.SoftwareMicrosoftInternet_Account_Manager
push 0x80000001
mov dword [ebp - 0x214], 0xff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x480b34
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x234]
push eax
push edi
push str.Default_Mail_Account
push dword [ebp - 0x220]
call ebx
test eax, eax
jne 0x480b28
mov eax, dword [0x50a898]
mov ecx, 0x50a898
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x210]
push eax
push str.SoftwareMicrosoftInternet_Account_ManagerAccounts
lea eax, [ebp - 0x224]
push str._s_s
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], edi
call fcn.00480330
mov esi, dword [ebp - 0x224]
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
push 0x20019
push edi
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x480b07
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x480a92
lea ecx, [ebp - 0x214]
push ecx
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push str.SMTP_Server
push dword [ebp - 0x218]
mov dword [ebp - 0x214], 0xff
call ebx
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x480ac4
lea ecx, [ebp - 0x214]
push ecx
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push str.SMTP_Email_Address
push dword [ebp - 0x218]
mov dword [ebp - 0x214], 0xff
call ebx
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x480af6
lea ecx, [ebp - 0x214]
push ecx
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push str.SMTP_Port
push dword [ebp - 0x218]
mov dword [ebp - 0x214], 4
call ebx
push dword [ebp - 0x218]
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x480b28
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049a2a4
mov esp, ebp
pop ebp
ret
Function at 0x4868e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6041
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x50c0b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.CInterceptorsMgr.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
lea ecx, [edi + 0x10]
mov dword [ebp - 4], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.0048ad50
mov dword [edi + 0x10], eax
lea eax, [ebp - 0xd]
lea ecx, [edi + 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00485220
lea ecx, [edi + 0x2c]
mov byte [ebp - 4], 2
call fcn.00486e30
lea eax, [edi + 0x3c]
push eax
mov byte [edi + 0x58], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push edi
push 0x488dd0
push 0
push 0
call dword [sym.imp.MSVCR110.dll__beginthreadex]
mov dword [edi + 0x54], eax
add esp, 0x18
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x48c860
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a67a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x50c0b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x48c8fe
push 0x4b46c4
lea ecx, [ebp - 0x28]
call fcn.00422fb0
push 6
push 0x4b46cc
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00439c50
cmp word [esi], 0
jne 0x48c8bd
xor ecx, ecx
jmp 0x48c8d1
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48c8c2
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00439c50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], 8
jb 0x48c8fe
push dword [ebp - 0x28]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049a2a4
mov esp, ebp
pop ebp
ret