joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50aaf9
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5fcff4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.00564770
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.00570b01
push eax
call fcn.00407650
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x5b61e8]
je 0x50ac57
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x50ac6b
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x50ac6b
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x50abb5
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x50aba9
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.0050a900
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x50abb0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x50abb7
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0050adaa
test eax, eax
je 0x50abde
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.0050a787
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x50abe2
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0050adaa
test eax, eax
je 0x50ac09
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.0050a787
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x50ac0d
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0050adaa
test eax, eax
je 0x50ac35
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.0050a787
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x50ac37
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x50ac49
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x50ac57
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00560f1e
leave
ret 4
xor eax, eax
jmp 0x50ac5a
Function at 0x535fb3
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x59491f
call fcn.00561772
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x53609f
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x53609f
cmp esi, 0x43
je 0x535ff5
cmp esi, 0x2d
jne 0x53609f
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x53609f
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00407520
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push 0x5c50b0
push eax
call fcn.004081c0
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x53608d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x53608d
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.00407e10
push ebx
mov ecx, edi
call fcn.00418255
call fcn.00561740
ret 4

Function at 0x538008
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0057818c
pop ecx
test eax, eax
jne 0x53804a
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00415760
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x538010
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret
Function at 0x561eb5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x561ef4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x561ef4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x561ef4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x561ef4
cmp dword [ecx + 0x74], 0xe
jbe 0x561ef4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x57893e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005618f0
mov eax, dword [0x5fcff4]
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.00578528
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x578980
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x578adc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00561a60
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 + 0x606790]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00580a23
mov ecx, dword [esi*4 + 0x606790]
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 0x578ad5
cmp eax, dword [edi + ecx + 0x24]
jne 0x578ad5
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 0x578ad5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00580a23
add esp, 0x14
test edx, edx
jl 0x578ad5
jg 0x578a4b
test eax, eax
jb 0x578ad5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x578ad5
jl 0x578a65
cmp dword [ebp - 0x1008], eax
ja 0x578ad5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x578a83
test ebx, ebx
je 0x578abc
cmp ecx, edi
jae 0x578abc
mov al, byte [ecx]
cmp al, 0xd
jne 0x578a9d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x578aa9
cmp byte [ecx + 1], 0xa
jne 0x578aa9
inc ecx
jmp 0x578aa9
movzx eax, al
movsx eax, byte [eax + 0x5fd2c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x578a83
cmp edx, ebx
jne 0x578a83
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x578ada
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00560f1e
leave
ret

Function at 0x57e615
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5d3020
push 0x5d3018
push str.FlsAlloc
push 0x1e
call fcn.0057e442
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57e649
push dword [ebp + 8]
mov ecx, esi
call dword [0x5a0a7c]
call esi
jmp 0x57e64f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x57e693
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5d3030
push 0x5d3028
push str.FlsGetValue
push 0x20
call fcn.0057e442
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57e6ca
push dword [ebp + 8]
mov ecx, esi
call dword [0x5a0a7c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x580cf7
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 + 0x606790]
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 0x580d37
cmp byte [ebx], 0xa
jne 0x580d37
or byte [eax + edi + 0x28], 4
jmp 0x580d3c
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x580e3a
mov al, byte [edx]
cmp al, 0x1a
je 0x580e1c
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x580d6b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x580d90
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x580d9a
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 0x580d4d
jmp 0x580e3a
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 0x580e17
cmp dword [ebp - 0xc], 0
je 0x580e17
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x606790]
test byte [eax + edi + 0x28], 0x48
je 0x580df1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x580ddc
mov byte [esi], dl
jmp 0x580ded
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x606790]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x580e3a
cmp byte [ebp - 1], 0xa
jne 0x580e00
cmp esi, ebx
jne 0x580e00
mov byte [esi], 0xa
jmp 0x580e39
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00580a41
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x580e3a
mov byte [esi], 0xd
jmp 0x580e39
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x606790]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x580e36
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x580e3a
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x580e43
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 + 0x606790]
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 0x580e86
cmp word [esi], dx
jne 0x580e86
or byte [edi + eax + 0x28], 4
jmp 0x580e8b
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 0x580fde
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 0x580fbe
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x580ecd
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x580f03
cmp eax, edx
jae 0x580f0f
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 0x580ea5
jmp 0x580fde
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 0x580fba
cmp dword [ebp - 0x14], 0
je 0x580fba
mov eax, dword [ebx*4 + 0x606790]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x580f92
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x580f5b
mov word [esi], cx
jmp 0x580f8e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x606790]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x606790]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x606790]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x580fde
pop ebx
cmp word [ebp - 4], bx
jne 0x580fa3
cmp esi, dword [ebp + 0xc]
jne 0x580fa3
mov word [esi], bx
jmp 0x580fdb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00580a41
add esp, 0x10
cmp word [ebp - 4], bx
je 0x580fde
push 0xd
jmp 0x580fd7
mov ecx, dword [ebx*4 + 0x606790]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x580fd5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x580fde
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 0x5817ff
Capabilities:
Read file on windows

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

Function at 0x5843a9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5fcff4]
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 0x5843f4
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00584548
test al, al
jne 0x5843ee
sub edx, 2
cmp edx, edi
jne 0x5843d4
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x584416
lea eax, [edi + 2]
cmp edx, eax
je 0x584416
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005842f5
add esp, 0x10
jmp 0x584510
push esi
lea ecx, [ebp - 0x255]
call fcn.00584548
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 0x584459
push dword [ebp - 0x25c]
jmp 0x584406
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 0x584496
cmp word [ebp - 0x226], 0
je 0x5844b7
cmp word [ebp - 0x226], ax
jne 0x584496
cmp word [ebp - 0x224], 0
je 0x5844b7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005842f5
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x584503
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x584470
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5844eb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x584510
push 0x584125
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0058db40
add esp, 0x10
jmp 0x5844e0
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.00560f1e
leave
ret
Function at 0x584e1b
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 0x584eb8
push ebx
push esi
call fcn.00584de4
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.00581a45
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x584e65
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x584eb7
push edi
push eax
call fcn.0057cecb
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x584e85
call fcn.0057ce91
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x584eb6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00581a45
add esp, 0x20
test eax, eax
jne 0x584ea4
push edi
call fcn.0057ce91
jmp 0x584eac
push ebx
call fcn.0057ce91
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 0x584ebb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x584ecc
pop esi
ret
push ebx
push edi
push esi
call fcn.00584de4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0057cecb
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x584ef4
push ebx
push esi
push edi
call fcn.005641f0
add esp, 0xc
push 0
call fcn.0057ce91
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x585640
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00585167
Function at 0x58e94d
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.0058e8c9
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x58eac5
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x58eac5
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x58ea74
jg 0x58e9a6
test eax, eax
je 0x58ea6a
push 1
push 0x1000
call fcn.0057fb5c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x58e9cc
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x58ea61
push 0x8000
push ebx
call fcn.00579e0b
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 0x58e9f8
jg 0x58e9f3
cmp ecx, 0x1000
jb 0x58e9f8
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0058063a
add esp, 0x10
cmp eax, 0xffffffff
je 0x58ea3d
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 0x58e9f3
jl 0x58ea24
test ecx, ecx
jne 0x58e9e5
push dword [ebp - 0xc]
push ebx
call fcn.00579e0b
push esi
call fcn.0057ce91
add esp, 0xc
xor edi, edi
jmp 0x58ead6
cmp byte [edi + 0x24], 0
je 0x58ea54
cmp dword [edi + 0x20], 5
jne 0x58ea54
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x58ea5f
mov edi, dword [edi + 0x18]
jmp 0x58ea61
xor edi, edi
push esi
call fcn.0057ce91
pop ecx
jmp 0x58ead6
test ecx, ecx
jg 0x58ea36
jl 0x58ea74
test eax, eax
jae 0x58ea36
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00580a41
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x58ea97
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x58ea36
jmp 0x58eace
push ebx
call fcn.00578f45
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x58ea36
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 0x58ead6
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x58ead3
mov edi, dword [edi + 0x18]
jmp 0x58ead6
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00580a41
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x58f1a0
Capabilities:
Parse pe header

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x2f8946d6
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..text_1
mov ebx, 0x42f314
nop
mov ecx, 0x3f1b04cd
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x45dc00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3a000]
push edi
or ebp, 0xffffffff
jmp 0x45dc22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45dc29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45dc18
mov eax, 1
add ebx, ebx
jne 0x45dc3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45dc30
jne 0x45dc4c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45dc30
xor ecx, ecx
sub eax, 3
jb 0x45dc60
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45dcd2
mov ebp, eax
add ebx, ebx
jne 0x45dc6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45dc78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45dc9c
inc ecx
add ebx, ebx
jne 0x45dc88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45dc7d
jne 0x45dc99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45dc7d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45dcbc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45dcad
jmp 0x45dc1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45dcbc
add edi, ecx
jmp 0x45dc1e
pop esi
lea edi, [esi + 0x5b000]
mov eax, dword [edi]
or eax, eax
je 0x45dd1b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5d22c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5d2b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45dcd9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5d2bc]
or eax, eax
je 0x45dd15
mov dword [ebx], eax
add ebx, 4
jmp 0x45dcf6
call dword [esi + 0x5d2b8]
mov ebp, dword [esi + 0x5d2c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x45dd4f
sub esp, 0xffffff80
jmp 0x401760
Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219