joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10036540
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x430
call fcn.100781a0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
mov dword [esp + 0xc], 0
jne 0x1003656b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.MSVCRT.dll__stat]
push 0
push 0
lea ecx, [esp + 0x28]
push 0x24
push ecx
mov edi, eax
call sym.LIBEAY32.dll_RAND_add
add esp, 0x18
test edi, edi
jge 0x10036599
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x100365a9
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100816e4
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x1003662f
jmp 0x100365c6
mov eax, dword [esp + 0x10]
test ebx, ebx
jle 0x100365d4
cmp ebx, 0x400
mov esi, ebx
jl 0x100365d9
mov esi, 0x400
push eax
push esi
lea edx, [esp + 0x44]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
mov dword [esp + 0x14], edi
jle 0x10036621
fild dword [esp + 0x14]
sub esp, 8
lea eax, [esp + 0x44]
fstp qword [esp]
push esi
push eax
call sym.LIBEAY32.dll_RAND_add
mov ecx, dword [esp + 0x1c]
add esp, 0x10
add ecx, edi
test ebx, ebx
mov dword [esp + 0xc], ecx
jle 0x100365c2
sub ebx, esi
test ebx, ebx
jg 0x100365c2
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10036640
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x408
call fcn.100781a0
push ebx
push esi
mov esi, dword [esp + 0x414]
push edi
xor edi, edi
push 0x100816e8
push esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, edi
je 0x1003670b
push ebp
push 0x180
push esi
call dword [sym.imp.MSVCRT.dll__chmod]
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 8
mov edi, 0x400
cmp edi, 0x400
mov esi, 0x400
jg 0x100366a1
mov esi, edi
lea eax, [esp + 0x18]
push esi
push eax
sub edi, 0x400
call sym.LIBEAY32.dll_RAND_bytes
add esp, 8
test eax, eax
jg 0x100366c1
mov dword [esp + 0x14], 1
push ebx
push esi
lea ecx, [esp + 0x20]
push 1
push ecx
call ebp
add esp, 0x10
test eax, eax
jle 0x100366e3
mov ecx, dword [esp + 0x10]
add ecx, eax
test edi, edi
mov dword [esp + 0x10], ecx
jle 0x100366eb
jmp 0x10036692
mov dword [esp + 0x10], 0
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
pop ebp
je 0x1003670b
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x408
ret
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x408
ret
Function at 0x10036720
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
call sym.LIBEAY32.dll_i2d_X509_PKEY
mov esi, dword [sym.imp.MSVCRT.dll_getenv]
test eax, eax
jne 0x10036763
push str.RANDFILE
call esi
add esp, 4
cmp eax, ebx
je 0x10036763
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
lea ecx, [edi - 1]
push ecx
push eax
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [esi + edi - 1], bl
mov eax, esi
pop edi
pop esi
pop ebx
ret
call sym.LIBEAY32.dll_i2d_X509_PKEY
test eax, eax
jne 0x1003677c
push str.HOME
call esi
mov edx, eax
add esp, 4
cmp edx, ebx
jne 0x1003678b
mov edx, 0x100816f4
mov eax, edx
test eax, eax
je 0x1003681c
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
add ecx, 5
cmp ecx, eax
jae 0x1003681c
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10080a64
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..rnd
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebx
pop esi
mov byte [ecx], bl
pop ebx
ret
Function at 0x100370a0
Capabilities:
Capture screenshot

Disassembly:
mov eax, 0x40
call fcn.100781a0
push ebx
push ebp
push esi
push edi
call sym.LIBEAY32.dll_RAND_poll
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
push 8
push edi
mov dword [esp + 0x18], ebx
call esi
mov ebp, eax
push 0xa
push edi
mov dword [esp + 0x20], ebp
call esi
push 0x10
push ebp
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
push esi
push ebx
mov dword [esp + 0x24], esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x38]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov esi, dword [esp + 0x48]
push 0x290
and esi, 0xffff
push str..crypto_rand_rand_win.c
imul esi, dword [esp + 0x48]
imul esi, dword [esp + 0x4c]
push esi
call sym.LIBEAY32.dll_CRYPTO_malloc
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x100371b8
mov ecx, dword [esp + 0x14]
xor ebx, ebx
lea eax, [ecx - 0x10]
test eax, eax
mov dword [esp + 0x14], eax
jle 0x100371ab
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push 0xcc0020
push ebx
push 0
push edi
push 0x10
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x1c]
push ebp
push esi
push ecx
call dword [sym.imp.GDI32.dll_GetBitmapBits]
lea edx, [esp + 0x24]
push edx
push esi
push ebp
call sym.LIBEAY32.dll_SHA1
push 0
push 0
lea eax, [esp + 0x38]
push 0x14
push eax
call sym.LIBEAY32.dll_RAND_add
mov eax, dword [esp + 0x30]
add ebx, 0x10
add esp, 0x1c
cmp ebx, eax
jl 0x10037155
push ebp
call sym.LIBEAY32.dll_CRYPTO_free
mov ebx, dword [esp + 0x14]
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call esi
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x1003a4e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x1003a5c6
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x18]
cmp edi, 3
jl 0x1003a553
xor edx, edx
xor eax, eax
mov dh, byte [esi]
mov al, byte [esi + 2]
mov dl, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
inc ecx
and edx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x1003a5aa
xor edx, edx
mov dl, byte [esi]
shl edx, 0x10
cmp edi, 2
jne 0x1003a566
xor eax, eax
mov ah, byte [esi + 1]
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
inc ecx
cmp edi, 1
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
jne 0x1003a596
mov ebx, 0x3d
jmp 0x1003a5a4
shr edx, 6
and edx, 0x3f
xor ebx, ebx
mov bl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x1003a4fa
pop esi
pop ebx
mov eax, ebp
pop edi
mov byte [ecx], 0
pop ebp
ret
mov ecx, dword [esp + 0xc]
mov eax, ebp
pop edi
pop ebp
mov byte [ecx], 0
ret
Function at 0x10040080
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x230
call fcn.100781a0
mov eax, dword [esp + 0x24c]
push ebx
push ebp
mov ebp, dword [esp + 0x250]
push esi
mov esi, dword [esp + 0x240]
test esi, esi
push edi
mov ebx, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
jne 0x100400bd
mov dword [esp + 0x248], esi
jmp 0x100400db
mov eax, dword [esp + 0x248]
or ecx, 0xffffffff
cmp eax, ecx
jne 0x100400db
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x248], ecx
test ebp, ebp
je 0x100401fd
jmp 0x100400f0
mov esi, dword [esp + 0x244]
mov ebp, dword [esp + 0x18]
cmp ebp, 0x14
jle 0x100400fa
mov ebp, 0x14
mov ecx, ebx
mov edx, ebx
mov eax, ebx
mov byte [esp + 0x13], bl
shr ecx, 0x18
shr edx, 0x10
shr eax, 8
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], al
call sym.LIBEAY32.dll_EVP_sha1
mov ecx, dword [esp + 0x248]
push eax
push ecx
lea edx, [esp + 0x38]
push esi
push edx
call sym.LIBEAY32.dll_HMAC_Init
mov eax, dword [esp + 0x260]
mov ecx, dword [esp + 0x25c]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
call sym.LIBEAY32.dll_HMAC_Update
lea eax, [esp + 0x2c]
push 4
lea ecx, [esp + 0x50]
push eax
push ecx
call sym.LIBEAY32.dll_HMAC_Update
lea edx, [esp + 0x44]
push 0
lea eax, [esp + 0x5c]
push edx
push eax
call sym.LIBEAY32.dll_HMAC_Final
mov edi, dword [esp + 0x48]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x288]
mov ecx, edx
add esp, 0x34
and ecx, 3
cmp eax, 1
rep movsb byte es:[edi], byte [esi]
jle 0x100401e0
lea edi, [eax - 1]
mov edx, dword [esp + 0x248]
lea eax, [esp + 0x1c]
push 0
push eax
mov eax, dword [esp + 0x24c]
lea ecx, [esp + 0x24]
push 0x14
push ecx
push edx
push eax
call sym.LIBEAY32.dll_EVP_sha1
push eax
call sym.LIBEAY32.dll_HMAC
add esp, 0x1c
test ebp, ebp
jle 0x100401dd
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
sub ecx, eax
mov esi, ebp
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x100401d4
dec edi
jne 0x10040198
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
sub eax, ebp
inc ebx
add edx, ebp
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x14], edx
jne 0x100400e5
lea eax, [esp + 0x30]
push eax
call sym.LIBEAY32.dll_HMAC_cleanup
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x230
ret
Function at 0x10061fd5
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
adc al, 0xf
mov bh, 0x71
push es
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe sym.LIBEAY32.dll_X509_CRL_digest
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10061ff7
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x10062008
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x10062012
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10061fed
pop edi
pop esi
ret

Function at 0x10062190
Capabilities:
Enumerate pe sections

Disassembly:
add byte [ebx - 0x7fcc388], cl
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.10061f95
and al, 0x6b
loopne 0x10062225
movzx eax, word [edi + 6]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.10061f95
arpl word [0x8b668d41], si
inc edi
push es
cmp ax, bx
cmp eax, ebx
jbe 0x100621ef
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x100621e9
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x100621da
invalid

Function at 0x10062290
Capabilities:
Contain obfuscated stackstrings

Disassembly:
je 0x10062280
invalid
invalid
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
invalid
invalid
Function at 0x10062350
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
xchg esp, eax
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10061fa5
push eax
push esi
push dword [ebp + 8]
call fcn.10061f5a
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10061fa5
push eax
push esi
push dword [ebp + 8]
call fcn.10061f5a
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10061f95
push cs
xor dh, bh
or ecx, dword [eax - 0x8363]
dec dword [eax - 0x8263]
inc esi
test dword [esi - 1], edi
invalid

Function at 0x10062620
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x10062649
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x10062644
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1006262e
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add byte [ebx + 0x34572bd6], cl
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x10062636
cmp edx, ebx
jne 0x10062784
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x10062605
add eax, dword [eax + 4]
jmp 0x100625f2
mov dword [ebp + 0xc], ebx
jmp 0x10062654
Function at 0x10062680
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1006266c
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1006268a
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x100626e8
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x100626cf
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x100626d8
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x100626e2
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x100626c4
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1006264e
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10062735
dec eax
je 0x1006272c
sub eax, 3
je 0x10062723
mov dword [ebp - 4], 0x40
jmp 0x10062752
mov dword [ebp - 4], 4
jmp 0x10062738
mov dword [ebp - 4], 0x20
jmp 0x10062738
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10062784
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10062704
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10061f95
popfd
and al, 0x53
cmp bh, bh
jne 0x1006278f
push 1
push esi
call edi
mov eax, esi
jmp 0x10062790
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006e1d0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0xc
call fcn.100781a0
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push edi
test ebp, ebp
jne 0x1006e1ee
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x1006e29c
mov edi, dword [esp + 0x20]
test edi, edi
je 0x1006e26d
mov ecx, dword [ebx + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edi
call sym.LIBEAY32.dll_lh_retrieve
add esp, 8
test eax, eax
je 0x1006e229
mov eax, dword [eax + 8]
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push esi
mov esi, 0x1008947c
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1006e255
test cl, cl
je 0x1006e251
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1006e255
add eax, 2
add esi, 2
test cl, cl
jne 0x1006e231
xor eax, eax
jmp 0x1006e25a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop esi
jne 0x1006e26d
push ebp
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
jne 0x1006e2a6
mov ecx, dword [ebx + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x14], str.default
mov dword [esp + 0x18], ebp
call sym.LIBEAY32.dll_lh_retrieve
add esp, 8
test eax, eax
je 0x1006e1e5
mov eax, dword [eax + 8]
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push ebp
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x1006e2b0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10
call fcn.100781a0
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
test ebp, ebp
push edi
mov dword [esp + 0x10], 0
je 0x1006e384
mov edi, dword [esp + 0x24]
test edi, edi
je 0x1006e374
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x1006e34e
mov ecx, dword [edi + 8]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebx
call sym.LIBEAY32.dll_lh_retrieve
add esp, 8
test eax, eax
je 0x1006e308
mov esi, dword [eax + 8]
jmp 0x1006e380
mov esi, 0x1008947c
mov eax, ebx
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x1006e337
test cl, cl
je 0x1006e333
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x1006e337
add eax, 2
add esi, 2
test cl, cl
jne 0x1006e30f
xor eax, eax
jmp 0x1006e33c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1006e34e
push ebp
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
jne 0x1006e37e
mov ecx, dword [edi + 8]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], str.default
mov dword [esp + 0x20], ebp
call sym.LIBEAY32.dll_lh_retrieve
add esp, 8
test eax, eax
je 0x1006e384
mov esi, dword [eax + 8]
jmp 0x1006e380
push ebp
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov esi, eax
test esi, esi
jne 0x1006e38e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov al, byte [esi]
mov edx, dword [edi]
push eax
push edi
call dword [edx + 0x1c]
add esp, 8
test eax, eax
je 0x1006e3c6
mov dl, byte [esi]
mov ecx, dword [edi]
push edx
push edi
call dword [ecx + 0x20]
mov ecx, dword [esp + 0x18]
inc esi
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*2]
mov cl, byte [esi]
mov eax, dword [edi]
push ecx
push edi
mov dword [esp + 0x20], edx
call dword [eax + 0x1c]
add esp, 0x10
test eax, eax
jne 0x1006e39e
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x41f993
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f9d2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f9d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f9d2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f9d2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f9d2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43217d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43217d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1001720a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10017080
Function at 0x10001ea0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
push 2
push 0
push 0x10001d40
mov ecx, dword [0x10048240]
call fcn.1001a0f0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10001fad
mov byte [ebp - 0x34], 0x45
mov byte [ebp - 0x33], 0x52
mov byte [ebp - 0x32], 0x52
mov byte [ebp - 0x31], 0x4f
mov byte [ebp - 0x30], 0x52
mov byte [ebp - 0x2f], 0x21
mov byte [ebp - 0x2e], 0x20
mov byte [ebp - 0x2d], 0x54
mov byte [ebp - 0x2c], 0x68
mov byte [ebp - 0x2b], 0x72
mov byte [ebp - 0x2a], 0x65
mov byte [ebp - 0x29], 0x61
mov byte [ebp - 0x28], 0x64
mov byte [ebp - 0x27], 0x20
mov byte [ebp - 0x26], 0x63
mov byte [ebp - 0x25], 0x72
mov byte [ebp - 0x24], 0x65
mov byte [ebp - 0x23], 0x61
mov byte [ebp - 0x22], 0x74
mov byte [ebp - 0x21], 0x69
mov byte [ebp - 0x20], 0x6f
mov byte [ebp - 0x1f], 0x6e
mov byte [ebp - 0x1e], 0x20
mov byte [ebp - 0x1d], 0x66
mov byte [ebp - 0x1c], 0x61
mov byte [ebp - 0x1b], 0x69
mov byte [ebp - 0x1a], 0x6c
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 0x64
mov byte [ebp - 0x17], 0x2c
mov byte [ebp - 0x16], 0x20
mov byte [ebp - 0x15], 0x54
mov byte [ebp - 0x14], 0x68
mov byte [ebp - 0x13], 0x72
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x61
mov byte [ebp - 0x10], 0x64
mov byte [ebp - 0xf], 0x20
mov byte [ebp - 0xe], 0x43
mov byte [ebp - 0xd], 0x6f
mov byte [ebp - 0xc], 0x64
mov byte [ebp - 0xb], 0x65
mov byte [ebp - 0xa], 0x20
mov byte [ebp - 9], 0x30
mov byte [ebp - 8], 0x78
mov byte [ebp - 7], 0x32
mov byte [ebp - 6], 0x21
mov byte [ebp - 5], 0
mov ecx, dword [0x10047828]
call fcn.10001460
push eax
push 0
lea eax, [ebp - 0x34]
push eax
push 0
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [0x1004782c]
call fcn.100133a0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10003330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 5
mov dword [ebp - 8], 0
jmp 0x10003352
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x33
jge 0x10003391
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x779227d4]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x1000338c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x10003349
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x33], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4