joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401396
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
mov esi, ecx
cmp dword [0x40b0c4], edx
jne 0x4013d5
push ebx
push edi
push 8
mov ecx, edx
pop edi
mov ebx, ecx
and bl, 1
movzx ebx, bl
neg ebx
sbb ebx, ebx
and ebx, 0xedb88320
shr ecx, 1
xor ecx, ebx
dec edi
jne 0x4013aa
mov dword [edx*4 + 0x40b0c0], ecx
inc edx
cmp edx, 0x100
jl 0x4013a5
pop edi
pop ebx
not esi
jmp 0x4013f3
movzx ecx, byte [eax]
dec dword [esp + 8]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x40b0c0]
inc eax
cmp dword [esp + 8], 0
ja 0x4013d9
mov eax, esi
not eax
pop esi
ret 4
Function at 0x402164
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x460738]
push ebx
push ebp
mov ebp, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
push esi
push edi
sub ebx, ebx
sub esi, esi
sub edi, edi
cmp eax, ebx
jne 0x4021b2
call ebp
push eax
pop esi
cmp esi, ebx
je 0x402193
mov dword [0x460738], 1
jmp 0x4021bb
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
push eax
pop edi
cmp edi, ebx
je 0x40228d
mov dword [0x460738], 2
jmp 0x402241
cmp eax, 1
jne 0x40223c
cmp esi, ebx
jne 0x4021cb
call ebp
push eax
pop esi
cmp esi, ebx
je 0x40228d
cmp word [esi], bx
push esi
pop eax
je 0x4021e0
inc eax
inc eax
cmp word [eax], bx
jne 0x4021d2
inc eax
inc eax
cmp word [eax], bx
jne 0x4021d2
sbb eax, esi
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sar eax, 1
push ebx
push ebx
inc eax
push ebx
push ebx
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x402231
push ebp
call fcn.00402e67
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x402231
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
or eax, eax
jne 0x40222d
push dword [esp + 0x10]
call fcn.00402e38
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
push ebx
pop eax
jmp 0x40228f
cmp eax, 2
jne 0x40228d
cmp edi, ebx
jne 0x402251
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
push eax
pop edi
cmp edi, ebx
je 0x40228d
cmp byte [edi], bl
push edi
pop eax
je 0x402261
inc eax
cmp byte [eax], bl
jne 0x402257
inc eax
cmp byte [eax], bl
jne 0x402257
sbb eax, edi
inc eax
mov ebp, eax
push ebp
call fcn.00402e67
push eax
pop esi
pop ecx
cmp esi, ebx
jne 0x402277
sub esi, esi
jmp 0x402282
push ebp
push edi
push esi
call fcn.00401490
add esp, 0xc
push edi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
push esi
pop eax
jmp 0x40228f
sub eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x402689
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
sub ecx, ecx
mov eax, 0x45fe30
cmp edx, dword [eax]
je 0x4026ab
add eax, 8
inc ecx
cmp eax, 0x45fec0
jl 0x40269c
push esi
push ecx
pop esi
shl esi, 3
cmp edx, dword [esi + 0x45fe30]
jne 0x4027d9
mov eax, dword [0x4605e0]
cmp eax, 1
je 0x4027b3
or eax, eax
jne 0x4026dc
cmp dword [0x45fd84], 1
je 0x4027b3
cmp edx, 0xfc
je 0x4027d9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
or eax, eax
jne 0x402713
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00401820
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402ee0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402756
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402ee0
push eax
pop edi
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x446a80
push edi
call fcn.00403830
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.f4kweyz6p8mlt2_n_nProgram:
push eax
call fcn.00401820
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00401830
lea eax, [ebp - 0xa0]
push 0x446a60
push eax
call fcn.00401830
push dword [esi + 0x45fe34]
lea eax, [ebp - 0xa0]
push eax
call fcn.00401830
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004037a4
add esp, 0x2c
pop edi
jmp 0x4027d9
lea eax, [ebp + 8]
lea esi, [esi + 0x45fe34]
push 0
push eax
push dword [esi]
call fcn.00402ee0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4027dc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, dword [0x461b00]
jae 0x4029b9
push esi
pop eax
and esi, 0x1f
sar eax, 5
shl esi, 3
lea ebx, [eax*4 + 0x461a00]
mov eax, dword [eax*4 + 0x461a00]
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x4029b9
and dword [ebp - 8], 0
mov edi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
push edi
pop ecx
je 0x402891
test dl, 2
jne 0x402891
test dl, 0x48
je 0x402851
mov al, byte [eax + 5]
cmp al, 0xa
je 0x402851
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [ebx]
push dword [ebp + 0x10]
push ecx
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
or eax, eax
jne 0x4028a4
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x40288c
mov dword [0x4605e4], 9
mov dword [0x4605e8], ecx
jmp 0x4029ca
cmp eax, 0x6d
jne 0x402898
sub eax, eax
jmp 0x4029cd
push eax
call fcn.004039c8
pop ecx
jmp 0x4029ca
mov eax, dword [ebx]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [eax + esi + 4]
test al, 0x80
je 0x4029b4
or edx, edx
je 0x4028c9
cmp byte [edi], 0xa
jne 0x4028c9
or al, 4
jmp 0x4028cb
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x10], eax
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], ecx
jae 0x4029ae
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x40299e
cmp al, 0xd
je 0x4028ff
mov byte [edi], al
inc edi
inc dword [ebp + 0x10]
jmp 0x402990
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x40291d
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x402914
add dword [ebp + 0x10], 2
jmp 0x402972
mov byte [edi], 0xd
inc edi
mov dword [ebp + 0x10], eax
jmp 0x402990
lea eax, [ebp - 0xc]
push 0
push eax
inc dword [ebp + 0x10]
lea eax, [ebp - 1]
push 1
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
or eax, eax
jne 0x402945
call dword [sym.imp.kernel32.dll_GetLastError]
or eax, eax
jne 0x40298c
cmp dword [ebp - 0xc], 0
je 0x40298c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x402967
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x402972
mov byte [edi], 0xd
mov ecx, dword [ebx]
inc edi
mov byte [ecx + esi + 5], al
jmp 0x402990
cmp edi, dword [ebp + 0xc]
jne 0x402977
cmp byte [ebp - 1], 0xa
jne 0x402977
mov byte [edi], 0xa
jmp 0x40298f
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040392e
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x402990
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4028e3
jmp 0x4029ae
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4029ae
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 8], edi
mov eax, dword [ebp - 8]
jmp 0x4029cd
and dword [0x4605e8], 0
mov dword [0x4605e4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40454c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov ecx, dword [ebp + 8]
push ebx
cmp ecx, dword [0x461b00]
push esi
push edi
jae 0x4046e0
push ecx
pop eax
push ecx
pop esi
sar eax, 5
and esi, 0x1f
lea ebx, [eax*4 + 0x461a00]
shl esi, 3
mov eax, dword [ebx]
mov al, byte [eax + esi + 4]
test al, 1
je 0x4046e0
sub edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x40459d
sub eax, eax
jmp 0x4046f4
test al, 0x20
je 0x4045ad
push 2
push edi
push ecx
call fcn.0040392e
add esp, 0xc
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40467c
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x4046b4
lea eax, [ebp - 0x414]
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x404607
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
mov cl, byte [ecx]
cmp cl, 0xa
jne 0x4045f2
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
mov byte [eax], cl
inc eax
push eax
pop ecx
lea edx, [ebp - 0x414]
sbb ecx, edx
cmp ecx, 0x400
jl 0x4045d3
push eax
pop edi
lea eax, [ebp - 0x414]
sbb edi, eax
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 0x414]
push edi
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
or eax, eax
je 0x404671
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x404643
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jb 0x4045cd
sub edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x4046db
cmp dword [ebp + 8], edi
je 0x4046b4
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x4046a9
mov dword [0x4605e4], 9
mov dword [0x4605e8], eax
jmp 0x4046f1
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x404643
lea ecx, [ebp - 0xc]
push edi
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
or eax, eax
je 0x40469e
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x404645
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x404645
push dword [ebp + 8]
call fcn.004039c8
pop ecx
jmp 0x4046f1
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4046c9
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x404596
mov dword [0x4605e4], 0x1c
mov dword [0x4605e8], edi
jmp 0x4046f1
sub eax, dword [ebp - 0x10]
jmp 0x4046f4
and dword [0x4605e8], 0
mov dword [0x4605e4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10013a0
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10040a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x10011f0
xor edi, edi
push edi
call dword [sym.imp.msvcrt.dll_setlocale]
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x120]
push eax
dec ebx
add esi, 4
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100141a
cmp dword [ebp - 0x11c], 5
jne 0x100141a
cmp dword [ebp - 0x118], edi
jne 0x100141a
mov dword [0x100440c], 1
call fcn.0100213d
test eax, eax
jne 0x1001436
push 0x40002719
call fcn.010022f7
pop ecx
xor eax, eax
inc eax
jmp 0x10014cd
cmp ebx, edi
jne 0x100144a
xor esi, esi
push edi
push edi
call fcn.010023a6
mov eax, esi
jmp 0x10014cd
push dword [esi]
push 0x100408c
call fcn.010012f5
mov edi, eax
test edi, edi
jne 0x100146f
push dword [esi]
push 0x4000271a
call fcn.010022f7
pop ecx
xor esi, esi
pop ecx
inc esi
jmp 0x100143c
dec ebx
add esi, 4
test ebx, ebx
jne 0x100148d
push 0x10011e0
push dword [edi + 4]
call fcn.010012f5
push esi
push ebx
call dword [eax + 4]
xor eax, eax
jmp 0x10014cd
push dword [esi]
push dword [edi + 4]
call fcn.010012f5
test eax, eax
jne 0x10014c4
push dword [esi]
push 0x4000271a
call fcn.010022f7
pop ecx
pop ecx
push 0x10011e0
push dword [edi + 4]
call fcn.010012f5
add esi, 4
push esi
dec ebx
push ebx
call dword [eax + 4]
jmp 0x100142e
add esi, 4
push esi
dec ebx
push ebx
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100265e
leave
ret
Function at 0x100207d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
xor esi, esi
mov dword [ebp - 0x10], edi
cmp edi, esi
je 0x1002132
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
jne 0x10020cd
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x10020cd
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1002132
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push ebx
push esi
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
call ebx
mov dword [ebp - 8], eax
inc eax
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 4], eax
cmp eax, esi
je 0x1002131
mov eax, dword [ebp - 8]
push esi
push esi
inc eax
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call edi
push eax
call ebx
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x100213d
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10040a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
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
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x10021ad
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x10021a4
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.0100265e
leave
ret
Function at 0x100264f
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1002ca0
call fcn.010029a4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1004420
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002464
cmp eax, esi
jne 0x1002457
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1002467
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100243e
xor esi, esi
inc esi
mov eax, dword [0x100441c]
cmp eax, esi
jne 0x100247a
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10024b5
mov eax, dword [0x100441c]
test eax, eax
jne 0x10024af
mov dword [0x100441c], esi
push 0x1001148
push 0x100113c
call fcn.010023bb
pop ecx
pop ecx
test eax, eax
je 0x10024b5
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x100257f
mov dword [0x10040dc], esi
mov eax, dword [0x100441c]
cmp eax, esi
jne 0x10024d9
push 0x1001138
push 0x1001130
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100441c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10024e6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1004424], ebx
je 0x1002507
push 0x1004424
call fcn.01002919
pop ecx
test eax, eax
je 0x1002507
push ebx
push 2
push ebx
call dword [0x1004424]
push dword [0x10040c4]
push dword [0x10040c8]
push dword [0x10040c0]
call fcn.010013a0
add esp, 0xc
mov dword [0x10040d8], eax
cmp dword [0x10040cc], ebx
jne 0x1002565
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x10040dc], ebx
jne 0x1002573
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10040d8]
call fcn.010029e9
ret
call fcn.01002ac7
jmp 0x100241c
Function at 0x429940
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x429962
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x429969
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x429958
mov eax, 1
add ebx, ebx
jne 0x42997b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x429970
jne 0x42998c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x429970
xor ecx, ecx
sub eax, 3
jb 0x4299a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x429a12
mov ebp, eax
add ebx, ebx
jne 0x4299ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4299b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4299dc
inc ecx
add ebx, ebx
jne 0x4299c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4299bd
jne 0x4299d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4299bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4299fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4299ed
jmp 0x42995e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4299fc
add edi, ecx
jmp 0x42995e
pop esi
mov edi, esi
mov ecx, 0x6ae
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x429a1a
cmp byte [edi], 9
jne 0x429a1a
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 eax, ebx
loop 0x429a1f
lea edi, [esi + 0x27000]
mov eax, dword [edi]
or eax, eax
je 0x429a97
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x29c9c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x29d50]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x429a4c
mov ecx, edi
jns 0x429a7b
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 + 0x29d54]
or eax, eax
je 0x429a91
mov dword [ebx], eax
add ebx, 4
jmp 0x429a69
call dword [esi + 0x29d58]
popal
jmp 0x413327

Function at 0x484cf4
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x484a08
add edi, 0xfaff75a6
call fcn.00484d1e
sub edx, edx
xor dword [ebx], esi
inc edx
add ebx, 2
add edi, edi
add edi, edx
inc edx
cmp ebx, ecx
jl fcn.00484cf4
inc edi
inc edx
dec edi
ret
Function at 0x1001878
Capabilities:
Prompt user for credentials

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov edx, dword [ebp + 0x24]
or dword [ebp - 0xc], 0xffffffff
mov ecx, dword [ebp + 0x28]
push ebx
xor eax, eax
push esi
push edi
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], eax
cmp edx, ebx
jne 0x10018c4
push 4
lea edx, [ebp + 8]
pop ecx
mov esi, dword [ebp + 0x1c]
push 0x10
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push ecx
push edx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.credui.dll_CredUIPromptForWindowsCredentialsW]
mov edi, eax
cmp edi, ebx
je 0x100190d
cmp edi, 0x4c7
jne 0x100192b
cmp dword [ebp + 8], 0xfffffffb
je 0x1001906
cmp dword [ebp + 8], 0xffffffff
jne 0x1001966
mov eax, 0x1511
jmp 0x1001925
mov eax, 0x1522
jmp 0x1001925
cmp dword [ebp + 8], 0xfffffffb
je 0x1001920
cmp dword [ebp + 8], 0xffffffff
jne 0x100192f
mov eax, 0x1547
jmp 0x1001925
mov eax, 0x1541
push eax
call fcn.01004935
cmp edi, ebx
jne 0x1001966
cmp dword [ebp - 4], ebx
jne 0x100193b
mov eax, 0x4c7
jmp 0x1001968
push dword [ebp + 0x18]
push dword [esi]
push dword [ebp - 4]
call fcn.01003b07
mov esi, dword [esi]
mov edi, eax
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x100195d
cmp esi, ebx
je 0x100195d
mov byte [eax], bl
inc eax
dec esi
jne 0x1001957
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x24

Function at 0x1001b87
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
jne 0x1001baa
push 0xe
pop eax
jmp 0x1001c21
cmp dword [ebp - 4], 4
je 0x1001bbb
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x57
jmp 0x1001ba7
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push ebx
mov edi, 0x10011f4
push edi
push dword [esi + 4]
call sub.msvcrt.dll_swscanf_s
mov eax, dword [ebx]
add esp, 0xc
test eax, eax
je 0x1001c15
test al, 3
jne 0x1001c15
mov ebx, dword [ebp + 0xc]
push ebx
push edi
push dword [esi + 8]
call sub.msvcrt.dll_swscanf_s
add esp, 0xc
cmp dword [ebx], 0x44
jne 0x1001c15
mov edi, dword [ebp + 8]
push edi
push 0x10011ec
push dword [esi + 0xc]
call sub.msvcrt.dll_swscanf_s
add esp, 0xc
cmp dword [edi], 0
push esi
je 0x1001c16
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x1001c1f
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x57
pop eax
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x1002c44
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1007f48
call fcn.01003044
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1009498
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x10029fb
cmp eax, esi
jne 0x10029ee
xor esi, esi
inc esi
mov ebx, esi
jmp 0x10029fe
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10029d5
xor esi, esi
inc esi
mov eax, dword [0x1009494]
cmp eax, esi
jne 0x1002a11
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002a40
mov eax, dword [0x1009494]
test eax, eax
jne 0x1002a3a
mov dword [0x1009494], esi
push 0x100119c
push 0x1001190
call fcn.0100293a
pop ecx
pop ecx
test eax, eax
je 0x1002a40
jmp 0x1002b68
mov dword [0x1009134], esi
mov eax, dword [0x1009494]
cmp eax, esi
jne 0x1002a64
push 0x100118c
push 0x100117c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1009494], 2
test ebx, ebx
jne 0x1002a70
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10094a4], 0
je 0x1002a94
push 0x10094a4
call fcn.01002fb9
pop ecx
test eax, eax
je 0x1002a94
push 0
push 2
push 0
call dword [0x10094a4]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1002af0
test al, al
je 0x1002aae
cmp dword [ebp - 0x1c], 0
jne 0x1002af0
mov al, byte [esi]
test al, al
je 0x1002abe
cmp al, 0x20
ja 0x1002abe
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1002aae
test byte [ebp - 0x3c], 1
je 0x1002aca
movzx eax, word [ebp - 0x38]
jmp 0x1002acd
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1009130], eax
cmp dword [0x1009124], 0
jne 0x1002b44
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1002aff
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1002b12
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1002a9b
cmp dword [0x1009134], 0
jne 0x1002b53
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1009130]
jmp 0x1002b74
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01003089
ret
call fcn.01003191
jmp 0x100299b