joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4113b0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x41cf00]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x41155d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x41ce00]
lea edi, [ecx*4 + 0x41ce00]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x41155d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x41141e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x41142f
push 2
push ebp
push eax
call fcn.004112f0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x41158e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4114d9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x41148a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x411477
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x41145a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41157f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4114d5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x411456
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x41154e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x411522
cmp eax, 5
jne 0x41150b
mov dword [0x41c9d4], eax
mov dword [0x41c9d0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004118a0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x411542
cmp byte [ebp], 0x1a
jne 0x411542
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x41c9d0], 0x1c
jmp 0x411567
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x41c9d0], 9
pop edi
pop esi
pop ebp
mov dword [0x41c9d4], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4114d5
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4115bf
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4114d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4114d9
Function at 0x411f40
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4120fe
push 0x3d
push edi
call fcn.00413e80
mov esi, eax
add esp, 8
test esi, esi
je 0x4120fe
cmp edi, esi
je 0x4120fe
mov dl, byte [esi + 1]
mov ecx, dword [0x41c9fc]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x41c9f8]
cmp eax, ecx
jne 0x411f97
push eax
call fcn.004121d0
add esp, 4
mov dword [0x41c9f8], eax
test eax, eax
jne 0x412012
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x411fbe
mov eax, dword [0x41ca00]
test eax, eax
je 0x411fbe
call fcn.0040ee00
test eax, eax
je 0x41200d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x411fca
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.0040c000
add esp, 4
mov dword [0x41c9f8], eax
test eax, eax
je 0x4120fe
mov dword [eax], 0
mov eax, dword [0x41ca00]
test eax, eax
jne 0x41200d
push 4
call fcn.0040c000
add esp, 4
mov dword [0x41ca00], eax
test eax, eax
je 0x4120fe
mov dword [eax], 0
mov eax, dword [0x41c9f8]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00412150
mov esi, eax
add esp, 8
test esi, esi
jl 0x41210f
cmp dword [ebx], 0
je 0x41210f
test ebp, ebp
je 0x412107
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.0040c250
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x412069
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x412058
lea eax, [esi*4]
push eax
push ebx
call fcn.0040c0b0
add esp, 8
test eax, eax
je 0x412083
mov dword [0x41c9f8], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4120f6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0040c000
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4120f6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.0040c250
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x412087
test ebp, ebp
jne 0x4120f6
test esi, esi
jge 0x412119
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.0040c0b0
add esp, 8
test eax, eax
je 0x4120fe
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x41c9f8], eax
jmp 0x412087
Function at 0x413490
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x41cd24]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
test eax, eax
jne 0x4134d8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x4134b8
mov eax, 1
jmp 0x4134d3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4135a9
mov eax, 2
mov dword [0x41cd24], eax
cmp eax, 1
jne 0x4134f8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4135bb
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x413513
mov ecx, dword [0x41cac0]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
test esi, esi
jne 0x413532
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.0040c000
mov edi, eax
add esp, 4
test edi, edi
jne 0x413546
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4135a0
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x413584
mov edx, dword [esp + 0x24]
push eax
push eax
push 0xffffffffffffffff
push edi
push 1
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x4135a0
push edi
call fcn.0040c250
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push edi
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jne 0x4135b0
push edi
call fcn.0040c250
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.0040c250
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4135c0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x41cd28]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x413608
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x4135e8
mov eax, 2
jmp 0x413603
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4136e8
mov eax, 1
mov dword [0x41cd28], eax
cmp eax, 2
jne 0x413628
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x4136fa
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x413643
mov ecx, dword [0x41cac0]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x413662
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.0040c000
mov esi, eax
add esp, 4
test esi, esi
jne 0x413679
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4136df
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x4136c0
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4136df
push esi
call fcn.0040c250
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x4136ef
push esi
call fcn.0040c250
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.0040c250
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x45afa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushal
pushfd
call dword [0x10011c8]
push eax
call fcn.00048134
push eax
lea edx, [0xfefa5a6]
lea ecx, [0x19904a1a]
sub esp, 0x10
mov dword [esp], edx
push ecx
sub dword [esp + 4], 0xeef3e64
pop ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0xc
jmp fcn.00045b66

Function at 0x47f2a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x20]
push ebx
movzx ebx, word [eax]
push esi
mov esi, dword [ebp + 0x10]
inc esi
and esi, 0xfffffffe
push edi
mov dword [ebp + 0x10], esi
jmp 0x47f64
push dword [ebp + 0x14]
movzx edi, ax
push edi
call fcn.0004812e
push eax
push edi
push dword [ebp + 8]
call fcn.0004811f
push eax
call fcn.00048110
inc esi
and esi, 0xfffffffe
movzx eax, word [esi]
inc esi
xor eax, ebx
inc esi
cmp ax, 0xffff
jne 0x47f44
inc esi
and esi, 0xfffffffe
movzx ecx, word [esi]
inc esi
inc esi
xor ecx, ebx
cmp byte [ebp + 0x28], 0
jne 0x47fa0
cmp byte [ebp + 0x24], 0
jne 0x47fa0
cmp cx, ax
je 0x47fd5
inc esi
and esi, 0xfffffffe
movzx eax, word [esi]
inc esi
xor eax, ebx
inc esi
cmp ax, 0xffff
jne 0x47f8d
jmp 0x47fd5
xor edi, edi
jmp 0x47fcf
mov eax, dword [ebp + 0x20]
movzx eax, word [eax + edi*2]
mov edx, dword [ebp + 0x18]
and eax, 0xfffffff0
add eax, edx
push eax
movzx eax, cx
add eax, dword [ebp + 8]
inc edi
push eax
and edi, 3
call fcn.00048101
inc esi
and esi, 0xfffffffe
movzx ecx, word [esi]
inc esi
inc esi
xor ecx, ebx
cmp cx, 0xffff
jne 0x47fa4
mov ecx, dword [ebp + 0x1c]
push dword [ebp + 0x20]
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [esi + 7]
and eax, 0xfffffff8
mov edx, dword [eax]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add ecx, eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
call fcn.000480ab
cmp byte [ebp + 0x24], 0
jne 0x48012
cmp dword [ebp + 0x14], 0
jne 0x4801c
cmp byte [ebp + 0x28], 0
je 0x4809e
mov esi, dword [ebp + 0x10]
movzx eax, word [esi]
inc esi
xor eax, ebx
inc esi
cmp ax, 0xffff
je 0x48061
mov ecx, dword [ebp + 0x14]
neg ecx
mov dword [ebp + 0x24], ecx
push dword [ebp + 0x24]
movzx edi, ax
push edi
call fcn.0004812e
push eax
push edi
push dword [ebp + 8]
call fcn.0004811f
push eax
call fcn.00048110
inc esi
and esi, 0xfffffffe
movzx eax, word [esi]
inc esi
xor eax, ebx
inc esi
cmp ax, 0xffff
jne 0x48034
cmp byte [ebp + 0x28], 0
je 0x4809e
xor edi, edi
jmp 0x4808d
mov eax, dword [ebp + 0x20]
movzx eax, word [eax + edi*2]
mov edx, dword [ebp + 0x18]
and eax, 0xfffffff0
add eax, edx
neg eax
push eax
movzx eax, cx
add eax, dword [ebp + 8]
inc edi
push eax
and edi, 3
call fcn.00048101
inc esi
and esi, 0xfffffffe
movzx ecx, word [esi]
inc esi
xor ecx, ebx
inc esi
cmp cx, 0xffff
jne 0x4806b
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x24
Function at 0x60502b4f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6050b210
push 0x6050a7c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x3c]
mov edi, eax
mov dword [ebp - 0x44], edi
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
push 4
push 0x2000
shl eax, 0xa
push eax
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call esi
cmp eax, ebx
je 0x60502c13
mov dword [ebp - 0x1c], edi
push 4
push 0x1000
push edi
push eax
call esi
mov esi, eax
mov dword [ebp - 0x48], esi
cmp esi, ebx
je 0x60502c13
mov dword [ebp - 4], ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.MSVCRT.dll_vswprintf]
add esp, 0xc
mov dword [ebp - 0x4c], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
jmp 0x60502c15
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x60503241
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edi
test byte [edi + 0x10], 1
jne 0x605032c5
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x6050326c
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x605032b2
mov eax, dword [edi + 4]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x6050327c
xor esi, esi
jmp 0x605032ab
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.6050a7e0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 4]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x605032c5
test al, 1
je 0x605032c1
and dword [edi + 0x10], 0xfffffffb
jmp 0x605032c5
or dword [edi + 0x10], 4
mov eax, dword [edi + 0x10]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x6050374a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x60503762
xor eax, eax
jmp 0x605037a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x6050375e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x60503793
cmp esi, eax
jae 0x6050375e
movzx edx, word [esi]
dec ecx
lea esi, [esi + edx*2 + 2]
jne 0x60503785
cmp esi, eax
jae 0x6050375e
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x4b0730
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b0759
and eax, 0xffffffdf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4b0759
mov eax, 1
pop esi
ret 4
push esi
push 0x4bf
call fcn.004671c0
push eax
mov eax, dword [0x508354]
push eax
call fcn.0049ac10
add esp, 0xc
xor eax, eax
pop esi
ret 4

Function at 0x4b102c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4da8f0]
jne 0x4b1036
repz ret
jmp fcn.004b80bc

Function at 0x4c0735
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004b79f7
and dword [ebp - 4], 0
cmp dword [0x54c8d8], 0
mov ebx, eax
jne 0x4c07e6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4c0897
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4c0897
push eax
call fcn.004b7985
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x54c8d8], eax
call esi
push eax
call fcn.004b7985
mov dword [esp], 0x4d0908
push edi
mov dword [0x54c8dc], eax
call esi
push eax
call fcn.004b7985
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x54c8e0], eax
call esi
push eax
call fcn.004b7985
pop ecx
mov dword [0x54c8e8], eax
test eax, eax
je 0x4c07e6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004b7985
pop ecx
mov dword [0x54c8e4], eax
mov eax, dword [0x54c8e4]
cmp eax, ebx
je 0x4c083e
cmp dword [0x54c8e8], ebx
je 0x4c083e
push eax
call fcn.004b7a00
push dword [0x54c8e8]
mov esi, eax
call fcn.004b7a00
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4c083e
test edi, edi
je 0x4c083e
call esi
test eax, eax
je 0x4c0835
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4c0835
test byte [ebp - 0xc], 1
jne 0x4c083e
or dword [ebp + 0x10], 0x200000
jmp 0x4c0877
mov eax, dword [0x54c8dc]
cmp eax, ebx
je 0x4c0877
push eax
call fcn.004b7a00
pop ecx
test eax, eax
je 0x4c0877
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4c0877
mov eax, dword [0x54c8e0]
cmp eax, ebx
je 0x4c0877
push eax
call fcn.004b7a00
pop ecx
test eax, eax
je 0x4c0877
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x54c8d8]
call fcn.004b7a00
pop ecx
test eax, eax
je 0x4c0897
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4c0899
xor eax, eax
pop edi
pop esi
pop ebx
leave
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 0x486250
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5e000]
push edi
or ebp, 0xffffffff
jmp 0x486272
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x486279
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x486268
mov eax, 1
add ebx, ebx
jne 0x48628b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48629c
jne 0x4862bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4862bb
dec eax
add ebx, ebx
jne 0x4862a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x486280
add ebx, ebx
jne 0x4862b7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48630d
xor ecx, ecx
sub eax, 3
jb 0x4862d3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x486342
sar eax, 1
mov ebp, eax
jmp 0x4862de
add ebx, ebx
jne 0x4862de
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4862ac
inc ecx
add ebx, ebx
jne 0x4862ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4862ac
add ebx, ebx
jne 0x4862f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4862ee
jne 0x48630a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4862ee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48632c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48631e
jmp 0x48626e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48632c
add edi, ecx
jmp 0x48626e
pop esi
mov edi, esi
mov ecx, 0x94
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48634a
cmp byte [edi], 0xe
jne 0x48634a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x48634f
lea edi, [esi + 0x84000]
mov eax, dword [edi]
or eax, eax
je 0x4863c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9e784]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9e7c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48637c
mov ecx, edi
jns 0x4863ab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9e7c4]
or eax, eax
je 0x4863c1
mov dword [ebx], eax
add ebx, 4
jmp 0x486399
call dword [esi + 0x9e7d4]
mov ebp, dword [esi + 0x9e7c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4863fb
sub esp, 0xffffff80
jmp 0x4013a8
Function at 0x40c990
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x467b9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045c5d6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40ca12
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045a4ed
mov eax, dword [eax]
push 0x47e1c0
push eax
call fcn.0044d354
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045c861
test bl, bl
je 0x40ca12
push 0x47e1c0
lea ecx, [esp + 0xc]
call fcn.0045cbf1
push 0x481d3c
lea ecx, [esp + 0xc]
call fcn.0045cbf1
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40ca4e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045c861
jmp 0x40cb19
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40cad2
lea edx, [esp + 0x7c]
push 0x481d38
push edx
call fcn.0044d354
add esp, 8
test eax, eax
je 0x40cad2
lea eax, [esp + 0x7c]
push 0x481d34
push eax
call fcn.0044d354
add esp, 8
test eax, eax
je 0x40cad2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ca62
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045c861
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40d310
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40d372
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc