joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405070
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x4086ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x438
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x44c], 0
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 0x454]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea ecx, [esp + 0x13c]
push str._s.
push ecx
mov byte [esp + 0x458], 1
call ebp
add esp, 0xc
lea edx, [esp + 0x138]
lea ecx, [esp + 0x14]
push 0
push edx
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4051df
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x4051d3
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
push 0x104
mov ecx, eax
mov byte [esp + 0x450], 2
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x44c], 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
call fcn.00407cca
mov edx, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x18]
call dword [edx + 0x40]
test eax, eax
je 0x4051a6
mov ecx, dword [esp + 0x454]
lea eax, [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x244]
push str._s_s
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x240]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call sub.MFC42.DLL_CString::CString
call fcn.00405070
add esp, 4
jmp 0x4051d3
mov edx, dword [esp + 0x454]
lea ecx, [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0x348]
push str._s_s
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x340]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4050e5
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::Close
mov edx, dword [esp + 0x454]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
mov byte [esp + 0x44c], 0
lea ecx, [esp + 0x14]
jne 0x405226
call fcn.004080d8
lea ecx, [esp + 0x454]
mov dword [esp + 0x44c], 0xffffffff
call fcn.00407cca
xor al, al
jmp 0x405244
call fcn.004080d8
lea ecx, [esp + 0x454]
mov dword [esp + 0x44c], 0xffffffff
call fcn.00407cca
mov al, 1
mov ecx, dword [esp + 0x444]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x444
ret
Function at 0x406870
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
sub esp, 0x290
lea eax, [esp + 0x100]
push esi
push eax
mov esi, ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4068c3
lea ecx, [esp + 4]
push 0x100
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x4068c3
lea edx, [esp + 4]
add esi, 0x118
push edx
push 0x40c19c
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop esi
add esp, 0x290
ret

Function at 0x4073c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x408ca0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push str.project_
lea eax, [esp + 8]
push 0x40c690
push eax
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x28]
lea edx, [esp]
push ecx
push eax
push edx
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_operator_2
push ecx
mov byte [esp + 0x24], 2
mov ecx, esp
mov dword [esp + 0x10], esp
push str._supportRtdb_Data_Txt_bak
push eax
push ecx
call sub.MFC42.DLL_operator
call fcn.00405070
add esp, 4
lea ecx, [esp]
mov byte [esp + 0x20], 1
call fcn.00407cca
lea ecx, [esp + 4]
mov byte [esp + 0x20], 0
call fcn.00407cca
push str.project_
lea edx, [esp + 0x10]
push 0x40c690
push edx
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x28]
lea edx, [esp + 8]
push ecx
push eax
push edx
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_operator_2
push ecx
mov byte [esp + 0x24], 4
mov ecx, esp
mov dword [esp + 0x14], esp
push str._supportRtdb_Data_Txt_bak
push eax
push ecx
call sub.MFC42.DLL_operator
push str.project_
lea edx, [esp + 8]
push 0x40c690
push edx
mov byte [esp + 0x30], 5
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x2c]
lea edx, [esp + 8]
push ecx
push eax
push edx
mov byte [esp + 0x30], 6
call sub.MFC42.DLL_operator_2
push ecx
mov byte [esp + 0x28], 7
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._supportRtdb_Data_Txt
push eax
push ecx
call sub.MFC42.DLL_operator
mov byte [esp + 0x28], 9
call fcn.00404cd0
add esp, 8
lea ecx, [esp + 4]
mov byte [esp + 0x20], 8
call fcn.00407cca
lea ecx, [esp]
mov byte [esp + 0x20], 4
call fcn.00407cca
lea ecx, [esp + 8]
mov byte [esp + 0x20], 3
call fcn.00407cca
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.00407cca
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.00407cca
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x407540
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x408cd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push str.project_
lea eax, [esp + 0x10]
push 0x40c690
push eax
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x20]
lea edx, [esp + 8]
push ecx
push eax
push edx
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_operator_2
push str.configcurrentsize
push eax
lea eax, [esp + 0xc]
mov byte [esp + 0x20], 2
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 8]
mov byte [esp + 0x18], 5
call fcn.00407cca
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 4
call fcn.00407cca
push str.config_size2
lea ecx, [esp + 4]
push 0x40c690
push ecx
call sub.MFC42.DLL_operator
mov edx, dword [esp + 4]
mov eax, dword [esp]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp]
call fcn.00407cca
lea ecx, [esp + 4]
mov byte [esp + 0x18], 0
call fcn.00407cca
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.00407cca
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4

Function at 0x401ff5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
call fcn.00401f2f
push 0x13
pop eax
xor esi, esi
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0x23
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], 0xd
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0x14
mov dword [ebp - 0x10], 0xa
mov dword [ebp - 0xc], 0xb
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xf
call dword [0x40e008]
call dword [0x40e01c]
cmp eax, 0x57
je 0x402066
push esi
call dword [0x40e024]
mov ecx, esi
mov edx, esi
mov al, byte [ebp + ecx*4 - 0x2c]
xor byte [edx + 0x414250], al
inc ecx
xor eax, eax
cmp ecx, 0xb
cmove ecx, eax
inc edx
cmp edx, 0x13000
jb 0x40206a
call fcn.00401e43
push esi
test eax, eax
jne 0x402060
call dword [0x40e018]
int3
Function at 0x10222082
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.10222101
jae 0x1022208e
xor ecx, ecx
call fcn.10222101
jae 0x102220b8
xor eax, eax
call fcn.10222101
jae 0x102220c9
mov al, 0x10
call fcn.10222101
adc al, al
jae 0x102220aa
jne 0x102220f6
stosb byte es:[edi], al
jmp 0x1022208f
call fcn.1022210d
dec ecx
loop 0x102220d5
mov eax, ebp
call fcn.1022210b
jmp 0x102220f7
lodsb al, byte [esi]
shr eax, 1
je 0x1022211d
adc ecx, 2
mov ebp, eax
jmp 0x102220f7
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.1022210b
cmp eax, 0x7d00
jae 0x102220f5
cmp eax, 0x500
jae 0x102220f6
cmp eax, 0x7f
ja 0x102220f7
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1022208f
pop ebp
ret 8
Function at 0x482ee2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dl, byte [ecx + 0x100]
mov byte [ebp - 0xc], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [eax + 0x101]
mov byte [ebp - 0x14], cl
mov dword [ebp - 0x10], 0
jmp 0x482f19
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
jge 0x482fb1
mov cl, byte [ebp - 0xc]
add cl, 1
mov byte [ebp - 0xc], cl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov eax, dword [ebp - 8]
mov cl, byte [eax + edx]
mov byte [ebp - 4], cl
mov dl, byte [ebp - 0x14]
add dl, byte [ebp - 4]
mov byte [ebp - 0x14], dl
mov eax, dword [ebp - 0x14]
and eax, 0xff
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 8]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
mov edx, dword [ebp - 8]
mov al, byte [ebp - 4]
mov byte [edx + ecx], al
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
mov edx, dword [ebp - 8]
mov al, byte [ebp - 4]
add al, byte [edx + ecx]
mov byte [ebp - 4], al
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov dl, byte [edx]
xor dl, byte [eax + ecx]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov byte [eax], dl
jmp 0x482f10
mov ecx, dword [ebp + 0x10]
mov dl, byte [ebp - 0xc]
mov byte [ecx + 0x100], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 0x14]
mov byte [eax + 0x101], cl
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4865d1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
jne 0x4865fd
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
cmp dword [edx + ecx], 0x4550
je 0x486601
xor eax, eax
jmp 0x486664
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
cmp dword [ecx], 0x4550
je 0x486620
xor eax, eax
jmp 0x486664
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
add eax, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
add eax, 0x14
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x10b
je 0x486650
xor eax, eax
jmp 0x486664
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
add eax, 0xe0
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x41cb8b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c82d

Function at 0x41cb96
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c9bc

Function at 0x41cf90
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040c010
mov eax, dword [0x438010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041a5c5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41cfd2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41d12e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428a60
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x460ba8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041e160
mov ecx, dword [esi*4 + 0x460ba8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41d127
cmp eax, dword [edi + ecx + 0x24]
jne 0x41d127
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d127
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041e160
add esp, 0x14
test edx, edx
jl 0x41d127
jg 0x41d09d
test eax, eax
jb 0x41d127
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41d127
jl 0x41d0b7
cmp dword [ebp - 0x1008], eax
ja 0x41d127
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41d0d5
test ebx, ebx
je 0x41d10e
cmp ecx, edi
jae 0x41d10e
mov al, byte [ecx]
cmp al, 0xd
jne 0x41d0ef
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41d0fb
cmp byte [ecx + 1], 0xa
jne 0x41d0fb
inc ecx
jmp 0x41d0fb
movzx eax, al
movsx eax, byte [eax + 0x4382a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41d0d5
cmp edx, ebx
jne 0x41d0d5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41d12c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040b4a0
leave
ret
Function at 0x41d5fe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x460ba8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d63e
cmp byte [ebx], 0xa
jne 0x41d63e
or byte [eax + edi + 0x28], 4
jmp 0x41d643
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41d741
mov al, byte [edx]
cmp al, 0x1a
je 0x41d723
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41d672
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41d697
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41d6a1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41d654
jmp 0x41d741
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d71e
cmp dword [ebp - 0xc], 0
je 0x41d71e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x460ba8]
test byte [eax + edi + 0x28], 0x48
je 0x41d6f8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d6e3
mov byte [esi], dl
jmp 0x41d6f4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x460ba8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d741
cmp byte [ebp - 1], 0xa
jne 0x41d707
cmp esi, ebx
jne 0x41d707
mov byte [esi], 0xa
jmp 0x41d740
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041e17e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d741
mov byte [esi], 0xd
jmp 0x41d740
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x460ba8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d73d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d741
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d74a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x460ba8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d78d
cmp word [esi], dx
jne 0x41d78d
or byte [edi + eax + 0x28], 4
jmp 0x41d792
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41d8e5
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41d8c5
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41d7d4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d80a
cmp eax, edx
jae 0x41d816
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41d7ac
jmp 0x41d8e5
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d8c1
cmp dword [ebp - 0x14], 0
je 0x41d8c1
mov eax, dword [ebx*4 + 0x460ba8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d899
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d862
mov word [esi], cx
jmp 0x41d895
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x460ba8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x460ba8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x460ba8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d8e5
pop ebx
cmp word [ebp - 4], bx
jne 0x41d8aa
cmp esi, dword [ebp + 0xc]
jne 0x41d8aa
mov word [esi], bx
jmp 0x41d8e2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041e17e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d8e5
push 0xd
jmp 0x41d8de
mov ecx, dword [ebx*4 + 0x460ba8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d8dc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d8e5
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4218ed
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42198a
push ebx
push esi
call fcn.004218b6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042053b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x421937
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421989
push edi
push eax
call fcn.00419663
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x421957
call fcn.00418bbf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421988
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042053b
add esp, 0x20
test eax, eax
jne 0x421976
push edi
call fcn.00418bbf
jmp 0x42197e
push ebx
call fcn.00418bbf
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x428860
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42888d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42888d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6a
nop
nop
sub eax, 0x403d10
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp int.00401219
Function at 0x10001b50
Capabilities:
Persist via run registry key
Query or enumerate registry key
Set registry value

Disassembly:
sub esp, 0x3cc
mov eax, dword [0x10020ae4]
xor eax, esp
mov dword [esp + 0x3c8], eax
push esi
push edi
mov ecx, 0xb
mov dword [esp + 0xc], 0
mov esi, 0x1001793c
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, 6
lea eax, [esp + 0x5a]
push 0x66
push 0
movsw word es:[edi], word [esi]
push eax
movsb byte es:[edi], byte [esi]
mov esi, str.LogMeInRescueCallingCards
lea edi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.10006e20
push 0x10021254
lea eax, [esp + 0x50]
push 0x80
push eax
call fcn.1000ac9c
lea eax, [esp + 0x1e1]
mov byte [esp + 0x1e0], 0x22
push 0x207
push eax
call fcn.10003340
push str.CallingCard.exe_
lea eax, [esp + 0x1ec]
push 0x208
push eax
call fcn.1000ac9c
lea ecx, [esp + 0x1f4]
add esp, 0x2c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001bf3
sub ecx, edx
push 0x105
push 0
lea eax, [ecx + 1]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc8]
push eax
call fcn.10006e20
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea eax, [esp + 0xcc]
add esp, 0xc
mov esi, 1
push 0x105
push eax
push 0
push 0x80000003
call edi
test eax, eax
jne 0x10001d5c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xc8]
push str._Classes
push eax
call fcn.100071f0
add esp, 8
test eax, eax
je 0x10001c9d
mov ecx, str._Classes
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10001c90
test dl, dl
je 0x10001c8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10001c90
add eax, 2
add ecx, 2
test dl, dl
jne 0x10001c70
xor eax, eax
jmp 0x10001c95
sbb eax, eax
or eax, 1
test eax, eax
je 0x10001d23
lea ecx, [esp + 0xc8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001ca7
sub ecx, edx
cmp ecx, 9
jb 0x10001d23
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xcc]
push 0x105
push eax
call fcn.1000ac9c
add esp, 0xc
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [esp + 0xe4]
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10001d23
push dword [esp + 0x10]
lea eax, [esp + 0x1d4]
push eax
push 1
push 0
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x28]
call ebx
push dword [esp + 0x14]
call ebp
push 0x105
lea eax, [esp + 0xcc]
push 0
push eax
call fcn.10006e20
add esp, 0xc
lea ecx, [esp + 0xc8]
mov eax, esi
inc esi
push 0x105
push ecx
push eax
push 0x80000003
call edi
test eax, eax
je 0x10001c51
pop ebp
pop ebx
mov ecx, dword [esp + 0x3d0]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.10005b76
add esp, 0x3cc
ret
Function at 0x10001db0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x8ac
mov eax, dword [0x10020ae4]
xor eax, esp
mov dword [esp + 0x8a8], eax
mov eax, dword [esp + 0x8b8]
push ebx
mov ebx, dword [esp + 0x8b8]
push ebp
mov ebp, dword [esp + 0x8c4]
push esi
mov dword [esp + 0xc], eax
xor esi, esi
mov eax, dword [esp + 0x8cc]
push edi
mov edi, dword [esp + 0x8c0]
mov dword [esp + 0x14], eax
push ebp
push ebx
push edi
call fcn.1000abde
add esp, 0xc
test esi, esi
je 0x10001e34
push 0x80
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.10006e20
push esi
lea eax, [esp + 0x28]
push str.___d_
push eax
call fcn.10001af0
lea eax, [esp + 0x30]
push eax
push ebx
push edi
call fcn.1000ab69
add esp, 0x24
push dword [esp + 0x10]
lea eax, [esp + 0x9c]
push 0x410
push eax
call fcn.1000abde
add esp, 0xc
lea eax, [esp + 0x98]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esp + 0x14]
lea eax, [esp + 0x9c]
push 0x410
push eax
call fcn.1000ab69
add esp, 0xc
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10001e9f
inc esi
cmp esi, 0x3e7
jb 0x10001df5
push ebp
push ebx
push edi
call fcn.1000abde
add esp, 0xc
mov ecx, dword [esp + 0x8b8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10005b76
add esp, 0x8ac
ret