joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4252d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x440c38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x1c]
mov dword [esp + 0x50], 0
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 3
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0xc]
mov bl, 4
push eax
mov byte [esp + 0x54], bl
call sub.MFC42.DLL_CTime::GetTickCount
push 0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 0x14]
push 0
lea ecx, [esp + 0x10]
add esi, 0x76c
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0x10]
inc eax
lea edi, [eax - 1]
test edi, edi
jne 0x42536f
dec esi
mov edi, 0xc
push 0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x18]
push eax
push edi
push esi
push str._04d_02d_02d
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea edx, [esp + 0x1c]
push 0x45d05c
push str._sLOGDATA.
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x2c]
push 0
push eax
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x42547c
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_atoi]
jmp 0x4253d6
mov ebp, dword [sym.imp.MSVCRT.dll_atoi]
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x24]
mov esi, eax
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFileFind::GetFileTitle
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x58], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x54], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], 6
jle 0x425473
push eax
call ebp
mov edx, eax
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x30], edx
call ebp
mov ecx, dword [esp + 0x30]
add esp, 8
cmp ecx, eax
jge 0x425473
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x30]
push edx
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
push 0x45d05c
push str._sLOGDATA_s
push ecx
mov byte [esp + 0x64], 6
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
push edx
call edi
test esi, esi
jne 0x4253d0
pop ebp
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x50], 0xffffffff
call fcn.0043c112
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret
Function at 0x427c50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x441388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString_4
push str.9600_N_8_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::operator_1
mov ecx, 0x45da18
call fcn.00422220
mov edi, eax
lea eax, [esp + 0xc]
push edi
push str.COM_d
push eax
call sub.MFC42.DLL_CString::Format
mov al, byte [esp + 0x30]
add esp, 0xc
test al, al
mov eax, dword [esi + 0x6c]
je 0x427dc5
test eax, eax
je 0x427cec
lea ecx, [esi + 0x60]
call fcn.0040c4b0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 8
push 0
push 0x2580
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call sub.MFC42.DLL_CString::CString_1
add esi, 0x60
mov ecx, esi
call fcn.0040c2c0
test eax, eax
jne 0x427da2
mov ecx, esi
call fcn.0040c4b0
push 0
push 8
push 0
push 0x2580
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.0040c2c0
test eax, eax
jne 0x427dba
mov ecx, dword [esp + 0x10]
lea edx, [esp + 8]
push ecx
push edi
push str._Port_Open_Error__MDC_Port:_Check_Com_Port__d____s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x18
ret 4
mov eax, dword [esp + 0x10]
lea ecx, [esp + 8]
push eax
push edi
push str._Port_Open__MDC_Port:___d__s____OK__
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
jmp 0x427ded
test eax, eax
je 0x427dd1
lea ecx, [esi + 0x60]
call fcn.0040c4b0
push edi
lea eax, [esp + 0xc]
push str._Port_Close__MDC_Port:___d_9600_N_8_1_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
lea edx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x48f9c8]
call fcn.00439080
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
mov al, 1
mov dword fs:[0], ecx
pop esi
add esp, 0x18
ret 4
Function at 0x42bb60
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x441b58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push edi
mov ebp, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [0x463b7c]
mov byte [esp + 0x24], 2
cmp eax, 2
mov byte [esp + 0x14], 0x7e
mov byte [esp + 0x15], 0x7e
mov byte [esp + 0x16], 1
mov byte [esp + 0x17], 0
mov byte [esp + 0x18], 1
mov byte [esp + 0x19], 0x33
jne 0x42bbf3
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push 3
push eax
push 2
push str._c_s_c
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [esp + 0x44]
add esp, 0x14
mov eax, dword [edx - 8]
lea edi, [eax + 2]
jmp 0x42bcde
push esi
mov esi, dword [esp + 0x30]
mov ecx, 0xc
xor eax, eax
mov edi, esi
push 0
rep stosd dword es:[edi], eax
mov eax, dword [sym.imp.MSVCRT.dll__daylight]
mov dword [eax], 0
call dword [sym.imp.MSVCRT.dll_time]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
push ecx
call dword [sym.imp.MSVCRT.dll_localtime]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
add esp, 8
push edx
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 0x18]
inc ecx
push edx
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0x14]
inc ecx
push ecx
push edx
lea eax, [esp + 0x2c]
push str.:_.2d_.2d_.2d_.1d:_.2d_.2d_.2d
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x58]
add esp, 0x24
lea eax, [esp + 0xc]
push ecx
push edx
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
mov cl, byte [ebp + 0x1c]
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x2b], cl
mov eax, dword [esp + 0x28]
mov ecx, dword [edi - 8]
mov edx, esi
add esp, 0x10
mov dword [edx], eax
mov ax, word [esp + 0x1c]
mov word [edx + 4], ax
mov dl, cl
add dl, 2
xor eax, eax
test ecx, ecx
mov byte [esi + 6], dl
mov byte [esi + 7], 0
jle 0x42bcb0
mov dl, byte [eax + edi]
mov byte [esi + eax + 8], dl
inc eax
cmp eax, ecx
jl 0x42bca4
lea edi, [ecx + 8]
mov eax, 3
xor cl, cl
cmp edi, eax
mov byte [edi + esi], 0x23
jl 0x42bccc
mov dl, byte [eax + esi]
xor cl, dl
inc eax
cmp eax, edi
jle 0x42bcc2
mov byte [edi + esi + 1], cl
mov byte [edi + esi + 2], 0x7e
mov byte [edi + esi + 3], 0
add edi, 3
pop esi
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0xc654d8
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub eax, dword [edx + ecx + 0x10]
jmp 0xbd6afd
je 0xd27633
mov esi, dword [ebp + 0xc]
test esi, esi
jmp 0x837261
je 0xd27633
mov eax, dword [eax + ecx + 0x7c]
cmp cl, 0xc7
clc
cmc
push ebx
push edi
cmc
clc
mov dword [ebp - 0x10], eax
stc
mov dword [ebp - 8], 0xffffffff
clc
cmc
cmp esi, 0xffff
jmp 0x891b09
mov edi, dword [edx + ecx + 0x18]
jmp 0xc9647b
je 0xd27633
mov eax, 0x5a4d
cmp al, 0xa1
jmp 0xc13037
ja 0x81fcac
mov eax, esi
test ecx, ecx
jmp 0x7a22c7
cmp dword [eax + ecx], 0x4550
jmp 0xbe98bc
mov dword [ebp - 8], eax
jmp 0xd08ac7
jne 0xd27633
mov edx, dword [eax + ecx + 0x78]
cmp ax, di
jmp 0xca3894
add eax, ecx
cmp ah, 0xb
cmp bp, si
xor ebx, ebx
jmp 0xd01ca8
cmp word [ecx], ax
jmp 0xd2762d
push ebp
mov ebp, esp
xor cl, 0xf2
ror cl, cl
mov ecx, dword [ebp + 8]
lea esp, [esp - 0x114]
push esi
clc
test ecx, ecx
jmp 0x7ca930
js 0x8302a4
jmp 0xd16cda
je 0x8302a4
mov eax, dword [edx + ecx + 0x20]
test bx, 0x78ab
cmp ah, dl
jmp 0xbefab2
mov eax, dword [ecx + 0x3c]
jmp 0xbd537c
test edi, edi
jmp 0xc74b18
mov dword [ebp - 4], edx
test edx, edx
jmp 0x81bf06
ret
dec edi
jmp 0xd1b746
jmp 0x8302a4
mov dword [ebp - 0xc], eax
jmp 0xc66898
je 0xc85398
xor eax, eax
pop esi
mov esp, ebp
pop ebp
jmp 0xcd1877
Function at 0x1002a3e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1002a3ef
pop dword [ebp - 0x1c]
mov eax, 0x1002a3ef
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x8c64ac50
sub dword [ebp - 0x2c], 0x3e126705
mov dword [ebp - 0x28], 0x1ba4ff45
add dword [ebp - 0x28], 0x168e4d00
mov dword [ebp - 0x24], 0x64c38a13
add dword [ebp - 0x24], 0xe788ba1b
mov dword [ebp - 0x20], 0x989d5b6a
add dword [ebp - 0x20], 0x6762a496
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x4e8573de
sub eax, 0x3e8153aa
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x9efbee82
sub dword [ebp - 0x2c], 0x2a89852c
mov dword [ebp - 0x28], 0x46fa4c58
sub dword [ebp - 0x28], 0x58deae3
mov dword [ebp - 0x24], 0x2e96df8e
add dword [ebp - 0x24], 0x34d88cde
mov dword [ebp - 0x20], 0xf3997ec2
sub dword [ebp - 0x20], 0xf3997ec2
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x4d0bef56
sub eax, 0x3d07cf0a
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x46a20
push 0
call eax
mov ecx, 0xf23e9b21
sub ecx, 0xf23e5788
xor esi, esi
add esi, eax
mov edi, 0x10057e00
add edi, dword [ebp - 0x1c]
mov edx, 0x142abfcd
add dword [ebp - 0x18], 0x56c57ea0
mov ebx, dword [edi]
mov dword [ebp - 4], 0xd202e552
add ebx, edx
mov dword [esi], ebx
xor dword [ebp - 0x10], edi
add esi, 0x7091489f
add esi, 0x8f6eb765
add edi, 0x68147eb9
sub edi, 0x68147eb5
loop 0x1002a502
add eax, 0xa977423b
sub eax, 0xa9764104
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe1251b49
sub ecx, 0xd1251b49
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x100346a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100512d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100346d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10034700
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10034700
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x100347fa
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10034729
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1003475d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x100347fa
cmp eax, 1
jle 0x100347bb
cmp eax, 3
jne 0x100347fa
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.1002a3e0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100347d9
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100347fa
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x100347fa
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
Function at 0x100396b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100412f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100512d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1005128c]
cmp eax, 0xffffffff
jne 0x100396e6
xor ebx, ebx
jmp 0x100396ef
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003972f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003976e
test esi, esi
jne 0x10039772
push 0x10038230
push 0x10052ad8
call fcn.1002a3e0
mov eax, dword [0x1005128c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003972f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003975c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003975c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100397b4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003979d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10039772
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10039700
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100397d9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100397d9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1002a3e0
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100397c0
jmp 0x10039700
Function at 0x403c92
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x409024]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call main
mov ebx, eax
cmp ebx, esi
je 0x403d05
lea ecx, [ebp - 0x74]
call fcn.0040175a
mov eax, ebx
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040426a
add ebp, 0x1a0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x403d1d
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.00403c92
cmp eax, esi
jne 0x403d4f
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x403d0d
lea ecx, [ebp - 0x74]
call fcn.0040175a
push dword [ebp - 0x78]
mov ecx, edi
call fcn.004016eb
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0040175a
mov eax, esi
jmp 0x403ceb

Function at 0x403fd2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x403fe1
pop dword [ebp - 0x3c]
mov eax, 0xb94b2015
add eax, 0x46f51fcc
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x35532b60
add dword [ebp - 0x4c], 0x18ff19eb
mov dword [ebp - 0x48], 0x9fd8e4d5
add dword [ebp - 0x48], 0x925a6770
mov dword [ebp - 0x44], 0xee9c3413
sub dword [ebp - 0x44], 0xa24fefe5
mov dword [ebp - 0x40], 0x64616bf0
sub dword [ebp - 0x40], 0x64616bf0
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xaca34d9a
add eax, 0x539d127e
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x69679247
sub dword [ebp - 0x4c], 0xf4f528f1
mov dword [ebp - 0x48], 0x3d050bf
add dword [ebp - 0x48], 0x3d9c10b6
mov dword [ebp - 0x44], 0xaac987b7
add dword [ebp - 0x44], 0xb8a5e4b5
mov dword [ebp - 0x40], 0x9c2164a8
sub dword [ebp - 0x40], 0x9c2164a8
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x37dbb
push 0
call eax
mov ecx, 0x1d6360af
add ecx, 0xe29ceb97
mov edx, eax
mov esi, 0x15356894
sub esi, 0x14f42e94
add esi, dword [ebp - 0x3c]
mov ebx, 0xcce8f4ed
sub ebx, 0x76d6e949
sub dword [ebp - 0x28], 0x3ef1d6ac
mov edi, dword [esi]
xor dword [ebp - 8], 0x1fb2bf7d
xor edi, ebx
xor dword [ebp - 0x20], ecx
mov dword [edx], edi
xor dword [ebp - 0x38], 0xedf5d256
add edx, 0xe8aebce1
add edx, 0x17514323
add esi, 0xddf9bc76
sub esi, 0xddf9bc72
loop 0x4040fe
add eax, 0xb32d64bf
sub eax, 0xb32c40d4
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x40426a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x409024]
jne 0x404274
repz ret
jmp fcn.00404744
Function at 0x10002f10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x100095bc
call fcn.10009270
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.10003af3
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x10002f3c
push edi
call esi
cmp eax, 0xffffffff
jne 0x10002f7e
test ebx, ebx
je 0x10002f7b
lea ecx, [ebp - 0x18]
call fcn.10001b52
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.10003bfc
test al, al
push dword [ebp - 0x18]
je 0x10002f75
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.100021a7
pop ecx
mov eax, esi
jmp 0x10002f7e
call fcn.100021a7
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x1000352e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10003558
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10003558
xor al, al
jmp 0x10003578
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.100092c0
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop edi
leave
ret 4

Function at 0x10004443
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x100096c4
call fcn.10009270
sub esp, 0x84
push ebx
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, ecx
xor esi, esi
mov eax, dword [edi]
cmp eax, esi
je 0x1000446f
push eax
call ebx
test eax, eax
je 0x1000446f
mov dword [edi], esi
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.10001b95
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], esi
call fcn.10004556
push 0x20
mov edx, eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.1000453b
push dword [ebp + 0xc]
mov edx, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.10001aba
push dword [ebp - 0x40]
call fcn.100021a7
push dword [ebp - 0x4c]
call fcn.100021a7
push dword [ebp - 0x24]
call fcn.100021a7
add esp, 0xc
lea eax, [ebp - 0x34]
mov dword [ebp - 0x90], 0x44
mov dword [ebp - 0x8c], esi
push eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x88], esi
push dword [ebp + 0x10]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x64], esi
mov word [ebp - 0x5e], si
push esi
push esi
push esi
push esi
push esi
mov dword [ebp - 0x5c], esi
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10004515
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000451f
push dword [ebp - 0x30]
call ebx
mov eax, dword [ebp - 0x34]
mov dword [edi], eax
push dword [ebp - 0x18]
call fcn.100021a7
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x1000468c
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 8

Function at 0x1000607f
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov eax, 0x10009994
call fcn.10009270
sub esp, 0x1c
push esi
push edi
push str.CLSID_
lea ecx, [ebp - 0x1c]
call fcn.10001bd8
push dword [0x1000a7b0]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10001e16
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push str.InprocServer32
call fcn.10001ade
push dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, 0x80000000
push edi
call esi
push dword [ebp - 0x28]
call fcn.100021a7
pop ecx
push dword [ebp - 0x1c]
push edi
call esi
call fcn.10005d4b
test al, al
pop edi
pop esi
je 0x1000611c
lea eax, [ebp - 0x10]
push eax
push 2
push 0
push dword [0x1000a7ac]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000611c
push dword [0x1000a7b0]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x1c]
call fcn.100021a7
pop ecx
mov ecx, dword [ebp - 0xc]
push 1
pop eax
mov dword fs:[0], ecx
leave
ret