joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001f97
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0x28
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1001fc3
call fcn.01008381
xor eax, eax
jmp 0x100201a
push esi
lea eax, [ebp - 0xc]
push eax
push 0x1001300
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1002007
mov eax, dword [ebp - 0xc]
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push edi
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 4]
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x100200e
call fcn.01008381
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
leave
ret
Function at 0x10091e4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
and dword [ebp - 4], 0
cmp dword [0x100f044], 0
jne 0x100922e
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1009224
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10092cd
mov dword [0x100f044], 1
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + 5]
push 1
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x1009263
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01008381
xor eax, eax
jmp 0x10092cb
push esi
push edi
push dword [ebp + 8]
call fcn.0100843a
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x100928b
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push 0x800300fd
jmp 0x1009254
push 2
push 4
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov esi, eax
test esi, esi
je 0x100925f
push edi
call dword [sym.imp.msvcrt.dll_free]
cmp dword [ebp + 0x10], 0
mov eax, dword [esi]
pop ecx
jne 0x10092bd
push 0x1001ad0
push eax
call dword [sym.imp.msvcrt.dll_strtok]
pop ecx
pop ecx
push 0xf
push dword [ebp + 0xc]
push eax
call fcn.010084d7
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0xc

Function at 0x10092eb
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
push edi
push 0x3f
xor ebx, ebx
pop ecx
xor eax, eax
cmp dword [ebp + 8], ebx
lea edi, [ebp - 0x100]
mov dword [ebp - 0x104], ebx
rep stosd dword es:[edi], eax
push 0x3f
pop ecx
lea edi, [ebp - 0x200]
mov dword [ebp - 0x204], ebx
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
je 0x10093c5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10093c5
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
mov edi, 0x80
push 4
mov dword [ebp - 4], edi
call esi
push ebx
push 1
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.01008ab5
test eax, eax
je 0x10093c5
push dword [ebp + 8]
call fcn.01009007
cmp eax, 1
jne 0x100939a
push ebx
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call fcn.010091e4
test eax, eax
je 0x10093c8
push ebx
push 1
lea eax, [ebp - 0x204]
push eax
jmp 0x10093b2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
push 7
mov dword [ebp - 4], edi
call esi
push ebx
push 1
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.01008ab5
neg eax
sbb eax, eax
inc eax
jmp 0x10093c8
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10095ea
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push esi
push edi
push 0x7e
pop ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 0x420], esi
lea edi, [ebp - 0x41c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x7e
pop ecx
mov dword [ebp - 0x220], esi
xor eax, eax
lea edi, [ebp - 0x21c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
push edi
call fcn.010092eb
cmp eax, 1
jne 0x100966b
cmp dword [ebp + 0xc], esi
je 0x1009664
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1009664
mov esi, 0xa0010001
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x157e
call fcn.01008fa7
push eax
call fcn.01008139
mov eax, esi
jmp 0x1009796
xor eax, eax
jmp 0x1009796
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
lea eax, [ebp - 0x220]
push eax
call esi
push edi
call fcn.010092d1
cmp eax, 1
jne 0x1009693
add edi, 4
push edi
lea eax, [ebp - 0x220]
push eax
call esi
lea eax, [ebp - 0x220]
push eax
call fcn.010090d2
test eax, eax
jne 0x10096ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1009796
push ebx
mov ebx, 0x1001324
push ebx
lea eax, [ebp - 0x420]
push eax
call esi
xor esi, esi
cmp dword [ebp + 0x14], esi
je 0x10096f3
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10096f3
push dword [ebp + 0x14]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x420]
push 0x1001af4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x100970f
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x420]
push 0x1001864
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 8
pop ecx
xor eax, eax
push esi
push dword [ebp + 0xc]
lea edi, [ebp - 0x20]
push dword [ebp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call sub.MPR.dll_WNetAddConnection2W
mov edi, eax
cmp edi, esi
je 0x1009757
cmp edi, 0x4b8
je 0x1009750
call fcn.01008381
jmp 0x1009793
call fcn.010083d1
jmp 0x1009793
push ebx
xor edi, edi
call fcn.01008139
lea eax, [ebp - 0x220]
push eax
call fcn.010093cf
cmp eax, 0x1388
jae 0x1009793
lea eax, [ebp - 0x220]
push eax
call fcn.010095d7
push 0x157f
call fcn.01008fa7
push eax
call fcn.01008139
mov edi, 0x4b8
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x4406a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x25000]
push edi
jmp 0x4406ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4406c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4406b0
mov eax, 1
add ebx, ebx
jne 0x4406d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4406c8
jne 0x4406e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4406c8
xor ecx, ecx
sub eax, 3
jb 0x4406f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44076a
mov ebp, eax
add ebx, ebx
jne 0x440703
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x440710
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x440734
inc ecx
add ebx, ebx
jne 0x440720
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x440715
jne 0x440731
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x440715
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x440754
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x440745
jmp 0x4406b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x440754
add edi, ecx
jmp 0x4406b6
pop esi
mov edi, esi
mov ecx, 0xbf4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x440772
cmp byte [edi], 6
jne 0x440772
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 0x440777
lea edi, [esi + 0x3e000]
mov eax, dword [edi]
or eax, eax
je 0x4407ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x403b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x40468]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4407a4
mov ecx, edi
jns 0x4407d3
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 + 0x40470]
or eax, eax
je 0x4407e9
mov dword [ebx], eax
add ebx, 4
jmp 0x4407c1
call dword [esi + 0x4046c]
mov ebp, dword [esi + 0x40474]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x440823
sub esp, 0xffffff80
jmp 0x4054e0
Function at 0x401720
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, edx
mov edx, ecx
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edx
mov eax, dword [edx + 0x3c]
mov ebx, dword [eax + edx + 0x78]
mov eax, dword [eax + edx + 0x7c]
add ebx, edx
mov dword [ebp - 0x10], eax
mov eax, esi
shr eax, 0x10
test eax, eax
je 0x401792
mov esi, dword [ebx + 0x20]
xor edi, edi
mov eax, dword [ebx + 0x24]
add esi, edx
add eax, edx
mov dword [ebp - 4], eax
cmp dword [ebx + 0x18], edi
jbe 0x401792
mov ecx, dword [esi]
add ecx, edx
xor edx, edx
cmp byte [ecx], dl
je 0x401777
nop word [eax + eax]
inc edx
cmp byte [ecx + edx], 0
jne 0x401770
push ecx
call fcn.00402bf0
mov edx, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
je 0x4017a4
add dword [ebp - 4], 2
inc edi
add esi, 4
cmp edi, dword [ebx + 0x18]
jb 0x401760
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + edx]
add ecx, edx
cmp ecx, ebx
jbe 0x4017c9
mov eax, ecx
sub eax, ebx
cmp eax, dword [ebp - 0x10]
jae 0x4017c9
call fcn.00401570
mov ecx, eax
mov eax, dword [ebp + 8]
add ecx, 2
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x401ea0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov byte [ebp - 0x60], 0
mov byte [ebp - 0x5f], 0x11
mov byte [ebp - 0x5e], 0x5e
mov byte [ebp - 0x5d], 0x77
mov byte [ebp - 0x5c], 0x5e
mov byte [ebp - 0x5b], 0x2b
mov byte [ebp - 0x5a], 0x5e
mov byte [ebp - 0x59], 0x7d
mov byte [ebp - 0x58], 0x5e
mov byte [ebp - 0x57], 0x77
mov byte [ebp - 0x56], 0x5e
mov byte [ebp - 0x55], 0x27
mov byte [ebp - 0x54], 0x5e
mov byte [ebp - 0x53], 1
mov byte [ebp - 0x52], 0x5e
mov byte [ebp - 0x51], 0x55
mov byte [ebp - 0x50], 0x5e
mov byte [ebp - 0x4f], 0x28
mov byte [ebp - 0x4e], 0x5e
mov byte [ebp - 0x4d], 0x4c
mov byte [ebp - 0x4c], 0x5e
mov byte [ebp - 0x4b], 0x27
mov byte [ebp - 0x4a], 0x5e
mov byte [ebp - 0x49], 0x27
mov byte [ebp - 0x48], 0x5e
mov byte [ebp - 0x47], 0x5e
mov byte [ebp - 0x46], 0x5e
mov al, byte [ebp - 0x5f]
cmp byte [ebp - 0x60], 0
jne 0x401f5a
xor esi, esi
lea edi, [esi + 0x7f]
nop dword [eax]
mov al, byte [ebp + esi - 0x5f]
mov ecx, 0x5e
movzx eax, al
sub ecx, eax
mov eax, ecx
shl eax, 5
sub eax, ecx
add eax, eax
cdq
idiv edi
lea eax, [edx + 0x7f]
cdq
idiv edi
mov byte [ebp + esi - 0x5f], dl
inc esi
cmp esi, 0x1a
jb 0x401f30
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0x10]
mov esi, edi
mov esi, dword [esi]
cmp dword [esi + 0x18], 0
je 0x401fc8
mov edx, dword [esi + 0x30]
xor eax, eax
cmp word [edx], ax
je 0x401f9d
nop word [eax + eax]
cmp eax, 0x3f
jae 0x401f94
mov cl, byte [edx + eax*2]
mov byte [ebp + eax - 0x44], cl
inc eax
cmp word [edx + eax*2], 0
jne 0x401f80
cmp eax, 0x40
jae 0x402046
xor edx, edx
mov byte [ebp + eax - 0x44], 0
cmp byte [ebp - 0x44], dl
je 0x401fb8
nop dword [eax]
inc edx
cmp byte [ebp + edx - 0x44], 0
jne 0x401fb0
push ecx
lea ecx, [ebp - 0x44]
call fcn.00402bf0
cmp eax, 0x240dfbc0
je 0x401fcc
cmp edi, esi
jne 0x401f68
mov ecx, dword [esi + 0x18]
lea eax, [ebp - 0x64]
push eax
mov edx, 0xbe3d21a8
mov dword [0x42bbf0], ecx
call fcn.00401720
mov eax, dword [ebp - 0x64]
add eax, 0xfffffffe
mov dword [0x42bbe4], eax
je 0x402034
push 0x1000
call fcn.00418253
mov esi, eax
add esp, 4
test esi, esi
je 0x40202e
push 0x1000
push 0
push esi
call fcn.00416410
add esp, 0xc
mov dword [0x42bbe8], esi
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415287
mov esp, ebp
pop ebp
ret
mov dword [0x42bbe8], esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00415287
mov esp, ebp
pop ebp
ret
call fcn.004153b7
int3
Function at 0x402bf0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
lea eax, [ebp - 0x44]
push edi
mov edx, 0x40
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub edx, 1
jne 0x402c10
push ebx
mov ebx, esi
lea edx, [ebp - 0x44]
shr ebx, 2
mov edi, ebx
test edi, edi
je 0x402c3f
nop word [eax + eax]
mov eax, dword [ecx]
add ecx, 4
mov dword [edx], eax
add edx, 4
sub edi, 1
jne 0x402c30
mov edi, esi
and edi, 3
je 0x402c5e
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
sub edi, 1
jne 0x402c50
xor edx, edx
test esi, esi
jle 0x402c7b
mov cl, byte [ebp + edx - 0x44]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x402c76
add cl, 0x20
mov byte [ebp + edx - 0x44], cl
inc edx
cmp edx, esi
jl 0x402c64
mov dword [ebp - 0x48], esi
lea edx, [ebp - 0x44]
mov edi, 0x5b2d
cmp esi, 4
jl 0x402cc3
mov eax, ebx
neg eax
lea esi, [esi + eax*4]
nop dword [eax]
nop word [eax + eax]
imul ecx, dword [edx], 0x5bd1e995
add edx, 4
imul edi, edi, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
xor edi, ecx
sub ebx, 1
jne 0x402ca0
xor ecx, ecx
pop ebx
sub esi, 1
je 0x402ce5
sub esi, 1
je 0x402cdc
sub esi, 1
jne 0x402cea
movzx ecx, byte [edx + 2]
shl ecx, 0x10
movzx eax, byte [edx + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [edx]
xor ecx, eax
imul edx, dword [ebp - 0x48], 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
imul eax, edi, 0x5bd1e995
pop edi
pop esi
xor ecx, eax
mov eax, edx
shr eax, 0x18
xor eax, edx
imul ecx, ecx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor ecx, eax
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415287
mov esp, ebp
pop ebp
ret 4
Function at 0x408210
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x42bbe8]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [eax + 0xe0]
mov esi, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0x28
push edi
test eax, eax
jne 0x40825f
push 0xabcb0a67
lea edx, [eax + 1]
xor ecx, ecx
call fcn.00401820
mov ecx, dword [0x42bbe8]
mov dword [ecx + 0xe0], eax
lea edi, [ebx + 0x58]
push edi
push 0x20
push esi
call eax
test eax, eax
je 0x4083b2
mov eax, dword [0x42bbe8]
mov eax, dword [eax + 0xe0]
test eax, eax
jne 0x40829a
push 0xabcb0a67
lea edx, [eax + 1]
xor ecx, ecx
call fcn.00401820
mov ecx, dword [0x42bbe8]
mov dword [ecx + 0xe0], eax
lea esi, [ebx + 0x50]
push esi
push 8
push dword [ebp - 0xc]
call eax
test eax, eax
je 0x4083b2
mov ecx, 0x40
lea eax, [ebx + 0x10]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4082b5
mov ecx, edi
mov edx, 8
mov eax, dword [ecx]
mov dword [ebx + 0x20], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 0x24], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 0x28], eax
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0x30], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0x34], eax
mov eax, dword [ecx + 0x18]
mov dword [ebx + 0x38], eax
mov eax, dword [ecx + 0x1c]
lea ecx, [ebx + 0x78]
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x10], 0x61707865
mov dword [ebx + 0x14], 0x3320646e
mov dword [ebx + 0x18], 0x79622d32
mov dword [ebx + 0x1c], 0x6b206574
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov eax, dword [esi]
mov dword [ebx + 0x48], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x4c], eax
nop
mov eax, dword [edi]
lea edi, [edi + 4]
mov dword [ecx], eax
lea ecx, [ecx + 4]
sub edx, 1
jne 0x408330
lea ecx, [ebx + 0x98]
lea edi, [edx + 2]
mov eax, dword [esi]
lea esi, [esi + 4]
mov dword [ecx], eax
lea ecx, [ecx + 4]
sub edi, 1
jne 0x408348
mov eax, dword [0x42bbe8]
mov eax, dword [eax + 0xdc]
test eax, eax
jne 0x408381
push 0x6c6c937b
lea edx, [edi + 1]
xor ecx, ecx
call fcn.00401820
mov ecx, dword [0x42bbe8]
mov dword [ecx + 0xdc], eax
push 0x20c
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebx + 0x78]
push ecx
push 0
push 1
push 0
push dword [ebp - 0x10]
call eax
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415287
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415287
mov esp, ebp
pop ebp
ret 4
Function at 0x415c15
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x415c54
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x415c54
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415c54
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x415c54
cmp dword [ecx + 0x74], 0xe
jbe 0x415c54
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41b721
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 0x41b7be
push ebx
push esi
call fcn.0041b6ea
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.0041b67e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b76b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b7bd
push edi
push eax
call fcn.00419a52
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41b78b
call fcn.00419aa0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b7bc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b67e
add esp, 0x20
test eax, eax
jne 0x41b7aa
push edi
call fcn.00419aa0
jmp 0x41b7b2
push ebx
call fcn.00419aa0
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 0x41c5cc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x424000
push 0x423ff8
push str.FlsAlloc
push 0x1f
call fcn.0041c4e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c600
push dword [ebp + 8]
mov ecx, esi
call dword [0x422120]
call esi
jmp 0x41c606
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41c64a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x424010
push 0x424008
push str.FlsGetValue
push 0x21
call fcn.0041c4e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c681
push dword [ebp + 8]
mov ecx, esi
call dword [0x422120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41c689
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x424018
push 0x424010
push str.FlsSetValue
push 0x22
call fcn.0041c4e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c6c3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x422120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4214f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42151d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42151d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401d20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov byte [ebp - 1], 0
mov ecx, dword [ebp + 8]
call fcn.00407310
push 0x105
push 0x105
mov ecx, dword [ebp + 8]
call fcn.00406ae0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00406b40
push 0x442694
push 1
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405da0
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.004060c0
add esp, 8
mov byte [ebp - 0x49], al
lea ecx, [ebp - 0x48]
call fcn.004069e0
movzx edx, byte [ebp - 0x49]
test edx, edx
je 0x401d9a
push 0x442694
mov ecx, dword [ebp + 8]
call fcn.00405910
mov ecx, dword [ebp + 8]
call fcn.00406170
movzx eax, al
test eax, eax
je 0x401dbf
push str.WindowsFolder_not_found___
push 0
push 0x45858c
call fcn.00416150
add esp, 0xc
jmp 0x401dc3
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401dd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov byte [ebp - 1], 0
mov ecx, dword [ebp + 8]
call fcn.00407310
push 0x105
push 0x105
mov ecx, dword [ebp + 8]
call fcn.00406ae0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00406b40
push 0x442694
push 1
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405da0
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.004060c0
add esp, 8
mov byte [ebp - 0x49], al
lea ecx, [ebp - 0x48]
call fcn.004069e0
movzx edx, byte [ebp - 0x49]
test edx, edx
je 0x401e4a
push 0x442694
mov ecx, dword [ebp + 8]
call fcn.00405910
mov ecx, dword [ebp + 8]
call fcn.00406170
movzx eax, al
test eax, eax
je 0x401e6f
push str.SystemFolder_not_found___
push 0
push 0x45858c
call fcn.00416150
add esp, 0xc
jmp 0x401e73
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x456ea4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x128], 0x114
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 2
jb 0x404044
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 1
jne 0x4040ac
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4040ac
lea eax, [ebp - 0xc]
push eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push str.CurrentVersion
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40408e
cmp dword [ebp - 0xc], 1
jae 0x4040a2
push str.Windows_NT:_Could_not_read_..Windows_NTCurrentVersionCurrentVersion
push 1
push 0x45858c
call fcn.00416150
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425f3c
mov esp, ebp
pop ebp
ret