joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 4
movzx eax, cx
push esi
push edi
mov esi, edx
push 0x43f4e4
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA_1]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43d5c6
push eax
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esi], eax
test eax, eax
je 0x43d5c6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x43d5d9
jmp 0x43d5ca
mov esi, dword [esp + 8]
mov edx, 0x43f4dc
mov ecx, 0x43f4b0
call fcn.0043d600
mov eax, esi
pop edi
pop esi
add esp, 4
ret

Function at 0x43d600
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
mov eax, 0x43f4ec
push ebx
push esi
push edi
mov ebx, ecx
lea esi, [esp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edi, edx
mov dword [esi], ecx
mov ecx, 0xffffffff
mov dword [esi + 4], eax
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0xc]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x10
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x10]
push esi
push ebx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA_1]
push 0xffff
call dword [sym.imp.KERNEL32.dll_ExitProcess_1]
Function at 0x43e9a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
lea eax, [esp + 0x44]
push ebx
push esi
push edi
push ebp
mov edi, edx
mov esi, ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_GetClipBox]
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClientRect_1]
push esi
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC_1]
call edi
mov dword [esp + 0x14], eax
push esi
call edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x10], eax
push edi
call fcn.0043e7c0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esp + 0x14]
push eax
mov dword [esp + 0x30], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject_1]
mov ecx, dword [esp + 0x34]
push 0
mov dword [esp + 0x3c], eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [esp + 0x40], eax
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
push edi
call fcn.0043e8c0
mov ebp, eax
push edi
call fcn.0043e8e0
mov dword [esp + 0x28], eax
push edi
call fcn.0043e900
mov ebx, eax
push 0
push edi
push ebp
push 4
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov ecx, dword [esp + 0x10]
push eax
push ecx
xor edi, edi
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_SelectObject_1]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
test eax, eax
jle 0x43eaef
xor ebp, ebp
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x44], edi
add edi, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x4c], edi
jle 0x43eae3
lea eax, [esp + 0x44]
lea ecx, [esp + 0x54]
lea edx, [esp + 0x64]
push eax
mov dword [esp + 0x4c], ebp
push ecx
add ebp, ebx
push edx
mov dword [esp + 0x5c], ebp
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x43ead7
mov eax, dword [esp + 0x10]
push 0xcc0020
mov ecx, dword [esp + 0x2c]
push 0
mov edx, dword [esp + 0x50]
push 0
push eax
push ebx
mov eax, dword [esp + 0x58]
push ecx
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt_1]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
cmp eax, ebp
jg 0x43ea8f
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
cmp eax, edi
jg 0x43ea75
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject_1]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject_1]
mov ecx, dword [esp + 0x40]
push 1
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
mov ecx, dword [esp + 0x2c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject_1]
push ecx
call esi
mov ecx, dword [esp + 0x30]
push ecx
call esi
mov eax, dword [esp + 0x34]
push eax
call esi
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC_1]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x64
ret 4
Function at 0x4036c5
Capabilities:
Terminate process

Disassembly:
jmp 0x455599
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4555aa
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405a97
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4037f6
Capabilities:
Query environment variable

Disassembly:
jmp 0x49f0f2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49f103
pop esi
ret
push ebx
push edi
push esi
call fcn.0049efd9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004040d4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49f12b
push ebx
push esi
push edi
call fcn.00405876
add esp, 0xc
push 0
call fcn.0040641a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405943
Capabilities:
Parse pe header

Disassembly:
jmp 0x44434f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44438e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44438e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44438e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44438e
cmp dword [ecx + 0x74], 0xe
jbe 0x44438e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x496bcf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dde
mov eax, dword [0x4d3034]
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.0040600f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x496c11
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x496d6d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040616d
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 + 0x4d6f80]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403319
mov ecx, dword [esi*4 + 0x4d6f80]
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 0x496d66
cmp eax, dword [edi + ecx + 0x24]
jne 0x496d66
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 0x496d66
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403319
add esp, 0x14
test edx, edx
jl 0x496d66
jg 0x496cdc
test eax, eax
jb 0x496d66
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x496d66
jl 0x496cf6
cmp dword [ebp - 0x1008], eax
ja 0x496d66
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x496d14
test ebx, ebx
je 0x496d4d
cmp ecx, edi
jae 0x496d4d
mov al, byte [ecx]
cmp al, 0xd
jne 0x496d2e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x496d3a
cmp byte [ecx + 1], 0xa
jne 0x496d3a
inc ecx
jmp 0x496d3a
movzx eax, al
movsx eax, byte [eax + 0x4d3370]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x496d14
cmp edx, ebx
jne 0x496d14
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x496d6b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004030f8
leave
ret
Function at 0x4974ac
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 + 0x4d6f80]
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 0x4974ec
cmp byte [ebx], 0xa
jne 0x4974ec
or byte [eax + edi + 0x28], 4
jmp 0x4974f1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4975ef
mov al, byte [edx]
cmp al, 0x1a
je 0x4975d1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x497520
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x497545
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49754f
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 0x497502
jmp 0x4975ef
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 0x4975cc
cmp dword [ebp - 0xc], 0
je 0x4975cc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d6f80]
test byte [eax + edi + 0x28], 0x48
je 0x4975a6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x497591
mov byte [esi], dl
jmp 0x4975a2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d6f80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4975ef
cmp byte [ebp - 1], 0xa
jne 0x4975b5
cmp esi, ebx
jne 0x4975b5
mov byte [esi], 0xa
jmp 0x4975ee
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040196f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4975ef
mov byte [esi], 0xd
jmp 0x4975ee
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d6f80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4975eb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4975ef
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49764b
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 + 0x4d6f80]
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 0x49768e
cmp word [esi], dx
jne 0x49768e
or byte [edi + eax + 0x28], 4
jmp 0x497693
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 0x4977e6
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 0x4977c6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4976d5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49770b
cmp eax, edx
jae 0x497717
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 0x4976ad
jmp 0x4977e6
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 0x4977c2
cmp dword [ebp - 0x14], 0
je 0x4977c2
mov eax, dword [ebx*4 + 0x4d6f80]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x49779a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x497763
mov word [esi], cx
jmp 0x497796
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d6f80]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d6f80]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d6f80]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4977e6
pop ebx
cmp word [ebp - 4], bx
jne 0x4977ab
cmp esi, dword [ebp + 0xc]
jne 0x4977ab
mov word [esi], bx
jmp 0x4977e3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040196f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4977e6
push 0xd
jmp 0x4977df
mov ecx, dword [ebx*4 + 0x4d6f80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4977dd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4977e6
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 0x49d691
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d3034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49d6dc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049db53
test al, al
jne 0x49d6d6
sub edx, 2
cmp edx, edi
jne 0x49d6bc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49d6fe
lea eax, [edi + 2]
cmp edx, eax
je 0x49d6fe
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049d28a
add esp, 0x10
jmp 0x49d7f8
push esi
lea ecx, [ebp - 0x255]
call fcn.0049db53
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49d741
push dword [ebp - 0x25c]
jmp 0x49d6ee
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49d77e
cmp word [ebp - 0x226], 0
je 0x49d79f
cmp word [ebp - 0x226], ax
jne 0x49d77e
cmp word [ebp - 0x224], 0
je 0x49d79f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049d28a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49d7eb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49d758
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49d7d3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49d7f8
push 0x49cc72
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004056aa
add esp, 0x10
jmp 0x49d7c8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030f8
leave
ret
Function at 0x40142c
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1aab350
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x4014ac
arpl word [edx + esi], si
test eax, 0xba6d132d
or al, 0xb3
popal
cmp dword es:[edx - 0x5b], ebp
leave
std
test eax, 0x75592280
xor byte [edx + 0x19], bh
les ebp, [ecx + 0x3963bc0e]
mov eax, dword [0x9bc8690a]
loopne 0x40145d
fadd qword [ebx]
xor dword [edx - 0x10], edi
or dword [ebp + 0x6d], ebp
mov ebx, 0x4563a2e6
std
lea ecx, [0xa213a574]
and byte [ecx + 0x64216ce3], 0x5c
in eax, 0xc6
jbe 0x4014e0
movsd dword es:[edi], dword [esi]
out dx, al
mov bh, 0x62
cld
jbe 0x401504
out 0xfe, al
xor ebx, dword [eax + 0x15]
inc eax
sbb bh, 0xd0
invalid
xor eax, 0xf0f4f7b9
adc cl, dh
or ch, al
add ebx, esp
iretd
and al, 0xef
cmp byte [ebx + 0x64], al
mov ebx, 0xe05ca02a
leave
iretd
lodsb al, byte [esi]
xor eax, 0xea6d3d10
retf
Function at 0x42211b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42215a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42215a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42215a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42215a
cmp dword [ecx + 0x74], 0xe
jbe 0x42215a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4347a0
Capabilities:
Parse pe header

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

Function at 0x401320
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x404169], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.trast
push str.bask
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401368
xor eax, eax
jmp 0x401383
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402630
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
jmp fcn.0040263d
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x40152a
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
lea eax, [ebp - 0x124]
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x120]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x124], 0x14
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
movzx eax, word [ebp - 0x120]
sub esp, 0x14
leave
sub eax, 0x41
ret

Function at 0x401586
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 0
call fcn.0040152a
test eax, eax
jne 0x401620
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x4020b6
sub eax, 0x401654
mov dword [esp], 0x401654
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401620
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.00401420
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004014a3
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b600
mov dword [esp], 0x40300c
call fcn.00401db9
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0xa7b01c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xa7b026
pushal
call 0xa7b02c
pop ebp
sub ebp, 0x10
sub ebp, 0x67b01c
jmp 0xa7b042
mov eax, 0x67b01c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c8
mov edx, 0x2d7dcfed
xor byte [eax], dl
inc eax
dec ecx
jne 0xa7b059
jmp 0xa7b06c
and byte [esi + 0x64], ah
shr ebp, 1
in eax, dx
in eax, dx
insb byte es:[edi], dx
sub al, 0x15
in eax, dx
in eax, dx
in eax, dx
out dx, al
and byte [ebp - 0x15], dl
in eax, dx
in eax, dx
in eax, dx
push edi
vpaddsw ymm5, ymm2, ymm5
sbb cl, byte [edi]
out dx, al
and eax, 0xede16c66
in eax, dx
in eax, dx
out dx, al
sub byte [ebp - 0x612e7a43], bh
jecxz 0xa7b086
test dword [ebx], esi
sal dword [ebp + ebp*8 - 0x7a363e14], 1
ror ecx, 0x85
push ebp
dec byte [0xede805aa]
in eax, dx
in eax, dx
add al, 0xc7
in eax, dx
in eax, dx
in eax, dx
mov eax, 0xedc98160
push 0xede5
in eax, dx
in eax, dx
js 0xa7b09f
in eax, dx
in eax, dx
in eax, dx
pushaw
std
in eax, dx
in eax, dx
in eax, dx
sub al, 4
out dx, eax
fsub st(7), st(0)
outsb dx, byte [esi]
das
jmp 0x1a109377