joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483f30
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push dword [esp + 0x10]
call fcn.00484020
mov edi, eax
add esp, 8
test edi, edi
jne 0x483fd6
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00478ff0
push 0x4e4cbc
push esi
push 0x4e4cc0
push dword [esp + 0x2c]
push str.fopen_
push 5
call fcn.00478bb0
add esp, 0x2c
call fcn.0045922b
cmp dword [eax], 2
je 0x483fb6
call fcn.0045922b
cmp dword [eax], 6
je 0x483fb6
push 0xb8
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00478ff0
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0xb6
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.00478ff0
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0x5038c8
call fcn.0047e100
mov esi, eax
add esp, 4
test esi, esi
jne 0x483ff7
push edi
call fcn.00456d6b
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push 0
push esi
call fcn.0047dd40
push edi
push 1
push 0x6a
push esi
call fcn.0047dd70
add esp, 0x18
mov eax, esi
pop edi
pop esi
ret
Function at 0x485fe0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.004707b0
mov eax, dword [0x502770]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edx
test edi, edi
je 0x486046
cmp edi, dword [esi]
je 0x48603d
test ebp, ebp
je 0x4860c0
test ebx, ebx
js 0x4860c0
mov eax, 1
mov dword [esi], edi
jmp 0x48604c
mov edi, dword [esi]
test edi, edi
je 0x4860c0
test ebp, ebp
je 0x4861db
push edi
call fcn.004795c0
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x486080
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.004784f0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x4860db
push dword [esp + 0x10]
lea eax, [esi + 4]
push edi
push eax
call fcn.00485830
add esp, 0xc
test eax, eax
je 0x4860c0
push ebx
push ebp
lea ebx, [esi + 4]
push ebx
call fcn.004859e0
add esp, 0xc
test eax, eax
je 0x4860c0
lea ebp, [esi + 0x4c]
push ebp
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.004857b0
add esp, 0xc
test eax, eax
jne 0x4860f7
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00454efc
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x4860c0
push ebx
lea eax, [esi + 0x50]
push ebp
push eax
call fcn.0045a850
lea ebp, [esi + 0x4c]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x48611a
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call fcn.0045a7c0
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x486120
push edx
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.00485830
add esp, 0xc
test eax, eax
je 0x4860c0
push edi
call fcn.004795c0
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.004859e0
add esp, 0x10
test eax, eax
je 0x4860c0
xor ecx, ecx
jmp 0x486170
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x486170
push dword [esp + 0x10]
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.00485830
add esp, 0xc
test eax, eax
je 0x4860c0
push edi
call fcn.004795c0
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.004859e0
add esp, 0x10
test eax, eax
je 0x4860c0
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.00485ab0
add esp, 8
test eax, eax
je 0x4860c0
mov eax, 1
jmp 0x4860c2
test eax, eax
je 0x4861b9
jmp 0x48611e
Function at 0x499f10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x499fd9
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x499f31
cmp al, 0x6b
jne 0x499fd9
inc ecx
cmp al, 0x6b
jne 0x499f9b
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x499f52
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x499f52
cmp dl, 0xbb
jne 0x499f7b
inc eax
cmp eax, esi
jl 0x499f40
sub esi, eax
test eax, eax
jne 0x499f9e
push 0x83
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.00478ff0
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.00478ff0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x499fc7
push 0x8b
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.00478ff0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.0045a850
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.00478ff0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x4a0270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x70
call fcn.004707b0
mov eax, dword [0x502770]
xor eax, esp
mov dword [esp + 0x6c], eax
cmp dword [esp + 0x88], 0x40000000
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x84]
push ebp
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x90]
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
ja 0x4a0447
mov esi, dword [esp + 0x80]
cmp esi, 0x40000000
ja 0x4a0447
cmp dword [esp + 0x88], 0x40000000
ja 0x4a0447
push ebx
push edi
push eax
call fcn.004795d0
mov edi, eax
lea eax, [esp + 0x28]
push eax
call fcn.00485c50
push 0
push dword [esp + 0x28]
lea eax, [esp + 0x34]
mov ebx, 1
push eax
call fcn.00485830
push dword [esp + 0xa4]
lea eax, [esp + 0x3c]
mov dword [esp + 0x28], 0x1000000
push dword [esp + 0x30]
push eax
call fcn.004859e0
add esp, 0x20
test eax, eax
je 0x4a0423
push 4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004859e0
add esp, 0xc
test eax, eax
je 0x4a0423
push dword [esp + 0x98]
lea eax, [esp + 0x28]
push dword [esp + 0x24]
push eax
call fcn.004859e0
add esp, 0xc
test eax, eax
je 0x4a0423
push 0
cmp esi, edi
jb 0x4a03eb
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.00485780
add esp, 0xc
test eax, eax
je 0x4a0423
sub esi, edi
je 0x4a041b
push 0
push dword [esp + 0x20]
lea eax, [esp + 0x2c]
add ebp, edi
push eax
inc ebx
call fcn.00485830
push dword [esp + 0x9c]
mov eax, ebx
mov byte [esp + 0x23], bl
push dword [esp + 0x28]
shr eax, 8
mov byte [esp + 0x26], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x25], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x24], al
lea eax, [esp + 0x38]
push eax
call fcn.004859e0
add esp, 0x18
test eax, eax
jne 0x4a0337
jmp 0x4a0423
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00485780
add esp, 0xc
test eax, eax
je 0x4a0423
push esi
lea eax, [esp + 0x40]
push eax
push ebp
call fcn.0045a850
lea eax, [esp + 0x48]
push edi
push eax
call fcn.004068a0
add esp, 0x14
mov dword [esp + 0x14], 1
lea eax, [esp + 0x24]
push eax
call fcn.004859f0
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00454efc
add esp, 0x70
ret
mov ecx, dword [esp + 0x74]
xor eax, eax
pop esi
pop ebp
xor ecx, esp
call fcn.00454efc
add esp, 0x70
ret
Function at 0x4a05e0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x10c], 0xffffffff
jne 0x4a05f2
xor eax, eax
pop edi
ret
push ebp
push esi
push edi
call fcn.004984a0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov ebp, dword [esp + 0x14]
mov esi, eax
mov dword [ecx], esi
test ebp, ebp
je 0x4a06a9
mov ecx, dword [edi + 0x10c]
push ebx
cmp ecx, esi
jne 0x4a0644
test esi, esi
jle 0x4a0688
mov edx, ebp
lea ecx, [edi + 0x8c]
mov ebx, esi
lea ebx, [ebx]
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
dec ebx
jne 0x4a0630
jmp 0x4a0688
sub eax, ecx
mov byte [ecx + edi + 0xec], 0x80
cmp eax, 1
jle 0x4a0668
dec eax
push eax
lea eax, [edi + 0xed]
add eax, ecx
push 0
push eax
call fcn.0045a7c0
add esp, 0xc
test esi, esi
jle 0x4a0688
mov edx, ebp
lea ecx, [edi + 0xac]
mov ebx, esi
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
dec ebx
jne 0x4a0676
push esi
push ebp
push ebp
push edi
call fcn.00479580
add esp, 0x10
pop ebx
test eax, eax
jne 0x4a06a9
push esi
push ebp
call fcn.004068a0
add esp, 8
xor eax, eax
pop esi
pop ebp
pop edi
ret
pop esi
pop ebp
mov eax, 1
pop edi
ret
Function at 0x4b5580
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.004707b0
mov eax, dword [0x502770]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 4], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x14], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.00485c50
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.00485ab0
add esp, 0xc
test eax, eax
je 0x4b5682
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004857b0
add esp, 0xc
test eax, eax
je 0x4b5682
lea eax, [esp + 0x20]
push eax
call fcn.004859f0
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x4b56a0
push edi
call fcn.004907b0
push ebx
push edi
mov dword [esp + 0x28], eax
call fcn.0048a880
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4b5682
push esi
call fcn.004a5a60
add esp, 4
test eax, eax
jle 0x4b5682
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.0048a630
add esp, 0x18
test eax, eax
jle 0x4b5682
push dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
push esi
call fcn.004a5970
add esp, 0x14
test eax, eax
jle 0x4b5682
mov ecx, dword [esp + 0x18]
mov ebx, 1
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
push esi
call fcn.0048a820
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00454efc
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x4b56b8
cmp dword [edi], edx
je 0x4b56e2
inc eax
add ecx, 4
cmp eax, 4
jl 0x4b56a5
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.00478ff0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00454efc
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x4b5716
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.00478ff0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00454efc
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x1c]
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x44]
push dword [esp + 0x20]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00454efc
add esp, 0x6c
ret
Function at 0x4bf750
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x30
call fcn.004707b0
mov eax, dword [0x502770]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
push ebx
push ebp
movzx ebx, byte [eax]
push esi
push edi
lea edi, [eax + 1]
mov ebp, dword [esp + 0x60]
mov edx, edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], edi
mov esi, dword [ebp]
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [esp + 0x18], ebx
movzx eax, byte [edx + 5]
mov dword [esp + 0x34], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [esp + 0x34]
shl ecx, 8
or ecx, eax
mov byte [esp + 0x34], bl
mov eax, ebx
shl ecx, 0x10
shr eax, 8
or edx, ecx
mov byte [esp + 0x35], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x36], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x37], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x39], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x3a], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x3b], al
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x38], dl
test eax, eax
je 0x4bf92d
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x44]
sub ecx, ebp
mov dword [esp + 0x10], ecx
xor edi, edi
lea ebx, [ebx]
dec eax
mov dword [esp + 0x4c], eax
test esi, esi
jne 0x4bf8bd
push dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x30]
push eax
call fcn.004056e0
mov ebx, dword [esp + 0x28]
add esp, 0x10
mov edx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 8
mov byte [esp + 0x35], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x36], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x37], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x39], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x3a], al
mov eax, edx
shr eax, 0x18
inc edi
mov byte [esp + 0x34], bl
mov byte [esp + 0x38], dl
mov byte [esp + 0x3b], al
mov al, byte [esp + esi + 0x34]
inc esi
xor al, byte [ebp]
and esi, 7
mov byte [ecx + ebp], al
inc ebp
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x4bf850
test edi, edi
mov edi, dword [esp + 0x24]
je 0x4bf914
mov eax, dword [esp + 0x30]
mov byte [eax], bl
mov eax, ebx
shr eax, 8
mov byte [edi], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, edx
shr ebx, 0x18
mov byte [edi + 2], bl
shr eax, 8
mov byte [edi + 3], dl
mov byte [edi + 4], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [edi + 5], al
mov byte [edi + 6], dl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00454efc
add esp, 0x30
ret
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [ebp], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00454efc
add esp, 0x30
ret
Function at 0x4c4770
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov eax, dword [ebp + 4]
cmp eax, dword [ecx + 4]
jge 0x4c4787
mov ebx, ecx
jmp 0x4c478b
mov ebx, ebp
mov ebp, ecx
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jg 0x4c479b
mov eax, edi
jmp 0x4c47a5
push eax
push edi
call fcn.0047ff90
add esp, 8
test eax, eax
jne 0x4c47ad
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x4c47cb
mov eax, dword [ebx]
mov ecx, dword [ebp]
mov edx, dword [eax + esi*4]
mov eax, dword [edi]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ebp + 4]
jl 0x4c47b5
cmp esi, dword [ebx + 4]
jge 0x4c47e0
mov eax, dword [ebx]
mov ecx, dword [edi]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebx + 4]
jl 0x4c47d0
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
pop esi
test ecx, ecx
jle 0x4c4804
mov edx, dword [edi]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x4c4801
dec ecx
test ecx, ecx
jg 0x4c47f3
mov dword [edi + 4], ecx
cmp dword [edi + 4], 0
jne 0x4c4811
mov dword [edi + 0xc], 0
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4c57a0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push ebp
xor edi, edi
call fcn.004a0ac0
push ebp
call fcn.004a09e0
mov esi, eax
add esp, 8
test esi, esi
je 0x4c59a9
push ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 4]
add eax, eax
cmp eax, dword [esi + 8]
jg 0x4c57d5
mov eax, esi
jmp 0x4c57df
push eax
push esi
call fcn.0047ff90
add esp, 8
test eax, eax
je 0x4c59a8
mov ebp, dword [ebx + 4]
dec ebp
js 0x4c5958
mov eax, dword [ebx]
mov edx, dword [eax + ebp*4]
mov ecx, edx
shr ecx, 1
mov eax, edx
and eax, 0x20000
and ecx, 0x8000
or ecx, eax
mov eax, edx
and eax, 0x40000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x80000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x100000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x200000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x400000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x800000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x1000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x2000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x4000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x8000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x10000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x20000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x40000000
shr ecx, 1
or ecx, eax
and edx, reloc.WS2_32.dll_accept
mov eax, dword [esi]
shr ecx, 1
or ecx, edx
shr ecx, 1
mov dword [eax + ebp*8 + 4], ecx
mov eax, dword [ebx]
mov ecx, dword [eax + ebp*4]
mov edx, ecx
and edx, 0x8000
mov eax, ecx
add edx, edx
and eax, 0x4000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x2000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x1000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x800
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x400
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x200
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x100
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x80
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x40
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x20
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x10
or edx, eax
mov eax, ecx
add edx, edx
and eax, 8
or edx, eax
mov eax, ecx
add edx, edx
and eax, 4
or edx, eax
mov eax, ecx
add edx, edx
and eax, 2
or edx, eax
and ecx, 1
mov eax, dword [esi]
add edx, edx
or edx, ecx
mov dword [eax + ebp*8], edx
dec ebp
jns 0x4c57f1
mov eax, dword [ebx + 4]
add eax, eax
mov dword [esi + 4], eax
test eax, eax
jle 0x4c5981
mov ecx, dword [esi]
lea edx, [eax - 1]
lea edx, [ecx + edx*4]
lea esp, [esp]
mov ecx, dword [edx]
lea edx, [edx - 4]
test ecx, ecx
jne 0x4c597e
dec eax
test eax, eax
jg 0x4c5970
mov dword [esi + 4], eax
cmp dword [esi + 4], edi
jne 0x4c5989
mov dword [esi + 0xc], edi
push dword [esp + 0x1c]
push esi
push dword [esp + 0x1c]
call fcn.004c48b0
mov ebp, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
mov ecx, 1
cmovne edi, ecx
pop ebx
push ebp
call fcn.004a0970
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x100062e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10080620
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.1007587c
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.100078e0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10006334
jmp dword [ecx*4 + 0x1000649c]
mov al, byte [esi]
test al, al
je 0x10006362
cmp al, 0x20
je 0x1000634e
cmp al, 0xa1
jne 0x10006362
cmp byte [esi + 1], al
jne 0x10006362
test al, 0x80
je 0x1000635a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x10006362
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10006341
test ecx, ecx
je case.default.0x10006334
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10006334
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x100063a8
cmp dl, 0xa1
jne 0x1000639c
cmp byte [eax + 1], 0xa1
jne 0x1000639c
test ecx, ecx
jne 0x10006394
mov edi, eax
mov ecx, 1
inc eax
jmp 0x100063bc
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x100063d6
jmp 0x100063bc
cmp dl, 0x20
jne 0x100063ba
test ecx, ecx
jne 0x100063b3
mov edi, eax
mov ecx, 1
jmp 0x100063bc
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1000637c
cmp ecx, 1
jne case.default.0x10006334
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10006334
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10006334
mov al, byte [esi]
test al, al
je 0x1000642e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10006414
mov cl, byte [esi + 1]
test cl, cl
je 0x1000642e
cmp al, 0xa1
jne 0x10006404
cmp cl, al
je 0x10006411
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10007b70
inc esi
jmp 0x10006426
cmp al, 0x20
je 0x10006426
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10007bb0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100063ed
push 0
lea ecx, [esp + 0x14]
call fcn.10007bb0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10011240
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x10006461
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x10087128
call fcn.10007ae0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1007580e
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x1000bbd0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x10080a9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.10075583
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1000bc52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.100733e4
mov eax, dword [eax]
push 0x100971d0
push eax
call fcn.10064d44
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1007580e
test bl, bl
je 0x1000bc52
push 0x100971d0
lea ecx, [esp + 0xc]
call fcn.10075b9e
push 0x1009ad30
lea ecx, [esp + 0xc]
call fcn.10075b9e
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1000bc8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1007580e
jmp 0x1000bd59
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x1000bd12
lea edx, [esp + 0x7c]
push 0x1009ad2c
push edx
call fcn.10064d44
add esp, 8
test eax, eax
je 0x1000bd12
lea eax, [esp + 0x7c]
push 0x1009ad28
push eax
call fcn.10064d44
add esp, 8
test eax, eax
je 0x1000bd12
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000bca2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.1007580e
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x1000c550
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1000c5b2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc