joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55b41f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x55b464
call fcn.005527d5
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x55b461
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x55b4ab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x55b487
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5c8b0c]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x55b4a8
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x5c8b0c]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x5678c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.005527d5
push 0xf1
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x567999
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x567999
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x567999
movzx eax, word [edi + 6]
xor ecx, ecx
push ebx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005460f3
pop ecx
movzx ecx, word [edi + 6]
xor esi, esi
xor edx, edx
mov ebx, eax
mov eax, ecx
cmp si, cx
jae 0x567953
lea ecx, [edi + 8]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov dword [ebx + edx*4], eax
inc edx
movzx esi, word [edi + 6]
cmp edx, esi
jl 0x56793f
mov eax, esi
mov ecx, dword [ebp - 4]
movzx eax, ax
push eax
push ebx
call fcn.005679a1
push ebx
mov esi, eax
call fcn.005460ee
pop ecx
test esi, esi
je 0x567994
movzx ecx, word [edi + 4]
movzx esi, word [edi + 2]
push ecx
push esi
lea eax, [ecx + 7]
mov ecx, dword [ebp - 4]
lea edx, [esi + 7]
push eax
push edx
call fcn.00567b28
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00567877
mov esi, eax
mov eax, esi
pop ebx
jmp 0x56799b
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x56996d
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x569996
call fcn.005527d5
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
je 0x5699c3
push esi
push eax
mov ecx, 0x63fb14
call fcn.0056a7dd
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.00569ddb
int3
Function at 0x58d0da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0057bfb0
mov eax, dword [0x634b28]
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.0059a5c6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x58d11c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x58d278
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0057c4a0
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 + 0x640960]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.005a4935
mov ecx, dword [esi*4 + 0x640960]
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 0x58d271
cmp eax, dword [edi + ecx + 0x24]
jne 0x58d271
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 0x58d271
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005a4935
add esp, 0x14
test edx, edx
jl 0x58d271
jg 0x58d1e7
test eax, eax
jb 0x58d271
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x58d271
jl 0x58d201
cmp dword [ebp - 0x1008], eax
ja 0x58d271
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x58d21f
test ebx, ebx
je 0x58d258
cmp ecx, edi
jae 0x58d258
mov al, byte [ecx]
cmp al, 0xd
jne 0x58d239
lea eax, [edi - 1]
cmp ecx, eax
jae 0x58d245
cmp byte [ecx + 1], 0xa
jne 0x58d245
inc ecx
jmp 0x58d245
movzx eax, al
movsx eax, byte [eax + 0x634f88]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x58d21f
cmp edx, ebx
jne 0x58d21f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x58d276
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0057b6ac
leave
ret
Function at 0x5908a7
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x59083f
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x59085d
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x5908bb
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x5908a2
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x5908ab
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x5908b5
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x590897
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x590821
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x590908
dec eax
je 0x5908ff
sub eax, 3
je 0x5908f6
mov dword [ebp - 4], 0x40
jmp 0x590925
mov dword [ebp - 4], 4
jmp 0x59090b
mov dword [ebp - 4], 0x20
jmp 0x59090b
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x590957
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x5908d7
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00590168
neg byte [ecx + 0x75ffaed8]
adc al, 0x6a
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x590963
Function at 0x590a09
Capabilities:
Contain obfuscated stackstrings

Disassembly:
idiv edi
call [ecx + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0059012d
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00590178
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0059012d
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
dec dword [ebx - 0x3de7a3a]
invalid
jmp dword [esi - 0x3dd7a3a]
invalid
dec dword [edi - 0x3dc7a3a]
invalid
inc dword [eax - 0x3db7a3a]
invalid
dec dword [edx - 0x3da7a3a]
invalid
inc dword [edx - 0x3d97a3a]
invalid
dec dword [ebx - 0x3d87a3a]
invalid
jmp [edi - 0x3d77a3a]
invalid
invalid
out dx, al
lea eax, [ebp - 0x3ec]
push eax
call fcn.00590178
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0059012d
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.00590168
adc al, 0x7c
inc esi
mov eax, 0xfacca580
invalid
Function at 0x590e66
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.00590178
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0059012d
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
mov byte [ebp - 0x69c], 0xec
lea eax, [ebp - 0x694]
push eax
push 5
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x33c]
push 0xffffffffffffffff
call dword [ebp - 0x690]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6bc], eax
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x698], eax
call fcn.00590168
loopne 0x590f50
invalid
in al, 0xb0
push dword [ebp - 0x698]
lea eax, [ebp - 0x6c0]
push eax
push dword [ebp + 8]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00590344
add esp, 0x14
call fcn.00590168
pop ebx
nop
hlt
Function at 0x59f0d6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ffddc
push 0x5ffdd4
push 0x5fd498
push 0x1e
call fcn.0059ef03
mov esi, eax
add esp, 0x10
test esi, esi
je 0x59f10a
push dword [ebp + 8]
mov ecx, esi
call dword [0x5c8b0c]
call esi
jmp 0x59f110
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x59f154
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ffdec
push 0x5ffde4
push 0x5fd4bc
push 0x20
call fcn.0059ef03
mov esi, eax
add esp, 0x10
test esi, esi
je 0x59f18b
push dword [ebp + 8]
mov ecx, esi
call dword [0x5c8b0c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x5a3dbd
Capabilities:
Read file on windows

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

Function at 0x5a3dc8
Capabilities:
Read file on windows

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

Function at 0x5a3dd3
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 + 0x640960]
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 0x5a3e13
cmp byte [ebx], 0xa
jne 0x5a3e13
or byte [eax + edi + 0x28], 4
jmp 0x5a3e18
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x5a3f16
mov al, byte [edx]
cmp al, 0x1a
je 0x5a3ef8
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x5a3e47
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x5a3e6c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x5a3e76
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 0x5a3e29
jmp 0x5a3f16
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 0x5a3ef3
cmp dword [ebp - 0xc], 0
je 0x5a3ef3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x640960]
test byte [eax + edi + 0x28], 0x48
je 0x5a3ecd
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5a3eb8
mov byte [esi], dl
jmp 0x5a3ec9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x640960]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5a3f16
cmp byte [ebp - 1], 0xa
jne 0x5a3edc
cmp esi, ebx
jne 0x5a3edc
mov byte [esi], 0xa
jmp 0x5a3f15
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005a4953
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5a3f16
mov byte [esi], 0xd
jmp 0x5a3f15
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x640960]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5a3f12
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5a3f16
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5a3f1f
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 + 0x640960]
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 0x5a3f62
cmp word [esi], dx
jne 0x5a3f62
or byte [edi + eax + 0x28], 4
jmp 0x5a3f67
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 0x5a40ba
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 0x5a409a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x5a3fa9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5a3fdf
cmp eax, edx
jae 0x5a3feb
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 0x5a3f81
jmp 0x5a40ba
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 0x5a4096
cmp dword [ebp - 0x14], 0
je 0x5a4096
mov eax, dword [ebx*4 + 0x640960]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x5a406e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x5a4037
mov word [esi], cx
jmp 0x5a406a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x640960]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x640960]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x640960]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x5a40ba
pop ebx
cmp word [ebp - 4], bx
jne 0x5a407f
cmp esi, dword [ebp + 0xc]
jne 0x5a407f
mov word [esi], bx
jmp 0x5a40b7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005a4953
add esp, 0x10
cmp word [ebp - 4], bx
je 0x5a40ba
push 0xd
jmp 0x5a40b3
mov ecx, dword [ebx*4 + 0x640960]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5a40b1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5a40ba
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 0x5a7ed8
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x634b28]
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 0x5a7f23
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005a8077
test al, al
jne 0x5a7f1d
sub edx, 2
cmp edx, edi
jne 0x5a7f03
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5a7f45
lea eax, [edi + 2]
cmp edx, eax
je 0x5a7f45
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005a7e24
add esp, 0x10
jmp 0x5a803f
push esi
lea ecx, [ebp - 0x255]
call fcn.005a8077
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 0x5a7f88
push dword [ebp - 0x25c]
jmp 0x5a7f35
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 0x5a7fc5
cmp word [ebp - 0x226], 0
je 0x5a7fe6
cmp word [ebp - 0x226], ax
jne 0x5a7fc5
cmp word [ebp - 0x224], 0
je 0x5a7fe6
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005a7e24
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5a8032
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5a7f9f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5a801a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5a803f
push 0x5a7c54
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00596e00
add esp, 0x10
jmp 0x5a800f
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.0057b6ac
leave
ret

Function at 0x5a894a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5a895b
pop esi
ret
push ebx
push edi
push esi
call fcn.005a8913
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0059ebb7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5a8983
push ebx
push esi
push edi
call fcn.0057e070
add esp, 0xc
push 0
call fcn.0059eb7d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5a8d47
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005a8998
Function at 0x5aec68
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.005aebe4
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5aede0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5aede0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5aed8f
jg 0x5aecc1
test eax, eax
je 0x5aed85
push 1
push 0x1000
call fcn.0059ec05
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5aece7
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x5aed7c
push 0x8000
push ebx
call fcn.0059b760
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 0x5aed13
jg 0x5aed0e
cmp ecx, 0x1000
jb 0x5aed13
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005a34b5
add esp, 0x10
cmp eax, 0xffffffff
je 0x5aed58
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 0x5aed0e
jl 0x5aed3f
test ecx, ecx
jne 0x5aed00
push dword [ebp - 0xc]
push ebx
call fcn.0059b760
push esi
call fcn.0059eb7d
add esp, 0xc
xor edi, edi
jmp 0x5aedf1
cmp byte [edi + 0x24], 0
je 0x5aed6f
cmp dword [edi + 0x20], 5
jne 0x5aed6f
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5aed7a
mov edi, dword [edi + 0x18]
jmp 0x5aed7c
xor edi, edi
push esi
call fcn.0059eb7d
pop ecx
jmp 0x5aedf1
test ecx, ecx
jg 0x5aed51
jl 0x5aed8f
test eax, eax
jae 0x5aed51
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005a4953
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5aedb2
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5aed51
jmp 0x5aede9
push ebx
call fcn.0059a9b7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5aed51
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 0x5aedf1
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5aedee
mov edi, dword [edi + 0x18]
jmp 0x5aedf1
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005a4953
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5afda0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [0x63fe64]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x640c80]
cmp eax, dword [ecx + 4]
jg 0x5afdc2
mov eax, 0x640c6c
ret
push 0x640c80
call fcn.0057bb6b
add esp, 4
cmp dword [0x640c80], 0xffffffff
jne 0x5afdbc
push esi
push 0x60acd0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x5afe45
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x60ace8
push esi
call edi
mov dword [0x640c6c], eax
test eax, eax
je 0x5afe44
push 0x60ad00
push esi
call edi
mov dword [0x640c70], eax
test eax, eax
je 0x5afe44
push 0x60ad14
push esi
call edi
mov dword [0x640c74], eax
test eax, eax
je 0x5afe44
push 0x60ad34
push esi
call edi
mov dword [0x640c78], eax
test eax, eax
je 0x5afe44
push 0x60ad48
push esi
call edi
mov dword [0x640c7c], eax
jmp 0x5afe44
pop edi
push 0x5c72b0
call fcn.0057ba23
push 0x640c80
call fcn.0057bb21
add esp, 8
pop esi
jmp 0x5afdbc

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4