joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406d00
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.0040aac0
mov eax, dword [0x432014]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push 0
push eax
push 0
call fcn.00407ce0
add esp, 0xc
lea ecx, [esp]
push 0x2000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x406d90
push 0x2000
lea eax, [esp + 0x2004]
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea eax, [esp + 4]
push eax
push 0
call fcn.00407d80
add esp, 0xc
test eax, eax
je 0x406d90
cmp byte [eax], 0
je 0x406d90
push eax
call fcn.00414e41
add esp, 4
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040aaa7
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4000]
xor eax, eax
xor ecx, esp
call fcn.0040aaa7
add esp, 0x4004
ret

Function at 0x4070e0
Capabilities:
Set environment variable

Disassembly:
push esi
push edi
push 0
push dword [esp + 0x10]
push 0
call fcn.00407ce0
add esp, 0xc
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
mov esi, eax
call fcn.004100c5
add esp, 4
mov eax, esi
pop edi
pop esi
ret
Function at 0x407110
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x2068
call fcn.0040aac0
mov eax, dword [0x432014]
xor eax, esp
mov dword [esp + 0x2064], eax
mov eax, dword [esp + 0x206c]
push 0x1000
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 8], 0
push eax
call fcn.00407ce0
add esp, 0xc
push 1
push 0x406610
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea eax, [esp + 0x20]
mov dword [esp + 4], 0xc
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov dword [esp + 0x24], 0
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x50], 0x101
mov word [esp + 0x54], ax
call fcn.00410348
push eax
call fcn.00414e95
push eax
call fcn.00412e1b
xor ecx, ecx
cmp eax, 0xffffffff
push 1
cmove eax, ecx
mov dword [esp + 0x68], eax
call fcn.00410348
push eax
call fcn.00414e95
push eax
call fcn.00412e1b
xor ecx, ecx
cmp eax, 0xffffffff
push 2
cmove eax, ecx
mov dword [esp + 0x78], eax
call fcn.00410348
push eax
call fcn.00414e95
push eax
call fcn.00412e1b
add esp, 0x24
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
mov dword [esp + 0x60], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
push ecx
push 1
push ecx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407264
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp]
mov ecx, dword [esp + 0x2064]
xor ecx, esp
call fcn.0040aaa7
add esp, 0x2068
ret
push str.Error_creating_child_process__n
push 0x426748
call fcn.00401ea0
mov ecx, dword [esp + 0x206c]
add esp, 8
xor ecx, esp
or eax, 0xffffffff
call fcn.0040aaa7
add esp, 0x2068
ret
Function at 0x4072d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
xorps xmm0, xmm0
push 0x2000
movlpd qword [esp + 0x1c], xmm0
call fcn.004100e0
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
je 0x40743a
mov ebx, dword [esp + 0x2c]
push 2
push 0
push 0
push ebx
call fcn.0040d0e5
add esp, 0x10
test eax, eax
js 0x40743a
push ebx
call fcn.004138dd
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x34]
test edx, edx
jb 0x40743a
ja 0x407356
cmp edi, eax
jb 0x40743a
test edx, edx
jne 0x407356
cmp edi, 0x2000
jae 0x407356
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
jmp 0x407363
mov ebp, edi
mov ebx, edx
add ebp, 0xffffe000
adc ebx, 0xffffffff
sub edi, ebp
mov dword [esp + 0x10], ebx
cmp edi, eax
jb 0x40743a
push 0
push ebx
push ebp
push dword [esp + 0x38]
call fcn.0040d0e5
add esp, 0x10
test eax, eax
js 0x40743a
push dword [esp + 0x2c]
push edi
push 1
push esi
call fcn.0040ccee
add esp, 0x10
cmp eax, edi
jne 0x40743a
mov eax, dword [esp + 0x34]
sub edi, eax
add edi, 1
je 0x407419
lea ebx, [esi - 1]
add ebx, edi
mov esi, dword [esp + 0x30]
mov edx, ebx
sub eax, 4
jb 0x4073d1
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x4073da
add edx, 4
add esi, 4
sub eax, 4
jae 0x4073c0
cmp eax, 0xfffffffc
je 0x40745a
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x407407
cmp eax, 0xfffffffd
je 0x40745a
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x407407
cmp eax, 0xfffffffe
je 0x40745a
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x407407
cmp eax, 0xffffffff
je 0x40745a
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x40745a
mov eax, dword [esp + 0x34]
dec ebx
sub edi, 1
jne 0x4073b1
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, eax
mov edx, 0
add edi, ebp
adc edx, ebx
add edi, 0xffffffff
adc edx, 0xffffffff
test ebx, ebx
jne 0x407337
test ebp, ebp
jne 0x407337
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
push dword [esp + 0x14]
call fcn.004100c5
add esp, 4
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
xor esi, esi
add edi, ebp
adc esi, dword [esp + 0x10]
add edi, 0xffffffff
adc esi, 0xffffffff
jmp 0x407442

Function at 0x407910
Capabilities:
Hide graphical window

Disassembly:
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov esi, eax
test esi, esi
je 0x407947
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x407946
cmp edi, dword [esp + 8]
jne 0x407946
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ecx
ret
Function at 0x407b60
Capabilities:
Create directory

Disassembly:
mov eax, dword [0x433bc8]
sub esp, 0xc
test eax, eax
jne 0x407b80
push str.Security_descriptor_is_not_initialized__n
call fcn.00401e70
add esp, 4
or eax, 0xffffffff
add esp, 0xc
ret
mov dword [esp + 4], eax
lea eax, [esp]
push eax
push dword [esp + 0x14]
mov dword [esp + 8], 0xc
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
dec eax
add esp, 0xc
ret
Function at 0x416002
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00415e78

Function at 0x41a98b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a4de
Function at 0x1000980f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x1000981e
pop dword [ebp - 0x48]
mov eax, 0x8793e0df
add eax, 0x886cb73f
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xafe80d8b
sub dword [ebp - 0x58], 0x6195c840
mov dword [ebp - 0x54], 0xd22c99f8
add dword [ebp - 0x54], 0x6006b24d
mov dword [ebp - 0x50], 0x6154a8be
add dword [ebp - 0x50], 0xeaf79b70
mov dword [ebp - 0x4c], 0x9598bf05
add dword [ebp - 0x4c], 0x6a6740fb
lea eax, [ebp - 0x58]
push eax
mov eax, 0x681172b6
sub eax, 0x581161ae
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xc9768501
add dword [ebp - 0x58], 0xaafbe455
mov dword [ebp - 0x54], 0xc229da61
sub dword [ebp - 0x54], 0x80bd78ec
mov dword [ebp - 0x50], 0x1b29894d
add dword [ebp - 0x50], 0x4845e31f
mov dword [ebp - 0x4c], 0x76a6abcb
add dword [ebp - 0x4c], 0x89595435
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3b38a
push 0
call eax
mov ecx, 0x3842
mov esi, eax
mov edx, 0x304ef09b
sub edx, 0x204c1a9b
add edx, dword [ebp - 0x48]
mov ebx, 0x242fb3f6
sub ebx, 0xd94ed63c
add dword [ebp - 0x1c], eax
mov edi, dword [edx]
xor dword [ebp - 0xc], eax
add edi, ebx
sub dword [ebp - 0x20], 0x467f5dff
mov dword [esi], edi
xor dword [ebp - 0x1c], ebx
add esi, 4
add edx, 0xca8d922c
add edx, 0x35726dd8
loop 0x10009935
add eax, 0xd3db
mov ebx, eax
add eax, 0x99503e84
sub eax, 0x99503e7f
mov ecx, 0x55257765
add ecx, 0xbada889b
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x10020263
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10005270]
jne 0x10020613
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x10028550], eax
mov dword [0x1002854c], ecx
mov dword [0x10028548], edx
mov dword [0x10028544], ebx
mov dword [0x10028540], esi
mov dword [0x1002853c], edi
mov word [0x10028568], ss
mov word [0x1002855c], cs
mov word [0x10028538], ds
mov word [0x10028534], es
mov word [0x10028530], fs
mov word [0x1002852c], gs
pushfd
pop dword [0x10028560]
mov eax, dword [ebp]
mov dword [0x10028554], eax
mov eax, dword [ebp + 4]
mov dword [0x10028558], eax
lea eax, [ebp + 8]
mov dword [0x10028564], eax
mov eax, dword [ebp - 0x320]
mov dword [0x100284a0], 0x10001
mov eax, dword [0x10028558]
mov dword [0x10028454], eax
mov dword [0x10028448], 0xc0000409
mov dword [0x1002844c], 1
mov eax, dword [0x10005270]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10024b90]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x10028498], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10005278
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x10028498], 0
jne 0x100206ff
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x10003b60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x10003b6f
pop dword [ebp - 0x30]
mov eax, 0x6151e2c3
add eax, 0xaeae58ac
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x956cab0
sub dword [ebp - 0x40], 0xbb048565
mov dword [ebp - 0x3c], 0xb2f7d16
sub dword [ebp - 0x3c], 0xd8fc30d1
mov dword [ebp - 0x38], 0x50e6e40e
sub dword [ebp - 0x38], 0x49a9fe0
mov dword [ebp - 0x34], 0xf5b1dd0d
sub dword [ebp - 0x34], 0xf5b1dd0d
lea eax, [ebp - 0x40]
push eax
mov eax, 0x9891b3b9
add eax, 0x77709ccb
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x3f338492
add dword [ebp - 0x40], 0x353ee4c4
mov dword [ebp - 0x3c], 0xbb666f1f
add dword [ebp - 0x3c], 0x8605f256
mov dword [ebp - 0x38], 0x51a586e
add dword [ebp - 0x38], 0x5e5513fe
mov dword [ebp - 0x34], 0x57a7e5dc
sub dword [ebp - 0x34], 0x57a7e5dc
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3adc7
push 0
call eax
mov ecx, 0x4632
xor edi, edi
add edi, eax
mov ebx, 0x10030c00
add ebx, dword [ebp - 0x30]
mov esi, 0x6ba1422d
sub esi, 0xc01aaaea
sub dword [ebp - 0x28], 0x3f71703c
mov edx, dword [ebx]
add dword [ebp - 0x10], 0x41e0a329
xor edx, esi
xor dword [ebp - 0x24], 0x427d91f6
mov dword [edi], edx
add dword [ebp - 8], ebx
add edi, 0x4332385e
add edi, 0xbccdc7a6
add ebx, 4
loop 0x10003c82
add eax, 0x56a07d9
sub eax, 0x568fc3e
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x15a5d05
add ecx, 0xea5a2fb
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x1001ca50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001caeb
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001caa2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001caa2
cmp esi, ebx
jge 0x1001caa2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001cae5
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001cae5
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e0]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e0]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001cafd
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc
Function at 0x1001cd20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da18], 0
mov eax, dword [ebp + 8]
je 0x1001cd48
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001cd62
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.10003b60
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10022ac0
leave
ret 4

Function at 0x1001cf30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1002d6f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da18], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001cf66
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001cfc5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.10003b60
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.10003b60
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.10003b60
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022ac0
leave
ret 0x10

Function at 0x1001cfe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da18], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001d00c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001d03d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001d03b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.10003b60
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001d03d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10022ac0
leave
ret 8
Function at 0x1001139d
Capabilities:
Accept command line arguments

Disassembly:
push 8
push 0x10011430
call fcn.1000ed82
xor edi, edi
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x100265f7
test eax, eax
je 0x10031507
cmp eax, 2
jne 0x100116c7
push dword [0x100de7cc]
call fcn.100779be
pop ecx
test eax, eax
jne 0x1001141b
push 0x3bc
push 1
call fcn.100779be
pop ecx
pop ecx
mov esi, eax
test esi, esi
je 0x10031555
push esi
push dword [0x100de7cc]
call fcn.100779be
pop ecx
pop ecx
test eax, eax
je 0x10050453
push edi
push esi
call sym.MSVCR120.dll__initptd
pop ecx
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
call fcn.10011398
xor eax, eax
inc eax
call fcn.1000edc7
ret
cmp eax, 3
jne 0x1001141b
push edi
call fcn.100779be
pop ecx
jmp 0x1001141b
call fcn.100261c8
test eax, eax
je 0x10031555
call fcn.10026580
test eax, eax
je 0x100503fe
call fcn.10026f4d
test eax, eax
js 0x10050408
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [sym.MSVCR120.dll__wcmdln], eax
call fcn.100779be
jmp 0x100268e4
mov dword [0x100dfbbc], eax
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [sym.MSVCR120.dll__acmdln], eax
call fcn.10026c85
call fcn.10026928
test eax, eax
js 0x1003155c
push edi
call fcn.100779be
pop ecx
test eax, eax
jne 0x1003155c
test edi, edi
jne 0x1005040f
inc dword [0x100dfbb8]
jmp 0x1001141b
mov eax, dword [0x100dfbb8]
test eax, eax
jle 0x10031555
dec eax
mov dword [0x100dfbb8], eax
mov dword [ebp - 4], edi
cmp dword [0x100e0418], 0
je 0x10050416
call fcn.10031219
call fcn.10031260
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10050420
mov dword [ebp - 4], 0xfffffffe
call fcn.1003154c
jmp 0x1001141b
xor eax, eax
jmp 0x10011423
xor edi, edi
inc edi
jmp 0x10026915
call fcn.1009f373
jmp 0x10031555
call fcn.100775db
jmp 0x100503fe
call fcn.1009f9c4
jmp 0x10050408
call sym.MSVCR120.dll__cexit
jmp 0x10031526
call fcn.1009f9c4
call fcn.100775db
call fcn.1009f373
jmp 0x1003153b
push esi
call fcn.100779be
pop ecx
jmp 0x10031555
Function at 0x1001f855
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100de7b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x21c], 0
push ebx
or ebx, 0xffffffff
push esi
lea esi, [ebp - 0x218]
test eax, eax
je 0x10051169
push edi
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1001f921
lea eax, [ebp - 0x218]
push eax
push 0x105
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov edi, eax
cmp edi, 0x104
jg 0x10051186
test edi, edi
je 0x1001f921
movzx eax, word [esi]
cmp eax, 0x5c
je 0x1001f919
cmp eax, 0x2f
je 0x1001f919
push 0x3d
pop eax
mov word [ebp - 0xc], ax
movzx eax, word [esi]
push eax
call fcn.100779be
pop ecx
push 0x3a
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push esi
push eax
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x1001f921
xor ebx, ebx
cmp dword [ebp - 0x21c], 0
pop edi
jne 0x100511cd
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.10010cbc
mov esp, ebp
pop ebp
ret
cmp ax, word [esi + 2]
je 0x1001f8f7
jmp 0x1001f8c6
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x100511c1
call sym.MSVCR120.dll___doserrno
and dword [eax], 0
call sym.MSVCR120.dll__errno
mov dword [eax], 0x16
call sym.MSVCR120.dll__invalid_parameter_noinfo
jmp 0x1001f907
lea eax, [edi + 1]
push 2
push eax
call fcn.100779be
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001f921
mov dword [ebp - 0x21c], 1
test edi, edi
je 0x1001f921
push esi
lea eax, [edi + 1]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov edi, eax
jmp 0x1001f8b5
push eax
call fcn.100779be
pop ecx
jmp 0x1001f8f9
push esi
call fcn.100779be
pop ecx
jmp 0x1001f907

Function at 0x1001f985
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100de7b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 1
jl 0x1001f9d8
cmp eax, 0x1a
jg 0x1001f9d8
add eax, 0x40
mov word [ebp - 0xc], ax
push 0x3a
pop eax
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x100510c2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010cbc
mov esp, ebp
pop ebp
ret
call sym.MSVCR120.dll___doserrno
jmp 0x100510d1
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.100779be
pop ecx
jmp 0x100510e7
mov dword [eax], 0xf
call sym.MSVCR120.dll__errno
mov dword [eax], 0xd
call sym.MSVCR120.dll__invalid_parameter_noinfo
or eax, 0xffffffff
jmp 0x1001f9ca

Function at 0x1002241a
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, 0x811c9dc5
xor esi, esi
movzx eax, byte [esi + ecx]
xor eax, edi
imul edi, eax, 0x1000193
inc esi
cmp esi, 4
jb 0x10022426
mov eax, edi
xor edx, edx
div ebx
pop edi
pop esi
mov eax, edx
pop ebx
ret
Function at 0x10022fe7
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
push 0x800
push 0
mov esi, 0x10023094
mov ebx, ecx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10050052
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x100230b0
push edi
call esi
mov ecx, dword [0x100def00]
push 0x100230c4
xor ecx, eax
push edi
mov dword [ebx], ecx
call esi
mov ecx, dword [0x100def00]
push 0x100230dc
xor ecx, eax
push edi
mov dword [ebx + 4], ecx
call esi
mov ecx, dword [0x100def00]
push 0x100230e8
xor ecx, eax
push edi
mov dword [ebx + 8], ecx
call esi
mov ecx, dword [0x100def00]
push 0x10023100
xor ecx, eax
push edi
mov dword [ebx + 0xc], ecx
call esi
mov ecx, dword [0x100def00]
push 0x10023114
xor ecx, eax
push edi
mov dword [ebx + 0x10], ecx
call esi
mov ecx, dword [0x100def00]
xor ecx, eax
mov dword [ebx + 0x14], ecx
pop edi
pop esi
mov eax, ebx
pop ebx
ret
mov edi, eax
test edi, edi
je 0x10023080
jmp 0x10023009
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x57
jne 0x10023080
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryW]
jmp 0x10023086

Function at 0x1002541d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
je 0x10050778
push esi
push 0x3bc
push 1
call fcn.100779be
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10050797
call sym.MSVCR120.dll__getptd
push dword [eax + 0x6c]
push esi
call sym.MSVCR120.dll__initptd
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x54], ebx
pop ecx
pop ecx
test eax, eax
jne 0x1002546f
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x10025498
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x1005078f
pop esi
pop edi
pop ebx
pop ebp
ret
call sym.MSVCR120.dll__errno
mov dword [eax], 0x16
call sym.MSVCR120.dll__invalid_parameter_noinfo
xor eax, eax
jmp 0x1002548e
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
push esi
call fcn.100779be
pop ecx
test edi, edi
je 0x100507a9
push edi
call fcn.100779be
pop ecx
xor eax, eax
jmp 0x1002548d