joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009a4b4
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 0x1009a551
push ebx
push esi
call fcn.1009a47d
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.1009a411
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1009a4fe
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1009a550
push edi
push eax
call fcn.10098db2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1009a51e
call fcn.10098e00
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1009a54f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1009a411
add esp, 0x20
test eax, eax
jne 0x1009a53d
push edi
call fcn.10098e00
jmp 0x1009a545
push ebx
call fcn.10098e00
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 0x1009a7be
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a2b80
push 0x100a2b78
push str.FlsAlloc
push 0x1f
call fcn.1009a6da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1009a7f2
push dword [ebp + 8]
mov ecx, esi
call dword [0x100a113c]
call esi
jmp 0x1009a7f8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1009a83c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a2b90
push 0x100a2b88
push str.FlsGetValue
push 0x21
call fcn.1009a6da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1009a873
push dword [ebp + 8]
mov ecx, esi
call dword [0x100a113c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1009a87b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a2b98
push 0x100a2b90
push str.FlsSetValue
push 0x22
call fcn.1009a6da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1009a8b5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100a113c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1009fdc0
Capabilities:
Parse pe header

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

Function at 0x41ad50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x41ad72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ad79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ad68
mov eax, 1
add ebx, ebx
jne 0x41ad8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ad80
jne 0x41ad9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ad80
xor ecx, ecx
sub eax, 3
jb 0x41adb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ae22
mov ebp, eax
add ebx, ebx
jne 0x41adbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41adec
inc ecx
add ebx, ebx
jne 0x41add8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41adcd
jne 0x41ade9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41adcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ae0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41adfd
jmp 0x41ad6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ae0c
add edi, ecx
jmp 0x41ad6e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ae2a
cmp byte [edi], 5
jne 0x41ae2a
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 al, bl
loop 0x41ae2f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41aea7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ae5c
mov ecx, edi
jns 0x41ae8b
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 + 0x1a09c]
or eax, eax
je 0x41aea1
mov dword [ebx], eax
add ebx, 4
jmp 0x41ae79
call dword [esi + 0x1a098]
mov ebp, dword [esi + 0x1a0a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41aedb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x913e5a
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor ebx, ebx
push ebx
push 2
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0x23
inc edi
call dword [0x911150]
cmp byte [ebp - 4], bl
je 0x91a620
push esi
push 0x922229
call dword [fcn.0091131c]
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push 0x916898
push 0x80000002
mov dword [ebp - 8], ebx
call dword [fcn.009111d0]
test eax, eax
jne 0x913ee4
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x913f30
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [fcn.009111c8]
test eax, eax
je 0x91a637
push dword [ebp - 8]
call dword [fcn.009111d4]
cmp edi, ebx
je 0x913f24
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x20
call dword [0x9111a4]
mov esi, eax
mov eax, dword [0x9250c0]
cmp eax, 0x9250c0
je 0x913f09
test byte [eax + 0x1c], 8
jne 0x91a64d
push ebx
mov eax, 0xea60
push eax
push eax
xor eax, eax
cmp esi, ebx
setl al
dec eax
push eax
push dword [ebp + 8]
push ebx
call dword [0x9112e8]
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret 4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp byte [eax + 2], bl
jne 0x913e81
jmp 0x913f25
cmp dword [ebp - 0x10], esi
jne 0x913ed7
cmp dword [ebp - 0x14], ebx
sete al
mov edi, eax
jmp 0x913ed7
cmp byte [eax + 0x19], 5
jb 0x913f09
push esi
push 0x91ab80
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00912f89
jmp 0x913f09

Function at 0x91c661
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call dword [0x9111f0]
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x91c740
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
inc esi
push esi
push 8
push 0xfffffffffffffffe
mov dword [ebp - 0xc], esi
call dword [0x91117c]
cmp eax, ebx
jge 0x91c6af
push eax
call dword [fcn.009110ac]
mov dword [ebp + 0xc], eax
jmp 0x91c73f
push edi
push 0x13
pop edi
lea eax, [ebp - 0x10]
push eax
push dword [0x9251c8]
push dword [ebp - 4]
call dword [0x925028]
test eax, eax
je 0x91c735
cmp dword [ebp - 0x10], ebx
je 0x91c6d4
push 0x18
pop edi
xor ebx, ebx
and dword [ebp - 0x14], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call dword [0x911178]
test eax, eax
jge 0x91c700
cmp eax, 0xc0000061
jne 0x91c719
push dword [ebp - 8]
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 4]
push 0
push 0x92517c
call dword [0x911168]
test eax, eax
jge 0x91c726
push eax
call dword [fcn.009110ac]
jmp 0x91c73b
cmp byte [ebp - 8], 0
jne 0x91c73e
mov dword [ebp + 0xc], 5
jmp 0x91c73e
call dword [fcn.009113ac]
mov dword [ebp + 0xc], eax
pop edi
pop esi
cmp dword [ebp - 4], 0
pop ebx
je 0x91c750
push dword [ebp - 4]
call dword [0x9110dc]
cmp dword [ebp - 0xc], 0
je 0x91c75c
call dword [fcn.009111ec]
mov eax, dword [ebp + 0xc]
leave
ret 8
Function at 0x91dd91
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], 0x57
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], edi
cmp esi, edi
je 0x91de00
mov edx, dword [esi + 4]
cmp edx, edi
jne 0x91ddcf
xor eax, eax
cmp ax, word [esi]
jne 0x91de03
cmp ax, word [esi + 2]
jmp 0x91ddfe
movzx ecx, word [esi]
test cl, 1
jne 0x91de03
mov eax, ecx
and eax, 0xfffe
mov ebx, 0x400
cmp ax, bx
jae 0x91de03
movzx eax, word [esi + 2]
movzx ecx, cx
inc ecx
inc ecx
cmp ecx, eax
jne 0x91de03
shr eax, 1
xor ecx, ecx
cmp cx, word [edx + eax*2 - 2]
jne 0x91de03
mov dword [ebp - 4], edi
cmp dword [ebp + 0x10], 0x12cc0300
jb 0x91de13
mov dword [ebp - 4], 0x57
cmp dword [ebp - 4], edi
jne 0x91defd
push edi
call dword [0x9111f0]
mov ebx, dword [fcn.009111ec]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x91dee8
xor eax, eax
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push 0xc
push 0xfffffffffffffffe
mov dword [ebp - 0x14], eax
call dword [0x91117c]
cmp eax, edi
jge 0x91de5c
push eax
call dword [fcn.009110ac]
mov dword [ebp - 4], eax
jmp 0x91dee8
lea eax, [ebp - 0x10]
push eax
push dword [0x9251c8]
push dword [ebp - 8]
call dword [0x925028]
test eax, eax
jne 0x91de7b
call dword [fcn.009113ac]
jmp 0x91de54
cmp dword [ebp - 0x10], edi
jne 0x91de99
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push 0xc
push dword [ebp - 8]
call dword [0x925038]
test eax, eax
je 0x91de73
call ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x14], edi
call fcn.0091c0db
mov eax, dword [ebp + 0x1c]
cmp eax, edi
je 0x91deb9
mov eax, dword [eax + 4]
jmp 0x91debb
xor eax, eax
push eax
push dword [ebp - 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 0x18]
call fcn.0091d113
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], edi
je 0x91dee8
lea eax, [ebp - 0xc]
push eax
call fcn.0091575d
cmp dword [ebp - 8], edi
je 0x91def6
push dword [ebp - 8]
call dword [0x9110dc]
cmp dword [ebp - 0x14], edi
je 0x91defd
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x91df0c
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
xor edi, edi
mov dword [ebp - 8], ebx
call dword [0x9111f0]
mov esi, eax
cmp esi, ebx
jne 0x91df98
lea eax, [ebp - 8]
push eax
inc edi
push edi
push 8
push 0xfffffffffffffffe
call dword [0x91117c]
cmp eax, ebx
jge 0x91df4e
push eax
call dword [fcn.009110ac]
jmp 0x91df6b
lea eax, [ebp - 0xc]
push eax
push dword [0x9251c8]
push dword [ebp - 8]
call dword [0x925028]
test eax, eax
jne 0x91df6f
call dword [fcn.009113ac]
mov esi, eax
jmp 0x91df98
cmp dword [ebp - 0xc], ebx
je 0x91df7d
mov dword [ebp - 4], 1
jmp 0x91df89
cmp byte [ebp + 0x14], bl
je 0x91df89
mov dword [ebp - 4], 3
cmp byte [ebp + 0x18], bl
je 0x91df94
or dword [ebp - 4], 4
jmp 0x91df98
or dword [ebp - 4], 8
cmp dword [ebp - 8], ebx
je 0x91dfa6
push dword [ebp - 8]
call dword [0x9110dc]
cmp edi, ebx
je 0x91dfb0
call dword [fcn.009111ec]
cmp esi, ebx
jne 0x91dfc9
push ebx
push dword [ebp + 0x1c]
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0091dd91
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
Function at 0x9219ff
Capabilities:
Get token membership

Disassembly:
push 0x14
push 0x921bd0
call fcn.009117fb
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x20]
push eax
push esi
call dword [0x911238]
cmp eax, esi
je 0x921a66
mov ecx, dword [0x9250c0]
cmp ecx, 0x9250c0
je 0x921b65
test byte [ecx + 0x1c], 1
je 0x921b65
cmp byte [ecx + 0x19], 2
jb 0x921b65
push eax
push 0x91ab60
push 0xc
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.00912f89
jmp 0x921b65
cmp dword [ebp - 0x20], esi
jne 0x921aa6
mov eax, dword [0x9250c0]
cmp eax, 0x9250c0
je 0x921b65
test byte [eax + 0x1c], 1
je 0x921b65
cmp byte [eax + 0x19], 2
jb 0x921b65
push 0x91ab60
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.009115b6
jmp 0x921b65
push esi
call dword [0x9111f0]
cmp eax, esi
je 0x921ae4
mov ecx, dword [0x9250c0]
cmp ecx, 0x9250c0
je 0x921b65
test byte [ecx + 0x1c], 1
je 0x921b65
cmp byte [ecx + 0x19], 2
jb 0x921b65
push eax
push 0x91ab60
push 0xe
jmp 0x921a56
xor ebx, ebx
inc ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x1c]
push eax
push 0x921bc0
push esi
call dword [0x925028]
test eax, eax
jne 0x921b2c
mov eax, dword [0x9250c0]
cmp eax, 0x9250c0
je 0x921b27
test byte [eax + 0x1c], bl
je 0x921b27
cmp byte [eax + 0x19], 2
jb 0x921b27
push 0x91ab60
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.009115b6
mov dword [ebp - 0x1c], esi
jmp 0x921b65
mov eax, dword [0x9250c0]
cmp eax, 0x9250c0
je 0x921b65
test byte [eax + 0x1c], bl
je 0x921b65
cmp byte [eax + 0x19], 2
jb 0x921b65
cmp dword [ebp - 0x1c], esi
mov ecx, 0x913694
jne 0x921b52
mov ecx, 0x91368c
push ecx
push 0x91ab60
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0092190d
mov dword [ebp - 4], 0xfffffffe
call fcn.00921b81
mov eax, dword [ebp - 0x1c]
call fcn.009115e2
ret
Function at 0x408898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x818058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008181a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x81807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81806a
add dl, dl
jne 0x818089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8180dc
xor eax, eax
add dl, dl
jne 0x818096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81817d
add dl, dl
jne 0x8180a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8180d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x818075
mov eax, 1
add dl, dl
jne 0x8180ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8180e1
sub eax, ebx
mov ebx, 1
jne 0x818128
mov ecx, 1
add dl, dl
jne 0x81810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x818119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x818105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x81813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x81814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x818136
cmp eax, 0x7d00
jae 0x81816d
cmp eax, 0x500
jb 0x818168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
cmp eax, 0x7f
ja 0x818170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x81819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x818075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x403720
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403739
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403774
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403770
lea ebx, [ebx]
cmp esi, eax
jae 0x403774
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403760
cmp esi, eax
jb 0x40377a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4134a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd34a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x630ddc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
push 0x2f8
mov dword [ebp - 4], 0
call fcn.004a5767
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
test ecx, ecx
mov byte [ebp - 4], 1
je 0x4134f9
mov eax, dword [edi + 0x4c]
push eax
call fcn.004975f0
jmp 0x4134fb
xor eax, eax
test eax, eax
mov dword [edi + 0x60], eax
je 0x413544
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push 0x412a10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [edi + 0x60]
xor esi, esi
mov dword [edi + 0x44], eax
cmp dword [edx + 0x11c], esi
jne 0x413544
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 1
cmp esi, 0x32
jg 0x413544
mov eax, dword [edi + 0x60]
cmp dword [eax + 0x11c], 0
je 0x413528
mov eax, dword [edi + 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413fb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dd487
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x630ddc]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
lea edi, [esi + 4]
xor ebx, ebx
mov dword [esi], vtable.CBaseDlgMgr.0
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
lea ebp, [esi + 0x14]
mov dword [esp + 0x2c], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov byte [esp + 0x2c], 2
call fcn.004a720f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x414029
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x38], eax
mov byte [esp + 0x2c], 3
call fcn.004a720f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x414057
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x54], eax
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov eax, dword [edi + 8]
cmp dword [edi + 4], eax
mov byte [esp + 0x2c], 4
mov dword [esp + 0x18], eax
jbe 0x414088
call fcn.004b83f7
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [esp + 0x14], eax
jbe 0x41409d
call fcn.004b83f7
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
push edi
push eax
push edi
lea edx, [esp + 0x28]
push edx
mov ecx, edi
call fcn.00413ec0
mov edi, dword [ebp + 8]
cmp dword [ebp + 4], edi
jbe 0x4140be
call fcn.004b83f7
mov eax, dword [ebp + 4]
cmp eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
jbe 0x4140d3
call fcn.004b83f7
mov eax, dword [esp + 0x18]
push edi
push ebp
push eax
push ebp
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.00413ec0
mov ebp, dword [esi + 0x30]
cmp dword [esi + 0x2c], ebp
lea edi, [esi + 0x28]
jbe 0x4140f3
call fcn.004b83f7
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [esp + 0x18], eax
jbe 0x414108
call fcn.004b83f7
mov eax, dword [esp + 0x18]
push ebp
push edi
push eax
push edi
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.004093f0
or eax, 0xffffffff
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x70], ebx
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x416250
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x508]
sub esp, 0x508
push 0xffffffffffffffff
push 0x4dfd6a
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x630ddc]
xor eax, ebp
mov dword [ebp + 0x504], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x3ff
lea eax, [ebp + 1]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x14], esi
mov byte [ebp], bl
call fcn.004b79d0
push 0x103
lea ecx, [ebp + 0x401]
push ebx
push ecx
mov byte [ebp + 0x400], bl
call fcn.004b79d0
add esp, 0x18
mov ecx, 0x6322f8
call fcn.00403df0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x28]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [ebp]
push ecx
push str.TEMPPATH
mov ecx, eax
call edx
push 0x104
lea edi, [esi + 0x524]
push ebx
push edi
call fcn.004b79d0
add esp, 0xc
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x56ab68
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x400]
push str._s_s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp + 0x400]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.CDDI_SDK.dll
mov dword [esi + 0x51c], ebx
call edi
push str.DeviceDiscovery.dll
mov dword [esi + 0x51c], eax
mov dword [esi + 0x520], ebx
call edi
cmp dword [esi + 0x51c], ebx
mov dword [esi + 0x520], eax
je 0x416418
cmp eax, ebx
je 0x416418
mov dword [0x6322d0], esi
push 0xd4
mov dword [esi + 0x78], ebx
mov dword [ebp - 4], ebx
call fcn.004a5767
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x41639f
push ebx
call fcn.004977d0
mov ebx, eax
mov dword [esi + 0x74], ebx
mov eax, 1
jmp 0x41644e
push ebx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x14]
push ebx
push 0x40
push edx
call fcn.004a8cd5
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x504]
xor ecx, ebp
call fcn.004b6bdf
add ebp, 0x508
mov esp, ebp
pop ebp
ret