joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101db9a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ffa68
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x102519c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0x1025c5d0
mov eax, 1
mov esi, 0x1025c5d0
xchg dword [esi], eax
test eax, eax
je 0x101dbaa0
xor eax, eax
mov ecx, 0x101cbfd0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
cmp eax, 4
ja case.default.0x101db9f9
jmp dword [eax*4 + 0x101dbbf0]
pause
sub dword [ebp - 0x20], 1
jne case.default.0x101db9f9
mov eax, dword [ebp - 0x1c]
neg eax
sbb eax, eax
add eax, 3
mov dword [ebp - 0x18], eax
jmp case.default.0x101db9f9
sub dword [ebp - 0x1c], 1
jne case.0x101db9f9.4
mov dword [ebp - 0x18], 3
call ecx
jmp case.default.0x101db9f9
mov dword [ebp - 0x18], 0
call fcn.101c9b40
test eax, eax
jne 0x101dba45
mov dword [ebp - 0x18], 4
jmp case.default.0x101db9f9
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 1
jmp case.default.0x101db9f9
mov dword [ebp - 0x18], 0
call fcn.101c9b40
test eax, eax
jne 0x101dba71
mov dword [ebp - 0x18], 4
jmp 0x101dba82
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x20]
call fcn.101c9a20
mov eax, 1
xchg dword [esi], eax
test eax, eax
je 0x101dbaa0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
jmp 0x101db9f0
cmp dword [0x1025c608], 0
mov dword [ebp - 4], 0
jne 0x101dbbd4
push 0x18
call fcn.101f9fdb
mov edi, eax
add esp, 4
test edi, edi
je 0x101dbb91
push 0x800
push 0
push str.advapi32.dll
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
jne 0x101dbb08
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x101dbb85
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x101dbb85
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10220204
push ebx
call esi
push eax
call fcn.101cbbd0
add esp, 4
mov dword [edi], eax
push str.UnregisterTraceGuids
push ebx
call esi
push eax
call fcn.101cbbd0
add esp, 4
mov dword [edi + 4], eax
push str.TraceEvent
push ebx
call esi
push eax
call fcn.101cbbd0
add esp, 4
mov dword [edi + 8], eax
push str.GetTraceLoggerHandle
push ebx
call esi
push eax
call fcn.101cbbd0
add esp, 4
mov dword [edi + 0xc], eax
push str.GetTraceEnableLevel
push ebx
call esi
push eax
call fcn.101cbbd0
add esp, 4
mov dword [edi + 0x10], eax
push str.GetTraceEnableFlags
push ebx
call esi
push eax
call fcn.101cbbd0
add esp, 4
mov dword [edi + 0x14], eax
mov byte [ebp - 4], 0
mov dword [0x1025c608], edi
jmp 0x101dbb9d
mov dword [0x1025c608], 0
xor edi, edi
mov esi, dword [edi]
push 0
call fcn.101cbbd0
add esp, 4
cmp esi, eax
je 0x101dbbd4
push esi
call fcn.101cbbd0
add esp, 4
push 0x1025c5f0
push 0
push 0
push 0x10251a3c
push 7
push 0x10220134
push 0
push 0x101db800
call eax
mov dword [0x1025c5d0], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101e1360
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
push ecx
mov dword [edi + 8], eax
mov dword [edi + 0x100], edx
mov eax, dword [edi + 0xc]
xor eax, dword [ecx]
and eax, 0xfffffff
xor dword [edi + 0xc], eax
mov eax, dword [ecx]
xor eax, dword [edi + 0xc]
and eax, 0xfffffff
xor eax, dword [ecx]
mov dword [edi + 0xc], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x14], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0x10], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x18], eax
lea eax, [ebp - 0xc]
mov dword [edi + 0x110], 0
mov dword [edi + 0x11c], 1
mov ecx, dword [edx + 4]
push eax
call fcn.101d31d0
push dword [edi + 0x20]
lea ebx, [edi + 0x1c]
mov esi, eax
call fcn.101f9fe7
mov ecx, dword [esi]
mov dword [ebx], ecx
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov dword [esi], 0
mov dword [esi + 4], 0
push dword [ebp - 8]
call fcn.101f9fe7
mov ecx, dword [ebp + 0x10]
add esp, 8
mov eax, dword [ecx]
and eax, 0xfffffff
cmp eax, 3
jne 0x101e1477
mov ebx, dword [ecx + 8]
xor edx, edx
mov esi, dword [ebp + 8]
movzx eax, bl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
mov eax, ebx
mov esi, dword [esi + 4]
shr eax, 8
movzx eax, al
xor ecx, eax
mov eax, ebx
shr eax, 0x10
imul ecx, ecx, 0x1000193
movzx eax, al
xor ecx, eax
mov eax, ebx
imul ecx, ecx, 0x1000193
shr eax, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
div dword [esi + 0x168]
mov eax, dword [esi + 0x170]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x101e146e
cmp dword [eax + 4], ebx
je 0x101e149b
mov eax, dword [eax]
test eax, eax
jne 0x101e1463
mov eax, dword [ebp - 4]
mov dword [edi + 0x24], eax
lea ebx, [edi + 0x1c]
push ebx
lea ecx, [edi + 0x38]
call fcn.101e0c90
cmp dword [edi + 0x48], 0
je 0x101e1492
mov ecx, dword [edi + 0x48]
add ecx, 4
push ebx
call fcn.101e0c90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [eax + 8]
jmp 0x101e1471

Function at 0x101e2f20
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1025c60c], eax
cmp eax, 0xffffffff
je 0x101e2f3a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101e2f4c
movzx eax, ax
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x10]
call fcn.101cc190
push 0x10237728
lea eax, [ebp - 0x10]
push eax
call fcn.101f9ff9
int3
Function at 0x101e49c0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
and eax, 0xfffffff
cmp eax, 3
ja case.default.0x101e49d6
jmp dword [eax*4 + 0x101e4a74]
push ebx
mov ebx, dword [edx + 8]
xor edx, edx
movzx eax, bl
xor eax, 0x811c9dc5
push esi
mov esi, dword [ecx + 0xc]
imul ecx, eax, 0x1000193
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, eax
mov eax, ebx
shr eax, 0x10
imul ecx, ecx, 0x1000193
movzx eax, al
xor ecx, eax
mov eax, ebx
imul ecx, ecx, 0x1000193
shr eax, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
div dword [esi + 0x10]
mov eax, dword [esi + 0x18]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x101e4a3b
nop
cmp dword [eax + 4], ebx
je 0x101e4a3d
mov eax, dword [eax]
test eax, eax
jne 0x101e4a30
xor eax, eax
test eax, eax
pop esi
setne al
pop ebx
pop ebp
ret 4
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + 0x2c]
cmp eax, dword [edx + 8]
sete al
pop ebp
ret 4
mov eax, dword [ecx + 8]
cmp eax, dword [edx + 8]
sete al
pop ebp
ret 4
mov al, 1
pop ebp
ret 4
xor al, al
pop ebp
ret 4

Function at 0x101e6c70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x101e6c97
mov ecx, 5
int 0x29
push 2
call fcn.101c8f00
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call fcn.101f9fcf
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call fcn.101f9fcf
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x101e6da2
test esi, esi
jne 0x101e6da2
push 2
call fcn.101c8f00
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x101ef480
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.101ef4b0
mov esi, dword [ebp + 8]
test al, al
je 0x101ef49e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.101ef4c0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x101ef9b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101fff60
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp ebx, edx
je 0x101efb8a
mov edi, 0x5c
jmp 0x101efa00
mov eax, dword [ebx]
mov esi, dword [eax*4 + 0x1029c688]
lea ecx, [eax*4 + 0x1029c688]
mov dword [ebp - 0x414], ecx
test esi, esi
je 0x101efa28
cmp esi, 0xffffffff
jne 0x101efbb7
jmp 0x101efb7f
mov esi, dword [eax*4 + 0x10221228]
cmp byte [0x1029c680], 0
mov dword [ebp - 4], 0
je 0x101efa5d
push 0x800
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 0x414]
mov esi, eax
mov edx, dword [ebp + 0xc]
jmp 0x101efb6f
test esi, esi
je 0x101efb6d
cmp word [esi], 0
je 0x101efb6d
push 0x200
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x101efb64
cmp eax, 0x200
jae 0x101efb64
mov word [ebp + eax*2 - 0x410], di
inc eax
cmp eax, 0x200
jae 0x101efb64
movzx ecx, word [esi]
test cx, cx
je 0x101efad4
mov edx, ecx
mov word [ebp + eax*2 - 0x410], dx
inc eax
cmp eax, 0x200
jae 0x101efb64
movzx ecx, word [esi + 2]
add esi, 2
mov edx, ecx
test cx, cx
jne 0x101efab2
add eax, eax
cmp eax, 0x400
jae 0x101efbbb
mov edi, dword [0x102519c8]
xor ecx, ecx
mov word [ebp + eax - 0x410], cx
mov ecx, edi
xor edi, dword [0x1029c684]
and ecx, 0x1f
ror edi, cl
test edi, edi
je 0x101efb40
lea eax, [ebp - 0x418]
push eax
push 0
call edi
push 8
push 0
lea eax, [ebp - 0x410]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call eax
mov esi, eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x418]
call edi
mov ecx, dword [ebp - 0x414]
mov edi, 0x5c
mov edx, dword [ebp + 0xc]
jmp 0x101efb6f
push 8
push 0
lea eax, [ebp - 0x410]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call eax
mov ecx, dword [ebp - 0x414]
mov esi, eax
mov edx, dword [ebp + 0xc]
mov edi, 0x5c
jmp 0x101efb6f
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x414]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x101efba8
or eax, 0xffffffff
xchg dword [ecx], eax
add ebx, 4
cmp ebx, edx
jne 0x101efa00
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov eax, esi
xchg dword [ecx], eax
test eax, eax
je 0x101efbb7
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x101efb8c
call fcn.101c8260
int3
Function at 0x101efae1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101fff60
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp ebx, edx
je 0x101efb8a
mov edi, 0x5c
jmp 0x101efa00
mov eax, dword [ebx]
mov esi, dword [eax*4 + 0x1029c688]
lea ecx, [eax*4 + 0x1029c688]
mov dword [ebp - 0x414], ecx
test esi, esi
je 0x101efa28
cmp esi, 0xffffffff
jne 0x101efbb7
jmp 0x101efb7f
mov esi, dword [eax*4 + 0x10221228]
cmp byte [0x1029c680], 0
mov dword [ebp - 4], 0
je 0x101efa5d
push 0x800
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 0x414]
mov esi, eax
mov edx, dword [ebp + 0xc]
jmp 0x101efb6f
test esi, esi
je 0x101efb6d
cmp word [esi], 0
je 0x101efb6d
push 0x200
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x101efb64
cmp eax, 0x200
jae 0x101efb64
mov word [ebp + eax*2 - 0x410], di
inc eax
cmp eax, 0x200
jae 0x101efb64
movzx ecx, word [esi]
test cx, cx
je 0x101efad4
mov edx, ecx
mov word [ebp + eax*2 - 0x410], dx
inc eax
cmp eax, 0x200
jae 0x101efb64
movzx ecx, word [esi + 2]
add esi, 2
mov edx, ecx
test cx, cx
jne 0x101efab2
add eax, eax
cmp eax, 0x400
jae 0x101efbbb
mov edi, dword [0x102519c8]
xor ecx, ecx
mov word [ebp + eax - 0x410], cx
mov ecx, edi
xor edi, dword [0x1029c684]
and ecx, 0x1f
ror edi, cl
test edi, edi
je 0x101efb40
lea eax, [ebp - 0x418]
push eax
push 0
call edi
push 8
push 0
lea eax, [ebp - 0x410]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call eax
mov esi, eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x418]
call edi
mov ecx, dword [ebp - 0x414]
mov edi, 0x5c
mov edx, dword [ebp + 0xc]
jmp 0x101efb6f
push 8
push 0
lea eax, [ebp - 0x410]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call eax
mov ecx, dword [ebp - 0x414]
mov esi, eax
mov edx, dword [ebp + 0xc]
mov edi, 0x5c
jmp 0x101efb6f
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x414]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x101efba8
or eax, 0xffffffff
xchg dword [ecx], eax
add ebx, 4
cmp ebx, edx
jne 0x101efa00
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov eax, esi
xchg dword [ecx], eax
test eax, eax
je 0x101efbb7
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x101efb8c
call fcn.101c8260
int3
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x371e7a
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x3c13450e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x59c815d3
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x78049f3
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x1002c72a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1002c769
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002c769
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002c769
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1002c769
cmp dword [ecx + 0x74], 0xe
jbe 0x1002c769
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1002f0f4
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 0x1002f191
push ebx
push esi
call fcn.1002f0bd
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.1002f051
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002f13e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002f190
push edi
push eax
call fcn.1002d9f2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002f15e
call fcn.1002da40
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002f18f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002f051
add esp, 0x20
test eax, eax
jne 0x1002f17d
push edi
call fcn.1002da40
jmp 0x1002f185
push ebx
call fcn.1002da40
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 0x1002f3fe
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10037750
push 0x10037748
push str.FlsAlloc
push 0x1f
call fcn.1002f31a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002f432
push dword [ebp + 8]
mov ecx, esi
call dword [0x10035150]
call esi
jmp 0x1002f438
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002f47c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10037760
push 0x10037758
push str.FlsGetValue
push 0x21
call fcn.1002f31a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002f4b3
push dword [ebp + 8]
mov ecx, esi
call dword [0x10035150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002f4bb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10037768
push 0x10037760
push str.FlsSetValue
push 0x22
call fcn.1002f31a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002f4f5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10035150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10034a00
Capabilities:
Parse pe header

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

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x10001190
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x421c
call fcn.10007bc0
mov eax, dword [0x10020170]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov dword [ebp - 0x421c], eax
mov word [ebp - 0x20c], cx
call fcn.10007bf0
xor eax, eax
push 0x3ffe
push eax
lea ecx, [ebp - 0x420a]
push ecx
mov word [ebp - 0x420c], ax
call fcn.10007bf0
mov eax, esi
add esp, 0x18
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001200
sub eax, edx
sar eax, 1
cmp eax, 0xb
jne 0x10001384
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x1001b1a8
lea edx, [ebp - 0x20c]
push 0x1001b1f4
push edx
call esi
add esp, 0x10
lea eax, [ebp - 0x4210]
push eax
push 1
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 0x80000002
mov dword [ebp - 0x4218], 0x104
mov dword [ebp - 0x4214], 1
mov dword [ebp - 0x4210], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100012a8
mov eax, dword [ebp - 0x4210]
test eax, eax
je 0x100012a8
lea edx, [ebp - 0x4218]
push edx
push edi
lea ecx, [ebp - 0x4214]
push ecx
push 0
push 0x1001b200
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x4210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100012b0
sub eax, edx
sar eax, 1
je 0x10001384
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10007bf0
push ebx
push edi
lea ecx, [ebp - 0x20c]
push 0x1001b214
push ecx
call esi
add esp, 0x1c
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10001384
push edi
push edi
push 0x1001b220
lea eax, [ebp - 0x420c]
push 0x2000
push eax
call fcn.10007b9c
mov eax, dword [ebp - 0x421c]
add esp, 0x14
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001324
lea edi, [ebp - 0x420c]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10001340
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x420c]
push ecx
push str.Path
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007b8d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.10007b8d
mov esp, ebp
pop ebp
ret