joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409fde
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1420
call fcn.00410150
push ebx
push esi
xor ebx, ebx
push edi
xor ecx, ecx
xor edi, edi
xor esi, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
inc ecx
mov eax, dword [ebp + 8]
movzx eax, word [eax]
cmp ax, 0x21
jne 0x40a00d
mov edi, ecx
jmp 0x40a020
cmp ax, 0x5c
jne 0x40a017
mov esi, ecx
jmp 0x40a020
cmp ax, 0x40
jne 0x40a026
mov dword [ebp - 0xc], ecx
add dword [ebp + 8], 2
jmp 0x409ffd
push 0xffe
lea eax, [ebp - 0x141e]
push ebx
push eax
mov word [ebp - 0x1420], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
je 0x40a1ad
mov esi, 0x206
push esi
lea eax, [ebp - 0x216]
push ebx
push eax
mov word [ebp - 0x218], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp edi, ebx
je 0x40a154
push esi
lea eax, [ebp - 0x41e]
push ebx
push eax
mov word [ebp - 0x420], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp word [ebp - 0x218], bx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [ebp - 0x420]
lea esi, [ebp - 0x218]
je 0x40a0d5
movzx eax, word [ebp - 0x218]
mov word [edi], ax
inc edi
push esi
inc edi
call ebx
lea esi, [esi + eax*2 + 2]
movzx eax, word [esi]
test ax, ax
jne 0x40a0c1
lea eax, [ebp - 0x420]
push eax
call ebx
mov ebx, eax
test ebx, ebx
jle 0x40a1da
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edi, [ebp + ebx*2 - 0x422]
mov ax, word [edi]
and word [ebp - 0x141e], 0
mov word [ebp - 0x1420], ax
push 0x401ed8
lea eax, [ebp - 0x1420]
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x1420]
push eax
call esi
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1420]
push eax
call fcn.00409e6e
add dword [ebp - 4], eax
add esp, 0x10
cmp dword [ebp - 8], 0
jne 0x40a1da
dec ebx
dec edi
dec edi
test ebx, ebx
jg 0x40a0f5
jmp 0x40a1da
cmp word [ebp - 0x218], bx
lea esi, [ebp - 0x218]
je 0x40a1da
push dword [ebp + 8]
lea eax, [ebp - 0x1420]
push esi
push 0x401ae8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1420]
push eax
call fcn.00409e6e
add dword [ebp - 4], eax
add esp, 0x20
cmp dword [ebp - 8], ebx
jne 0x40a1da
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x40a163
jmp 0x40a1da
push dword [ebp + 8]
lea eax, [ebp - 0x1420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1420]
push eax
call fcn.00409e6e
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a1e2
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push esi
push edi
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
xor edi, edi
inc edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push dword [ebp + 8]
mov esi, eax
call fcn.00402570
cmp esi, 0xffffffff
pop ecx
je 0x40a271
test byte [ebp - 0x250], 0x10
jne 0x40a247
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x458]
push 0x401c64
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceW]
add edi, eax
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a210
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
leave
ret

Function at 0x40a27c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call sub.MSVCRT.dll_memset
mov edi, dword [ebp + 8]
add esp, 0xc
cmp word [edi], 0x5c
mov dword [ebp - 4], 2
jne 0x40a371
push 0x2c
push edi
mov dword [ebp + 8], ebx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
cmp esi, ebx
je 0x40a2e6
mov word [esi], bx
inc esi
inc esi
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [esi]
cmp ax, bx
je 0x40a2e6
movzx eax, ax
mov dword [ebp + 8], eax
lea eax, [ebp - 0x414]
push eax
inc edi
push 0x104
inc edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x414], bx
lea esi, [ebp - 0x414]
je 0x40a3b8
mov ax, word [ebp + 8]
cmp word [esi], ax
jb 0x40a35f
push edi
push esi
lea eax, [ebp - 0x20c]
push 0x401eec
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
push eax
call fcn.004025b7
add esp, 0x14
test eax, eax
je 0x40a35f
push 0x401ee0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040a1e2
pop ecx
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x40a30d
jmp 0x40a3b8
push edi
call fcn.004025b7
test eax, eax
pop ecx
je 0x40a388
push 0x401ee0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call fcn.00402570
push edi
call fcn.004025b7
test eax, eax
pop ecx
pop ecx
je 0x40a3b8
lea eax, [ebp - 0x20c]
push eax
call fcn.0040a1e2
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a663
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa08
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5c
jne 0x40a6e7
push esi
lea eax, [ebp - 0x208]
push eax
inc edi
push 0x104
inc edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x208], 0
lea esi, [ebp - 0x208]
je 0x40a6e6
push edi
push esi
lea eax, [ebp - 0xa08]
push 0x401ae8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xa08]
push eax
call fcn.0040258f
add esp, 0x14
test eax, eax
jne 0x40a6d5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x40a69b
jmp 0x40a6e6
lea eax, [ebp - 0xa08]
push eax
add edi, 0xfffffffe
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop esi
pop edi
leave
ret

Function at 0x40a734
Capabilities:
Log keystrokes via polling
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xa8
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp word [ebp + 0x74], si
push edi
je 0x40a766
movzx eax, word [ebp + 0x74]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x40a821
movzx esi, word [ebp + 0x74]
jmp 0x40a7a2
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 8
pop edi
movzx eax, di
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x40a78b
inc edi
cmp di, 0xff
jb 0x40a772
jmp 0x40a78e
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x7c], esi
jne 0x40a797
test ebx, ebx
je 0x40a766
test ebx, ebx
je 0x40a821
movzx esi, di
xor edi, edi
cmp si, di
je 0x40a821
push 0x9e
lea eax, [ebp - 0x3a]
push edi
push eax
mov word [ebp - 0x3c], di
call sub.MSVCRT.dll_memset
push dword [ebp + 0x78]
mov word [ebp + 0x64], di
xor eax, eax
lea edi, [ebp + 0x66]
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00403bda
add esp, 0x10
test eax, eax
lea eax, [ebp - 0x3c]
je 0x40a7df
push dword [ebp + 0x78]
jmp 0x40a7e4
push 0x401f24
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esi - 0x60]
cmp ax, 9
ja 0x40a7fa
add esi, 0xffd0
cmp si, 0x40
jbe 0x40a806
cmp si, 0x5b
jb 0x40a80f
lea eax, [esi - 0x30]
cmp ax, 9
ja 0x40a813
mov word [ebp + 0x64], si
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop edi
movzx eax, si
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x40a8a6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrW]
push edi
push 0x2c
push ebx
call esi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x40aac0
mov word [eax], di
inc eax
inc eax
push 0x21
push eax
mov dword [ebp - 8], eax
call esi
cmp eax, edi
mov dword [ebp - 4], eax
je 0x40a8e6
mov word [eax], di
inc eax
inc eax
mov dword [ebp - 4], eax
cmp word [ebx], 0x24
jne 0x40a9cf
inc ebx
push 0x3d
inc ebx
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x40a917
push 0x3e
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x40a917
push 0x3c
push ebx
call esi
mov edi, eax
test edi, edi
je 0x40aac0
movzx esi, word [edi]
and word [edi], 0
push ebx
call fcn.0040a82c
add edi, 2
push edi
mov ebx, eax
call fcn.0040a82c
cmp byte [ebp + 0xc], 0
pop ecx
pop ecx
mov edi, eax
je 0x40a990
push ebx
call fcn.00403e71
fstp qword [ebp - 0x10]
push edi
call fcn.00403e71
cmp si, 0x3d
pop ecx
pop ecx
jne 0x40a963
fcomp qword [ebp - 0x10]
fnstsw ax
test ah, 0x44
jnp 0x40aab9
jmp 0x40aac0
cmp si, 0x3e
jne 0x40a973
fcomp qword [ebp - 0x10]
fnstsw ax
test ah, 5
jmp 0x40a958
cmp si, 0x3c
jne 0x40aabe
fcomp qword [ebp - 0x10]
fnstsw ax
test ah, 0x41
je 0x40aab9
jmp 0x40aac0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp si, 0x3e
jne 0x40a9aa
xor ecx, ecx
test eax, eax
setg cl
jmp 0x40aa9b
cmp si, 0x3c
jne 0x40a9bc
xor ecx, ecx
test eax, eax
setl cl
jmp 0x40aa9b
cmp si, 0x3d
jne 0x40aac0
xor ecx, ecx
test eax, eax
jmp 0x40aa98
push 4
push ebx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
movzx eax, word [ebx + 6]
cmp ax, 0x3e
je 0x40aa22
cmp ax, 0x3c
je 0x40aa22
cmp ax, 0x3d
je 0x40aa22
cmp byte [ebp + 0xc], 0
push ebx
je 0x40aa13
call fcn.0040258f
test eax, eax
pop ecx
jne 0x40aab9
push ebx
call fcn.004025b7
pop ecx
jmp 0x40aab5
call fcn.004040a9
pop ecx
xor ecx, ecx
cmp ecx, eax
jmp 0x40aab1
lea eax, [ebx + 8]
push eax
call fcn.00402463
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, eax
lea eax, [ebp - 0x10]
mov dword [esp], 0x401f40
push eax
call esi
test eax, eax
jne 0x40aa57
cmp byte [ebp + 0xc], al
je 0x40aa50
call fcn.00403d6e
jmp 0x40aa8a
call fcn.00403d78
jmp 0x40aa8a
push 0x401f38
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
jne 0x40aa73
push eax
push eax
push edi
call fcn.0040a734
add esp, 0xc
jmp 0x40aa8a
cmp byte [ebp + 0xc], 0
lea eax, [ebp - 0x10]
push eax
je 0x40aa84
call fcn.00402c11
jmp 0x40aa89
call fcn.00402c22
pop ecx
movzx ecx, word [ebx + 6]
cmp cx, 0x3d
jne 0x40aa9f
xor ecx, ecx
cmp eax, edi
sete cl
mov eax, ecx
jmp 0x40aab5
cmp cx, 0x3e
jne 0x40aaa9
cmp edi, eax
jmp 0x40aab1
cmp cx, 0x3c
jne 0x40aac0
cmp eax, edi
sbb eax, eax
neg eax
test eax, eax
je 0x40aac0
push dword [ebp - 8]
jmp 0x40aac3
fstp st(0)
push dword [ebp - 4]
call fcn.0040faa6
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40aaea
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, eax
call esi
sub eax, ebx
cmp eax, dword [esp + 0xc]
jae 0x40ab3a
push edi
push 1
push dword [esp + 0x18]
push 0
call fcn.0040a734
add esp, 0xc
mov edi, eax
nop
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [0x4122e0]
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
cmp dword [esp + 0x18], 0
je 0x40ab2f
test edi, edi
jne 0x40ab39
call esi
sub eax, ebx
cmp eax, dword [esp + 0x10]
jb 0x40ab01
pop edi
pop esi
pop ebx
ret

Function at 0x40aeb6
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa0]
push 0x4017b4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
push 0x401f48
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
leave
ret

Function at 0x40aeef
Capabilities:
Set current directory

Disassembly:
mov eax, dword [esp + 4]
movzx ecx, word [eax]
test cx, cx
je 0x40af20
cmp cx, 0x40
jne 0x40af07
add eax, 2
push eax
jmp 0x40af25
cmp cx, 0x23
jne 0x40af18
add eax, 2
push eax
call fcn.004067f2
pop ecx
ret
push eax
call fcn.0040667c
pop ecx
ret
push 0x4122e8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
inc eax
ret
Function at 0x40b026
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrW]
push pe_nt_image_headers32
push dword [ebp + 8]
call esi
test eax, eax
mov dword [ebp - 8], eax
je 0x40b18c
and word [eax], 0
push ebx
push edi
push 2
pop ebx
add dword [ebp - 8], ebx
push 0x23
push dword [ebp - 8]
call esi
mov edi, eax
test edi, edi
je 0x40b18a
and word [edi], 0
and dword [ebp - 0x10], 0
push 0x2a
add edi, ebx
push edi
call esi
test eax, eax
je 0x40b085
add eax, ebx
push eax
call fcn.00402463
pop ecx
mov dword [ebp - 0x10], eax
push ebx
push 0x401f70
push edi
mov dword [ebp - 0xc], 6
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
mov dword [ebp - 4], eax
je 0x40b0c8
push 0x24
push edi
call esi
mov esi, eax
test esi, esi
je 0x40b0c8
add esi, ebx
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
test esi, esi
je 0x40b0c3
cmp word [esi], 0x4e
jne 0x40b0c3
xor eax, eax
inc eax
jmp 0x40b0c5
xor eax, eax
add dword [ebp - 0xc], eax
push dword [ebp + 8]
call fcn.00403c15
cmp dword [ebp - 0x10], 0
pop ecx
mov ebx, eax
je 0x40b0f0
lea eax, [ebp - 0x10]
push eax
push 0x40af31
call fcn.00402620
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x40b171
and word [ebp - 0x30], 0
mov esi, 0x401f64
lea edi, [ebp - 0x50]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x2e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
cmp dword [ebp - 0xc], 6
setne al
shl eax, 8
or eax, 0x24
push eax
push dword [ebp - 8]
push ebx
push dword [0x4122d4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x40b153
push 4
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
jmp 0x40b161
lea eax, [ebp - 0x4a]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x40b183
push pe_nt_image_headers32
push dword [ebp - 8]
push ebx
push dword [0x4122d4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 4], 1
pop edi
pop ebx
xor eax, eax
cmp dword [ebp - 4], eax
pop esi
sete al
leave
ret
Function at 0x40b2e1
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x328
push ebx
push esi
push edi
push dword [ebp + 0x7c]
lea eax, [ebp - 0xac]
push eax
call fcn.00403c42
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x38]
xor ebx, ebx
cmp word [esi], 0x2a
push 0x206
sete bl
xor edi, edi
lea eax, [ebp - 0x2b2]
push edi
push eax
mov word [ebp - 0x2b4], di
call sub.MSVCRT.dll_memset
add esp, 0x14
cmp ebx, edi
je 0x40b35b
inc esi
inc esi
push esi
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 0x3c]
lea eax, [ebp - 0x2b4]
push edi
push eax
call fcn.0040b1ba
add esp, 0xc
jmp 0x40b3bd
xor ebx, ebx
cmp word [esi], 0x26
sete bl
cmp ebx, edi
je 0x40b36a
inc esi
inc esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x2b4]
push eax
call esi
push 0x9e
lea eax, [ebp - 0x6a]
push edi
push eax
mov word [ebp - 0x6c], di
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 0x40], edi
je 0x40b3a0
push dword [ebp + 0x40]
lea eax, [ebp - 0x6c]
push eax
call esi
jmp 0x40b3a6
mov word [ebp - 0x6c], 0x2a
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0x3c]
lea eax, [ebp - 0x2b4]
push eax
call fcn.0040b21d
add esp, 0x10
cmp dword [ebp + 0x34], edi
pop edi
pop esi
pop ebx
je 0x40b3cf
push eax
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor eax, eax
add ebp, 0x74
leave
ret
Function at 0x40bb17
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xb4
mov eax, dword [ebp + 0x7c]
xor ecx, ecx
cmp word [eax], 0x23
push ebx
sete cl
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrW]
push edi
push 0x3d
mov dword [ebp + 0x70], ecx
movzx ecx, cl
lea edi, [eax + ecx*2]
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x40bcbf
and word [ebx], 0
inc ebx
push edi
inc ebx
call fcn.00403bbc
pop ecx
mov dword [ebp + 0x7c], eax
lea eax, [ebx + 2]
push 0x2b
push eax
call esi
mov edi, eax
test edi, edi
jne 0x40bb9b
push 0x2d
lea eax, [ebx + 2]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x40bb9b
push 0x2a
lea eax, [ebx + 2]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x40bb9b
push 0x2f
lea eax, [ebx + 2]
push eax
call esi
mov edi, eax
test edi, edi
je 0x40bcbf
movzx esi, word [edi]
and word [edi], 0
push ebx
call fcn.00403bbc
add edi, 2
push edi
mov ebx, eax
call fcn.00403bbc
pop ecx
xor edi, edi
cmp dword [ebp + 0x70], edi
pop ecx
mov dword [ebp + 0x68], eax
push ebx
je 0x40bc46
call fcn.00402463
push dword [ebp + 0x68]
mov edi, eax
call fcn.00402463
pop ecx
xor ebx, ebx
cmp si, 0x2b
pop ecx
mov ecx, eax
jne 0x40bbe4
lea ebx, [ecx + edi]
jmp 0x40bc0a
cmp si, 0x2d
jne 0x40bbf0
sub edi, ecx
mov ebx, edi
jmp 0x40bc0a
cmp si, 0x2a
jne 0x40bbfd
imul ecx, edi
mov ebx, ecx
jmp 0x40bc0a
cmp si, 0x2f
jne 0x40bc0a
mov eax, edi
cdq
idiv ecx
mov ebx, eax
and word [ebp - 0x40], 0
push 0x9e
lea eax, [ebp - 0x3e]
push 0
push eax
call sub.MSVCRT.dll_memset
push ebx
lea eax, [ebp - 0x40]
push 0x4017b4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x40bcc2
call fcn.00403e71
fstp qword [ebp + 0x60]
push dword [ebp + 0x68]
call fcn.00403e71
fldz
cmp si, 0x2b
fstp qword [ebp + 0x6c]
pop ecx
pop ecx
jne 0x40bc68
fadd qword [ebp + 0x60]
jmp 0x40bc7c
cmp si, 0x2d
jne 0x40bc73
fsubr qword [ebp + 0x60]
jmp 0x40bc7c
cmp si, 0x2a
jne 0x40bc81
fmul qword [ebp + 0x60]
fstp qword [ebp + 0x6c]
jmp 0x40bc8e
cmp si, 0x2f
jne 0x40bc8c
fdivr qword [ebp + 0x60]
jmp 0x40bc7c
fstp st(0)
push 0x9e
lea eax, [ebp - 0x3e]
push edi
push eax
mov word [ebp - 0x40], di
call sub.MSVCRT.dll_memset
fld qword [ebp + 0x6c]
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
push 4
push ecx
push ecx
fstp qword [esp]
call fcn.00403ea4
add esp, 0x10
jmp 0x40bc32
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x40bcca
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push dword [ebp + 8]
call fcn.00403bda
add esp, 4
test eax, eax
je 0x40bddb
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x3d
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x40bddb
push edi
mov word [esi], bx
push 0x5c
inc esi
push ebx
inc esi
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x40bd26
mov word [eax], bx
jmp 0x40bd3a
push esi
call edi
cmp eax, 1
jbe 0x40bd3a
cmp word [esi + 2], 0x3a
je 0x40bd3a
mov esi, 0x40195c
push esi
call fcn.00403bbc
mov esi, eax
mov dword [esp], 0x40e
lea eax, [ebp - 0x40e]
push ebx
push eax
mov word [ebp - 0x410], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
push esi
call edi
cmp eax, 1
jbe 0x40bd6f
cmp word [esi + 2], 0x3a
jne 0x40bd77
push esi
call edi
cmp eax, 2
jae 0x40bda8
push esi
call fcn.00403bda
add esp, 4
test eax, eax
lea eax, [ebp - 0x410]
je 0x40bda1
push esi
push 0x4122e8
push 0x401c64
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x40bdb6
push 0x4122e8
jmp 0x40bdaf
push esi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x410]
push eax
call fcn.00403bef
pop ecx
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
pop edi
jmp 0x40bdde
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret

Function at 0x40bde2
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x2b8
push esi
lea eax, [ebp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
and word [ebp - 0x3c], 0
push 0x9e
lea eax, [ebp - 0x3a]
push 0
push eax
call sub.MSVCRT.dll_memset
movzx eax, word [ebp + 0x70]
push eax
movzx eax, word [ebp + 0x6e]
push eax
movzx eax, word [ebp + 0x6c]
push eax
movzx eax, word [ebp + 0x68]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
movzx eax, word [ebp + 0x6a]
push eax
movzx eax, word [ebp + 0x66]
push eax
movzx eax, word [ebp + 0x64]
push eax
lea eax, [ebp - 0x3c]
push 0x402080
push eax
call esi
and word [ebp - 0x244], 0
push 0x206
lea eax, [ebp - 0x242]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x3c
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
lea eax, [ebp - 0x244]
je 0x40be7e
push dword [ebp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x40be88
push 0x402070
push eax
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
pop esi
add ebp, 0x74
leave
ret
Function at 0x40bea4
Capabilities:
Get disk information
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x4b0
push ebx
push dword [ebp + 0x7c]
call fcn.00403bda
add esp, 4
test eax, eax
je 0x40bfea
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x3d
push dword [ebp + 0x7c]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
xor ebx, ebx
cmp eax, ebx
je 0x40bfea
push esi
mov word [eax], bx
add eax, 2
push edi
push eax
call fcn.00403bbc
mov esi, eax
push esi
call fcn.00403bda
add esp, 8
test eax, eax
je 0x40bf55
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jbe 0x40bf27
cmp word [esi + 2], 0x3a
jne 0x40bf27
push esi
call edi
cmp eax, 2
jbe 0x40bfd7
mov word [esi + 4], bx
jmp 0x40bfd7
push 0x9e
lea eax, [ebp - 0x2a]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov ax, word [0x4122e8]
mov word [ebp - 0x2c], ax
mov ax, word [0x4122ea]
add esp, 0xc
mov word [ebp - 0x2a], ax
lea esi, [ebp - 0x2c]
jmp 0x40bfd7
push 0x206
lea eax, [ebp - 0x232]
push ebx
push eax
mov word [ebp - 0x234], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x43c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x43c], bx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebp - 0x43c]
je 0x40bfbc
push esi
call edi
mov word [esi + eax*2 - 2], 0x7c
push esi
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call edi
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x40bf98
lea eax, [ebp - 0x234]
push eax
call edi
cmp eax, ebx
jbe 0x40bfd1
mov word [ebp + eax*2 - 0x236], bx
lea esi, [ebp - 0x234]
push esi
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
jmp 0x40bfed
xor eax, eax
inc eax
pop ebx
add ebp, 0x74
leave
ret

Function at 0x40bff3
Capabilities:
Set environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebx
call fcn.00403bda
add esp, 4
test eax, eax
je 0x40c065
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x3d
push ebx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x40c065
and word [eax], 0
add eax, 2
push esi
push eax
call fcn.00403bbc
mov esi, dword [sym.imp.SHLWAPI.dll_StrRChrW]
pop ecx
push 0x5c
push 0
push eax
call esi
test eax, eax
je 0x40c048
and word [eax], 0
add eax, 2
push eax
call fcn.00403bbc
pop ecx
push 0x2e
push 0
push eax
call esi
test eax, eax
pop esi
je 0x40c056
inc eax
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
pop ebx
ret
xor eax, eax
inc eax
pop ebx
ret