joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465d40
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x60
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov eax, 1
pop esi
ret

Function at 0x480770
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x10c], 0xffffffff
jne 0x480782
xor eax, eax
pop edi
ret
push ebx
push esi
push edi
call fcn.00491650
mov ebx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [eax], esi
test ebx, ebx
je 0x48082e
mov eax, dword [edi + 0x10c]
push ebp
cmp eax, esi
jne 0x4807ce
test esi, esi
jle 0x48080d
mov ecx, ebx
lea eax, [edi + 0x8c]
mov ebp, esi
lea ebx, [ebx]
mov dl, byte [eax + 0x60]
xor dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
dec ebp
jne 0x4807c0
jmp 0x48080d
mov ecx, esi
sub ecx, eax
mov byte [eax + edi + 0xec], 0x80
cmp ecx, 1
jle 0x4807f3
dec ecx
push ecx
lea eax, [eax + edi + 0xed]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
test esi, esi
jle 0x48080d
mov ecx, ebx
lea eax, [edi + 0xac]
mov ebp, esi
mov dl, byte [eax + 0x40]
xor dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
dec ebp
jne 0x480801
push esi
push ebx
push ebx
push edi
call fcn.00450770
add esp, 0x10
pop ebp
test eax, eax
jne 0x48082e
push esi
push ebx
call fcn.004504e0
add esp, 8
pop esi
pop ebx
xor eax, eax
pop edi
ret
pop esi
pop ebx
mov eax, 1
pop edi
ret
Function at 0x48af20
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.004b7690
mov eax, dword [0x4fbf50]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
xor eax, eax
push edi
mov dword [esp + 0x14], ecx
test ebp, ebp
je 0x48af6f
mov eax, 1
mov dword [esi], ebp
jmp 0x48af71
mov ebp, dword [esi]
test ecx, ecx
je 0x48b054
push ebp
call fcn.00482650
mov ebx, eax
add esp, 4
cmp ebx, 0x80
jle 0x48afa0
push str.j____int_sizeof_ctx__key_
push 0x6e
push str..cryptohmachmac.c
call fcn.0044f1e0
add esp, 0xc
mov edi, dword [esp + 0xa8]
cmp ebx, edi
jge 0x48aff7
mov ecx, dword [esp + 0x10]
push ecx
lea ebx, [esi + 4]
push ebp
push ebx
call fcn.00460fe0
add esp, 0xc
test eax, eax
je 0x48b0f6
mov edx, dword [esp + 0x14]
push edi
push edx
push ebx
call fcn.00461190
add esp, 0xc
test eax, eax
je 0x48b0f6
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.004611a0
add esp, 0xc
test eax, eax
je 0x48b0f6
jmp 0x48b031
cmp edi, 0x80
jbe 0x48b013
push str.len___0__len____int_sizeof_ctx__key_
push 0x78
push str..cryptohmachmac.c
call fcn.0044f1e0
add esp, 0xc
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esi + 0x50]
push edx
call sub.MSVCR100.dll_memcpy
mov eax, dword [esp + 0xb4]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], eax
mov edi, dword [edi]
cmp edi, 0x80
je 0x48b05c
mov ecx, 0x80
sub ecx, edi
push ecx
lea edx, [edi + esi + 0x50]
push 0
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x48b05c
test eax, eax
je 0x48b0e2
xor eax, eax
mov edi, edi
mov cl, byte [esi + eax + 0x50]
xor cl, 0x36
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x48b060
mov edi, dword [esp + 0x10]
push edi
lea ebx, [esi + 0x1c]
push ebp
push ebx
call fcn.00460fe0
add esp, 0xc
test eax, eax
je 0x48b0f6
push ebp
call fcn.00482650
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.00461190
add esp, 0x10
test eax, eax
je 0x48b0f6
xor eax, eax
mov cl, byte [esi + eax + 0x50]
xor cl, 0x5c
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x48b0a4
push edi
lea ebx, [esi + 0x34]
push ebp
push ebx
call fcn.00460fe0
add esp, 0xc
test eax, eax
je 0x48b0f6
push ebp
call fcn.00482650
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.00461190
add esp, 0x10
test eax, eax
je 0x48b0f6
lea eax, [esi + 0x1c]
push eax
add esi, 4
push esi
call fcn.00461300
add esp, 8
test eax, eax
jne 0x48b0fa
xor eax, eax
jmp 0x48b0ff
mov eax, 1
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b7299
add esp, 0x8c
ret
Function at 0x48bf20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x48bfe9
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x48bf41
cmp al, 0x6b
jne 0x48bfe9
lea edx, [ecx + 1]
cmp al, 0x6b
jne 0x48bfaa
add esi, 0xfffffffd
xor ecx, ecx
test esi, esi
jle 0x48bf61
mov al, byte [edx]
inc edx
cmp al, 0xba
je 0x48bf61
cmp al, 0xbb
jne 0x48bf8a
inc ecx
cmp ecx, esi
jl 0x48bf51
sub esi, ecx
test ecx, ecx
jne 0x48bfad
push 0x83
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.0044fdb0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push 0x7b
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.0044fdb0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + edx], 0xcc
je 0x48bfd6
push 0x8b
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.0044fdb0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 8]
push esi
push edx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x70
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.0044fdb0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x48c2d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x5c
call fcn.004b7690
mov eax, dword [0x4fbf50]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x70]
push ebx
mov ebx, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x74]
push esi
mov esi, dword [esp + 0x88]
push edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x88]
dec edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
test eax, eax
jne 0x48c32d
call fcn.00461590
mov dword [esp + 0x18], eax
test esi, esi
jne 0x48c335
mov dword [esp + 0x14], eax
push eax
call fcn.004507a0
mov esi, eax
lea eax, [esi + esi]
sub edi, eax
lea edx, [edi - 1]
add esp, 4
cmp ebp, edx
jle 0x48c379
push 0x3a
push str..crypto_rsa_rsa_oaep.c
push 0x6e
push 0xa0
push 4
call fcn.0044fdb0
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004b7299
add esp, 0x5c
ret
inc eax
cmp dword [esp + 0x10], eax
jge 0x48c38b
push 0x40
push str..crypto_rsa_rsa_oaep.c
push 0x78
jmp 0x48c355
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x84]
push 0
push ecx
lea eax, [ebx + 1]
mov byte [ebx], 0
push 0
lea ebx, [ebx + esi + 1]
push ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push edx
push eax
call fcn.00461460
add esp, 0x18
test eax, eax
je 0x48c364
sub edi, ebp
dec edi
push edi
lea ecx, [ebx + esi]
push 0
push ecx
call sub.MSVCR100.dll_memset
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
mov eax, ebx
sub eax, ebp
sub eax, esi
push ebp
add eax, edi
push ecx
push eax
mov byte [eax - 1], 1
call sub.MSVCR100.dll_memcpy
mov ebp, dword [esp + 0x34]
push esi
push ebp
call fcn.00450650
add esp, 0x20
test eax, eax
jle 0x48c364
push 0x55
sub edi, esi
push str..crypto_rsa_rsa_oaep.c
push edi
call fcn.0044ea30
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x48c425
push 0x57
push str..crypto_rsa_rsa_oaep.c
push 0x41
jmp 0x48c355
mov edx, dword [esp + 0x14]
push edx
push esi
push ebp
push edi
push eax
call fcn.0048c150
add esp, 0x14
test eax, eax
js 0x48c364
test edi, edi
jle 0x48c45d
mov ebp, dword [esp + 0x10]
mov eax, ebx
sub ebp, ebx
mov ecx, edi
lea esp, [esp]
mov dl, byte [eax + ebp]
xor byte [eax], dl
inc eax
dec ecx
jne 0x48c450
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push eax
push edi
push ebx
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.0048c150
add esp, 0x14
test eax, eax
js 0x48c364
test esi, esi
jle 0x48c48f
lea ecx, [esp + 0x28]
mov eax, ebp
sub ecx, ebp
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x48c486
mov eax, dword [esp + 0x10]
push eax
call fcn.0044ebe0
mov ecx, dword [esp + 0x6c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004b7299
add esp, 0x5c
ret
Function at 0x49d300
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 8
call fcn.004b7690
mov eax, dword [esp + 0xc]
movzx edx, byte [eax + 1]
movzx ecx, byte [eax]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 2]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 3]
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax + 4]
mov dword [esp], ecx
movzx ecx, byte [eax + 7]
push esi
movzx esi, byte [eax + 5]
movzx eax, byte [eax + 6]
shl ecx, 8
shl esi, 8
or ecx, eax
or edx, esi
shl ecx, 0x10
or ecx, edx
cmp dword [esp + 0x24], 0
mov dword [esp + 8], ecx
pop esi
je 0x49d376
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.0049e5a0
jmp 0x49d38f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.0049e6d0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov byte [eax], cl
mov edx, ecx
shr edx, 8
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 2], dl
shr ecx, 0x18
mov byte [eax + 3], cl
mov ecx, dword [esp + 0x14]
mov edx, ecx
shr edx, 8
mov byte [eax + 4], cl
mov byte [eax + 5], dl
mov edx, ecx
shr edx, 0x10
add esp, 0x10
shr ecx, 0x18
mov byte [eax + 6], dl
mov byte [eax + 7], cl
add esp, 8
ret
Function at 0x49ea00
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
push ebx
cmp ecx, 0
je 0x49eae4
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x49ea7f
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.0049e5a0
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x49ea4d
mov ebp, dword [esp + 0x3c]
and ebp, 7
je 0x49eb9d
call 0x49ea91
pop edx
lea ecx, [edx + 0x12f]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
je 0x49eb3c
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.0049e6d0
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x49eaf5
mov ebp, dword [esp + 0x3c]
and ebp, 7
je 0x49eb9d
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.0049e6d0
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x49eb98
jmp 0x49eb9d
mov ecx, dword [esp + 0x4c]
add esp, 0x20
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4aced0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4acee9
mov esi, edi
mov edi, eax
jmp 0x4aceeb
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4acefb
mov eax, ebx
jmp 0x4acf05
push eax
push ebx
call fcn.00463190
add esp, 8
test eax, eax
jne 0x4acf0d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4acf29
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x4acf14
cmp eax, dword [esi + 4]
jge 0x4acf40
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x4acf30
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x4acf61
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4acf5e
dec eax
test eax, eax
jg 0x4acf50
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4b14c0
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x4b15a3
push esi
mov esi, dword [esp + 0x14]
inc esi
lea ebx, [ebx]
movzx edx, byte [esi - 1]
cmp edi, 3
jl 0x4b153d
movzx eax, byte [esi]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x4eb6c8]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x4eb6c8]
mov byte [ecx + 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x4eb6c8]
mov byte [ecx + 2], al
and edx, 0x3f
mov dl, byte [edx + 0x4eb6c8]
mov byte [ecx + 3], dl
jmp 0x4b158e
shl edx, 0x10
cmp edi, 2
jne 0x4b154d
movzx eax, byte [esi]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x4eb6c8]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x4eb6c8]
mov byte [ecx + 1], al
cmp edi, 1
jne 0x4b157a
lea edx, [edi + 0x3c]
jmp 0x4b1587
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x4eb6c8]
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
sub edi, 3
add ecx, 4
add ebp, 4
add esi, 3
test edi, edi
jg 0x4b14e0
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret

Function at 0x4b5230
Capabilities:
Query environment variable

Disassembly:
mov eax, 0xc
call fcn.004b7690
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x4b524a
xor eax, eax
pop edi
add esp, 0xc
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x4b52ee
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x4b52ba
mov ecx, dword [ebx + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
call fcn.0045aee0
add esp, 8
test eax, eax
jne 0x4b52db
mov ecx, 0x4ebd90
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4b52a4
test dl, dl
je 0x4b52a0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4b52a4
add eax, 2
add ecx, 2
test dl, dl
jne 0x4b5284
xor eax, eax
jmp 0x4b52a9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4b52ba
push edi
call sub.MSVCR100.dll_getenv
add esp, 4
test eax, eax
jne 0x4b52de
mov eax, dword [ebx + 8]
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x14], str.default
mov dword [esp + 0x18], edi
call fcn.0045aee0
add esp, 8
test eax, eax
je 0x4b52e5
mov eax, dword [eax + 8]
pop esi
pop ebx
pop edi
add esp, 0xc
ret
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0xc
ret
push edi
call sub.MSVCR100.dll_getenv
add esp, 4
pop ebx
pop edi
add esp, 0xc
ret

Function at 0x4b7299
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4fbf50]
jne 0x4b72a3
repz ret
jmp fcn.004b7a76
Function at 0x4ba940
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4c5940
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4fbf50]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fbf50]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
cmp dword [edi + 0x14], 8
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x1c], esi
jb 0x4ba98c
mov eax, dword [edi]
jmp 0x4ba98e
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4ba9ac
push esi
push edi
push ebp
call fcn.004ba820
add esp, 0xc
jmp 0x4baaff
test ebx, 0x400
je 0x4baabb
cmp dword [edi + 0x14], 8
jb 0x4ba9c2
mov edx, dword [edi]
jmp 0x4ba9c4
mov edx, edi
xor eax, eax
mov word [esp + 0x20], ax
mov eax, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ba9e0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00403c20
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 0
jae 0x4baa11
lea eax, [esp + 0x20]
push 0
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp dword [esp + 0x34], 8
mov byte [esp + 0x48], 2
jb 0x4baa46
mov ecx, dword [esp + 0x20]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], dx
cmp esi, 0xffffffff
jne 0x4baa76
mov eax, dword [esp + 0x1c]
push eax
push edi
push ebp
call fcn.004ba820
add esp, 0xc
jmp 0x4baaff
push edi
call fcn.004b98e0
add esp, 4
test al, al
jne 0x4baaa8
push ebx
push edi
call fcn.004b9f60
add esp, 8
push esi
mov dword [ebp], 9
mov dword [ebp + 4], eax
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4baaff
push esi
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4baacd
mov dword [esi], 0
call fcn.004bc8a0
mov dword [esi + 4], eax
push ebx
push edi
mov dword [esp + 0x1c], 3
test bl, 0x10
jne 0x4baae4
mov dword [esp + 0x1c], 2
call fcn.004b9f60
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 8
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov eax, ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004b7299
add esp, 0x38
ret
Function at 0x4c3130
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c661a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4fbf50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [esi], ebx
push 8
mov dword [ebp - 4], ebx
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x4c3223
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea edi, [esi + 0x18]
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], edi
mov dword [edi], ebx
push 8
mov byte [ebp - 4], 2
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x4c31fe
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4f53c8
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4f53c8
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3
Function at 0x1000fb93
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100128ec
push ebx
push esi
call fcn.10012818
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100127ac
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10012899
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100128eb
push edi
push eax
call fcn.1001380a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100128b9
call fcn.100112f4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100128ea
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100127ac
add esp, 0x20
test eax, eax
jne 0x100128d8
push edi
call fcn.100112f4
jmp 0x100128e0
push ebx
call fcn.100112f4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10012b59
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a888
push 0x1001a880
push str.FlsAlloc
push 0x1f
call fcn.10012a75
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012b8d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10019150]
call esi
jmp 0x10012b93
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10012bd7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a898
push 0x1001a890
push str.FlsGetValue
push 0x21
call fcn.10012a75
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012c0e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10019150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10012c16
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a8a0
push 0x1001a898
push str.FlsSetValue
push 0x22
call fcn.10012a75
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012c50
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10019150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100182d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100182fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100182fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x93c1d8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x93c1e2
pushal
call 0x93c1e8
pop ebp
sub ebp, 0x10
sub ebp, 0x53c1d8
jmp 0x93c1fe
mov eax, 0x53c1d8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5f2
mov edx, 0x6cd4c63a
xor byte [eax], dl
inc eax
dec ecx
jne 0x93c215
jmp 0x93c228
mov cl, 0xf7
mov cl, 0xb3
push es
cmp bh, byte [edx]
cmp bh, byte [ebx + 0x3a3ac2fb]
cmp bh, byte [ecx]
test dword [edx + 0x3a3a3a33], 0x3a3a1280
cmp cl, ch
fdivr dword [ecx]
mov cl, 0xbb
cmp bh, byte ss:[edx]
cmp bh, byte [ecx]
jmp [edx - 0x49]