joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b601
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
cmp eax, 8
jne 0x44b614
mov eax, dword [ecx]
mov eax, dword [eax + 8]
ret
pop eax
enter 0xffffffffffff8bc3, 0x41
mov eax, dword [ecx + 0xc]
cmp eax, 7
jg 0x44b643
je 0x44b63f
dec eax
je 0x44b63f
dec eax
je 0x44b63b
dec eax
push 4
sub eax, 9
je 0x44b65d
dec eax
dec eax
je 0x44b658
dec eax
je 0x44b652
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
ret
mov eax, dword [ecx]
mov eax, dword [eax]
ret
xor eax, dword [ebx + 0xdffc340]
loopne 0x44b65c
dec ebx
add byte [ebp + 5], dh
call 0xb7444045
mov eax, dword [0x4c3310]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4c3310], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x15a6058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x15a61a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x15a607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x15a606a
add dl, dl
jne 0x15a6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x15a60dc
xor eax, eax
add dl, dl
jne 0x15a6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x15a617d
add dl, dl
jne 0x15a60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15a60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15a60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15a60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x15a60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x15a6075
mov eax, 1
add dl, dl
jne 0x15a60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15a60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x15a60e1
sub eax, ebx
mov ebx, 1
jne 0x15a6128
mov ecx, 1
add dl, dl
jne 0x15a610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x15a6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x15a6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x15a6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x15a613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x15a614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x15a6136
cmp eax, 0x7d00
jae 0x15a616d
cmp eax, 0x500
jb 0x15a6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x15a6075
cmp eax, 0x7f
ja 0x15a6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x15a6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x15a619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x15a6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x411355
Capabilities:
Encode data using add xor sub operations

Disassembly:
enter 0xffffffffffffca0f, 0xffffffffffffffff
ret

Function at 0x41139e
Capabilities:
Encode data using xor

Disassembly:
adc al, byte [edi - 0x77017e26]
add byte [eax], al
add byte [ebx - 0x35], dh
jo 0x4113ac
dec eax
ret

Function at 0x416e69
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x438dc0
cmp edx, dword [eax]
je 0x416e8b
add eax, 8
inc ecx
cmp eax, 0x438e50
jl 0x416e7c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x438dc0]
jne 0x416fb9
mov eax, dword [0x43d638]
cmp eax, 1
je 0x416f93
test eax, eax
jne 0x416ebc
cmp dword [0x438370], 1
je 0x416f93
cmp edx, 0xfc
je 0x416fb9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x416ef3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00418580
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00412320
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x416f36
lea eax, [ebp - 0x1a4]
push eax
call fcn.00412320
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4302c4
push edi
call fcn.004190e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00418580
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00418590
lea eax, [ebp - 0xa0]
push 0x4302a4
push eax
call fcn.00418590
push dword [esi + 0x438dc4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00418590
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00419abb
add esp, 0x2c
pop edi
jmp 0x416fb9
lea eax, [ebp + 8]
lea esi, [esi + 0x438dc4]
push 0
push eax
push dword [esi]
call fcn.00412320
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41e050
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00412520
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41e11b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41e11b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41e0ce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41e0d9
or bh, 8
and edi, 0x8000000
je 0x41e0f4
mov eax, dword [0x43eddc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41e11b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e4f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41e51b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41e53f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41e55a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x423d11
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x423d53
call fcn.00428880
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x423d53
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x423d4a
xor eax, eax
jmp 0x423d5b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00423d61
pop edi
pop esi
pop ebx
ret 4

Function at 0x4291d3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x429201
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42921f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00429139
jmp 0x42921f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42921f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00429139
test edi, edi
mov eax, edi
jne 0x429209
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4015d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x4017d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x40e8f0], 0xffffffff
mov dword [0x40e8f4], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40e898]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x40e894]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x40e8f8], ecx
call fcn.004017c0
mov eax, dword [0x40d16c]
test eax, eax
jne 0x401661
push 0x4017b0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00401790
push 0x40d00c
push 0x40d008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x40e890]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x40e88c]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x40d004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x40176f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x4016d5
cmp al, 0x22
jne 0x4016c7
cmp byte [esi], 0x22
jne 0x4016de
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x4016ee
cmp al, 0x20
ja 0x4016ee
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4016de
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40170f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401714
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x401754
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4016de
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40176f
Function at 0x403080
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x4173cc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea ecx, [ebp - 0x14c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4030fa
test byte [ebp - 0x14c], 0x10
je 0x4030d7
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea esp, [esp]
lea edx, [ebp - 0x14c]
push edx
push esi
call edi
test eax, eax
je 0x4030f3
test byte [ebp - 0x14c], 0x10
jne 0x4030c0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404c0a
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00404c0a
mov esp, ebp
pop ebp
ret

Function at 0x403110
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x4173cc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea ecx, [ebp - 0x14c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40318a
test byte [ebp - 0x14c], 0x10
jne 0x403167
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea esp, [esp]
lea edx, [ebp - 0x14c]
push edx
push esi
call edi
test eax, eax
je 0x403183
test byte [ebp - 0x14c], 0x10
je 0x403150
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404c0a
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00404c0a
mov esp, ebp
pop ebp
ret

Function at 0x403300
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
mov eax, dword [0x4173cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x217]
push ebx
push eax
mov edi, ecx
mov byte [ebp - 0x218], bl
call fcn.00408ff0
push edi
push esi
lea ecx, [ebp - 0x218]
push str._s_s
push ecx
call fcn.00404c19
add esp, 0x1c
lea edx, [ebp - 0x358]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4033dc
push 0x103
lea ecx, [ebp - 0x10f]
push ebx
push ecx
mov byte [ebp - 0x110], bl
call fcn.00408ff0
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0xc
test byte [ebp - 0x358], 0x10
jne 0x4033c3
lea edx, [ebp - 0x32c]
push edx
push esi
lea eax, [ebp - 0x110]
push str._s_s
push eax
call fcn.00404c19
add esp, 0x10
push 0x80
lea ecx, [ebp - 0x110]
push ecx
call ebx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x358]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403383
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00404c0a
mov esp, ebp
pop ebp
ret
Function at 0x404380
Capabilities:
Create directory
Get common file path
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x4173cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00408ff0
add esp, 0xc
push 0x105
lea ecx, [ebp - 0x110]
push ecx
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x40446d
push 0x105
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec eax
cmp eax, 0x103
ja 0x4044e2
mov al, byte [ebp - 0x320]
lea ecx, [ebp - 0x324]
push ecx
lea edx, [ebp - 0x218]
push edx
mov byte [ebp - 0x110], al
mov byte [ebp - 0x10f], 0
mov dword [ebp - 0x324], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edi, [ebp - 0x110]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404427
mov ecx, 6
mov esi, str.:Documents_and_Settings_
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x218]
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404445
lea edi, [ebp - 0x110]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404455
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x110]
push eax
call fcn.00403110
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 4
test eax, eax
jne 0x404495
push 0
lea ecx, [ebp - 0x110]
push ecx
call esi
test eax, eax
je 0x4044e2
push str.iNodeDeploy
lea edx, [ebp - 0x110]
push edx
push str._s_s
push 0x419620
call fcn.00404c19
push 0x419620
call fcn.00403110
add esp, 0x14
test eax, eax
jne 0x4044cd
push eax
push 0x419620
call esi
test eax, eax
je 0x4044e2
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404c0a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00404c0a
mov esp, ebp
pop ebp
ret
Function at 0x4047e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4173cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x9c
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.00408ff0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x9c
call esi
test eax, eax
jne 0x40483e
lea edx, [ebp - 0xa0]
push edx
mov dword [ebp - 0xa0], 0x94
call esi
test eax, eax
je 0x40485a
cmp dword [ebp - 0x90], 2
jne 0x40485a
cmp dword [ebp - 0x9c], 6
jne 0x40485a
mov eax, 1
cmp byte [ebp - 6], al
je 0x40485c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00404c0a
mov esp, ebp
pop ebp
ret

Function at 0x404c0a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4173cc]
jne 0x404c14
repz ret
jmp fcn.004077bf

Function at 0x40d87e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4173cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004095df
and dword [ebp - 0x14], 0
cmp dword [0x4195f8], 0
mov dword [ebp - 0x18], eax
jne 0x40d931
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40d9d9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40d9d9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4195f8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4195fc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x419600], eax
call edi
push eax
call esi
mov dword [0x419608], eax
test eax, eax
je 0x40d931
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x419604], eax
mov eax, dword [0x419604]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40d98a
cmp dword [0x419608], ecx
je 0x40d98a
push eax
call esi
push dword [0x419608]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40d98a
test ebx, ebx
je 0x40d98a
call edi
test eax, eax
je 0x40d981
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40d981
test byte [ebp - 8], 1
jne 0x40d98a
or dword [ebp + 0x10], 0x200000
jmp 0x40d9bd
mov eax, dword [0x4195fc]
cmp eax, dword [ebp - 0x18]
je 0x40d9bd
push eax
call esi
test eax, eax
je 0x40d9bd
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d9bd
mov eax, dword [0x419600]
cmp eax, dword [ebp - 0x18]
je 0x40d9bd
push eax
call esi
test eax, eax
je 0x40d9bd
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4195f8]
call esi
test eax, eax
je 0x40d9d9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40d9db
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404c0a
leave
ret
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219