joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4995a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
push ebx
je 0x4996e1
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4996e1
push ebx
call fcn.004996f0
add eax, 0xa
add esp, 4
cmp eax, dword [ebp + 0x14]
ja 0x4996e1
test ebx, ebx
je 0x4996d1
mov ecx, dword [ebp + 8]
push esi
mov esi, 1
mov eax, esi
mov dword [ebp - 0xc], esi
sub eax, ecx
mov dword [ebp - 8], eax
mov eax, 0xaaaaaaab
push edi
lea edi, [ecx + 1]
lea ecx, [ebx - 1]
mul ecx
mov eax, dword [ebp + 0x10]
mov ecx, edx
shr ecx, 1
inc ecx
mov dword [ebp - 0x10], ecx
mov dh, byte [edi - 1]
cmp ebx, esi
jne 0x499616
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
jmp 0x499633
mov ecx, dword [ebp - 8]
mov dl, byte [edi]
add ecx, edi
mov byte [ebp - 1], dl
cmp ebx, ecx
jne 0x49962a
mov byte [ebp - 2], 0
jmp 0x499633
mov cl, byte [edi + 1]
mov byte [ebp - 1], dl
mov byte [ebp - 2], cl
mov ecx, dword [ebp - 8]
movzx esi, byte [ebp - 1]
add ecx, edi
mov dword [ebp - 0x14], ecx
movzx edx, dh
mov ecx, edx
and edx, 3
shr ecx, 2
shl edx, 4
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov ecx, esi
shr ecx, 4
and esi, 0xf
or edx, ecx
shl esi, 2
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edx, byte [ebp - 2]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and edx, 0x3f
or ecx, esi
mov esi, dword [ebp - 0xc]
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 3], cl
cmp ebx, esi
jne 0x49969c
mov word [eax + 2], 0x3d3d
movzx ecx, byte [eax + 3]
mov edx, 0x3d
cmp ebx, dword [ebp - 0x14]
cmove ecx, edx
add esi, 3
mov byte [eax + 3], cl
add edi, 3
add eax, 4
mov dword [ebp - 0xc], esi
sub dword [ebp - 0x10], 1
jne 0x499605
pop edi
pop esi
mov byte [eax], 0
lea eax, [edx - 0x3c]
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop ebx
mov byte [eax], 0
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x499a70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b05f1
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e362c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.CSecurePwd.0
mov dword [ebp - 4], 0
push 0x4d2804
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00499ce0
cmp dword [edi + 0x314], 0
je 0x499b78
push str.CSP:_D:_Exiting_timer_thread_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0xf
push str.CSP:_D:_Exiting_timer_thread
push 0xaa
push str.C:_bambooxml_data_build_dirCRED_CSV2279_JOB1_srcCmgWinNtShield_srcCmgWinNtShieldLibSecurePwd.cpp
call fcn.0043f060
mov ecx, dword [edi + 0x314]
add esp, 0x10
push 0x3e8
call fcn.0049d140
test al, al
jne 0x499b2e
push str._CSP:_D:_Exit_of_timer_thread_timed_out____n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 1
push str._SUPPORT___E__CSP:_D:_Exit_of_timer_thread_timed_out___
push 0xaf
push str.C:_bambooxml_data_build_dirCRED_CSV2279_JOB1_srcCmgWinNtShield_srcCmgWinNtShieldLibSecurePwd.cpp
call fcn.0043f060
add esp, 0x10
push str.CSP:_D:_Deleting_timer_thread_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0xf
push str.CSP:_D:_Deleting_timer_thread
push 0xb3
push str.C:_bambooxml_data_build_dirCRED_CSV2279_JOB1_srcCmgWinNtShield_srcCmgWinNtShieldLibSecurePwd.cpp
call fcn.0043f060
mov ebx, dword [edi + 0x314]
add esp, 0x10
test ebx, ebx
je 0x499b6e
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4b24e4]
mov ecx, ebx
call esi
mov dword [edi + 0x314], 0
mov eax, dword [edi + 0x304]
test eax, eax
je 0x499bba
push eax
call fcn.00479a10
add esp, 4
jmp 0x499bba
lea eax, [edi + 0x338]
mov dword [edi + method.stCriticalSectionWrapper.virtual_0], vtable.stCriticalSectionWrapper.0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [edi + 0x31c]
mov dword [edi + method.stCriticalSectionWrapper.virtual_0], vtable.stCriticalSectionWrapper.0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x499ce0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b061d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4e362c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
push str.CSP:_C:_Clearing_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea esi, [edi + 0x334]
mov dword [ebp - 0x20], vtable.stCriticalSection.0
lea ebx, [esi + 4]
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0049a620
lea edx, [edi + 4]
mov dword [edi + 0x30c], 0
mov ecx, 0x200
mov eax, edx
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x499d60
mov ecx, 0x100
lea eax, [edi + 0x204]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x499d76
mov eax, dword [edi + 0x304]
test eax, eax
je 0x499d9b
mov ecx, 0x210
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x499d90
mov esi, dword [ebp + 8]
test esi, esi
je 0x499e07
push 0xff
push esi
push 0x100
push edx
call fcn.00479355
add esp, 0x10
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x499dc0
sub esi, ecx
sar esi, 1
mov dword [edi + 0x30c], esi
jmp 0x499e07
push ebx
mov dword [edi + 0x308], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x499e70
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x338]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x308], 0
jne 0x499fa4
push 0x210
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
jne 0x499ed2
push 1
push str.Memory_allocation_failed.__Could_not_encrypt_the_protected_data
push 0x235
push str.C:_bambooxml_data_build_dirCRED_CSV2279_JOB1_srcCmgWinNtShield_srcCmgWinNtShieldLibSecurePwd.cpp
call fcn.0043f060
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [ebx + 4]
test esi, esi
je 0x499ee4
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
mov edi, eax
jmp 0x499f04
push 0x210
push 0
push edi
call fcn.00470010
add esp, 0xc
call fcn.004793d9
mov dword [eax], 0x16
call fcn.00479229
mov ecx, ebx
call fcn.00499e30
push 0
push 0x210
push edi
call sub.CRYPT32.dll_CryptProtectMemory
test eax, eax
jne 0x499f37
push 1
push str.Could_not_encrypt_the_protected_data
push 0x23f
push str.C:_bambooxml_data_build_dirCRED_CSV2279_JOB1_srcCmgWinNtShield_srcCmgWinNtShieldLibSecurePwd.cpp
call fcn.0043f060
add esp, 0x10
jmp 0x499f81
mov eax, dword [ebx + 0x304]
mov ecx, 0x210
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x499f42
mov eax, dword [ebx + 0x304]
test eax, eax
jne 0x499f69
call fcn.004793d9
mov dword [eax], 0x16
call fcn.00479229
jmp 0x499f77
mov esi, edi
mov ecx, 0x84
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 4]
mov dword [ebx + 0x308], 1
mov ecx, 0x210
mov eax, edi
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x499f90
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x499fbd
push 1
push str.Secured_password_is_already_locked.
push 0x24e
push str.C:_bambooxml_data_build_dirCRED_CSV2279_JOB1_srcCmgWinNtShield_srcCmgWinNtShieldLibSecurePwd.cpp
call fcn.0043f060
add esp, 0x10
mov ecx, 0x200
lea eax, [ebx + 4]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x499fc5
mov ecx, 0x100
lea eax, [ebx + 0x204]
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x499fe0
mov esi, dword [ebx + 0x308]
lea eax, [ebx + 0x338]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49a7f0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0784
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4e362c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
xor esi, esi
xor edi, edi
cmp dword [ebp + 8], esi
jne 0x49a828
lea eax, [edi + 0x45]
jmp 0x49a87c
push 0xc
call fcn.0046d70e
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x49a853
push 1
push dword [ebp + 0xc]
mov ecx, eax
push dword [ebp + 8]
call fcn.0049a970
mov esi, eax
jmp 0x49a855
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x49a930
cmp dword [esi], 0
jne 0x49a91a
cmp dword [esi + 8], 0
jne 0x49a91a
mov eax, 0x41
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
push ecx
push eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 0
add eax, 0x1c
movlpd qword [ebp - 0x1c], xmm0
push 0
push eax
mov eax, dword [ebp + 0x14]
cmp dword [eax], ecx
cmove eax, ecx
push eax
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
call sub.CRYPT32.dll_CryptUnprotectData
test eax, eax
je 0x49a8bd
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x1c]
push eax
call fcn.00439c00
jmp 0x49a8df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.DPAPI___Failed_to_unprotect_data__MS_Error___d_
push 1
push 0xf8
push str.C:_bambooxml_data_build_dirCRED_CSV2279_JOB1_srcCmgWinNtShield_srcCmgWinNtShieldLibCDPAPI.cpp
call fcn.0043f0b0
add esp, 0x14
test esi, esi
je 0x49a8f5
mov ecx, esi
call fcn.0049aca0
push 0xc
push esi
call fcn.0046d73e
add esp, 8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x49a94f
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x49a911
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x49a903
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x49a94f
mov edi, dword [esi]
mov ecx, esi
call fcn.0049aca0
push 0xc
push esi
call fcn.0046d73e
add esp, 8
jmp 0x49a935
mov edi, 8
push edi
push str.DPAPI___Failed_to_protect_data_due_to_impersonation_error__MS_Error___d_
push 1
push 0xed
push str.C:_bambooxml_data_build_dirCRED_CSV2279_JOB1_srcCmgWinNtShield_srcCmgWinNtShieldLibCDPAPI.cpp
call fcn.0043f0b0
add esp, 0x14
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 0x14
Function at 0x49c8c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0ad0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4e362c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0046d70e
mov edi, eax
add esp, 4
test edi, edi
je 0x49c96b
push 1
mov dword [ebp - 4], 0
call fcn.0046ebe4
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x49dcd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e362c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
je 0x49dd0e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x49dd5d
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x28], 0xffffffff
lea ecx, [esi + 0x20]
call fcn.0049de50
lea eax, [esi + 0x1c]
push eax
push 0
push esi
push 0x49da60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x28], eax
pop esi
cmp eax, 0xffffffff
jne 0x49dd43
push str.Error_creating_thread
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x49dd67
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d700
mov esp, ebp
pop ebp
ret 4
push 0x4d41bc
push 0xb7
lea ecx, [ebp - 0x214]
call fcn.0049d3a0
push 0x4e068c
lea eax, [ebp - 0x214]
push eax
call fcn.00470766
int3

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x68ae509d
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3e6b1172
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x537170
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc6000]
push edi
jmp 0x53718a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x537191
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x537180
mov eax, 1
add ebx, ebx
jne 0x5371a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5371b4
jne 0x5371d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5371d3
dec eax
add ebx, ebx
jne 0x5371c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x537198
add ebx, ebx
jne 0x5371cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x537225
xor ecx, ecx
sub eax, 3
jb 0x5371eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x53725a
sar eax, 1
mov ebp, eax
jmp 0x5371f6
add ebx, ebx
jne 0x5371f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5371c4
inc ecx
add ebx, ebx
jne 0x537204
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5371c4
add ebx, ebx
jne 0x537211
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x537206
jne 0x537222
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x537206
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x537244
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x537236
jmp 0x537186
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x537244
add edi, ecx
jmp 0x537186
pop esi
mov edi, esi
mov ecx, 0x996a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x537262
cmp byte [edi], 0x13
jne 0x537262
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x537267
lea edi, [esi + 0x133000]
mov eax, dword [edi]
or eax, eax
je 0x5372df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13bcac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x13be14]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x537294
mov ecx, edi
jns 0x5372c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x13be18]
or eax, eax
je 0x5372d9
mov dword [ebx], eax
add ebx, 4
jmp 0x5372b1
call dword [esi + 0x13be28]
mov ebp, dword [esi + 0x13be1c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x537313
sub esp, 0xffffff80
jmp 0x4b0a26
Function at 0x406fb0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.main
mov dword [esp], eax
call sym._exit
nop
nop
nop

Function at 0x407070
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call dbg.__main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x4070ce
xor ecx, ecx
xor edx, edx
jmp 0x4070ae
cmp al, 0x5c
jne 0x407120
add edx, 1
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x4070c3
cmp al, 9
je 0x4070b6
cmp al, 0x20
jne 0x407098
test ecx, ecx
je 0x4070c3
xor edx, edx
jmp 0x4070a3
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x4070c0
cmp al, 0x20
je 0x4070c0
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x20], 1
jne 0x4070e9
mov word [ebp - 0x1c], 1
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.WinMain@16
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
cmp al, 0x22
jne 0x4070ba
and edx, 1
jne 0x4070ba
xor ecx, 1
jmp 0x4070a3
Function at 0x403a77
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45d310]
mov edx, dword [edi]
mov ecx, dword [edi + 4]
and dword [ebp - 8], 0
mov dword [ebp - 0x24], eax
mov eax, dword [0x45d314]
push ebx
mov dword [ebp - 0x20], eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edx
call fcn.00403a70
mov eax, dword [0x45d318]
mov esi, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [str.k_A]
add esi, 0x23f
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x284dabc]
cmp eax, 0xfa9
jne 0x403aef
mov dword [0x284dab8], 0xedeb2e40
cmp eax, 0x3eb
jne 0x403afd
and dword [0x284d544], 0
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x18]
lea ebx, [esi + edx]
xor eax, ebx
xor eax, dword [ebp - 0x1c]
mov dword [0x284dab4], 0xf4ea3dee
sub ecx, eax
mov eax, ecx
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x24]
lea ebx, [esi + ecx]
xor eax, ebx
xor eax, dword [ebp - 4]
add esi, 0x61c88647
sub edx, eax
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
jne 0x403ac3
pop esi
mov dword [edi], edx
mov dword [edi + 4], ecx
pop ebx
leave
ret

Function at 0x403b5b
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00410000
mov eax, dword [0x284dabc]
mov ecx, dword [0x284d548]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x403c30
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x284dabc], 0x959
jne 0x403c1f
push esi
lea eax, [ebp - 0x800]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x403728
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push 0x403750
push esi
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0x40377c
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push esi
lea eax, [ebp - 0x400]
push eax
push esi
push 0x403798
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call fcn.00403a77
add edi, 8
dec ebx
jne 0x403b87
pop edi
pop ebx
pop esi
leave
ret
Function at 0x403ec1
Capabilities:
Access the windows event log
Clear windows event logs
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x404
push ebx
push esi
xor esi, esi
cmp dword [0x284dabc], 0x400
push edi
jne 0x403fa3
push esi
call dword [sym.imp.USER32.dll_WindowFromDC]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0x40397c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogW]
push esi
push esi
call fcn.00404bd0
push esi
push esi
call fcn.004045d9
push esi
call fcn.00404b55
add esp, 0x14
push esi
call fcn.00404e39
fldz
sub esp, 0xc
fst qword [esp + 8]
fstp qword [esp]
call fcn.00404250
add esp, 8
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404290
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404720
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004043c0
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004048a0
fstp st(0)
push esi
call fcn.00404ead
add esp, 0xc
push esi
push esi
call fcn.004044dd
push esi
call fcn.00404c7d
add esp, 0xc
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidthI]
xor edi, edi
cmp edi, 0xacd
jge 0x403fc9
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
push esi
push esi
push esi
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x45be410
jg 0x403feb
inc edi
cmp edi, 0x33309e9
jl 0x403fab
xor edi, edi
cmp edi, 0x16d2a
jge 0x403ffc
push esi
push esi
push esi
push esi
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x12e82fe
jg 0x40401a
inc edi
cmp edi, 0x3011b
jl 0x403fed
mov eax, dword [0x45fc54]
mov dword [0x284dabc], eax
call fcn.00403c33
mov edi, 0x2ec37
cmp dword [0x284dabc], 0x51f
jne 0x404046
push esi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x40402e
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40706b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45c7c4]
jne 0x407075
repz ret
jmp fcn.0040ba2c