joyce8/EMBER2024-capa huggingface dataset:
Function at 0x808390
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb92a8c]
sub esp, 0x2dc
push ebx
push ebp
push esi
mov esi, dword [0x813adc]
shr eax, 3
push edi
test eax, eax
je 0x80852b
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jmp 0x8083c4
mov esi, dword [esp + 0x18]
cmp dword [0xb92a8c], 0x1c
jne 0x8083e1
lea eax, [esp + 0x34]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edx, dword [0x80d200]
mov eax, dword [0x80d204]
mov ecx, dword [0x80d208]
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x24], edx
mov edx, dword [0x80d20c]
mov ebp, 0xc6ef3720
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], 0x20
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x28]
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x2c]
lea edx, [edi + ebp]
xor eax, ecx
xor eax, edx
sub ebx, eax
mov eax, ebx
shl eax, 4
mov dword [0xb929fc], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
cmp dword [0xb92a8c], 0x1be
jne 0x80846d
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, ebx
shr esi, 5
add esi, dword [esp + 0x30]
cmp dword [0xb92a8c], 0x979
mov dword [0xb92a00], 0xff6b3619
mov dword [0xb92a04], 0xffffffff
jne 0x8084aa
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebx + ebp]
xor esi, eax
mov eax, dword [esp + 0x14]
xor eax, esi
sub edi, eax
add ebp, 0x61c88647
dec dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jne 0x80841a
cmp dword [0xb92a8c], 0x8d4
jne 0x8084e2
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x18]
mov dword [esi], edi
mov dword [esi + 4], ebx
cmp dword [0xb92a8c], 0x17
jne 0x80851a
push 0
push 0
push 0
push 0x404690
push 0x4046a0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea eax, [esp + 0x98]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x8083c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412d00
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x412eaa
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x512238
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x17
push str.Protocol_of_Mind
push 0x512238
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x68
push str.Protocol_of_Mind
push 0x512238
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x24
push str.Protocol_of_Mind
push 0x512238
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x78
push str.Protocol_of_Mind
push 0x512238
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xcc
push str.Protocol_of_Mind
push 0x512238
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x20
push str.Protocol_of_Mind
push 0x512238
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x9a
push str.Protocol_of_Mind
push 0x512238
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x8f
push str.Protocol_of_Mind
push 0x512238
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc6
push str.Protocol_of_Mind
push 0x512238
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x1e
push str.Protocol_of_Mind
push 0x512238
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x1f
add esp, 0x40
push str.Protocol_of_Mind
push 0x512238
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xac
push str.Protocol_of_Mind
push 0x512238
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x3e
push str.Protocol_of_Mind
push 0x512238
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xa1
push str.Protocol_of_Mind
push 0x512238
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x20
add esp, 0x30
inc esi
cmp esi, edi
jb 0x412d20
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x451ba9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451bba
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405907
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 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b052
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b063
pop esi
ret
push ebx
push edi
push esi
call fcn.0049af39
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fda
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b08b
push ebx
push esi
push edi
call fcn.004056fa
add esp, 0xc
push 0
call fcn.00406244
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x406582
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
jmp 0x4133a0
sub esp, 0x3c
mov eax, dword [0x50fdd0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], ebp
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov dword [esp + 0x2c], eax
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
test eax, eax
je 0x413543
nop dword [eax]
mov edx, dword [ecx]
xorps xmm0, xmm0
add edx, edi
mov dword [esp + 0x40], 0
mov eax, edx
mov dword [esp + 0x44], 0
movups xmmword [esp + 0x30], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413411
sub eax, esi
lea ecx, [esp + 0x30]
push eax
push edx
call fcn.0040549d
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x24], ebx
test edi, edi
je 0x4134f1
cmp dword [esp + 0x54], 3
jbe 0x4134f1
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x30]
mov edi, edx
mov ebp, edx
xor edi, 0x14d
cmp dword [esp + 0x44], 0x10
cmovae eax, ebx
shr ebp, 2
xor esi, esi
mov dword [esp + 0x1c], eax
test ebp, ebp
je 0x413499
mov ebx, eax
nop dword [eax]
imul ecx, dword [ebx + esi*4], 0x5bd1e991
inc esi
imul edi, edi, 0x5bd1e991
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e991
xor edi, ecx
cmp esi, ebp
jl 0x413470
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
and edx, 3
lea esi, [eax + ebp*4]
xor ecx, ecx
sub edx, 1
je 0x4134c0
sub edx, 1
je 0x4134b7
sub edx, 1
jne 0x4134cd
movsx ecx, byte [esi + 2]
shl ecx, 0x10
movsx eax, byte [esi + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [esi]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor edi, eax
mov eax, edi
shr eax, 0xd
xor eax, edi
imul eax, eax, 0x5bd1e991
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
je 0x4134e9
cmp ecx, dword [esp + 0x54]
je 0x41355c
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
add ecx, 4
mov dword [esp + 0x14], ecx
cmp eax, 0x10
jb 0x413534
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x413526
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4135b1
push ecx
push ebx
call fcn.00401a14
mov ecx, dword [esp + 0x1c]
add esp, 8
inc ebp
mov dword [esp + 0x10], ebp
cmp ebp, dword [esp + 0x28]
jb 0x4133f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403044
add esp, 0x3c
ret
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edi]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x413543
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4135a5
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4135b1
push ecx
push ebx
call fcn.00401a14
add esp, 8
jmp 0x413543
call fcn.004047b9
int3
Function at 0x4912a3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d7f
mov eax, dword [0x50fdd0]
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.00405e57
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4912e5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x491441
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405fab
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 + 0x513a48]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040325b
mov ecx, dword [esi*4 + 0x513a48]
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 0x49143a
cmp eax, dword [edi + ecx + 0x24]
jne 0x49143a
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 0x49143a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040325b
add esp, 0x14
test edx, edx
jl 0x49143a
jg 0x4913b0
test eax, eax
jb 0x49143a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49143a
jl 0x4913ca
cmp dword [ebp - 0x1008], eax
ja 0x49143a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4913e8
test ebx, ebx
je 0x491421
cmp ecx, edi
jae 0x491421
mov al, byte [ecx]
cmp al, 0xd
jne 0x491402
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49140e
cmp byte [ecx + 1], 0xa
jne 0x49140e
inc ecx
jmp 0x49140e
movzx eax, al
movsx eax, byte [eax + 0x5100f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4913e8
cmp edx, ebx
jne 0x4913e8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49143f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403044
leave
ret
Function at 0x491b80
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 + 0x513a48]
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 0x491bc0
cmp byte [ebx], 0xa
jne 0x491bc0
or byte [eax + edi + 0x28], 4
jmp 0x491bc5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x491cc3
mov al, byte [edx]
cmp al, 0x1a
je 0x491ca5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x491bf4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x491c19
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x491c23
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 0x491bd6
jmp 0x491cc3
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 0x491ca0
cmp dword [ebp - 0xc], 0
je 0x491ca0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x513a48]
test byte [eax + edi + 0x28], 0x48
je 0x491c7a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x491c65
mov byte [esi], dl
jmp 0x491c76
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x513a48]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x491cc3
cmp byte [ebp - 1], 0xa
jne 0x491c89
cmp esi, ebx
jne 0x491c89
mov byte [esi], 0xa
jmp 0x491cc2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401929
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x491cc3
mov byte [esi], 0xd
jmp 0x491cc2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x513a48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x491cbf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x491cc3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x491d1f
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 + 0x513a48]
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 0x491d62
cmp word [esi], dx
jne 0x491d62
or byte [edi + eax + 0x28], 4
jmp 0x491d67
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 0x491eba
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 0x491e9a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x491da9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x491ddf
cmp eax, edx
jae 0x491deb
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 0x491d81
jmp 0x491eba
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 0x491e96
cmp dword [ebp - 0x14], 0
je 0x491e96
mov eax, dword [ebx*4 + 0x513a48]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x491e6e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x491e37
mov word [esi], cx
jmp 0x491e6a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x513a48]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x513a48]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x513a48]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x491eba
pop ebx
cmp word [ebp - 4], bx
jne 0x491e7f
cmp esi, dword [ebp + 0xc]
jne 0x491e7f
mov word [esi], bx
jmp 0x491eb7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401929
add esp, 0x10
cmp word [ebp - 4], bx
je 0x491eba
push 0xd
jmp 0x491eb3
mov ecx, dword [ebx*4 + 0x513a48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x491eb1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x491eba
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 0x4995f1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x50fdd0]
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 0x49963c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00499ab3
test al, al
jne 0x499636
sub edx, 2
cmp edx, edi
jne 0x49961c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49965e
lea eax, [edi + 2]
cmp edx, eax
je 0x49965e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004991ea
add esp, 0x10
jmp 0x499758
push esi
lea ecx, [ebp - 0x255]
call fcn.00499ab3
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 0x4996a1
push dword [ebp - 0x25c]
jmp 0x49964e
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 0x4996de
cmp word [ebp - 0x226], 0
je 0x4996ff
cmp word [ebp - 0x226], ax
jne 0x4996de
cmp word [ebp - 0x224], 0
je 0x4996ff
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004991ea
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49974b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4996b8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x499733
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x499758
push 0x498bd2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405542
add esp, 0x10
jmp 0x499728
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.00403044
leave
ret
Function at 0x10545d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x49c000]
push edi
jmp 0x10545ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10545f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10545e0
mov eax, 1
add ebx, ebx
jne 0x1054603
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1054614
jne 0x1054633
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1054633
dec eax
add ebx, ebx
jne 0x1054620
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10545f8
add ebx, ebx
jne 0x105462f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1054685
xor ecx, ecx
sub eax, 3
jb 0x105464b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10546ba
sar eax, 1
mov ebp, eax
jmp 0x1054656
add ebx, ebx
jne 0x1054656
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1054624
inc ecx
add ebx, ebx
jne 0x1054664
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1054624
add ebx, ebx
jne 0x1054671
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1054666
jne 0x1054682
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1054666
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10546a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1054696
jmp 0x10545e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10546a4
add edi, ecx
jmp 0x10545e6
pop esi
mov edi, esi
mov ecx, 0x321bd1
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x10546df
cmp byte [edi], 0xc
jne 0x10546c4
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x10546c2
lea edi, [esi + 0xc0e000]
mov eax, dword [edi]
or eax, eax
je 0x1054730
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc61368]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc6156c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10546e5
mov ecx, edi
jns 0x1054714
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 + 0xc61574]
or eax, eax
je 0x105472a
mov dword [ebx], eax
add ebx, 4
jmp 0x1054702
call dword [esi + 0xc61570]
mov ebp, dword [esi + 0xc61578]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
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 0x1054764
sub esp, 0xffffff80
jmp 0x722940
Function at 0x401530
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push esi
mov esi, ecx
cmp byte [esi + 0x30], 0
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x24], eax
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], edx
je 0x40158c
cmp dword [esi + 0x28], 1
jbe 0x40158c
cmp dword [esi + 0x14], 0
jne 0x40158c
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x401510
push 0
push 0
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x401585
mov al, 1
pop esi
pop ebp
ret 0xc
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor al, al
pop esi
pop ebp
ret 0xc
Function at 0x403870
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5296f9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x58c8c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 8]
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov word [esi], cx
push eax
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
lea edx, [ebx + ebx + 1]
push edx
call fcn.00508531
add esp, 4
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4038e0
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, esi
call fcn.004033c0
push edi
call fcn.005085c5
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4039f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529259
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x58c8c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
mov dword [ebp - 0x50], esi
mov byte [esi], al
push eax
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x4c], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
lea eax, [ebx + ebx + 1]
push eax
call fcn.00508531
add esp, 4
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ebx, ebx
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403a74
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.004031e0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], 1
call fcn.00403920
add esp, 8
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00403710
cmp dword [ebp - 0x34], 0x10
jb 0x403ac2
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0041a1a9
add esp, 4
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], 0
jb 0x403ae2
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0041a1a9
add esp, 4
push edi
call fcn.005085c5
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005089e3
mov esp, ebp
pop ebp
ret