joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005b70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4000]
push edi
or ebp, 0xffffffff
jmp 0x1005b92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1005b99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1005b88
mov eax, 1
add ebx, ebx
jne 0x1005bab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1005ba0
jne 0x1005bbc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1005ba0
xor ecx, ecx
sub eax, 3
jb 0x1005bd0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1005c42
mov ebp, eax
add ebx, ebx
jne 0x1005bdb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1005be8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1005c0c
inc ecx
add ebx, ebx
jne 0x1005bf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1005bed
jne 0x1005c09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1005bed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1005c2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1005c1d
jmp 0x1005b8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1005c2c
add edi, ecx
jmp 0x1005b8e
pop esi
mov edi, esi
mov ecx, 0x35
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1005c4a
cmp byte [edi], 0
jne 0x1005c4a
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 0x1005c4f
lea edi, [esi + 0x3000]
mov eax, dword [edi]
or eax, eax
je 0x1005cbe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1005c7c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5054]
or eax, eax
je 0x1005cb8
mov dword [ebx], eax
add ebx, 4
jmp 0x1005c99
call dword [esi + 0x505c]
mov ebp, dword [esi + 0x5058]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
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 0x1005cf2
sub esp, 0xffffff80
jmp 0x10023b0
Function at 0x434ffa
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x45bcd0
call fcn.00435c74
mov edi, 0x94
mov eax, edi
call fcn.00434160
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4788e8], ecx
mov eax, dword [esi + 4]
mov dword [0x4788f4], eax
mov edx, dword [esi + 8]
mov dword [0x4788f8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4788ec], esi
cmp ecx, 2
je 0x43505a
or esi, 0x8000
mov dword [0x4788ec], esi
shl eax, 8
add eax, edx
mov dword [0x4788f0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x435095
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x435095
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4350ad
cmp eax, 0x20b
je 0x43509a
mov dword [ebp - 0x1c], esi
jmp 0x4350c1
cmp dword [ecx + 0x84], 0xe
jbe 0x435095
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4350bb
cmp dword [ecx + 0x74], 0xe
jbe 0x435095
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00438760
pop ecx
test eax, eax
jne 0x4350d5
push 0x1c
call fcn.00434fd6
pop ecx
call fcn.0043794c
test eax, eax
jne 0x4350e6
push 0x10
call fcn.00434fd6
pop ecx
call fcn.0043b83a
mov dword [ebp - 4], esi
call fcn.0043aed4
test eax, eax
jge 0x4350ff
push 0x1b
call fcn.00434fb1
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x47a1b0], eax
call fcn.0043b718
mov dword [0x4788d4], eax
call fcn.0043b676
test eax, eax
jge 0x435125
push 8
call fcn.00434fb1
pop ecx
call 0x43b443
test eax, eax
jge 0x435136
push 9
call fcn.00434fb1
pop ecx
push 1
call fcn.00435adb
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x43514c
push eax
call fcn.00434fb1
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call int.0043b3e6
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x43516d
movzx eax, word [ebp - 0x40]
jmp 0x435170
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00440f2a
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x43518e
push edi
call fcn.00435c08
call fcn.00435c2a
jmp 0x4351c0
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00435caf
ret
Function at 0x435b45
Capabilities:
Terminate process

Disassembly:
push 8
push 0x45bd50
call fcn.00435c74
push 8
call fcn.00438904
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x478928], esi
jne 0x435b79
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x478924], esi
mov al, byte [ebp + 0x10]
mov byte [0x478920], al
cmp dword [ebp + 0xc], edi
jne 0x435bc3
cmp dword [0x47a1a8], edi
je 0x435bb3
mov eax, dword [0x47a1a4]
sub eax, 4
mov dword [0x47a1a4], eax
cmp eax, dword [0x47a1a8]
jb 0x435bb3
mov eax, dword [eax]
cmp eax, edi
je 0x435b94
call eax
jmp 0x435b94
push 0x4690e8
mov eax, 0x4690e0
call fcn.00435ac3
pop ecx
push 0x4690f4
mov eax, 0x4690ec
call fcn.00435ac3
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x435bf4
cmp dword [ebp + 0x10], edi
jne 0x435c02
mov dword [0x478928], esi
push dword [ebp + 8]
call fcn.00435a81
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x435c01
push 8
call fcn.0043884f
pop ecx
ret
call fcn.00435caf
ret

Function at 0x4395bc
Capabilities:
Authenticate hmac

Disassembly:
fst dword [eax - 0x3110a6ab]
jg 0x4395fe
popal
pushfd
mov eax, 0x138ed650
jns 0x4395f2
xchg edi, eax
pop edx
jmp 0x439606
int3
dec eax
test byte [esi + 0x17], bh
invalid
loop 0x439622
cwde
push 0xc4997c1
mov ah, 0xfa
outsd dx, dword [esi]
lahf
insd dword es:[edi], dx
stosd dword es:[edi], eax
inc ecx
ret
jae 0x439625
xor dl, byte [edi - 0x35]
cmp dword [ebx], edi
adc eax, 0x36e9198e
add cl, byte [edi]
je 0x4395df
push edi
retf
cmp edi, dword [edx + 0x17406098]
cmp byte [eax + 0x308fcc8c], dl
invalid
Function at 0x1157120
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1bd65ea
lodsb al, byte [esi]
stc
neg al
pushal
cmc
call fcn.01b0de84
add byte [eax], al
inc esp
outsd dx, dword [esi]
arpl word [ebp + 0x6d], si
outsb dx, byte gs:[esi]
je 0x1bd6650
jb 0x1bd6671
jo 0x1bd6669
jb 0x1bd667a
imul esp, dword [ebp + 0x73], 0x80690041
inc eax
div dword [eax - 0xb]
cmc
dec eax
loope 0x1bd667d
leave
dec eax
cmc
loope 0x1bd668f
ror dword [eax - 0x3b], 1
je 0x1bd6685
dec ebx
jno 0x1bd662d
mov dl, 0x68
dec ecx
invalid
popfd
std
cli
hlt
pop ebp
jg 0x1bd66af
cmpsb byte [esi], byte es:[edi]
inc ebx
clc
jae 0x1bd664b
push ss
push 0x45f3e2f1
inc ebp
std
daa
rcr byte [ebp + 3], 0xdd
add ebx, ebp
sub ebx, dword [esi + 0x219c9c8d]
imul ecx, dword [eax + 0x77], 0x391d869b
cmp al, 0x90
lahf
fstp xword [edx]
mov ebx, 0xa234052
out 0xd4, eax
dec ebp
loope 0x1bd663e
cmp ebx, dword [eax]
or dword [ebx], 0xffffffc8
or ecx, eax
enter 0xffffffffffff9d07, 0x7f
ret 0xdbc5
invalid
push esi
xlatb
sbb dword ss:[edx], 0xffffff82
or dh, byte [edx - 0x49d951d6]
cmp al, byte [esi - 0x427f4dda]
sub ch, byte [esi - 0x79c549da]
mov dl, 0x80
mov ebp, 0xdd395197
xchg edi, eax
push ecx
cmp ebp, ebx
sub ecx, dword [esi - 0x3d4075ee]
invalid
fmulp st(3)
jp 0x1bd66b7
mov ch, 0
mov ah, 0xa5
movsd dword es:[edi], dword [esi]
dec edx
mov edx, 0x4c4fe08e
xor ah, byte [ebx + 0x32a38226]
and dword [eax], esi
xor byte [edx + ebp*2 - 0x5a], al
push 0xffffffffffffff86
scasd eax, dword es:[edi]
push edx
sub al, byte [ebx + 0x35232cb9]
aam 0x69
js 0x1bd6742
or al, byte [ebp - 0xc]
invalid
sbb eax, 0x141b1cb4
cmp ebp, 0x7c
sal dword [ebp + 0x64], 1
jne 0x1bd67a8
jae 0x1bd6739
sub al, 0xa2
pop ss
js 0x1bd67b5
imul ecx, dword [ebx - 0x6e], 0x260be70a
sub al, 0x72
inc eax
add al, 0xb1
add eax, 0xd4c6d756
cmp dword [ebx], 0xffffffac
inc eax
sal eax, 0x1b
mov eax, 0x2d6e40b2
nop
shr dword [edx - 0x15], cl
jae 0x1bd676a
push edi
inc esi
inc esi
lodsd eax, dword [esi]
scasb al, byte es:[edi]
cmp eax, ecx
sbb dl, byte gs:[eax]
push ebx
or eax, 0xf3b7a8b7
jnp 0x1bd67e9
invalid
jmp 0xd30240fd
fld dword [ecx + edx*8 + 0x5c]
jmp 0xf30e5d0b
in eax, 0x28
sub al, 0xf5
cmc
push ss
in eax, dx
je 0x1bd67aa
jne 0x1bd67b8
invalid
into
into
popfd
add byte [ecx], dl
add esp, dword [ebp + 0x1687a8e8]
mov esi, 0x619e44af
inc esp
salc
inc edi
add al, 0xa1
cmp al, 0x88
sub al, 0x8c
or al, 0xb8
add byte [esi + ecx + 0x12ce4aac], cl
in al, dx
push edi
pushfd
add byte [esi], ch
inc edi
pop ecx
inc edx
int1
and dl, bl
sbb dword [edi + 0x45], 0x1b
mov ebx, 0xd3ad0d1e
jle 0x1bd688f
int 0xec
jge 0x1bd6894
mul byte [edx - 0x16]
pop edx
fcmove st(0), st(3)
not bh
jno 0x1bd68af
pop ds
invalid
stc
jo 0x1bd6887
leave
push 0x58c574dd
fnsave dword [ebp + eax*8 + 0x58]
frstor dword [eax - 0x3b]
jl 0x1bd6892
leave
jne 0x1bd684a
call 0xc39d9f5f
pop eax
int 0x59
dec eax
dec eax
and al, cl
invalid
retf 0xa14d
Function at 0x1bcd441
Capabilities:
Encode data using xor

Disassembly:
iretd
clc
cmp cx, 0xdb65
test edi, edi
mov byte [esp + 0x14], cl
call fcn.01bd6f84
xor al, 0x25
in eax, 0x45
jno 0x1bcd44d
movzx eax, byte [ebx]
mov edx, 0x920f8613
and ecx, dword [esi - 0x45d451f1]
aas
inc esp
or dword [ebp - 0x11943111], edi
push 0x17
pop ss
cmp dword [esi - 0x37], 5
cdq
sahf
xchg ecx, eax
mov bl, 0x22
xchg dword [esi + 0x5051407], esp
rol byte [ebx], 1
xchg edi, eax
shr dword [0x28a5cbcb], 0x6c
loope 0x1bcd41f
test bh, al
push edx
arpl word [ecx + 0x6e], si
fdivr qword [ebx - 0xb]
push esp
inc ebp
scasb al, byte es:[edi]
push ebp
push ebp
xchg edi, eax
jecxz 0x1bcd4a0
mov dword [0xca72e342], eax
jp 0x1bcd483
jecxz 0x1bcd514
retf 0xde7a
invalid
sub al, 0x7f
ret 0x73d3
leave
push eax
leave
jns 0x1bcd4e2
shr byte [ecx + ebx], cl
sub al, 0x78
mul byte [esi - 6]
inc esi
pop es
adc dword [ebx + ebx*4 + 0x7e6fce8d], edx
hlt
push edi
in eax, dx
push ds
or al, 0xa1
nop
jecxz 0x1bcd584
pop ebp
push 0xffffffffffffffca
mov dword [eax], ebp
jnp 0x1bcd4fd
pop edx
ret 0xc64e
iretd

Function at 0x1bd6ed7
Capabilities:
Encode data using xor

Disassembly:
inc al
cmc
ror al, 3
cmc
call 0x1bd4067

Function at 0x1bdbd80
Capabilities:
Access peb ldr_data

Disassembly:
pushfd
mov dword fs:[eax], edx
mov word [esp], 0x1766
mov byte [esp], bl
mov word [esp + 0xc], 0x474f
lea esp, [esp + 0x30]
jmp 0x1bdb27a
add ebp, 8
jmp 0x1bdb11c
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [str.SOFTWAREAdobeAdobe_Acrobat9.0AcroSpeedLaunch]
sub esp, 0x10
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401064
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401059
cmp dword [esp + 0xc], 4
jne 0x401059
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x401090
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push 1
push str.ServicesActive
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x4010fb
push esi
push edi
xor edi, edi
cmp edi, 0xc
jae 0x4010f2
mov eax, dword [edi + 0x40902c]
push 4
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4010eb
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4010e4
cmp dword [esp + 0x14], 4
jne 0x4010e4
mov bl, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add edi, 4
test bl, bl
je 0x4010b0
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x1c
ret
Function at 0x4016c0
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 0x28
call fcn.004012f0
test al, al
jne 0x40187e
mov eax, dword [str.Mode]
push esi
push eax
xor eax, eax
call fcn.00401000
mov esi, eax
add esp, 4
cmp esi, 3
jae 0x401875
cmp esi, 2
je 0x401875
push edi
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ecx
call fcn.004011e0
add esp, 4
test eax, eax
mov dword [0x409430], eax
je 0x40186b
call fcn.00401070
test al, al
jne 0x401854
push 0x401110
push 0x1f4
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov edi, eax
test edi, edi
mov dword [esp + 8], edi
je 0x401854
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x409434], eax
je 0x40184b
push 0x409418
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor eax, eax
cmp esi, 1
sete al
lea edx, [esp + 0x10]
push edx
push 0
mov byte [0x40943c], 0
push eax
push 0x401390
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x409438], eax
je 0x401829
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call esi
test eax, eax
je 0x4017e9
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
cmp eax, 0xffffffff
je 0x4017e4
lea edx, [esp + 0x18]
push edx
call ebp
lea eax, [esp + 0x18]
push eax
call edi
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
call esi
test eax, eax
jne 0x4017c0
mov edi, dword [esp + 0xc]
pop ebp
call fcn.00401140
mov edx, dword [0x409438]
push 0x1388
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401812
mov eax, dword [0x409438]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x409438]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x409438], 0
mov edx, dword [0x409434]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x409418
mov dword [0x409434], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push edi
push 0
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [0x409430]
push ecx
call fcn.004012c0
add esp, 8
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret 0x10
xor eax, eax
pop esi
add esp, 0x28
ret 0x10
xor eax, eax
add esp, 0x28
ret 0x10

Function at 0x401960
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x401983
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 8]
mov dword [esi], ecx
mov eax, ecx
pop esi
add esp, 0x24
ret
mov eax, dword [esi]
pop esi
add esp, 0x24
ret
Function at 0x401a60
Capabilities:
Read file via mapping

Disassembly:
push ecx
push esi
mov esi, eax
call fcn.00401990
test al, al
je 0x401b28
cmp byte [ebx], 0
jne 0x401b28
cmp dword [ebx + 4], 0
jne 0x401aae
cmp byte [esp + 0xc], 0
mov eax, 2
je 0x401a91
mov eax, 0x1000002
push 0
push 0
push 0
push eax
mov eax, dword [esi + 0x20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [ebx + 4], eax
jne 0x401aae
mov byte [ebx], 1
mov eax, dword [ebx + 4]
test eax, eax
je 0x401b28
cmp dword [ebx + 8], 0
jne 0x401b28
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [ebx + 8], eax
jne 0x401adc
test eax, eax
mov byte [ebx], 1
setne al
pop esi
pop ecx
ret
push edi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
call fcn.004019e0
add esp, 8
test al, al
pop edi
je 0x401b14
mov eax, dword [esp + 4]
test eax, eax
je 0x401b14
mov edx, dword [ebx + 8]
lea eax, [edx + eax - 1]
mov dword [ebx + 0xc], eax
xor eax, eax
test edx, edx
setne al
pop esi
pop ecx
ret
mov ecx, dword [ebx + 8]
push ecx
mov byte [ebx], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx + 8], 0
xor eax, eax
cmp dword [ebx + 8], eax
pop esi
setne al
pop ecx
ret

Function at 0x401b40
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ebp
ret

Function at 0x401b60
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x4093e8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
jbe 0x401bee
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
je 0x401bee
mov dword [ebp - 0x150], 1
jmp 0x401bba
mov ecx, dword [ebp - 0x150]
add ecx, 1
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x150]
cmp edx, dword [ebp + 0xc]
jae 0x401be1
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401bdf
jmp 0x401be1
jmp 0x401bab
mov edx, dword [ebp - 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004038fc
mov esp, ebp
pop ebp
ret
Function at 0x4031e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4045c1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4093e8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
mov dword [esi + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esi + 0x2c], ebx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x14], ecx
mov cl, byte [esp + 0x48]
cmp cl, bl
mov dword [esi + 8], edx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x44]
mov byte [esp + 0x20], 1
mov dword [esi + 0xc], ebp
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], ebx
jne 0x4032c4
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x48], edi
jbe 0x403291
lea ecx, [edx + 0xc]
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
jbe 0x403278
mov edi, eax
add ecx, 0x10
sub edx, 1
jne 0x403270
cmp edi, 0x100000
mov dword [esp + 0x48], edi
mov eax, 0x406e24
ja 0x403295
lea eax, [esp + 0x48]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.004038eb
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x4032bb
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x24], edi
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor ecx, ecx
mov eax, ebp
mov edx, 0x44
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.004038eb
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, ebx
mov byte [esp + 0x20], 2
je 0x403312
push 0x402410
push 0x4023d0
push ebp
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebp
call fcn.00403a33
jmp 0x403314
xor edi, edi
mov eax, dword [esi + 0x2c]
cmp eax, edi
mov byte [esp + 0x20], 1
je 0x403344
cmp eax, ebx
je 0x403341
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push 0x402410
push ecx
push 0x44
push eax
call fcn.004039d0
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x2c], edi
mov ecx, esi
call fcn.00402e70
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x24

Function at 0x4038fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4093e8]
jne 0x403906
repz ret
jmp fcn.00403dae
Function at 0x403853
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403892
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403892
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403892
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403892
cmp dword [ecx + 0x74], 0xe
jbe 0x403892
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x7267b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x28c000]
push edi
jmp 0x7267ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7267d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7267c0
mov eax, 1
add ebx, ebx
jne 0x7267e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7267f4
jne 0x726813
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x726813
dec eax
add ebx, ebx
jne 0x726800
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7267d8
add ebx, ebx
jne 0x72680f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x726865
xor ecx, ecx
sub eax, 3
jb 0x72682b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x72689a
sar eax, 1
mov ebp, eax
jmp 0x726836
add ebx, ebx
jne 0x726836
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x726804
inc ecx
add ebx, ebx
jne 0x726844
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x726804
add ebx, ebx
jne 0x726851
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x726846
jne 0x726862
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x726846
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x726884
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x726876
jmp 0x7267c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x726884
add edi, ecx
jmp 0x7267c6
pop esi
mov edi, esi
mov ecx, 0x160e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7268a2
cmp byte [edi], 0xd
jne 0x7268a2
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 0x7268a7
lea edi, [esi + 0x324000]
mov eax, dword [edi]
or eax, eax
je 0x72691f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x32bc1c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x32bc58]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7268d4
mov ecx, edi
jns 0x726903
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 + 0x32bc60]
or eax, eax
je 0x726919
mov dword [ebx], eax
add ebx, 4
jmp 0x7268f1
call dword [esi + 0x32bc5c]
mov ebp, dword [esi + 0x32bc64]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
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 0x726953
sub esp, 0xffffff80
jmp 0x408d0c