joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f6db
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45b068]
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 0x43f726
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043f876
test al, al
jne 0x43f720
sub edx, 2
cmp edx, edi
jne 0x43f706
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43f748
lea eax, [edi + 2]
cmp edx, eax
je 0x43f748
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043f627
add esp, 0x10
jmp 0x43f842
push esi
lea ecx, [ebp - 0x255]
call fcn.0043f876
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 0x43f78b
push dword [ebp - 0x25c]
jmp 0x43f738
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 0x43f7c8
cmp word [ebp - 0x226], 0
je 0x43f7e9
cmp word [ebp - 0x226], ax
jne 0x43f7c8
cmp word [ebp - 0x224], 0
je 0x43f7e9
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043f627
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43f835
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43f7a2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43f81d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43f842
push 0x43f457
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00446250
add esp, 0x10
jmp 0x43f812
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.00423f8a
leave
ret

Function at 0x440158
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x440169
pop esi
ret
push ebx
push edi
push esi
call fcn.00440121
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0043889c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x440191
push ebx
push esi
push edi
call fcn.00425180
add esp, 0xc
push 0
call fcn.00438862
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x440561
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004401a6
Function at 0x442b61
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004383f0
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x442bd0
cmp esi, dword [ebp - 4]
je 0x442bcb
cmp dword [ebp + 0xc], 0
je 0x442bcb
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x442ba8
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004426b3
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x442bd2
xor eax, eax
inc eax
jmp 0x442bd2
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x442c37
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45b068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004383f0
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004383f0
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x442cae
cmp word [ecx], dx
je 0x442cae
mov eax, dword [0x4505ac]
push edi
dec eax
push eax
push 0x450498
call fcn.00442bd6
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x442d21
cmp word [eax], dx
je 0x442d21
mov eax, dword [edi]
test eax, eax
je 0x442cd2
cmp word [eax], dx
je 0x442cd2
lea eax, [ebp - 0x10]
push eax
call fcn.004425b9
jmp 0x442cdb
lea eax, [ebp - 0x10]
push eax
call fcn.00442654
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x442d4b
mov eax, dword [0x450494]
push dword [ebp - 0x14]
dec eax
push eax
push 0x450188
call fcn.00442bd6
add esp, 0xc
test al, al
je 0x442d4b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x442d16
cmp word [eax], di
je 0x442d16
lea eax, [ebp - 0x10]
push eax
call fcn.004425b9
pop ecx
jmp 0x442d4d
lea eax, [ebp - 0x10]
push eax
call fcn.00442654
jmp 0x442d13
mov eax, dword [edi]
test eax, eax
je 0x442d38
cmp word [eax], dx
je 0x442d38
lea eax, [ebp - 0x10]
push eax
call fcn.0044256e
pop ecx
jmp 0x442d4b
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x442e16
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00442a5b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x442e16
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x442e16
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x442e16
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x442da3
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0043b664
test ebx, ebx
je 0x442e11
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0043b664
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x442e16
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x442e16
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004468bd
add esp, 0x10
xor eax, eax
inc eax
jmp 0x442e18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423f8a
leave
ret
Function at 0x446f55
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00446ed1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4470c4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4470c4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x447079
jg 0x446fb1
test eax, eax
je 0x44706f
push 1
push 0x1000
call fcn.00438d5b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x446fd4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x447066
push 0x8000
push ebx
call fcn.0043608a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x446ffd
jg 0x446ff8
cmp ecx, 0x1000
jb 0x446ffd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0043a78f
add esp, 0x10
cmp eax, 0xffffffff
je 0x447042
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 0x446ff8
jl 0x447029
test ecx, ecx
jne 0x446fea
push dword [ebp - 0xc]
push ebx
call fcn.0043608a
push esi
call fcn.00438862
add esp, 0xc
xor ebx, ebx
jmp 0x4470d2
cmp byte [edi + 0x24], 0
je 0x447059
cmp dword [edi + 0x20], 5
jne 0x447059
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x447064
mov ebx, dword [edi + 0x18]
jmp 0x447066
xor ebx, ebx
push esi
call fcn.00438862
pop ecx
jmp 0x4470d2
test ecx, ecx
jg 0x44703b
jl 0x447079
test eax, eax
jae 0x44703b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043cfbf
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x447099
cmp byte [edi + 0x1c], 0
je 0x44703b
jmp 0x4470ca
push ebx
call fcn.00440b32
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44703b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4470d2
cmp byte [edi + 0x1c], 0
je 0x4470cf
mov ebx, dword [edi + 0x18]
jmp 0x4470d2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0043cfbf
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4481b0
Capabilities:
Parse pe header

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2d000]
push edi
jmp 0x43d96a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43d971
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43d960
mov eax, 1
add ebx, ebx
jne 0x43d983
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43d978
jne 0x43d994
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43d978
xor ecx, ecx
sub eax, 3
jb 0x43d9a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43da1a
mov ebp, eax
add ebx, ebx
jne 0x43d9b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43d9c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43d9e4
inc ecx
add ebx, ebx
jne 0x43d9d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43d9c5
jne 0x43d9e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43d9c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43da04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43d9f5
jmp 0x43d966
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43da04
add edi, ecx
jmp 0x43d966
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43da22
cmp byte [edi], 0x12
jne 0x43da22
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 0x43da27
lea edi, [esi + 0x3b000]
mov eax, dword [edi]
or eax, eax
je 0x43da9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x55ff0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x560d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43da54
mov ecx, edi
jns 0x43da83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x560d8]
or eax, eax
je 0x43da99
mov dword [ebx], eax
add ebx, 4
jmp 0x43da71
call dword [esi + 0x560d4]
mov ebp, dword [esi + 0x560dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x43dad3
sub esp, 0xffffff80
jmp 0x41942f
Function at 0x10031d89
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10031dad
xor eax, eax
jmp 0x10031ef3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10031dcb
xor eax, eax
jmp 0x10031ef3
push 0x21a6
lea eax, [ebp - 8]
push eax
push 1
push 0x1ee8
lea eax, [ebp - 0xc]
push eax
call fcn.10031b39
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x10031df4
xor eax, eax
jmp 0x10031ef3
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push 0x4920
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 1
push 0x63f5
call fcn.100319b7
add esp, 0x20
lea eax, [ebp - 4]
push eax
push 0x1b44
push 1
lea eax, [ebp - 8]
push eax
push 0x6830
lea eax, [ebp + 8]
push eax
push 0xc70
call fcn.10031bb8
add esp, 0x1c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
je 0x10031e5f
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
call fcn.10031c59
add esp, 0xc
push dword [ebp - 4]
call fcn.100316f0
pop ecx
test eax, eax
jne 0x10031e73
xor eax, eax
jmp 0x10031ef3
push 0x5cd1
lea eax, [ebp - 4]
push eax
push 0x2edc
push 1
call fcn.10031cb5
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10031edb
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x10031eaa
xor eax, eax
jmp 0x10031ef3
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10031ec3
xor eax, eax
jmp 0x10031ef3
push 0x6b54
push 1
lea eax, [ebp - 4]
push eax
push 0x1d3a
call fcn.10031d15
add esp, 0x10
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10031eec
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10031ef0
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x10047f69
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10047fc7
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
jmp 0x10047fa5
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 2
jge 0x10047fc2
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 0x34]
call fcn.10017fdc
mov dword [eax], 0x5c68ec0a
jmp 0x10047f9a
jmp 0x100480df
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0x7182abbf
mov dword [ebp - 0x40], 0xde81d534
mov dword [ebp - 0x44], 0xf888c55
mov dword [ebp - 0x48], 0x82b3
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10047fff
mov dword [ebp - 0x38], 1
jmp 0x10048003
and dword [ebp - 0x38], 0
cmp dword [ebp - 8], 0
jne 0x10048012
mov eax, 0xea0
test eax, eax
je 0x10048016
cmp dword [ebp - 8], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 8], eax
jl 0x1004802a
cmp dword [ebp - 8], 0
jne 0x1004802a
and dword [ebp - 0x14], 0
jmp 0x10048031
mov dword [ebp - 0x14], 1
imul eax, dword [ebp - 0x14], 0
sub eax, 0xd635
je 0x1004804b
cmp dword [ebp - 8], 0
je 0x1004804b
mov dword [ebp - 0x18], 1
jmp 0x1004804f
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0xa34c865b
jne 0x10048061
mov dword [ebp - 0x3c], 1
jmp 0x10048065
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 8], eax
jne 0x10048076
mov dword [ebp - 0x1c], 1
jmp 0x1004807a
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0xfbb9cf7d
ja 0x1004808c
mov dword [ebp - 0x20], 1
jmp 0x10048090
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x20], eax
jne 0x100480a1
mov dword [ebp - 0x24], 1
jmp 0x100480a5
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x24]
imul eax, eax, 0x26fb
cmp eax, dword [ebp - 0x40]
jg 0x100480bf
mov dword [ebp - 0x28], 1
jmp 0x100480c3
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100480df
push 0
push 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esp, ebp
pop ebp
ret
Function at 0x100814f5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008b330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.100722ec
mov dword [ebp - 0x14], eax
cmp dword [0x10678654], esi
jne 0x100815e8
push 0x800
push esi
push 0x100079ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10081575
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100816c8
push esi
push esi
push 0x100079ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x100816c8
push 0x100079c4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100816c8
push eax
call ebx
push 0x100079d0
push edi
mov dword [0x10678654], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100079e0
push edi
mov dword [0x10678658], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100079f4
push edi
mov dword [0x1067865c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10678664], eax
test eax, eax
je 0x100815e5
push 0x10007a10
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10678660], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1008160d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10081600
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10081622
push 4
pop eax
jmp 0x100816ca
cmp dword [ebp - 0x14], esi
je 0x10081622
push dword [0x10678654]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10081607
mov eax, dword [0x10678660]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10081680
cmp dword [0x10678664], edi
je 0x10081680
push eax
call ebx
push dword [0x10678664]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10081680
test eax, eax
je 0x10081680
call ecx
test eax, eax
je 0x10081675
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10081675
test byte [ebp - 8], 1
jne 0x10081680
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x100816b0
mov eax, dword [0x10678658]
cmp eax, edi
je 0x100816ad
push eax
call ebx
test eax, eax
je 0x100816ad
call eax
mov esi, eax
test esi, esi
je 0x100816ad
mov eax, dword [0x1067865c]
cmp eax, edi
je 0x100816ad
push eax
call ebx
test eax, eax
je 0x100816ad
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10678654]
call ebx
test eax, eax
je 0x100816c8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x100816ca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x40161f
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x408108]
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
cmp eax, 2
jne 0x401745
lea ecx, [ebp - 0x10]
call fcn.0040157c
test eax, eax
jne 0x401734
lea eax, [ebp - 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401745
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x401725
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401725
push esi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x401724
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x40171d
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40171d
cmp dword [esi], ebx
jbe 0x401714
lea edi, [esi + 4]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x401709
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x4016f0
jmp 0x401714
xor eax, eax
inc eax
mov dword [0x408108], eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
pop edi
jmp 0x401745
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x401745
mov dword [0x408108], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004069ed
mov esp, ebp
pop ebp
ret
Function at 0x401d1e
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebx
mov ebx, ecx
test bl, 2
jne 0x401d32
call fcn.00401c2b
cmp eax, 2
jne 0x401d67
test bl, 4
jne 0x401d53
push 4
push 0x40
push 0
push 0x401091
mov edx, 0x522
xor ecx, ecx
call fcn.004041b0
cmp eax, 6
jne 0x401d67
cmp word [0x409a80], 0
jne 0x401d69
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop ebx
ret
pop ebx
jmp fcn.00401c6b

Function at 0x401d74
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp byte [0x408570], 0
je 0x401db9
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401db9
push 0x408570
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret