joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10023a2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push 2
xor esi, esi
pop ebx
cmp dword [0x1007d50], ebx
mov dword [ebp - 4], esi
jne 0x10024af
push edi
lea eax, [ebp - 8]
push eax
xor edi, edi
inc edi
push edi
push esi
push 0x10013c0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10024ae
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0x10013a8
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10024a5
cmp dword [ebp - 0x14], edi
jne 0x10024a5
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x1001394
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
jne 0x1002436
mov dword [ebp - 4], ebx
jmp 0x10024a5
push 0x1001380
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
jne 0x10024a5
push 0x100136c
mov dword [ebp - 4], edi
call fcn.01002312
mov edi, eax
test edi, edi
je 0x10024a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001358
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x100249e
push 0x1001344
push edi
call esi
mov esi, eax
test esi, esi
je 0x100249e
lea eax, [ebp - 0x10]
push eax
push 0x65
push 0
call ebx
test eax, eax
jne 0x100249e
mov eax, dword [ebp - 0x10]
test byte [eax + 0x10], 0x10
je 0x100249b
mov dword [ebp - 4], 3
push eax
call esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x1002591
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
cmp dword [0x10074a8], esi
jne 0x1002613
cmp dword [0x10074bc], esi
je 0x1002605
cmp dword [0x10074a4], esi
jne 0x1002605
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x10]
push eax
push 0x1001420
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x1002613
push 0x80020004
push 2
push esi
push esi
call sub.SHELL32.dll_RestartDialogEx
pop esi
leave
ret
Function at 0x10026dc
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push 8
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x100273e
call esi
cmp eax, 0x3f0
jne 0x1002737
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100273e
xor eax, eax
jmp 0x10027e9
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
call edi
test eax, eax
je 0x100275d
xor eax, eax
jmp 0x10027e8
call esi
cmp eax, 0x7a
jne 0x1002756
push dword [ebp - 4]
call fcn.01003b24
mov esi, eax
cmp esi, ebx
pop ecx
je 0x1002756
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
je 0x10027df
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10027df
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x10], ebx
jbe 0x10027d3
lea ebx, [esi + 4]
push dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10027cc
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x10027b3
jmp 0x10027d3
mov dword [ebp - 0x10], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ebx, dword [ebp - 0x10]
push esi
call fcn.01003a7a
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003efa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x1007030]
je 0x1003f1a
inc eax
cmp eax, 0x12
jb 0x1003f0b
shl eax, 3
cmp edx, dword [eax + 0x1007030]
mov dword [ebp + 8], eax
jne 0x10040b8
mov ecx, dword [0x10071bc]
cmp ecx, 1
je 0x100408d
test ecx, ecx
jne 0x1003f4c
cmp dword [0x100702c], 1
je 0x100408d
cmp edx, 0xfc
je 0x10040b8
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1003f87
push 5
pop ecx
mov esi, 0x10018bc
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003f96
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1003fce
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003fae
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x10018b8
push ebx
call fcn.01005490
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003fd3
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1007034]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1003fea
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.010039f0
mov edx, esp
push 6
pop ecx
mov esi, 0x100189c
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004016
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1004022
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100403b
mov eax, dword [ebp + 8]
mov esi, 0x1001898
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1007034]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004056
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1004062
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001870
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0100538b
add esp, 0xc
jmp 0x10040b8
mov ecx, dword [eax + 0x1007034]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1004098
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004536
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x1007424]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor ebp, ebp
cmp eax, ebx
push 2
mov dword [esp + 0x14], ebx
pop edi
jne 0x1004583
call esi
mov ebp, eax
cmp ebp, ebx
je 0x100456a
mov dword [0x1007424], 1
jmp 0x1004588
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100457e
mov eax, edi
mov dword [0x1007424], eax
jmp 0x1004583
mov eax, dword [0x1007424]
cmp eax, 1
jne 0x10045e8
cmp ebp, ebx
jne 0x100459b
call esi
mov ebp, eax
cmp ebp, ebx
jne 0x100459b
xor eax, eax
jmp 0x10046a4
cmp word [ebp], bx
mov eax, ebp
je 0x10045b1
add eax, edi
cmp word [eax], bx
jne 0x10045a3
add eax, edi
cmp word [eax], bx
jne 0x10045a3
sub eax, ebp
add eax, edi
mov esi, eax
push esi
call fcn.01003b24
cmp eax, ebx
pop ecx
jne 0x10045d0
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x10046a4
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, ebp
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, eax
jmp 0x10045c2
cmp eax, edi
je 0x10045f0
cmp eax, ebx
jne 0x1004594
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x1004594
cmp byte [ebp], bl
mov esi, ebp
je 0x1004633
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x1004594
add dword [esp + 0x10], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1004622
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x1004603
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
add eax, eax
push eax
call fcn.01003b24
cmp eax, ebx
pop ecx
mov dword [esp + 0x14], eax
je 0x10046b5
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x1004696
mov ecx, dword [esp + 0x10]
mov eax, esi
sub eax, dword [esp + 0x14]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x10046ab
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x100467a
sub eax, ecx
push esi
lea edi, [edi + eax + 1]
call fcn.01005375
cmp byte [edi], bl
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x1004655
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x14]
call fcn.01003a7a
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x1004594
Function at 0x10046c1
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x1007428]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x1004701
call esi
test eax, eax
je 0x10046e6
mov dword [0x1007428], 1
jmp 0x1004706
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10046fd
mov dword [0x1007428], 2
jmp 0x100470f
xor eax, eax
jmp 0x100475d
cmp eax, 1
jne 0x100470a
call esi
jmp 0x100475d
cmp eax, 2
jne 0x10046fd
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x1004759
lea eax, [esi + esi]
push eax
call fcn.01003b24
mov ebp, eax
test ebp, ebp
pop ecx
je 0x1004759
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
je 0x1004752
mov eax, ebp
jmp 0x100475b
push ebp
call fcn.01003a7a
pop ecx
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x100538b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1007454], ebx
push esi
push edi
jne 0x100540b
push 0x1001938
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1005446
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100192c
push edi
call esi
test eax, eax
mov dword [0x1007454], eax
je 0x1005446
push 0x100191c
push edi
call esi
push 0x1001908
push edi
mov dword [0x1007458], eax
call esi
cmp dword [0x10071cc], 2
mov dword [0x100745c], eax
jne 0x100540b
push 0x10018ec
push edi
call esi
test eax, eax
mov dword [0x1007464], eax
je 0x100540b
push 0x10018d4
push edi
call esi
mov dword [0x1007460], eax
mov eax, dword [0x1007460]
test eax, eax
je 0x1005450
call eax
test eax, eax
je 0x1005437
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1007464]
test eax, eax
je 0x1005437
test byte [ebp - 8], 1
jne 0x1005450
cmp dword [0x10071d8], 4
jb 0x100544a
or byte [ebp + 0x12], 0x20
jmp 0x100546f
xor eax, eax
jmp 0x100547f
or byte [ebp + 0x12], 4
jmp 0x100546f
mov eax, dword [0x1007458]
test eax, eax
je 0x100546f
call eax
mov ebx, eax
test ebx, ebx
je 0x100546f
mov eax, dword [0x100745c]
test eax, eax
je 0x100546f
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1007454]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005c68
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.010039f0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005cfd
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x10071cc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x1005cfd
cmp eax, 1
je 0x1005d15
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005cfd
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x1005cd2
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x1005cf9
xor eax, eax
inc eax
jmp 0x1005d31
cmp esi, ebx
jae 0x1005d01
xor eax, eax
jmp 0x1005d31
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10071cc]
jmp 0x1005d17
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x101fc6c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
pop eax
imul eax, eax, 0xf
jmp 0x101fd7c
sbb eax, dword [esp + 4]
jne 0x101fc77
lea esi, [ebx]
lea edi, [ebx]
add edi, dword [edx + 0x1c]
jmp 0x101fcd3
movzx eax, word [esi]
pop esi
add esi, dword [edi + eax*4]
ret 4
mov esi, ebx
mov eax, ebx
add eax, dword [ebx + 0x3c]
add edx, dword [eax + 0x78]
push 0xffffffffffffffff
jmp 0x101fc73
mov edx, ebx
jmp 0x101b19d
add esi, dword [edx + 0x20]
pop ecx
lodsd eax, dword [esi]
jmp 0x101fca3
cmp byte [edi], 1
pop eax
ja 0x101b003
xor eax, 0xaea72f6a
jmp 0x101b0f0
inc ecx
cmp ecx, dword [edx + 0x18]
lea edi, [eax + ebx]
je 0x101fce8
jmp 0x101b000
add esi, dword [edx + 0x24]
lea esi, [esi + ecx*2]
push ebx
jmp 0x101b181
ret
push eax
movzx eax, byte [edi]
lea edi, [edi + 1]
sub dword [esp], eax
jmp 0x101fc8f
Function at 0x409480
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4094c5
xor al, al
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040a4c8
add esp, 0x20c
ret
cmp word [esi], 0
mov ecx, dword [esp + 0x214]
je 0x4094dc
add esi, 2
dec ecx
cmp word [esi], 0
jne 0x4094d2
cmp word [esp + 4], 0
je 0x409507
lea edx, [esp + 4]
sub edx, esi
nop word [eax + eax]
cmp ecx, 1
jb 0x409524
mov ax, word [edx + esi]
dec ecx
mov word [esi], ax
add esi, 2
cmp word [edx + esi], 0
jne 0x4094f0
mov ecx, dword [esp + 0x20c]
xor eax, eax
mov word [esi], ax
mov al, 1
pop esi
xor ecx, esp
call fcn.0040a4c8
add esp, 0x20c
ret
call fcn.0040d661
int3
Function at 0x409b90
Capabilities:
Create directory

Disassembly:
mov eax, 0x200c
call fcn.0041d150
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2004], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [0x428484]
mov ebp, ecx
test edi, edi
jne 0x409bf7
push 0x1000
mov edx, str.HOME
lea ecx, [esp + 0x14]
call fcn.00409530
add esp, 4
test al, al
je 0x409cd4
lea eax, [esp + 0x10]
push eax
call fcn.004113c9
mov edi, dword [0x428484]
add esp, 4
mov dword [edi*4 + 0x42d4b0], eax
inc edi
mov dword [0x428484], edi
xor esi, esi
test edi, edi
jle 0x409c44
nop dword [eax]
mov eax, dword [esi*4 + 0x42d4b0]
mov ecx, ebp
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x409c36
test dx, dx
je 0x409c32
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x409c36
add ecx, 4
add eax, 4
test dx, dx
jne 0x409c10
xor eax, eax
jmp 0x409c3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x409c6b
inc esi
cmp esi, edi
jl 0x409c00
mov ecx, ebp
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409c50
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jne 0x409c6f
cmp word [ebp + 2], 0x3a
jne 0x409c6f
mov al, 1
jmp 0x409cbb
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x409c90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409cb9
mov bl, 1
cmp dword [0x428484], 0x400
jge 0x409cb9
push ebp
call fcn.004113c9
mov ecx, dword [0x428484]
add esp, 4
mov dword [ecx*4 + 0x42d4b0], eax
inc ecx
mov dword [0x428484], ecx
mov al, bl
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a4c8
add esp, 0x200c
ret
mov ecx, str.HOME
call fcn.00409a90
int3

Function at 0x409de0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
mov eax, dword [0x428488]
sub esp, 0x20
test eax, eax
je 0x409e16
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x409e0a
push 0
push dword [0x428488]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x428488]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x428ca4], 0
je 0x409eeb
push ebx
push ebp
push esi
mov eax, 0x414
mov dword [esp + 0xc], 0
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x42acb0
mov dword [esp + 0x20], 0x423c90
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0x423c90
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x42acb0
call ebp
cmp eax, 0xffffffff
je 0x409ee7
test al, 0x10
je 0x409ee7
push 0x64
call ebx
mov eax, 0x414
mov dword [esp + 0x10], 0
mov word [esp + 0x20], ax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x42acb0
mov dword [esp + 0x20], 0x423c90
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0x423c90
call edi
inc esi
cmp esi, 0x14
jl 0x409e84
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x40acc7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ad06
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ad06
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ad06
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ad06
cmp dword [ecx + 0x74], 0xe
jbe 0x40ad06
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4129e3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41fad4
push 0x41facc
push str.FlsAlloc
push 0x1f
call fcn.004128c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412a17
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e150]
call esi
jmp 0x412a1d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412a61
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41fae4
push 0x41fadc
push str.FlsGetValue
push 0x21
call fcn.004128c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412a98
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x412aa0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41faec
push 0x41fae4
push str.FlsSetValue
push 0x22
call fcn.004128c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412ada
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41e150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4149a0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4149eb
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00414b3b
test al, al
jne 0x4149e5
sub edx, 2
cmp edx, edi
jne 0x4149cb
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x414a0d
lea eax, [edi + 2]
cmp edx, eax
je 0x414a0d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004148ec
add esp, 0x10
jmp 0x414b07
push esi
lea ecx, [ebp - 0x255]
call fcn.00414b3b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414a50
push dword [ebp - 0x25c]
jmp 0x4149fd
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x414a8d
cmp word [ebp - 0x226], 0
je 0x414aae
cmp word [ebp - 0x226], ax
jne 0x414a8d
cmp word [ebp - 0x224], 0
je 0x414aae
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004148ec
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x414afa
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x414a67
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x414ae2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x414b07
push 0x41471c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00419a80
add esp, 0x10
jmp 0x414ad7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a4c8
leave
ret

Function at 0x415581
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x415592
pop esi
ret
push ebx
push edi
push esi
call fcn.0041554a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004134b4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4155ba
push ebx
push esi
push edi
call fcn.0040be50
add esp, 0xc
push 0
call fcn.0041276e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41598a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004155cf
Function at 0x41cd40
Capabilities:
Parse pe header

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