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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405d70
mov eax, dword [0x44db00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00411097
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x412c78
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x412dd4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c420
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x44f618]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041305c
mov ecx, dword [esi*4 + 0x44f618]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x412dcd
cmp eax, dword [edi + ecx + 0x24]
jne 0x412dcd
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412dcd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041305c
add esp, 0x14
test edx, edx
jl 0x412dcd
jg 0x412d43
test eax, eax
jb 0x412dcd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x412dcd
jl 0x412d5d
cmp dword [ebp - 0x1008], eax
ja 0x412dcd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x412d7b
test ebx, ebx
je 0x412db4
cmp ecx, edi
jae 0x412db4
mov al, byte [ecx]
cmp al, 0xd
jne 0x412d95
lea eax, [edi - 1]
cmp ecx, eax
jae 0x412da1
cmp byte [ecx + 1], 0xa
jne 0x412da1
inc ecx
jmp 0x412da1
movzx eax, al
movsx eax, byte [eax + 0x44e480]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x412d7b
cmp edx, ebx
jne 0x412d7b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x412dd2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405003
leave
ret
Function at 0x415e3a
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 0x415ed7
push ebx
push esi
call fcn.00415e03
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.00414a07
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x415e84
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415ed6
push edi
push eax
call fcn.004131fd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x415ea4
call fcn.00410068
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415ed5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00414a07
add esp, 0x20
test eax, eax
jne 0x415ec3
push edi
call fcn.00410068
jmp 0x415ecb
push ebx
call fcn.00410068
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 0x418fd9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x44f618]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419019
cmp byte [ebx], 0xa
jne 0x419019
or byte [eax + edi + 0x28], 4
jmp 0x41901e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41911c
mov al, byte [edx]
cmp al, 0x1a
je 0x4190fe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41904d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419072
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41907c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41902f
jmp 0x41911c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4190f9
cmp dword [ebp - 0xc], 0
je 0x4190f9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x44f618]
test byte [eax + edi + 0x28], 0x48
je 0x4190d3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4190be
mov byte [esi], dl
jmp 0x4190cf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x44f618]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41911c
cmp byte [ebp - 1], 0xa
jne 0x4190e2
cmp esi, ebx
jne 0x4190e2
mov byte [esi], 0xa
jmp 0x41911b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041307a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41911c
mov byte [esi], 0xd
jmp 0x41911b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x44f618]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419118
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41911c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419125
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x44f618]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419168
cmp word [esi], dx
jne 0x419168
or byte [edi + eax + 0x28], 4
jmp 0x41916d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4192c0
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4192a0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4191af
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4191e5
cmp eax, edx
jae 0x4191f1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419187
jmp 0x4192c0
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41929c
cmp dword [ebp - 0x14], 0
je 0x41929c
mov eax, dword [ebx*4 + 0x44f618]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419274
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41923d
mov word [esi], cx
jmp 0x419270
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x44f618]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x44f618]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x44f618]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4192c0
pop ebx
cmp word [ebp - 4], bx
jne 0x419285
cmp esi, dword [ebp + 0xc]
jne 0x419285
mov word [esi], bx
jmp 0x4192bd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041307a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4192c0
push 0xd
jmp 0x4192b9
mov ecx, dword [ebx*4 + 0x44f618]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4192b7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4192c0
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c3e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c40d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c40d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41d9d0
Capabilities:
Create thread
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 8
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 4
call fcn.00404fc5
add esp, 4
test eax, eax
je 0x41d9ef
mov dword [eax], 0x41d7b0
jmp 0x41d9f1
xor eax, eax
lea ecx, [esp + 4]
push ecx
push 0
push eax
push 0x401750
push 0
push 0
call fcn.0040a675
add esp, 0x18
mov dword [esp], eax
test eax, eax
je 0x41da5a
cmp dword [esp + 4], 0
je 0x41da69
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x41da70
push 0
push ecx
push dword [esp + 8]
call fcn.00402832
add esp, 0xc
test eax, eax
jne 0x41da77
push eax
push eax
push eax
push eax
push eax
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
cmp dword [esp + 4], 0
jne 0x41da7e
xor eax, eax
add esp, 8
ret
push 6
mov dword [esp + 8], 0
call fcn.004029e8
push 1
call fcn.004029e8
push 5
call fcn.004029e8
push 2
call fcn.004029e8
call fcn.0040a4dd
int3

Function at 0x415030
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.NUdqtLqT
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x415052
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x415059
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x415048
mov eax, 1
add ebx, ebx
jne 0x41506b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x415060
jne 0x41507c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x415060
xor ecx, ecx
sub eax, 3
jb 0x415090
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x415102
mov ebp, eax
add ebx, ebx
jne 0x41509b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4150a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4150cc
inc ecx
add ebx, ebx
jne 0x4150b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4150ad
jne 0x4150c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4150ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4150ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4150dd
jmp 0x41504e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4150ec
add edi, ecx
jmp 0x41504e
pop esi
lea edi, [esi + 0x13000]
mov eax, dword [edi]
or eax, eax
je 0x41514b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x197d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19844]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x415109
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1984c]
or eax, eax
je 0x415145
mov dword [ebx], eax
add ebx, 4
jmp 0x415126
call dword [esi + 0x19848]
mov ebp, dword [esi + 0x19850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x41517f
sub esp, 0xffffff80
jmp section.dUKSqJnb
Function at 0x401010
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
je 0x40105e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.Process___d_
push esi
call fcn.004011c0
mov edx, dword [esi]
add esp, 0xc
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], 0xa000d
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
pop esi
add esp, 8
ret

Function at 0x401013
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
je 0x40105e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.Process___d_
push esi
call fcn.004011c0
mov edx, dword [esi]
add esp, 0xc
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], 0xa000d
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
pop esi
add esp, 8
ret

Function at 0x401070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x542348
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x579aa4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00401290
mov esi, dword [ebp + 8]
test esi, esi
je 0x4011a9
cmp word [esi], 0
je 0x4011a9
cmp dword [edi], 0xffffffff
je 0x4011a9
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [0x57d4ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x57d4ac
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
push esi
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, word [esp + 0x26]
movzx edx, word [esp + 0x24]
push eax
movzx eax, word [esp + 0x26]
push ecx
movzx ecx, word [esp + 0x28]
push edx
push eax
push ecx
lea edx, [esp + 0x24]
push str._02d:_02d:_02d:_04d__0x_x__t_s_r_n
push edx
call fcn.00403850
mov esi, dword [esp + 0x2c]
mov eax, dword [esi - 0xc]
movzx eax, word [esi + eax*2 - 6]
add esp, 0x20
cmp ax, 0xa
jne 0x40116d
cmp dword [esi - 4], 1
jle 0x401145
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x10]
call fcn.004060e0
mov esi, dword [esp + 0xc]
mov eax, dword [esi - 0xc]
mov ecx, 0xd
mov word [esi + eax*2 - 6], cx
mov eax, dword [esi - 0xc]
mov edx, 0xa
mov word [esi + eax*2 - 4], dx
mov eax, dword [esi - 0xc]
dec eax
push eax
lea ecx, [esp + 0x10]
call fcn.00406060
mov eax, dword [esi - 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
lea edx, [eax + eax]
mov eax, dword [edi]
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4011a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x402260
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5486a8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x579aa4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00405ab0
push str.sites.dll
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x3c], 0
call fcn.00404ee0
add esp, 0x14
mov byte [esp + 0x28], 1
call fcn.00404430
test al, al
je 0x40237a
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40237a
mov ecx, dword [esp + 0x14]
push 0
push ecx
mov ecx, 0x57fba0
call fcn.00453ed0
test eax, eax
je 0x40237a
xor bl, bl
mov byte [esp + 0x13], 1
test esi, esi
jne 0x402304
mov bl, 1
mov byte [esp + 0x12], 0
jmp 0x402336
cmp esi, 2
je 0x40230e
cmp esi, 3
jne 0x402318
xor bl, bl
cmp esi, 2
setne byte [esp + 0x13]
call fcn.00407320
test al, al
sete al
mov byte [esp + 0x12], al
test al, al
je 0x402336
cmp byte [esp + 0x13], 0
je 0x402336
call fcn.00470780
mov byte [esp + 0x28], 2
test bl, bl
je 0x402359
call fcn.00401780
mov ecx, 0x60
mov byte [eax + 0xc], 0
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
mov dword [eax], 0x64
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x4023db
mov byte [esp + 0x28], 1
cmp byte [esp + 0x12], al
je 0x40237a
call fcn.00470980
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40239f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4023c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret
lea ecx, [esp + 0x12]
push ecx
call fcn.004714f0
push esi
mov ecx, edi
call fcn.00405ce0
test eax, eax
jne 0x402427
mov byte [esp + 0x28], 1
cmp byte [esp + 0x12], al
je 0x402401
call fcn.00470980
lea ecx, [esp + 0x14]
call fcn.00406190
lea ecx, [esp + 0x18]
call fcn.00406190
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret
lea esi, [edi + 8]
push edi
call fcn.00403960
cmp dword [esi], 0
je 0x402470
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00404200
mov ecx, eax
call fcn.00404260
push eax
lea ecx, [edi + 0xc]
call fcn.00402bf0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402461
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esi], 0
je 0x402470
cmp dword [edi + 0xc], 0
je 0x402470
mov bl, 1
jmp 0x402472
xor bl, bl
mov byte [esp + 0x28], 1
cmp byte [esp + 0x12], 0
je 0x402483
call fcn.00470980
lea ecx, [esp + 0x14]
call fcn.00406190
lea ecx, [esp + 0x18]
call fcn.00406190
mov al, bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x4038b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x541138
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x579aa4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], ax
call fcn.004032b0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403903
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00402f00
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.004032b0
cmp dword [esp + 0x24], 8
jb 0x40394c
mov eax, dword [esp + 0x10]
push eax
call fcn.0050c4ec
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x404fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
lea ecx, [esp + 4]
push ecx
or edx, 1
push edx
push 0
push eax
mov eax, dword [esi]
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405014
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov esi, dword [esi + 8]
push ecx
mov ecx, dword [esp + 8]
push edx
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x4050d0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x541cfb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x579aa4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 1
mov dword [esi], eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
push eax
call fcn.00405dd0
add eax, 0x10
mov dword [esi + 4], eax
mov byte [esp + 0x18], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
push eax
call fcn.00405dd0
add eax, 0x10
add esp, 8
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 5
jne 0x405143
xor eax, eax
jmp 0x405155
mov eax, dword [esp + 0x28]
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x200
mov dword [esi + 0xc], eax
mov byte [esp + 0x14], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40517d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4051a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10

Function at 0x405290
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 0x4052a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4052e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4052e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4052e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4052d0
cmp esi, eax
jb 0x4052ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407320
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x579aa4]
xor eax, esp
mov dword [esp + 0x114], eax
push pe_nt_image_headers32
lea eax, [esp + 8]
push 0
push eax
call fcn.0050c770
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 5
jne 0x40736c
mov eax, 1
cmp dword [esp + 8], eax
je 0x40736e
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0050c75f
add esp, 0x118
ret