joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ccd58
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0xe89e17
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x4cce09
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x4ccdf2
test esi, esi
jbe 0x4cce09
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a518
test eax, eax
jne 0x4ccde4
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x4cce09
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x4ccdc1
jmp 0x4cce09
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x4cce09
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xe89e1e
ret
Function at 0x4cd838
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0xe8a9e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404868
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4cd873
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4cd88c
lea eax, [ebp - 0x10]
mov edx, dword [0xed4f78]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.004048c8
jmp 0x4cd89f
lea eax, [ebp - 0x10]
mov edx, dword [0xed4f78]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.004048c8
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4cd8ab
adc edx, 0
mov edx, dword [edx*4 + 0xed3580]
call fcn.00404ac8
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404aac
push eax
call fcn.00406a50
mov esi, eax
cmp esi, 0xffffffff
je 0x4cd9b9
mov eax, 0x40
call fcn.00402724
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406e80
test eax, eax
je 0x4cd9ac
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4cd9ac
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ef8
mov eax, edi
call fcn.00402744
mov eax, 0x18
call fcn.00402724
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406e80
test eax, eax
je 0x4cd9ac
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4cd9ac
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x4cd9ac
cmp dx, 0x150
ja 0x4cd9ac
mov eax, edi
call fcn.00402744
mov eax, 0xe0
call fcn.00402724
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406e80
test eax, eax
je 0x4cd9ac
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x4cd9ac
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.004048a4
mov eax, edi
call fcn.00402744
push esi
call fcn.00406a08
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00404bd4
jne 0x4cd9d1
inc ebx
cmp ebx, 0x19
jne 0x4cd865
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xe8a9ee
lea eax, [ebp - 0x10]
call fcn.00404868
ret

Function at 0x4da974
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
test edi, edi
jle 0x4daa07
xor ebx, ebx
mov byte [ebp - 9], 0
lea eax, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
mov edx, dword [ebp + 8]
call fcn.0045c480
dec edi
test edi, edi
jl 0x4daa07
inc edi
mov dword [ebp - 0x10], edi
xor edx, edx
Function at 0x4e9eb4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor esi, esi
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x4e9f67
add edx, ebx
mov eax, edx
mov edi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 0x20]
add edx, ebx
mov dword [ebp - 4], edx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0xc]
cmp edx, 0xffff
jbe 0x4e9f4b
test edi, edi
jbe 0x4e9f67
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.0040a518
test eax, eax
jne 0x4e9f3c
mov eax, dword [ebp - 8]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0xc]
mov esi, dword [eax]
test esi, esi
je 0x4e9f67
add ebx, esi
mov esi, ebx
jmp 0x4e9f67
add dword [ebp - 8], 2
add dword [ebp - 4], 4
dec edi
test edi, edi
ja 0x4e9f11
jmp 0x4e9f67
mov edi, edx
sub edi, dword [eax + 0x10]
cmp edi, dword [eax + 0x14]
jae 0x4e9f67
mov eax, edi
shl eax, 2
add eax, dword [ebp - 0xc]
mov esi, dword [eax]
test esi, esi
je 0x4e9f67
add ebx, esi
mov esi, ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4fb13c
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x4fb16d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4fb155
add dl, dl
jne 0x4fb178
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4fb1c9
xor eax, eax
add dl, dl
jne 0x4fb185
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4fb266
add dl, dl
jne 0x4fb194
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4fb19f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4fb1aa
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4fb1b5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x4fb1bf
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x4fb164
mov eax, 1
add dl, dl
jne 0x4fb1d7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4fb1e2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4fb1ce
sub eax, ebx
mov ebx, 1
jne 0x4fb215
mov ecx, 1
add dl, dl
jne 0x4fb1fb
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4fb206
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4fb1f2
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4fb164
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x4fb22c
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4fb237
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4fb223
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4fb164
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4fb287
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x4fb164
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x100010e0
Capabilities:
Write file on windows

Disassembly:
mov ecx, 0x10015170
jmp fcn.10002bf0

Function at 0x10001100
Capabilities:
Terminate process

Disassembly:
mov ecx, 0x10015140
jmp fcn.100011b0

Function at 0x10001330
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x24
mov eax, dword [0x100140c0]
xor eax, esp
mov dword [esp + 0x20], eax
mov ecx, dword [ecx + 0x2c]
xor al, al
mov byte [esp + 4], al
mov byte [esp + 5], al
mov byte [esp + 6], al
mov al, 0x20
mov dl, 0x34
mov byte [esp + 0xd], al
mov byte [esp + 0x11], dl
mov byte [esp + 0x13], dl
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], al
mov dl, 0xa
lea eax, [esp]
push eax
mov byte [esp + 0x18], dl
mov byte [esp + 0x22], dl
push 0x1b
lea edx, [esp + 0xc]
push edx
mov byte [esp + 0x13], 0x1b
mov byte [esp + 0x14], 1
mov byte [esp + 0x15], 0x40
mov byte [esp + 0x16], 0x45
mov byte [esp + 0x17], 0x4a
mov byte [esp + 0x18], 0x4c
mov byte [esp + 0x1a], 0x31
mov byte [esp + 0x1b], 0x32
mov byte [esp + 0x1c], 0x38
mov byte [esp + 0x1e], 0x2e
mov byte [esp + 0x21], 0x40
mov byte [esp + 0x22], 0x45
mov byte [esp + 0x23], 0x4a
mov byte [esp + 0x24], 0x4c
call fcn.10002bf0
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.100045aa
add esp, 0x24
ret

Function at 0x100015b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x2c]
push 0
push 2
call fcn.100036e0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov edi, eax
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esi + 0x2c]
push edx
mov dword [esp + 0x14], edi
call fcn.10002bf0
cmp eax, 1
jne 0x1000164b
test edi, edi
push ebx
push ebp
mov dword [esp + 0x20], 0
jle 0x10001644
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
nop
mov ecx, dword [esi + 0x2c]
push ebx
push ebp
push edi
call fcn.10003990
cmp eax, 1
jne 0x10001649
mov eax, dword [esp + 0x1c]
movzx ecx, byte [eax + 6]
movzx edx, byte [edi + 6]
sub edx, ecx
cmp edx, 0x80
je 0x10001653
push edi
mov ecx, esi
call fcn.10001280
cmp eax, 1
jne 0x10001649
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
jl 0x10001600
mov eax, 0x2000020a
pop ebp
pop ebx
pop edi
pop esi
add esp, 8
ret 0x14
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 8
ret 0x14
Function at 0x10001670
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
mov eax, dword [0x100140c0]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov al, 0x34
mov esi, ecx
mov byte [esp + 0x11], al
mov byte [esp + 0x13], al
mov al, 0xa
mov cl, 0x4c
mov byte [esp + 0x14], al
mov byte [esp + 0x19], al
mov byte [esp + 0x1e], al
mov dl, 0x4a
mov byte [esp + 0xc], cl
mov byte [esp + 0x18], cl
mov byte [esp + 0x1d], cl
mov ecx, dword [esi + 0x10]
lea eax, [esi + 0x14]
push eax
push ecx
mov byte [esp + 0x13], dl
mov byte [esp + 0x1f], dl
mov byte [esp + 0x24], dl
mov edx, dword [esi + 0xc]
push edx
push 0x1b
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov byte [esp + 0x18], 0
mov byte [esp + 0x19], 0
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1b], 0x1b
mov byte [esp + 0x1c], 1
mov byte [esp + 0x1d], 0x40
mov byte [esp + 0x1e], 0x45
mov byte [esp + 0x21], 0x20
mov byte [esp + 0x22], 0x31
mov byte [esp + 0x23], 0x32
mov byte [esp + 0x24], 0x38
mov byte [esp + 0x26], 0x2e
mov byte [esp + 0x29], 0x40
mov byte [esp + 0x2a], 0x45
mov byte [esp + 0x2e], 0x40
mov byte [esp + 0x2f], 0x45
call fcn.100015b0
cmp eax, 1
jne 0x10001764
mov ecx, dword [esi + 0xc]
movzx eax, byte [ecx + 7]
sub eax, 0
je 0x1000175f
sub eax, 1
je 0x1000174a
mov eax, 0x2000020c
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.100045aa
add esp, 0x20
ret
mov eax, 0x2000020b
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.100045aa
add esp, 0x20
ret
mov eax, 1
mov ecx, dword [esp + 0x20]
pop esi
xor ecx, esp
call fcn.100045aa
add esp, 0x20
ret
Function at 0x10002bf0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x24]
cmp eax, 0xffffffff
jne 0x10002c00
mov eax, 0x20000103
ret 0xc
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10002c28
pop edi
mov eax, 0x20000104
pop esi
ret 0xc
mov eax, edi
sub eax, dword [esi]
pop edi
neg eax
sbb eax, eax
and eax, 0x20000104
add eax, 1
pop esi
ret 0xc
Function at 0x10003790
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push 0x400
mov dword [esi], vtable.CPortController.0
call fcn.100044bb
add esp, 4
test eax, eax
mov dword [esi + 0x18], eax
jne 0x100037b3
push eax
call fcn.100043e0
mov ecx, 1
mov eax, 0x7d0
push 3
mov dword [esi + 8], ecx
mov dword [esi + 0x10], ecx
push 3
mov ecx, esi
mov dword [esi + 0x24], 0xffffffff
mov dword [esi + 4], 0xa
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
call fcn.100036e0
mov eax, esi
pop esi
ret

Function at 0x10003ce0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x100140c0]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.10004530
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x10]
sub ecx, 0
mov eax, 0xa
je 0x10003e29
sub ecx, 1
je 0x10003db5
sub ecx, 1
jne 0x10003e2e
mov ecx, dword [esp + 4]
cmp ecx, 4
ja 0x10003d88
mov ecx, dword [esp + 8]
cmp ecx, 0x33
jne 0x10003d68
lea eax, [ecx - 0x2c]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.100045aa
add esp, 0x98
ret
test ecx, ecx
jne 0x10003e2e
lea eax, [ecx + 8]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.100045aa
add esp, 0x98
ret
cmp ecx, 5
jne 0x10003e2e
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x10003e2e
lea eax, [ecx + 9]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.100045aa
add esp, 0x98
ret
cmp dword [esp + 4], 4
jne 0x10003e2e
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x10003de6
xor eax, eax
cmp byte [esp + 0x15], 0x43
sete al
add eax, 2
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.100045aa
add esp, 0x98
ret
cmp ecx, eax
jne 0x10003e0c
xor eax, eax
cmp byte [esp + 0x15], 0x41
sete al
add eax, 4
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.100045aa
add esp, 0x98
ret
cmp ecx, 0x5a
jne 0x10003e2e
lea eax, [ecx - 0x54]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.100045aa
add esp, 0x98
ret
mov eax, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.100045aa
add esp, 0x98
ret
Function at 0x10005c58
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x100140e0]
je 0x10005c73
inc edi
cmp edi, 0x17
jb 0x10005c64
cmp edi, 0x17
jae 0x10005df3
push ebp
push 3
call fcn.1000ba59
cmp eax, 1
pop ecx
je 0x10005dbf
push 3
call fcn.1000ba59
test eax, eax
pop ecx
jne 0x10005ca7
cmp dword [0x10015208], 1
je 0x10005dbf
cmp ebx, 0xfc
je 0x10005df2
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10015228
push ebp
call fcn.1000b713
add esp, 0xc
test eax, eax
je 0x10005cdd
push esi
push esi
push esi
push esi
push esi
call fcn.10005fe2
add esp, 0x14
push 0x104
mov esi, 0x10015241
push esi
push 0
mov byte [0x10015345], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10005d21
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1000b713
add esp, 0xc
test eax, eax
je 0x10005d21
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10005fe2
add esp, 0x14
push esi
call fcn.10006e30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10005d66
push esi
call fcn.10006e30
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1001553c
push 0x10010954
sub ecx, eax
push ecx
push eax
call fcn.1000b9a6
add esp, 0x14
test eax, eax
je 0x10005d66
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10005fe2
add esp, 0x14
jmp 0x10005d68
xor esi, esi
push 0x10010950
push ebx
push ebp
call fcn.1000b935
add esp, 0xc
test eax, eax
je 0x10005d88
push esi
push esi
push esi
push esi
push esi
call fcn.10005fe2
add esp, 0x14
push dword [edi*8 + 0x100140e4]
push ebx
push ebp
call fcn.1000b935
add esp, 0xc
test eax, eax
je 0x10005daa
push esi
push esi
push esi
push esi
push esi
call fcn.10005fe2
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1000b778
add esp, 0xc
jmp 0x10005df2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10005df2
cmp ebp, 0xffffffff
je 0x10005df2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100140e4]
push dword [esi]
call fcn.10006e30
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1000b778
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100051b8
xor ebx, ebx
cmp dword [0x10015b80], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1000b84e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000b92e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1000b92e
push eax
call fcn.1000514a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10015b80], eax
call esi
push eax
call fcn.1000514a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10015b84], eax
call esi
push eax
call fcn.1000514a
mov dword [0x10015b88], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100041f9
test eax, eax
pop ecx
pop ecx
je 0x1000b81c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10005fe2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1000b84e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000514a
cmp eax, ebx
pop ecx
mov dword [0x10015b90], eax
je 0x1000b84e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000514a
pop ecx
mov dword [0x10015b8c], eax
mov eax, dword [0x10015b8c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1000b8d3
cmp dword [0x10015b90], ecx
je 0x1000b8d3
push eax
call fcn.100051c1
push dword [0x10015b90]
mov esi, eax
call fcn.100051c1
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1000b8d3
cmp edi, ebx
je 0x1000b8d3
call esi
cmp eax, ebx
je 0x1000b8a0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000b8a0
test byte [ebp - 0x18], 1
jne 0x1000b8d3
lea eax, [ebp - 0x10]
push eax
call fcn.10004230
test eax, eax
pop ecx
je 0x1000b8bb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10005fe2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1000b8ca
or dword [ebp + 0x10], 0x200000
jmp 0x1000b90e
or dword [ebp + 0x10], 0x40000
jmp 0x1000b90e
mov eax, dword [0x10015b84]
cmp eax, dword [ebp - 8]
je 0x1000b90e
push eax
call fcn.100051c1
cmp eax, ebx
pop ecx
je 0x1000b90e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000b90e
mov eax, dword [0x10015b88]
cmp eax, dword [ebp - 8]
je 0x1000b90e
push eax
call fcn.100051c1
cmp eax, ebx
pop ecx
je 0x1000b90e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10015b80]
call fcn.100051c1
cmp eax, ebx
pop ecx
je 0x1000b92e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000b930
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403610
Capabilities:
Get token membership

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
lea ecx, [esp + 0xc]
xor esi, esi
mov dword [esp + 0xc], eax
push 6
push ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], esi
mov word [esp + 0x18], ax
call dword [sym.imp.KERNEL32.DLL_RtlZeroMemory]
mov ecx, 5
call dword [sym.imp.MSVBVM60.DLL___vbaUI1I4]
lea edx, [esp + 4]
mov ecx, 2
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
mov byte [esp + 0x35], al
call dword [sym.imp.MSVBVM60.DLL___vbaUI1I2]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.DLL_AllocateAndInitializeSid]
test eax, eax
je 0x4036a1
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push edx
push esi
call dword [sym.imp.ADVAPI32.DLL_CheckTokenMembership]
test eax, eax
je 0x403696
mov edx, dword [esp + 8]
xor eax, eax
cmp edx, esi
setne al
neg eax
mov esi, eax
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.DLL_FreeSid]
mov ax, si
pop esi
add esp, 0x10
ret
Function at 0x42df8c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [esi + ecx]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x42df9a
mov eax, edx
xor edx, edx
div dword [ebp + 0xc]
pop esi
mov eax, edx
pop ebp
ret
Function at 0x402958
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402987
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403c20
jmp 0x4029a5
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402880
mov edi, eax
test ebx, ebx
je 0x4029a5
cmp dword [esi], 0
je 0x4029a5
dec ebx
jmp 0x40298e
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402dc0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402da0
xor eax, eax
push ebp
push 0x402d99
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402ddc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402da0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret