joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2f71f8
Capabilities:
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0x30608c
call fcn.002f39dd
lea ecx, [ebp - 0x34]
call fcn.002f6c55
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.002f758b
test eax, eax
jl 0x2f722c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.002f72a7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, 0x409
mov edi, 0x2f7298
cmp ax, si
jne 0x2fe4b4
and esi, 0x3ff
push esi
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.002f1451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.002f758b
mov esi, eax
test esi, esi
jl 0x2f7280
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.002f72a7
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.002f760b
mov eax, esi
call fcn.002f2b9f
ret

Function at 0x2f791d
Capabilities:
Identify system language via api

Disassembly:
lea eax, [ebp - 0x30]
push eax
call esi
push 8
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x30], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x2fdc4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x82
lea edx, [ebp - 0x30]
push edx
push 0x2f7900
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, ebx
jl 0x2f79a8
push 1
lea ecx, [ebp - 0x20]
call fcn.002f79e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x2f78ec
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.002f71e0
cmp esi, ebx
jl 0x2f79a8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push 3
movzx eax, ax
pop ecx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x18], eax
jmp 0x2f7992
push 0x24
mov eax, 0x305c85
call fcn.002f26dd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x20]
push eax
call esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], ebx
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0xc], ebx
je 0x2f7854
push 1
lea ecx, [ebp - 0x20]
call fcn.002f79e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x2f3984
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x2f79a6
push 3
pop eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x18], 0x409
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20]
push edx
push 0x2f79d0
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.002f7455
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.002f71e0
mov eax, esi
call fcn.002f1390
ret 0xc
Function at 0x2f7b05
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0x305fc0
call fcn.002f39dd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x5c], ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], esi
call fcn.002f7c2b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x58]
mov ebx, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x2f7b34
sub eax, ecx
sar eax, 1
mov edi, eax
je 0x2f7b63
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0x2f7b5b
inc esi
cmp esi, edi
jb 0x2f7b46
cmp esi, edi
jb 0x2f7c0e
xor eax, eax
mov edx, ebx
test edi, edi
jbe 0x2f7c0e
cmp word [edx], 0x30
jne 0x2f7b7c
inc eax
inc edx
inc edx
cmp eax, edi
jb 0x2f7b6f
cmp eax, edi
jae 0x2f7c0e
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x2f7b89
sub eax, esi
sar eax, 1
cmp eax, 3
ja 0x2f7c0e
push 0x10
push 0
push edx
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, si
jne 0x2f7c03
movzx eax, ax
movzx eax, ax
push eax
push 0x2f7c18
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.002f1451
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.002f6c60
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.002f760b
mov eax, dword [ebp - 0x54]
call fcn.002f2b9f
ret 8
or esi, 0x400
movzx eax, si
jmp 0x2f7bc6
mov dword [ebp - 0x54], 0x80041001
jmp 0x2f7be9
Function at 0x2f7f3e
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x306a7d
call fcn.002f1350
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov ebx, 0x8007000e
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], esi
je 0x2f8046
push 1
call fcn.002f227c
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x2f803c
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.002f13e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x2f7fcd
push dword [ebp - 0x18]
inc edi
push edi
push eax
call fcn.002f21cb
mov ebx, eax
test ebx, ebx
jl 0x2f8024
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call fcn.002f2436
mov ebx, eax
test ebx, ebx
jl 0x2f8024
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x2f8024
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x2f7ff6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x2ff33c
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x2f8024
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x44], eax
cmp eax, 0xffffffff
je 0x2ff353
cmp dword [ebp - 0x14], 0
je 0x2f8033
push dword [ebp - 0x14]
call fcn.002f13c0
pop ecx
push dword [ebp - 0x18]
call fcn.002f13c0
pop ecx
mov eax, ebx
call fcn.002f1390
ret 4
mov ebx, 0x80070057
jmp 0x2f803c

Function at 0x2f85f1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x30b004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
test eax, eax
je 0x2f8684
cmp eax, 0xffffffff
je 0x2f8684
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x2f8684
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
and dword [ebp - 0xc], 0
push ebx
call esi
push ebx
mov dword [ebp - 0x10], eax
call esi
lea esi, [eax + eax + 2]
mov eax, esi
call fcn.002f85b5
mov eax, esp
push esi
push ebx
push eax
call fcn.002f8692
mov esi, dword [ebp - 0x10]
mov edi, dword [edi + 0x44]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x2ff2da
cmp esi, dword [ebp - 0xc]
jne 0x2ff2f6
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.002f20d4
leave
ret 4
mov dword [ebp - 8], 0x80070057
jmp 0x2f866d
Function at 0x2f88ef
Capabilities:
Get geographical location

Disassembly:
push 0x210
mov eax, 0x306be9
call fcn.002f20e6
xor eax, eax
push 0x1fe
mov word [ebp - 0x214], ax
xor ebx, ebx
lea eax, [ebp - 0x212]
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push 0x100
lea eax, [ebp - 0x214]
push eax
push 0x1001
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x214]
and esi, 0x3ff
push eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 7
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.002f13e0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x2f8999
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x21c]
push 0x2f89a4
push esi
push edi
call fcn.002f1451
add esp, 0x14
mov eax, edi
call fcn.002f2126
ret 4
Function at 0x300d7d
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [ecx + eax + 0x18]
test esi, esi
jbe 0x300dba
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x300db2
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x300dbc
inc edx
add eax, 0x28
cmp edx, esi
jb 0x300da2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1a09820
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1454000]
push edi
or ebp, 0xffffffff
jmp 0x1a09842
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1a09849
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a09838
mov eax, 1
add ebx, ebx
jne 0x1a0985b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1a0986c
jne 0x1a0988b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a0988b
dec eax
add ebx, ebx
jne 0x1a09878
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1a09850
add ebx, ebx
jne 0x1a09887
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1a098dd
xor ecx, ecx
sub eax, 3
jb 0x1a098a3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1a09912
sar eax, 1
mov ebp, eax
jmp 0x1a098ae
add ebx, ebx
jne 0x1a098ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a0987c
inc ecx
add ebx, ebx
jne 0x1a098bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a0987c
add ebx, ebx
jne 0x1a098c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1a098be
jne 0x1a098da
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1a098be
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1a098fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1a098ee
jmp 0x1a0983e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1a098fc
add edi, ecx
jmp 0x1a0983e
pop esi
mov edi, esi
mov ecx, 0x4ca7b1
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x1a09937
cmp byte [edi], 0x25
jne 0x1a0991c
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x1a0991a
lea edi, [esi + 0x15cd000]
mov eax, dword [edi]
or eax, eax
je 0x1a0997f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x25754a8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x25755d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1a0993d
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x25755e0]
or eax, eax
je 0x1a09979
mov dword [ebx], eax
add ebx, 4
jmp 0x1a0995a
call dword [esi + 0x25755dc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1a099b0
cmp al, 0xef
ja 0x1a099a3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1a09985
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1a09992
mov ebp, dword [esi + 0x25755e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x1a099e4
sub esp, 0xffffff80
jmp 0x92006c
Function at 0x1001caa0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1001cc64
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
or ebp, 0xffffffff
jmp 0x1001caca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1001cad1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1001cac0
mov eax, 1
add ebx, ebx
jne 0x1001cae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1001cad8
jne 0x1001caf4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1001cad8
xor ecx, ecx
sub eax, 3
jb 0x1001cb08
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1001cb7a
mov ebp, eax
add ebx, ebx
jne 0x1001cb13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1001cb20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1001cb44
inc ecx
add ebx, ebx
jne 0x1001cb30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1001cb25
jne 0x1001cb41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1001cb25
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1001cb64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1001cb55
jmp 0x1001cac6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1001cb64
add edi, ecx
jmp 0x1001cac6
pop esi
mov edi, esi
mov ecx, 0x48f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1001cb82
cmp byte [edi], 0x11
jne 0x1001cb82
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 0x1001cb87
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x1001cbf6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1c0f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1c118]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1001cbb4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1c11c]
or eax, eax
je 0x1001cbf0
mov dword [ebx], eax
add ebx, 4
jmp 0x1001cbd1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1001cc27
cmp al, 0xef
ja 0x1001cc1a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1001cbfc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1001cc09
mov ebp, dword [esi + 0x1c120]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x1001cc5b
sub esp, 0xffffff80
jmp 0x10001427
Function at 0x454e97
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x5006a0
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x5324d8], 1
jge 0x50070f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x5006e5
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x5006e5
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x5006c2
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x5006fb
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x500702
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x5007ff
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x5007d0
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x5007c5
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x5007b9
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x5007c0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x5007ff
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x5007fa
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x5007e3
mov eax, dword [ebx + 8]
jmp 0x5007ff
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x5007f1
xor eax, eax
jmp 0x5007ff
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x50072f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x456508
Capabilities:
Query environment variable

Disassembly:
jmp 0x4d8973
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4d8987
xor edi, edi
jmp 0x4d89cb
push ebx
push esi
call fcn.004d8869
push 0x40
mov ebx, eax
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
sub ebx, esi
and ebx, 0xfffffffe
push 2
push ebx
call fcn.00456a44
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4d89b8
push ebx
push esi
push edi
call fcn.0045661b
add esp, 0xc
push 2
push 0
call fcn.00456f0d
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 9], 0
mov dword [ebp - 4], 0x2a
movsx eax, byte [0x46f03c]
add eax, 8
mov byte [0x46f03c], al
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
movsx edx, byte [0x46f03c]
add edx, 8
mov byte [0x46f03c], dl
cmp dword [ebp - 8], 0xffffffff
je 0x4010de
mov dword [ebp - 0x1c], 0
jmp 0x401075
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0xc]
jae 0x4010d2
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x1c]
movsx eax, byte [edx]
movsx ecx, byte [ebp + 0x14]
sub eax, ecx
sub eax, dword [ebp - 0x1c]
mov byte [ebp - 0x15], al
movsx edx, byte [0x46f03c]
add edx, 8
mov byte [0x46f03c], dl
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea ecx, [ebp - 0x15]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
movsx eax, byte [0x46f03c]
add eax, 8
mov byte [0x46f03c], al
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
jmp 0x40106c
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0xc]
jne 0x4010de
mov byte [ebp - 9], 1
movsx eax, byte [0x46f03c]
add eax, 8
mov byte [0x46f03c], al
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movsx edx, byte [0x46f03c]
add edx, 8
mov byte [0x46f03c], dl
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x401330
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x46f120]
mov dword [ebp - 0xc], eax
push edi
mov byte [ebp - 0x50], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0xd0], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0xcf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 8], 0x7f
movsx eax, byte [0x46f03c]
add eax, 8
mov byte [0x46f03c], al
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xd0]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
movsx eax, byte [0x46f03c]
add eax, 8
mov byte [0x46f03c], al
lea ecx, [ebp - 0xd0]
push ecx
movzx edx, byte [ebp + 8]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.004011b0
add esp, 0xc
movsx ecx, byte [0x46f03c]
add ecx, 8
mov byte [0x46f03c], cl
movsx edx, byte [0x46f03c]
add edx, 8
mov byte [0x46f03c], dl
lea eax, [ebp - 0x50]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 4], eax
movsx ecx, byte [0x46f03c]
add ecx, 8
mov byte [0x46f03c], cl
cmp dword [ebp - 4], 0
je 0x401408
jmp 0x401467
movsx edx, byte [0x46f03c]
add edx, 8
mov byte [0x46f03c], dl
lea eax, [ebp - 0x50]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
movsx ecx, byte [0x46f03c]
add ecx, 8
mov byte [0x46f03c], cl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
je 0x40145c
cmp dword [ebp - 0xd4], 0xb7
je 0x40145e
jmp 0x401460
jmp 0x401462
jmp 0x401467
jmp 0x401467
mov eax, dword [ebp - 4]
jmp 0x401493
movsx edx, byte [0x46f03c]
add edx, 8
mov byte [0x46f03c], dl
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movsx ecx, byte [0x46f03c]
add ecx, 8
mov byte [0x46f03c], cl
xor eax, eax
mov ecx, dword [ebp - 0xc]
call fcn.00402581
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402290
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x46f120]
mov dword [ebp - 8], eax
mov byte [ebp - 0x150], 0
xor eax, eax
mov dword [ebp - 0x14f], eax
mov dword [ebp - 0x14b], eax
mov dword [ebp - 0x147], eax
mov dword [ebp - 0x143], eax
mov dword [ebp - 0x13f], eax
mov dword [ebp - 0x13b], eax
mov dword [ebp - 0x137], eax
mov word [ebp - 0x133], ax
mov byte [ebp - 0x131], al
movsx ecx, byte [0x46f03c]
add ecx, 8
mov byte [0x46f03c], cl
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0xffffffff
jne 0x402320
movsx edx, byte [0x46f03c]
add edx, 8
mov byte [0x46f03c], dl
xor al, al
jmp 0x4024e3
movsx eax, byte [0x46f03c]
add eax, 8
mov byte [0x46f03c], al
mov dword [ebp - 0x130], 0x128
movsx ecx, byte [0x46f03c]
add ecx, 8
mov byte [0x46f03c], cl
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x154]
push eax
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x402384
movsx ecx, byte [0x46f03c]
add ecx, 8
mov byte [0x46f03c], cl
mov edx, dword [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4024e3
mov dword [ebp - 0x158], 0
mov dword [ebp - 4], 0
movsx eax, byte [0x46f03c]
add eax, 8
mov byte [0x46f03c], al
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00401110
add esp, 4
movsx edx, byte [0x46f03c]
add edx, 8
mov byte [0x46f03c], dl
mov dword [ebp - 0x158], str.1__ufbrquw_dwd
mov eax, dword [ebp - 0x158]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4024aa
mov edx, dword [ebp - 0x158]
add edx, 2
push edx
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
movsx ecx, byte [0x46f03c]
add ecx, 8
mov byte [0x46f03c], cl
mov dword [ebp - 0x15c], 0
jmp 0x402420
mov edx, dword [ebp - 0x15c]
add edx, 1
mov dword [ebp - 0x15c], edx
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp - 0x15c], eax
jge 0x402455
mov ecx, dword [ebp - 0x15c]
movsx edx, byte [ebp + ecx - 0x150]
add edx, 1
mov eax, dword [ebp - 0x15c]
mov byte [ebp + eax - 0x150], dl
jmp 0x402411
lea ecx, [ebp - 0x150]
push ecx
lea edx, [ebp - 0x10c]
push edx
call fcn.00406148
add esp, 8
test eax, eax
jne 0x402488
movsx eax, byte [0x46f03c]
add eax, 8
mov byte [0x46f03c], al
mov ecx, dword [ebp - 0x158]
mov al, byte [ecx]
jmp 0x4024e3
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x158]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x158], edx
jmp 0x4023cd
movsx eax, byte [0x46f03c]
add eax, 8
mov byte [0x46f03c], al
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x154]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402395
mov eax, dword [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 8]
call fcn.00402581
mov esp, ebp
pop ebp
ret