joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5064f3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004f99a0
mov eax, dword [0x592830]
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.00508afe
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x506535
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x506691
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004f9f90
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 + 0x597640]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0050e214
mov ecx, dword [esi*4 + 0x597640]
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 0x50668a
cmp eax, dword [edi + ecx + 0x24]
jne 0x50668a
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 0x50668a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0050e214
add esp, 0x14
test edx, edx
jl 0x50668a
jg 0x506600
test eax, eax
jb 0x50668a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x50668a
jl 0x50661a
cmp dword [ebp - 0x1008], eax
ja 0x50668a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x506638
test ebx, ebx
je 0x506671
cmp ecx, edi
jae 0x506671
mov al, byte [ecx]
cmp al, 0xd
jne 0x506652
lea eax, [edi - 1]
cmp ecx, eax
jae 0x50665e
cmp byte [ecx + 1], 0xa
jne 0x50665e
inc ecx
jmp 0x50665e
movzx eax, al
movsx eax, byte [eax + 0x5929c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x506638
cmp edx, ebx
jne 0x506638
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x50668f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004f929f
leave
ret
Function at 0x50ecca
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x592830]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x579d1c
push esi
call fcn.00519de4
pop ecx
pop ecx
test eax, eax
jne 0x50ecf8
xor al, al
jmp 0x50ed75
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0050ea01
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x50ed32
push dword [ebp - 0x210]
call fcn.00504a2d
xor al, al
jmp 0x50ed73
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x50ed38
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x50ed58
push edx
call fcn.0050ec00
pop ecx
test al, al
je 0x50ed23
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x50ed66
mov bl, 1
push dword [ebp - 0x210]
call fcn.00504a2d
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f929f
leave
ret
Function at 0x512a61
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 + 0x597640]
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 0x512aa1
cmp byte [ebx], 0xa
jne 0x512aa1
or byte [eax + edi + 0x28], 4
jmp 0x512aa6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x512ba4
mov al, byte [edx]
cmp al, 0x1a
je 0x512b86
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x512ad5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x512afa
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x512b04
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 0x512ab7
jmp 0x512ba4
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 0x512b81
cmp dword [ebp - 0xc], 0
je 0x512b81
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x597640]
test byte [eax + edi + 0x28], 0x48
je 0x512b5b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x512b46
mov byte [esi], dl
jmp 0x512b57
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x597640]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x512ba4
cmp byte [ebp - 1], 0xa
jne 0x512b6a
cmp esi, ebx
jne 0x512b6a
mov byte [esi], 0xa
jmp 0x512ba3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0050e232
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x512ba4
mov byte [esi], 0xd
jmp 0x512ba3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x597640]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x512ba0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x512ba4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x512bad
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 + 0x597640]
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 0x512bf0
cmp word [esi], dx
jne 0x512bf0
or byte [edi + eax + 0x28], 4
jmp 0x512bf5
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 0x512d48
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 0x512d28
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x512c37
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x512c6d
cmp eax, edx
jae 0x512c79
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 0x512c0f
jmp 0x512d48
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 0x512d24
cmp dword [ebp - 0x14], 0
je 0x512d24
mov eax, dword [ebx*4 + 0x597640]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x512cfc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x512cc5
mov word [esi], cx
jmp 0x512cf8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x597640]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x597640]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x597640]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x512d48
pop ebx
cmp word [ebp - 4], bx
jne 0x512d0d
cmp esi, dword [ebp + 0xc]
jne 0x512d0d
mov word [esi], bx
jmp 0x512d45
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0050e232
add esp, 0x10
cmp word [ebp - 4], bx
je 0x512d48
push 0xd
jmp 0x512d41
mov ecx, dword [ebx*4 + 0x597640]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x512d3f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x512d48
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 0x516447
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x57b4f8
push 0x57b4f0
push str.FlsAlloc
push 0x1e
call fcn.00516274
mov esi, eax
add esp, 0x10
test esi, esi
je 0x51647b
push dword [ebp + 8]
mov ecx, esi
call dword [0x5294b4]
call esi
jmp 0x516481
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5164c5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x57b508
push 0x57b500
push str.FlsGetValue
push 0x20
call fcn.00516274
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5164fc
push dword [ebp + 8]
mov ecx, esi
call dword [0x5294b4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x518b7a
Capabilities:
Read file on windows

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

Function at 0x51c0ea
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x592830]
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 0x51c135
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0051c289
test al, al
jne 0x51c12f
sub edx, 2
cmp edx, edi
jne 0x51c115
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x51c157
lea eax, [edi + 2]
cmp edx, eax
je 0x51c157
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0051c036
add esp, 0x10
jmp 0x51c251
push esi
lea ecx, [ebp - 0x255]
call fcn.0051c289
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 0x51c19a
push dword [ebp - 0x25c]
jmp 0x51c147
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 0x51c1d7
cmp word [ebp - 0x226], 0
je 0x51c1f8
cmp word [ebp - 0x226], ax
jne 0x51c1d7
cmp word [ebp - 0x224], 0
je 0x51c1f8
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0051c036
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x51c244
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x51c1b1
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x51c22c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x51c251
push 0x51be66
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00507320
add esp, 0x10
jmp 0x51c221
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.004f929f
leave
ret
Function at 0x51cb75
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x51cc12
push ebx
push esi
call fcn.0051cb3e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0051bdaf
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x51cbbf
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x51cc11
push edi
push eax
call fcn.00516a35
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x51cbdf
call fcn.00515bdc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x51cc10
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0051bdaf
add esp, 0x20
test eax, eax
jne 0x51cbfe
push edi
call fcn.00515bdc
jmp 0x51cc06
push ebx
call fcn.00515bdc
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x51cc15
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x51cc26
pop esi
ret
push ebx
push edi
push esi
call fcn.0051cb3e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00516a35
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x51cc4e
push ebx
push esi
push edi
call fcn.004faeb0
add esp, 0xc
push 0
call fcn.00515bdc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x51d39a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0051cec1
Function at 0x51ff5e
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0051feda
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5200d6
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5200d6
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x520085
jg 0x51ffb7
test eax, eax
je 0x52007b
push 1
push 0x1000
call fcn.00518919
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x51ffdd
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x520072
push 0x8000
push ebx
call fcn.00508ca0
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x520009
jg 0x520004
cmp ecx, 0x1000
jb 0x520009
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00513cc7
add esp, 0x10
cmp eax, 0xffffffff
je 0x52004e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x520004
jl 0x520035
test ecx, ecx
jne 0x51fff6
push dword [ebp - 0xc]
push ebx
call fcn.00508ca0
push esi
call fcn.00515bdc
add esp, 0xc
xor edi, edi
jmp 0x5200e7
cmp byte [edi + 0x24], 0
je 0x520065
cmp dword [edi + 0x20], 5
jne 0x520065
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x520070
mov edi, dword [edi + 0x18]
jmp 0x520072
xor edi, edi
push esi
call fcn.00515bdc
pop ecx
jmp 0x5200e7
test ecx, ecx
jg 0x520047
jl 0x520085
test eax, eax
jae 0x520047
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0050e232
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5200a8
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x520047
jmp 0x5200df
push ebx
call fcn.005199e5
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x520047
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x5200e7
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5200e4
mov edi, dword [edi + 0x18]
jmp 0x5200e7
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0050e232
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5237d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5237fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5237fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x412867
Capabilities:
Read file on windows

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

Function at 0x416c5f
Capabilities:
Set environment variable

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

Function at 0x416c6a
Capabilities:
Set environment variable

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

Function at 0x418180
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12000]
push edi
or ebp, 0xffffffff
jmp 0x4181a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4181a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x418198
mov eax, 1
add ebx, ebx
jne 0x4181bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4181b0
jne 0x4181cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4181b0
xor ecx, ecx
sub eax, 3
jb 0x4181e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x418252
mov ebp, eax
add ebx, ebx
jne 0x4181eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4181f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41821c
inc ecx
add ebx, ebx
jne 0x418208
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4181fd
jne 0x418219
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4181fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41823c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41822d
jmp 0x41819e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41823c
add edi, ecx
jmp 0x41819e
pop esi
mov edi, esi
mov ecx, 0x3b2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41825a
cmp byte [edi], 0
jne 0x41825a
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 eax, ebx
loop 0x41825f
lea edi, [esi + 0x16000]
mov eax, dword [edi]
or eax, eax
je 0x4182ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x180b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18114]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41828c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18118]
or eax, eax
je 0x4182c8
mov dword [ebx], eax
add ebx, 4
jmp 0x4182a9
call dword [esi + 0x1811c]
popal
jmp 0x40a630
Function at 0x100af230
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100af25d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100af25d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x418f40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420de0], ecx
add edx, 1
cmp edx, 0x100
jb 0x418f42
cmp edx, 0x800
jae 0x41902b
mov edi, edi
mov eax, dword [edx*4 + 0x4209e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420de0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x420ddc], eax
jb 0x419000
mov dword [0x420dbc], 0x4196e0
call fcn.00419170
test eax, eax
jne 0x419048
mov dword [0x420dbc], 0x419600
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 0x452020
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov ebx, 0x455bbc
xor eax, eax
push ebp
push 0x4520d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x450ccc]
call fcn.00450da0
mov dword [ebx], eax
mov edx, 0x80000001
mov eax, dword [ebx]
call fcn.00450e40
mov cl, 1
mov edx, 0x4520e8
mov eax, dword [ebx]
call fcn.00450f84
lea edx, [ebp - 4]
xor eax, eax
call fcn.00402dec
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00402dec
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0040879c
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
pop ecx
call fcn.00451320
mov eax, dword [ebx]
call fcn.00450e10
mov eax, dword [ebx]
call fcn.00403634
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402dec
mov eax, dword [ebp - 0x10]
mov edx, 2
call fcn.004086ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4520da
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004043cc
ret

Function at 0x452118
Capabilities:
Create process on windows
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, 0x455bbc
xor eax, eax
push ebp
push 0x4521e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x450ccc]
call fcn.00450da0
mov dword [ebx], eax
mov edx, 0x80000001
mov eax, dword [ebx]
call fcn.00450e40
mov cl, 1
mov edx, 0x4521f8
mov eax, dword [ebx]
call fcn.00450f84
lea edx, [ebp - 8]
xor eax, eax
call fcn.00402dec
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0040879c
mov edx, dword [ebp - 4]
mov eax, dword [ebx]
call fcn.00451220
mov eax, dword [ebx]
call fcn.00450e10
mov eax, dword [ebx]
call fcn.00403634
push 0
push 0x452228
push 0x452228
lea eax, [ebp - 0xc]
call fcn.00451fc8
lea eax, [ebp - 0xc]
mov edx, 0x452234
call fcn.00404670
mov eax, dword [ebp - 0xc]
call fcn.00404868
push eax
push 0x452244
push 0
call sub.shell32.dll_ShellExecuteA
push 0
call sub.kernel32.dll_ExitProcess_1

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