joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48bcf5
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00483800
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x48bd90
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x547448]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x48bd90
cmp eax, 1
je 0x48bdb1
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x48bd90
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x48bd5d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x48bd8c
xor eax, eax
inc eax
jmp 0x48bdd0
cmp edi, eax
jae 0x48bd94
xor eax, eax
jmp 0x48bdd0
cmp eax, esi
jae 0x48bd9b
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x547448]
jmp 0x48bdb4
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48d73d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x528c14]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x48d76e
xor eax, eax
jmp 0x48d8f7
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x549980]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x48d7aa
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004915d3
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x48d885
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x48d8c3
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x48d80e
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x48d7ff
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x48d7df
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x48d84e
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x48d857
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x48d7d0
jmp 0x48d859
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x48d8f2
cmp dword [ebp - 0x6c], edi
je 0x48d8c3
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x48d8b8
call fcn.00484402
mov dword [eax], 9
call fcn.0048440b
mov dword [eax], esi
jmp 0x48d8ed
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x48d8ad
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x48d859
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x48d859
push dword [ebp - 0x6c]
call fcn.00484414
pop ecx
jmp 0x48d8ed
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x48d8db
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x48d8db
xor eax, eax
jmp 0x48d8f5
call fcn.00484402
mov dword [eax], 0x1c
call fcn.0048440b
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x48d8f5
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0048be09
add ebp, 0x3a0
leave
ret
Function at 0x48da72
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x48dc46
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x549980]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x48dc46
test cl, 0x48
je 0x48dadd
cmp byte [eax + 5], 0xa
je 0x48dadd
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48db2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x48db17
call fcn.00484402
mov dword [eax], 9
call fcn.0048440b
mov dword [eax], esi
jmp 0x48db27
cmp eax, 0x6d
je 0x48dc46
push eax
call fcn.00484414
pop ecx
or eax, 0xffffffff
jmp 0x48dc48
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x48dc41
test eax, eax
je 0x48db56
cmp byte [ebx], 0xa
jne 0x48db56
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x48db5f
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x48dc3b
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x48dc2b
cmp al, 0xd
je 0x48db91
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x48dc1d
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x48dbab
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x48dba6
add dword [ebp + 0x10], 2
jmp 0x48dbff
mov dword [ebp + 0x10], eax
jmp 0x48dc19
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48dbd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48dc19
cmp dword [ebp - 0xc], 0
je 0x48dc19
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x48dbf4
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x48dbff
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x48dc1c
cmp ebx, dword [ebp + 0xc]
jne 0x48dc04
cmp byte [ebp - 1], 0xa
jne 0x48dc04
mov byte [ebx], 0xa
jmp 0x48dc1c
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0048eba3
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x48dc1d
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x48db75
jmp 0x48dc3b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x48dc3b
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x48dc48
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48f899
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x547820], ebx
push esi
push edi
jne 0x48f919
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x48f954
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x50c7a4
push edi
call esi
test eax, eax
mov dword [0x547820], eax
je 0x48f954
push 0x50c794
push edi
call esi
push 0x50c780
push edi
mov dword [0x547824], eax
call esi
cmp dword [0x547448], 2
mov dword [0x547828], eax
jne 0x48f919
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x547830], eax
je 0x48f919
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x54782c], eax
mov eax, dword [0x54782c]
test eax, eax
je 0x48f95e
call eax
test eax, eax
je 0x48f945
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x547830]
test eax, eax
je 0x48f945
test byte [ebp - 8], 1
jne 0x48f95e
cmp dword [0x547454], 4
jb 0x48f958
or byte [ebp + 0x12], 0x20
jmp 0x48f97d
xor eax, eax
jmp 0x48f98d
or byte [ebp + 0x12], 4
jmp 0x48f97d
mov eax, dword [0x547824]
test eax, eax
je 0x48f97d
call eax
mov ebx, eax
test ebx, ebx
je 0x48f97d
mov eax, dword [0x547828]
test eax, eax
je 0x48f97d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x547820]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48fa71
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x48fa9f
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x48faa6
cmp ebx, dword [eax + 4]
jae 0x48faa6
xor eax, eax
jmp 0x48fc96
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x48fab7
xor eax, eax
inc eax
jmp 0x48fc95
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x48facd
cmp ecx, edx
jae 0x48fc12
cmp dword [eax + 4], 0
je 0x48fad6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x48fabe
cmp dword [ebp + 8], 0
je 0x48faf8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x48fc12
cmp eax, esi
jae 0x48fc12
mov eax, dword [0x547838]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x48fb1d
cmp dword [esi*4 + 0x547840], edi
je 0x48fc16
inc esi
cmp esi, eax
jl 0x48fb0b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x48fc92
cmp dword [ebp - 8], 0x1000000
jne 0x48fc92
test byte [ebp - 0xc], 0xcc
je 0x48fb9b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x48fc92
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x48fc92
cmp word [eax + 0x18], 0x10b
jne 0x48fc92
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x48fc92
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x48fb9b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x48fb9b
test byte [ecx + 0x27], 0x80
jne 0x48fc12
push 1
push 0x547880
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x48faaf
mov ecx, dword [0x547838]
test ecx, ecx
mov edx, ecx
jle 0x48fbcf
lea eax, [ecx*4 + 0x54783c]
cmp dword [eax], edi
je 0x48fbcf
dec edx
sub eax, 4
test edx, edx
jg 0x48fbc3
test edx, edx
jne 0x48fc00
push 0xf
pop ebx
cmp ecx, ebx
jg 0x48fbdc
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x48fbf4
lea eax, [edx*4 + 0x547840]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x48fbe2
cmp ecx, 0x10
jge 0x48fc00
inc ecx
mov dword [0x547838], ecx
push 0
push 0x547880
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x48faaf
xor eax, eax
jmp 0x48fc95
test esi, esi
jle 0x48faaf
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x547880
call ebx
test eax, eax
jne 0x48faaf
cmp dword [esi*4 + 0x547840], edi
je 0x48fc6c
mov eax, dword [0x547838]
lea esi, [eax - 1]
test esi, esi
jl 0x48fc5a
cmp dword [esi*4 + 0x547840], edi
je 0x48fc56
dec esi
jns 0x48fc4a
test esi, esi
jge 0x48fc6a
cmp eax, 0x10
jge 0x48fc65
inc eax
mov dword [0x547838], eax
lea esi, [eax - 1]
jmp 0x48fc6c
je 0x48fc84
xor ecx, ecx
test esi, esi
jl 0x48fc84
lea eax, [ecx*4 + 0x547840]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x48fc72
push 0
push 0x547880
call ebx
jmp 0x48faaf
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x496e9c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x496ed4
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00494f50
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00494f28
jmp 0x496ee0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49858a
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 0x4985cc
call fcn.0049e143
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4985cc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4985c3
xor eax, eax
jmp 0x4985d4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004985da
pop edi
pop esi
pop ebx
ret 4

Function at 0x49e673
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 0x49e6a1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49e6bf
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049e5d9
jmp 0x49e6bf
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49e6bf
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049e5d9
test edi, edi
mov eax, edi
jne 0x49e6a9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401260
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
sub esp, 0x60
lea eax, [esp]
push esi
push eax
mov dword [esp + 8], 0
call fcn.004011c0
add esp, 4
test eax, eax
jne 0x401281
pop esi
add esp, 0x60
ret
mov ecx, 0x10
lea eax, [esp + 8]
lea ebx, [ebx]
mov byte [eax], 0
add eax, 1
sub ecx, 1
jne 0x401290
mov ecx, 0x44
lea eax, [esp + 0x18]
mov byte [eax], 0
add eax, 1
sub ecx, 1
jne 0x4012a4
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov dword [esp + 0x38], 0x44
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
pop esi
add esp, 0x60
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x29a0e298
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x29a0e2a7
pop dword [ebp - 0x30]
mov eax, 0x29a0e2a7
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x5d6c16ac
add dword [ebp - 0x40], 0xf0e62e9f
mov dword [ebp - 0x3c], 0x83aa3bbc
sub dword [ebp - 0x3c], 0x5176ef77
mov dword [ebp - 0x38], 0x8a428fd1
add dword [ebp - 0x38], 0xc209b45d
mov dword [ebp - 0x34], 0x9235f45b
sub dword [ebp - 0x34], 0x9235f45b
lea eax, [ebp - 0x40]
push eax
mov eax, 0xf83283ef
sub eax, 0xce914363
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x4f7abd1e
sub dword [ebp - 0x40], 0xdb0853c8
mov dword [ebp - 0x3c], 0x79f45b8a
sub dword [ebp - 0x3c], 0x3887fa15
mov dword [ebp - 0x38], 0x8fe662e8
sub dword [ebp - 0x38], 0x2c76f67c
mov dword [ebp - 0x34], 0xa21ea0b1
sub dword [ebp - 0x34], 0xa21ea0b1
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x287985b7
add eax, 0x127ba8d
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x399b6
push 0
call eax
mov ecx, 0xbf048e26
sub ecx, 0xbf0448a5
mov edi, eax
mov esi, 0x3e7afe0d
sub esi, 0x14d8ce0d
add esi, dword [ebp - 0x30]
mov ebx, 0x87c1ab3e
xor dword [ebp - 0x2c], 0x73e122c
mov edx, dword [esi]
mov dword [ebp - 0xc], 0x4781639
sub edx, ebx
xor dword [ebp - 0x28], edx
mov dword [edi], edx
sub dword [ebp - 8], 0x96fe4829
add edi, 4
add esi, 4
loop 0x29a0e3be
add eax, 0x4394bb4
sub eax, 0x43842dd
mov ebx, eax
add eax, 0xf2d5e62f
add eax, 0xd2a19d6
mov ecx, 0xe7ef587a
add ecx, 0x41b0a786
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x56d9fd
Capabilities:
Encode data using xor

Disassembly:
scasb al, byte es:[edi]
xor ebx, esp
and edi, dword [eax - 0x5c]
add ebp, dword [edi]
mov cl, 0x5b
xchg esp, eax
jns 0x56d9fa
mov dl, 0x73
je 0x56da3a
imul eax, dword [0x886cda21], 0xffffffb3
pushfd
clc
jecxz 0x56da13
xor byte [edi + 0x47601f92], 0x17
nop
out dx, al
ret
movsd dword es:[edi], dword [esi]
sub eax, ebx
rcl byte [eax - 0x27], 0xa9
cmp ebx, dword [edi + edi*4]
xchg ebp, eax
test eax, 0x55791e4a
sbb dl, cl
push es
js 0x56da97
inc ebp
sub byte [ecx - 0x5c6962d4], 0xf0
lodsb al, byte [esi]
out 0x4b, al
int3
pushfd
add dword [esi], esi
inc ebp
out dx, al
dec eax
mov eax, 0x5d07a7d5
inc ebx
pop es
xchg ebp, eax
push es
xchg dword [esp + eax*2], esp
add dword [ebp - 0x65], eax
jns 0x56db25
xor eax, dword [edi - 0x13]
xchg esi, eax
xchg edx, eax
mov dl, 0xaa
adc cl, 1
cmp ch, byte [esi + 0x68]
sahf
enter 0x1ace, 0xffffffffffffffed
imul edx, dword [eax - 0x80], 0x9e734860
call 0x714f8a96
inc esi
or al, 0x81
xchg ebx, eax
ret 0x39b3
sbb al, 0x2d
and byte [eax], bh
inc ecx
jle 0x56db59
stosd dword es:[edi], eax
fbstp tbyte [eax]
stc
xchg ebx, eax
sub bl, ch
invalid
xchg esp, eax
xor dword [edx], ebx
and esp, dword [esi]
sbb al, 0xc9
jo 0x56db91
lodsd eax, dword [esi]
jmp 0x586836e5
call 0x9ae93782
invalid

Function at 0x5b6dde
Capabilities:
Encode data using xor

Disassembly:
mov dword [0x21c218f6], eax
xchg ecx, eax
call ebx
mov eax, 0x378679a6
invalid
push edi
jne 0x5b6d80
xchg edx, eax
cli
ret 0xf182
Function at 0x401207
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x41a2f8]
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [0x41a2fc]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], eax
mov esi, dword [edi]
mov edx, dword [edi + 4]
mov dword [ebp - 4], esi
mov dword [ebp - 8], edx
call fcn.00401200
mov ebx, dword [ebp - 0x14]
add ebx, 0x23f
cmp dword [0xb5ec2c], 0x14
jne 0x401265
push 0
lea eax, [ebp - 0x82c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov edx, dword [ebp - 8]
mov ecx, dword [0x41a300]
mov eax, dword [0x41a304]
push 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
pop edi
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, esi
mov dword [ebp - 8], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xb5ec2c], 0xfa9
mov dword [ebp - 0xc], eax
mov eax, dword [0xb5ec28]
cmove eax, dword [ebp - 8]
and dword [ebp - 8], 0
cmp dword [0xb5ec2c], 0x3eb
mov dword [0xb5ec28], eax
mov eax, dword [0xb5eb80]
cmove eax, dword [ebp - 8]
mov dword [0xb5eb80], eax
lea eax, [ebx + esi]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
and dword [ebp - 4], 0
mov dword [0xb5ec24], 0xf4ea3dee
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 8]
sub edx, eax
mov dword [ebp - 0x10], eax
mov eax, edx
mov dword [ebp - 8], edx
shl eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
lea eax, [ebx + edx]
mov dword [ebp - 4], edx
shr dword [ebp - 4], cl
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0xc]
xor ecx, eax
cmp dword [0xb5ec2c], 0xb03
mov dword [ebp - 0xc], ecx
jne 0x401359
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
jmp 0x40135c
mov eax, dword [ebp - 4]
xor ecx, eax
add ebx, 0x61c88647
sub esi, ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], esi
dec edi
jne 0x401279
mov edi, dword [ebp - 0x28]
mov dword [edi], esi
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cbce
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419f20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408d7c
mov dword [ebp - 0x14], eax
cmp dword [0x4ba41c], esi
jne 0x40ccc1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40cc4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40cda1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40cda1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cda1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ba41c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ba420], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ba424], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ba42c], eax
test eax, eax
je 0x40ccbe
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ba428], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40cce6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ccd9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40ccfb
push 4
pop eax
jmp 0x40cda3
cmp dword [ebp - 0x14], esi
je 0x40ccfb
push dword [0x4ba41c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40cce0
mov eax, dword [0x4ba428]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40cd59
cmp dword [0x4ba42c], edi
je 0x40cd59
push eax
call ebx
push dword [0x4ba42c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40cd59
test eax, eax
je 0x40cd59
call ecx
test eax, eax
je 0x40cd4e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40cd4e
test byte [ebp - 8], 1
jne 0x40cd59
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40cd89
mov eax, dword [0x4ba420]
cmp eax, edi
je 0x40cd86
push eax
call ebx
test eax, eax
je 0x40cd86
call eax
mov esi, eax
test esi, esi
je 0x40cd86
mov eax, dword [0x4ba424]
cmp eax, edi
je 0x40cd86
push eax
call ebx
test eax, eax
je 0x40cd86
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ba41c]
call ebx
test eax, eax
je 0x40cda1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40cda3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404328
mov esp, ebp
pop ebp
ret