joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f900
Capabilities:
Parse pe header

Disassembly:
mov eax, ecx
and eax, 0x3ff
dec eax
cmp eax, 0x90
ja case.0x42f91a.5
movzx eax, byte [eax + 0x42fdac]
jmp dword [eax*4 + 0x42fc10]
mov eax, 0xe
ret
mov eax, 0xf
ret
mov eax, 0x10
ret
mov eax, 0x11
ret
mov eax, 0x12
ret
mov eax, 0x13
ret
mov eax, 0x14
ret
mov eax, 0x15
ret
mov eax, 0x16
ret
mov eax, 0x17
ret
mov eax, 0x18
ret
mov eax, 0x141a
cmp cx, ax
je 0x42f9eb
mov eax, 0x201a
cmp cx, ax
je 0x42f9eb
mov eax, 0x181a
cmp cx, ax
je 0x42f9e5
mov eax, 0x1c1a
cmp cx, ax
je 0x42f9e5
mov eax, 0x2c1a
cmp cx, ax
je 0x42f9e5
mov eax, 0x301a
cmp cx, ax
je 0x42f9e5
mov eax, 0x241a
cmp cx, ax
je 0x42f9e5
mov eax, 0x281a
cmp cx, ax
je 0x42f9e5
mov eax, 0x41a
cmp cx, ax
je 0x42f9e5
mov eax, 0x81a
cmp cx, ax
je 0x42f9e5
mov eax, 0xc1a
cmp cx, ax
je 0x42f9e5
mov eax, 0x101a
cmp cx, ax
jne case.0x42f91a.5
mov eax, 0x1d
ret
mov eax, 0x50
ret
mov eax, 0x19
ret
mov eax, 0x1a
ret
mov eax, 0x1b
ret
mov eax, 0xc
ret
mov eax, 0x1c
ret
mov eax, 0x1e
ret
mov eax, 0x1f
ret
mov eax, 8
ret
mov eax, 1
ret
mov eax, 0x20
ret
mov eax, 0x21
ret
mov eax, 2
ret
mov eax, 0x22
ret
mov eax, 0x23
ret
mov eax, 0x24
ret
mov eax, 3
ret
mov eax, 0x25
ret
mov eax, 0x26
ret
mov eax, 0x27
ret
mov eax, 0x28
ret
mov eax, 0x29
ret
mov eax, 0x2a
ret
mov eax, 0x2b
ret
mov eax, 0x2c
ret
mov eax, 0x2d
ret
mov eax, 0x2e
ret
mov eax, 0x2f
ret
mov eax, 0x30
ret
mov eax, 4
ret
mov eax, 5
ret
mov eax, 0x31
ret
mov eax, 0x32
ret
mov eax, 0x33
ret
mov eax, 0x34
ret
mov eax, 0x35
ret
mov eax, 0x36
ret
mov eax, 0x37
ret
mov eax, 0x38
ret
mov eax, 0x39
ret
mov eax, 0x3a
ret
mov eax, 0x3b
ret
mov eax, 0x3c
ret
mov eax, 0x3d
ret
mov eax, 0x3e
ret
mov eax, 0x3f
ret
mov eax, 0x40
ret
mov eax, 0x41
ret
mov eax, 0x42
ret
mov eax, 0x43
ret
mov eax, 0x44
ret
mov eax, 0x45
ret
mov eax, 0x46
ret
mov eax, 0x47
ret
mov eax, 0x48
ret
mov eax, 7
ret
mov eax, 0x49
ret
mov eax, 0x4a
ret
mov eax, 0x4b
ret
mov eax, 0x4c
ret
mov eax, 0xa
ret
mov eax, 0x4d
ret
mov eax, 0x4e
ret
mov eax, 0x4f
ret
mov eax, 0x51
ret
mov eax, 0x52
ret
mov eax, 0x53
ret
mov eax, 0x54
ret
mov eax, 0x55
ret
mov eax, 6
ret
mov eax, 0x56
ret
mov eax, 0x57
ret
mov eax, 0x58
ret
mov eax, 0x59
ret
mov eax, 0x5a
ret
mov eax, 0x5b
ret
mov eax, 0x5c
ret
mov eax, 0x5d
ret
mov eax, 0x5e
ret
mov eax, 0x5f
ret
mov eax, 0x60
ret
mov eax, 0x61
ret
mov eax, 0x62
ret
mov eax, 0x63
ret
mov eax, 0x64
ret
mov eax, 0x65
ret
mov eax, 0x66
ret
mov eax, 0x67
ret
mov eax, 0x68
ret
mov eax, 0x69
ret
mov eax, 0x6a
ret
mov eax, 0x6b
ret
xor eax, eax
ret
Function at 0x42fe40
Capabilities:
Parse pe header

Disassembly:
call dword [0x48f0b8]
movzx ecx, ax
mov eax, ecx
cmp eax, 0x804
ja 0x42fea6
je 0x42fee7
sub eax, 0x404
cmp eax, 0x15
ja case.0x42fe69.1030
movzx eax, byte [eax + 0x42ff20]
jmp dword [eax*4 + 0x42fef0]
mov eax, 1
ret
mov eax, 2
ret
mov eax, 3
ret
mov eax, 4
ret
mov eax, 5
ret
mov eax, 8
ret
mov eax, 9
ret
mov eax, 0xa
ret
mov eax, 0xb
ret
cmp eax, 0xc0a
ja 0x42fece
je 0x42fec8
sub eax, 0x80a
je 0x42fec8
sub eax, 0xc
je case.0x42fe69.1046
sub eax, 0x3ee
jmp 0x42feda
mov eax, 7
ret
mov eax, 6
ret
cmp eax, 0x1004
je 0x42fee7
cmp eax, 0x1404
je case.0x42fe69.1028
jmp fcn.0042f900
mov eax, 0xd
ret
mov eax, 0xc
ret
Function at 0x4370c0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x5e6ea9af
push esi
push edi
mov edi, edx
movzx esi, cx
mul ebx
shr ecx, 0x10
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, ebx
mov dword [ebp - 0xc], ecx
sub edx, eax
mov dword [ebp - 4], edx
test edi, edi
jne 0x4370fc
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x437217
xor ebx, ebx
cmp edx, 7
jbe 0x437166
mov eax, 7
sub eax, edi
mov dword [ebp - 0x10], eax
movzx eax, byte [edi]
add ebx, 8
add esi, eax
movzx eax, byte [edi + 1]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 2]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 3]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 4]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 5]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 6]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 7]
add ecx, esi
add edi, 8
add esi, eax
mov eax, dword [ebp - 0x10]
add eax, edi
add ecx, esi
cmp eax, edx
jb 0x437115
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 0x10], 0
cmp ebx, eax
jae 0x4371d9
sub eax, ebx
cmp eax, 2
jb 0x4371c5
mov edx, dword [ebp - 4]
sub edx, ebx
sub edx, 2
shr edx, 1
inc edx
lea eax, [ebx + edx*2]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, ebx
movzx eax, byte [edi]
add esi, eax
movzx eax, byte [edi + 1]
add ebx, esi
add edi, 2
add esi, eax
add ecx, esi
sub edx, 1
jne 0x437193
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jae 0x4371d1
movzx eax, byte [edi]
mov edx, dword [ebp - 8]
add esi, eax
add ecx, esi
inc edi
jmp 0x4371d4
movzx eax, byte [edi]
mov ebx, edx
add esi, eax
add ecx, esi
inc edi
jmp 0x4371d4
mov edx, dword [ebp - 8]
lea eax, [edx + ebx]
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul eax, edx, 0xffff000f
add esi, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
mov edx, 0x15b0
add ecx, eax
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], edx
jne 0x437104
shl ecx, 0x10
pop edi
lea eax, [esi + ecx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x437230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
test esi, esi
jne 0x43723f
xor eax, eax
pop esi
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
not ecx
test edi, edi
je 0x437282
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
movzx edx, al
mov eax, edx
shr edx, 4
xor eax, ecx
shr ecx, 4
and eax, 0xf
xor ecx, dword [eax*4 + 0x4a2880]
mov eax, ecx
shr ecx, 4
and eax, 0xf
xor edx, eax
xor ecx, dword [edx*4 + 0x4a2880]
sub edi, 1
jne 0x437250
not ecx
pop edi
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x43bac0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x43bbd5
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x43bbd5
cmp edx, dword [esi + 0x10]
jae 0x43bbd5
cmp dword [esi + 0x14], 1
jne 0x43bbd5
mov eax, dword [ecx + 0x10]
mov edi, dword [eax + edx*4]
add edi, dword [ecx]
je 0x43bbd5
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x43bbd5
mov dword [ebx], edx
mov eax, dword [ecx + 0x10]
xor ecx, ecx
mov eax, dword [eax + edx*4]
mov dword [ebx + 4], eax
movzx eax, word [edi + 4]
mov word [ebx + 8], ax
movzx eax, word [edi + 6]
mov word [ebx + 0xa], ax
movzx eax, word [edi + 8]
mov word [ebx + 0xc], ax
movzx eax, word [edi + 0xa]
mov word [ebx + 0xe], ax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], 0
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 0
movzx eax, word [edi + 0x24]
mov word [ebx + 0x28], ax
mov eax, dword [edi + 0x26]
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x2a]
add eax, dword [esi + 0x40]
mov dword [ebx + 0x30], eax
adc ecx, dword [esi + 0x44]
mov esi, 0x103
mov dword [ebx + 0x34], ecx
movzx eax, word [edi + 0x1c]
cmp eax, esi
cmovb esi, eax
lea eax, [edi + 0x2e]
push esi
push eax
lea eax, [ebx + 0x3c]
push eax
call fcn.0045bd90
mov byte [esi + ebx + 0x3c], 0
mov esi, 0xff
movzx eax, word [edi + 0x20]
cmp eax, esi
cmovb esi, eax
mov dword [ebx + 0x38], esi
movzx ecx, word [edi + 0x1e]
movzx eax, word [edi + 0x1c]
add ecx, edi
add eax, 0x2e
add eax, ecx
push esi
push eax
lea eax, [ebx + 0x140]
push eax
call fcn.0045bd90
add esp, 0x18
mov byte [esi + ebx + 0x140], 0
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4051c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4051f9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403038
jmp 0x405202
mov eax, ebx
mov edx, esi
call fcn.00402fec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40520c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x40522d
mov al, byte [esp]
jmp 0x40522f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40831c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebx + 4]
call fcn.00403258
push eax
push 0x400
lea eax, [ebp - 0x400]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00403258
push eax
mov eax, edi
call fcn.00403258
push eax
mov eax, esi
call fcn.00403258
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ecx, eax
lea edx, [ebp - 0x400]
mov eax, dword [ebp + 8]
call fcn.00403038
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x10002e01
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x10002e10
pop dword [ebp - 0x38]
mov eax, 0x17581e02
sub eax, 0x757eff2
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x8461b187
sub dword [ebp - 0x48], 0x360f6c3c
mov dword [ebp - 0x44], 0x4db8b990
add dword [ebp - 0x44], 0xe47a92b5
mov dword [ebp - 0x40], 0xd2f7a56
add dword [ebp - 0x40], 0x3f1cc9d8
mov dword [ebp - 0x3c], 0x47a22fa1
sub dword [ebp - 0x3c], 0x47a22fa1
lea eax, [ebp - 0x48]
push eax
mov eax, 0xad1a3f5e
add eax, 0x62e61c32
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xd862f1c1
sub dword [ebp - 0x48], 0x63f0886b
mov dword [ebp - 0x44], 0xa7bd5cd8
sub dword [ebp - 0x44], 0x6650fb63
mov dword [ebp - 0x40], 0x61f7ee27
sub dword [ebp - 0x40], 0xfe8881bb
mov dword [ebp - 0x3c], 0xca8d604b
sub dword [ebp - 0x3c], 0xca8d604b
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x37fce
push 0
call eax
mov ecx, 0x4db6
mov ebx, eax
mov esi, 0x7c753a3e
add esi, 0x938b7dc2
add esi, dword [ebp - 0x38]
mov edi, 0x39465eb0
add edi, 0xfd14ae56
mov edx, dword [esi]
xor dword [ebp - 8], 0xc0c88f65
sub edx, edi
add dword [ebp - 0x30], 0x85ea7952
mov dword [ebx], edx
xor dword [ebp - 0xc], 0xb169b27d
add ebx, 0xf4a3da7f
sub ebx, 0xf4a3da7b
add esi, 0xe86d7651
sub esi, 0xe86d764d
loop 0x10002f27
add eax, 0xfd37e048
sub eax, 0xfd36b69d
mov ebx, eax
add eax, 5
mov ecx, sym.libEGL.dll_Ordinal_0
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x100046d7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10004716
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10004716
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10004716
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10004716
cmp dword [ecx + 0x74], 0xe
jbe 0x10004716
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000739f
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 0x1000743c
push ebx
push esi
call fcn.10007368
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.100072fc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100073e9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000743b
push edi
push eax
call fcn.1000835a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10007409
call fcn.10005e44
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000743a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100072fc
add esp, 0x20
test eax, eax
jne 0x10007428
push edi
call fcn.10005e44
jmp 0x10007430
push ebx
call fcn.10005e44
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 0x100076a9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f508
push 0x1000f500
push str.FlsAlloc
push 0x1f
call fcn.100075c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100076dd
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e130]
call esi
jmp 0x100076e3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10007727
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f518
push 0x1000f510
push str.FlsGetValue
push 0x21
call fcn.100075c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000775e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10007766
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f520
push 0x1000f518
push str.FlsSetValue
push 0x22
call fcn.100075c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100077a0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000e130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000ce20
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x40132d
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40132d
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x22c
push 0
push eax
call fcn.0045d8a0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x40131d
push ebx
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call dword [0x46b4a4]
call edi
pop ecx
pop ecx
test eax, eax
jne 0x401321
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4012f7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x40132f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459996
leave
ret

Function at 0x4015a2
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x418
lea eax, [ebp - 0x628]
mov esi, ecx
push 0
push eax
call fcn.0045d8a0
add esp, 0xc
mov dword [ebp - 0x62c], esi
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, eax
cmp esi, 2
jb 0x4016ae
cmp word [ebp - 0x20e], 0x3a
jne 0x4016ae
mov edi, str.explorer.exe
push edi
call fcn.0043cd78
inc eax
add eax, esi
pop ecx
cmp eax, 0x105
jae 0x4016ae
add esi, esi
cmp esi, 0x20a
jae 0x4016be
xor eax, eax
mov word [ebp + esi - 0x210], ax
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call fcn.0043cd78
mov esi, eax
mov dword [esp], 0x208
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4016ae
add eax, 0xfffffffe
add eax, esi
cmp eax, 0x209
jae 0x4016ae
lea eax, [ebp - 0x20a]
push eax
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x62c]
mov ecx, 0x401490
call fcn.00401298
mov eax, dword [ebp - 0x628]
jmp 0x4016b0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00459996
leave
ret
call fcn.00459ac8
int3

Function at 0x40186a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x401891
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x40188c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401891
test al, 0x10
jne 0x401891
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x401895
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test ecx, ecx
je 0x4018ad
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4018ad
test al, 0x10
je 0x4018ad
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x401983
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4019e3
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
xor eax, eax
inc eax
cmp dword [ebp - 0x10], ebx
cmovne ebx, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00459996
leave
ret

Function at 0x4019f2
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x401a73
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 4], edi
je 0x401a73
push dword [ebp - 4]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401a73
lea eax, [ebp - 8]
push eax
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xc]
push eax
push 1
push 2
push edi
push 0xf01ff
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
jmp 0x401a75
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x401be9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
test edi, edi
jne 0x401bfc
test esi, esi
je 0x401c30
call fcn.00401983
test eax, eax
jne 0x401c25
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push edi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
jmp 0x401c52
call fcn.004019f2
mov ebx, eax
test ebx, ebx
jne 0x401c34
xor eax, eax
jmp 0x401c52
push ebx
push dword [ebp + 0x10]
mov edx, esi
mov ecx, edi
push dword [ebp + 0xc]
call fcn.00401a79
add esp, 0xc
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401c5c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov dword [esp + 0xc], edx
mov edx, ebx
push edi
call fcn.004018e2
pop ecx
test eax, eax
jne 0x401c84
push 0xb
pop eax
jmp 0x401cd7
call fcn.0040177b
test eax, eax
jne 0x401cc2
call fcn.00401c57
test eax, eax
je 0x401cc2
cmp esi, 7
je 0x401cde
cmp esi, 1
je 0x401ca5
cmp esi, 9
jne 0x401cc2
push dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov edx, ebx
push dword [ebp + 0x14]
push edi
call fcn.0040202e
add esp, 0xc
test eax, eax
jne 0x401cef
cmp esi, 1
jne 0x401cef
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x20]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x18]
mov edx, ebx
push dword [ebp + 0x14]
push edi
call fcn.00401be9
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0x21
jmp 0x401cd7

Function at 0x402781
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x402818
test edi, edi
je 0x402818
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x105
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.0045d8a0
push esi
mov esi, 0x104
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.0043d34b
push edi
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.0043d34b
add esp, 0x24
lea eax, [ebp - 0x10c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x402804
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402818
lea ecx, [ebp - 0x10c]
call fcn.004032cf
test eax, eax
je 0x402818
xor eax, eax
inc eax
jmp 0x40281a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00459996
leave
ret 8

Function at 0x40296f
Capabilities:
Create directory
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0x314], edi
and dword [esi], 0
cmp ebx, 7
ja 0x402b62
mov eax, dword [edi + ebx*4]
test eax, eax
je 0x4029af
mov dword [esi], eax
xor eax, eax
jmp 0x402b65
push 0x400
call fcn.0041eab0
mov dword [esp], 0x400
push 0
push eax
mov dword [esi], eax
call fcn.0045d8a0
xor eax, eax
add esp, 0xc
inc eax
jmp dword [ebx*4 + 0x402b77]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459996
leave
ret 0xc
Function at 0x402b97
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x402c18
test esi, esi
je 0x402c18
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0045d8a0
push edi
mov edi, 0x3ff
lea eax, [ebp - 0x404]
push edi
push eax
call fcn.0043d264
push 0x479154
lea eax, [ebp - 0x404]
push edi
push eax
call fcn.0043d34b
push esi
lea eax, [ebp - 0x404]
push edi
push eax
call fcn.0043d34b
add esp, 0x30
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402c18
xor eax, eax
inc eax
jmp 0x402c1a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00459996
leave
ret