joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10057c88
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 0x10057d25
push ebx
push esi
call fcn.10057c51
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.10056a8c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10057cd2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10057d24
push edi
push eax
call fcn.10054b54
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10057cf2
call fcn.100519b5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10057d23
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10056a8c
add esp, 0x20
test eax, eax
jne 0x10057d11
push edi
call fcn.100519b5
jmp 0x10057d19
push ebx
call fcn.100519b5
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 0x1005a760
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1004f1eb
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005a7cf
cmp esi, dword [ebp - 4]
je 0x1005a7ca
cmp dword [ebp + 0xc], 0
je 0x1005a7ca
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1005a7a7
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1005a2b2
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1005a7d1
xor eax, eax
inc eax
jmp 0x1005a7d1
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1005a836
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10077080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1004f1eb
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1004f1eb
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1005a8ad
cmp word [ecx], dx
je 0x1005a8ad
mov eax, dword [0x100657bc]
push edi
dec eax
push eax
push 0x100656a8
call fcn.1005a7d5
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1005a920
cmp word [eax], dx
je 0x1005a920
mov eax, dword [edi]
test eax, eax
je 0x1005a8d1
cmp word [eax], dx
je 0x1005a8d1
lea eax, [ebp - 0x10]
push eax
call fcn.1005a1b8
jmp 0x1005a8da
lea eax, [ebp - 0x10]
push eax
call fcn.1005a253
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1005a94a
mov eax, dword [0x100656a4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10065398
call fcn.1005a7d5
add esp, 0xc
test al, al
je 0x1005a94a
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1005a915
cmp word [eax], di
je 0x1005a915
lea eax, [ebp - 0x10]
push eax
call fcn.1005a1b8
pop ecx
jmp 0x1005a94c
lea eax, [ebp - 0x10]
push eax
call fcn.1005a253
jmp 0x1005a912
mov eax, dword [edi]
test eax, eax
je 0x1005a937
cmp word [eax], dx
je 0x1005a937
lea eax, [ebp - 0x10]
push eax
call fcn.1005a16d
pop ecx
jmp 0x1005a94a
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1005aa15
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1005a65a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1005aa15
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1005aa15
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1005aa15
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1005a9a2
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1005246d
test ebx, ebx
je 0x1005aa10
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1005246d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005aa15
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005aa15
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1005cdff
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1005aa17
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10046268
leave
ret
Function at 0x1005d601
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1005d57d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1005d770
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1005d770
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1005d725
jg 0x1005d65d
test eax, eax
je 0x1005d71b
push 1
push 0x1000
call fcn.10051d99
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1005d680
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1005d712
push 0x8000
push ebx
call fcn.1005d4ae
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1005d6a9
jg 0x1005d6a4
cmp ecx, 0x1000
jb 0x1005d6a9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10051799
add esp, 0x10
cmp eax, 0xffffffff
je 0x1005d6ee
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1005d6a4
jl 0x1005d6d5
test ecx, ecx
jne 0x1005d696
push dword [ebp - 0xc]
push ebx
call fcn.1005d4ae
push esi
call fcn.100519b5
add esp, 0xc
xor ebx, ebx
jmp 0x1005d77e
cmp byte [edi + 0x24], 0
je 0x1005d705
cmp dword [edi + 0x20], 5
jne 0x1005d705
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1005d710
mov ebx, dword [edi + 0x18]
jmp 0x1005d712
xor ebx, ebx
push esi
call fcn.100519b5
pop ecx
jmp 0x1005d77e
test ecx, ecx
jg 0x1005d6e7
jl 0x1005d725
test eax, eax
jae 0x1005d6e7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100547ed
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1005d745
cmp byte [edi + 0x1c], 0
je 0x1005d6e7
jmp 0x1005d776
push ebx
call fcn.100585ff
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1005d6e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1005d77e
cmp byte [edi + 0x1c], 0
je 0x1005d77b
mov ebx, dword [edi + 0x18]
jmp 0x1005d77e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100547ed
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1005ea80
Capabilities:
Parse pe header

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

Disassembly:
cmp ecx, dword [0x40e290]
jne 0x401283
repz ret
jmp fcn.00401f5c

Function at 0x406c2b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004025cb
and dword [ebp - 4], 0
cmp dword [0x4102d4], 0
mov ebx, eax
jne 0x406cdc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406d8d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406d8d
push eax
call fcn.00402559
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4102d4], eax
call esi
push eax
call fcn.00402559
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4102d8], eax
call esi
push eax
call fcn.00402559
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4102dc], eax
call esi
push eax
call fcn.00402559
pop ecx
mov dword [0x4102e4], eax
test eax, eax
je 0x406cdc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402559
pop ecx
mov dword [0x4102e0], eax
mov eax, dword [0x4102e0]
cmp eax, ebx
je 0x406d34
cmp dword [0x4102e4], ebx
je 0x406d34
push eax
call fcn.004025d4
push dword [0x4102e4]
mov esi, eax
call fcn.004025d4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406d34
test edi, edi
je 0x406d34
call esi
test eax, eax
je 0x406d2b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406d2b
test byte [ebp - 0xc], 1
jne 0x406d34
or dword [ebp + 0x10], 0x200000
jmp 0x406d6d
mov eax, dword [0x4102d8]
cmp eax, ebx
je 0x406d6d
push eax
call fcn.004025d4
pop ecx
test eax, eax
je 0x406d6d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406d6d
mov eax, dword [0x4102dc]
cmp eax, ebx
je 0x406d6d
push eax
call fcn.004025d4
pop ecx
test eax, eax
je 0x406d6d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4102d4]
call fcn.004025d4
pop ecx
test eax, eax
je 0x406d8d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406d8f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006ffd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push esi
push edi
call fcn.1006e8e4
mov edi, dword [esp + 0x38]
push eax
push edi
call sub.glib_lite.dll_Ordinal_413
mov esi, eax
pop ecx
pop ecx
mov eax, dword [esi + 0x74]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1006fffb
xor eax, eax
jmp 0x10070184
cmp eax, dword [esi + 0x1f0]
je 0x1006fff4
push ebx
push ebp
lea ebx, [esi + 0xc]
push ebx
call sub.glib_lite.dll_Ordinal_213
pop ecx
jmp 0x10070014
lea ebx, [esi + 0xc]
push dword [esp + 0x44]
push edi
call fcn.1002a825
pop ecx
pop ecx
test eax, eax
jne 0x10070175
push ebx
call sub.glib_lite.dll_Ordinal_212
mov eax, dword [esi + 0x1f8]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
lea eax, [esi + 0xc]
push eax
call sub.glib_lite.dll_Ordinal_213
push edi
call fcn.1002b710
add esp, 0xc
cmp ebp, edx
jb 0x1007005b
ja 0x10070055
cmp ebx, eax
jbe 0x1007005b
sub ebx, eax
sbb ebp, edx
jmp 0x1007006c
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
push ebp
push ebx
push edi
call fcn.1002d6cd
add esp, 0x10
mov dword [esp + 0x10], eax
cmp eax, 4
je 0x1007009b
cmp dword [edi + 0x168], 0
jne 0x10070175
cmp eax, 2
je 0x10070011
call fcn.10083a8f
push eax
push dword [esi + 0x1f0]
call sub.glib_lite.dll_Ordinal_413
push eax
call fcn.10083a5e
add esp, 0xc
push edx
push eax
call fcn.10083a8f
push eax
push dword [esi + 0x1f0]
call sub.glib_lite.dll_Ordinal_413
pop ecx
pop ecx
push eax
call fcn.10083975
mov dword [esp + 0x24], eax
lea eax, [esi + 0xc]
push eax
mov dword [esp + 0x24], edx
call sub.glib_lite.dll_Ordinal_212
mov edi, dword [esi + 0x78]
add esp, 0x10
add edi, ebx
mov ebx, dword [esi + 0x7c]
adc ebx, ebp
cmp dword [esp + 0x10], 1
jne 0x100700fd
add edi, dword [esp + 0x24]
adc ebx, dword [esp + 0x28]
push esi
call fcn.1006e427
lea eax, [esp + 0x30]
xor ebp, ebp
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push ebp
push dword [esi + 0x1f0]
call fcn.10030026
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x58]
push dword [esp + 0x58]
push ebx
push edi
push dword [esp + 0x44]
push dword [esp + 0x4c]
push dword [esi + 0x1f0]
call fcn.10005963
mov eax, dword [esi + 0x1f8]
add esp, 0x3c
cmp dword [eax + 8], ebp
jne 0x10070160
push dword [esp + 0x20]
push dword [esi + 0x1f0]
call fcn.10030542
pop ecx
pop ecx
push esi
call fcn.1006f830
push 3
push esi
call fcn.1006de9e
add esp, 0xc
xor eax, eax
jmp 0x10070182
lea eax, [esi + 0xc]
push eax
call sub.glib_lite.dll_Ordinal_212
pop ecx
push 0xfffffffffffffffe
pop eax
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x401000
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x81d068]
sub esp, 0x11c
test eax, eax
jne 0x4010fe
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.00401e50
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x401050
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41b100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x401060
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41b104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x401095
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.004035f0
pop edi
pop esi
pop ebx
test eax, eax
je 0x4010f9
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4010f9
mov dword [0x81d068], eax
add esp, 0x11c
ret
mov eax, dword [0x81d068]
add esp, 0x11c
ret
Function at 0x4022f0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x402318
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x402326
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x40233f
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x40234d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x402366
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x402374
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x40238d
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x40239b
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x4023e2
add dword [esp], 5
retf
Function at 0x402470
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x81c608]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x40261d
cmp dword [0x81c60c], 0
jne 0x402609
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.00401e50
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x4024c0
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41b0d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x4024d0
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41b0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x402505
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00401e50
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402564
sub edx, esi
sar edx, 1
je 0x40261d
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x402580
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x40261d
xor eax, eax
push ebx
test edx, edx
je 0x4025b8
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x4025b8
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x4025a1
xor eax, eax
test edx, edx
je 0x4025d2
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x4025d2
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x4025c0
xor eax, eax
test edx, edx
je 0x4025ef
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x4025ef
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x4025e0
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x81c608]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret
Function at 0x402f10
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x81c748
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x403039
cmp dword fs:[0xc0], eax
je 0x402f3b
mov dword [0x81c744], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x81c62c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x81c630], eax
movzx edx, word [esi + 0xac]
mov dword [0x81c634], edx
mov eax, dword [esi + 0xb0]
mov dword [0x81c638], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x402f9b
push 0x7f
push eax
push 0x81c63c
call fcn.00401d00
mov edx, dword [0x81c634]
add esp, 0xc
jmp 0x402fa3
xor eax, eax
mov word [0x81c63c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x81c73c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x81c73e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x81c740], ax
mov ecx, eax
mov byte [0x81c742], 0
cmp byte [0x7ffe0268], 0
je 0x402fea
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x81c742], bl
cmp ebx, 1
pop ebx
jne 0x403004
and ecx, 0xffef
mov word [0x81c740], cx
test edx, edx
jne 0x403039
call fcn.00402f10
cmp dword [0x81c62c], 6
ja 0x403039
jb 0x403021
cmp dword [0x81c630], 4
jae 0x403039
call fcn.00402f10
cmp dword [0x81c62c], 0xa
jae 0x403039
mov dword [0x81c634], 1
ret
Function at 0x4034a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x4034eb
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x4034db
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x4034c1
jmp 0x4034e0
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x40353b
mov edi, edx
lea ecx, [edi + 2]
jmp 0x403500
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x403500
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x40351c
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00401d00
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x40355d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x4035d0
mov esi, dword [ebx]
cmp esi, ebx
je 0x4035d0
test esi, esi
je 0x4035d0
cmp word [esi + 0x24], 2
jbe 0x4035ca
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x4035ca
cmp dword [esi + 0x18], 0
je 0x4035ca
test ebp, ebp
je 0x403585
cmp ebp, eax
jne 0x4035ca
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00401d00
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4035aa
cmp eax, dword [esi + 0x18]
jne 0x4035ca
cmp dword [esp + 0x10], 0
je 0x4035dd
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.004017c0
add esp, 8
test eax, eax
je 0x4035dd
mov esi, dword [esi]
cmp esi, ebx
jne 0x403563
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret
Function at 0x4035f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x40364b
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x403610
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x40362c
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00401d00
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x40366d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x4036df
mov esi, dword [ebx]
cmp esi, ebx
je 0x4036df
test esi, esi
je 0x4036df
cmp word [esi + 0x24], 2
jbe 0x4036d9
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x4036d9
cmp dword [esi + 0x18], 0
je 0x4036d9
test ebp, ebp
je 0x403695
cmp ebp, eax
jne 0x4036d9
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00401d00
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x4036ba
cmp edx, dword [esi + 0x18]
jne 0x4036d9
cmp dword [esp + 0x14], eax
je 0x4036ec
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.004017c0
add esp, 8
test eax, eax
je 0x4036ec
mov esi, dword [esi]
cmp esi, ebx
jne 0x403673
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x41a3f2
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret