joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423950
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x494
mov eax, dword [0x470a30]
xor eax, esp
mov dword [esp + 0x490], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push ebx
push 2
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x1a], 1
mov dword [esp + 0x248], 0x40e0ec
mov byte [esp + 0x250], bl
mov dword [esp + 0x480], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [esp + 0x244], eax
lea ecx, [esp + 0x47c]
xor eax, eax
mov dword [esp + 0x240], 0x40e020
push 0xffffffffffffffff
push eax
push esi
mov dword [esp + 0x49c], 7
mov dword [esp + 0x498], ebx
mov word [esp + 0x488], ax
call fcn.00414780
lea ecx, [esp + 0x240]
call fcn.004276e0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x423a96
jmp 0x423a00
push dword [eax + 8]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x423a2b
test bl, 1
je 0x423a27
lea ecx, [esp + 0x18]
and ebx, 0xfffffffe
call fcn.00419f80
xor al, al
jmp 0x423a7e
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
mov byte [esp + 0x13], al
test al, al
je 0x423a63
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x423a77
test bl, 2
je 0x423a77
and ebx, 0xfffffffd
lea ecx, [esp + 0x188]
jmp 0x423a72
test bl, 4
je 0x423a77
and ebx, 0xfffffffb
lea ecx, [esp + 0xd0]
call fcn.00419f80
push esi
call edi
mov al, byte [esp + 0x13]
and byte [esp + 0x12], al
lea ecx, [esp + 0x240]
call fcn.004276e0
test eax, eax
jne 0x423a00
cmp dword [esp + 0x490], 8
mov dword [esp + 0x240], 0x40e020
jb 0x423aba
push dword [esp + 0x47c]
call fcn.0044f00f
add esp, 4
push dword [esp + 0x244]
xor eax, eax
mov dword [esp + 0x494], 7
mov dword [esp + 0x490], 0
mov word [esp + 0x480], ax
mov dword [esp + 0x244], 0x40e0ec
call edi
mov ecx, dword [esp + 0x49c]
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00453031
mov esp, ebp
pop ebp
ret
Function at 0x4242f0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
xor eax, eax
mov dword [esp + 8], 0
push ebx
mov ebx, dword [ebp + 0xc]
test bl, 1
push esi
mov esi, ecx
mov ecx, 3
cmovne eax, ecx
test bl, 2
mov ecx, 1
cmovne eax, ecx
mov ecx, ebx
and ecx, 4
mov dword [esp + 0x10], ecx
mov ecx, 4
cmovne eax, ecx
test bl, 8
mov ecx, 2
cmovne eax, ecx
mov dword [esp + 0xc], eax
push edi
test bl, 0x10
je 0x424350
mov dword [esp + 0x10], 5
jmp 0x424358
test eax, eax
je 0x42449c
xor edx, edx
mov edi, 0x40000000
test bl, 0x40
mov eax, 4
cmovne edx, edi
test bl, 0x80
cmovne edx, eax
test bl, 0x20
je 0x42437b
or edx, 0x80000000
test ebx, 0x4000
je 0x424389
or edx, 0x100
test ebx, 0x40000
je 0x424397
or edx, 0x20000000
mov ecx, ebx
shr ecx, 8
not ecx
and ecx, 1
test ebx, 0x200
jne 0x4243ac
or ecx, 2
test ebx, 0x8000
je 0x4243b6
or ecx, eax
xor eax, eax
test ebx, 0x400
cmovne eax, edi
test ebx, 0x800
je 0x4243ce
or eax, 0x100
test ebx, 0x1000
je 0x4243d9
or eax, 2
test ebx, 0x2000
je 0x4243e6
or eax, 0x4000000
test ebx, 0x20000
je 0x4243f3
or eax, 0x2000000
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x4243fe
mov edi, dword [edi]
push 0
push eax
push dword [esp + 0x18]
push 0
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, dword [esi]
cmp eax, edi
je 0x42443d
test eax, eax
je 0x424432
cmp eax, 0xffffffff
je 0x424432
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4244a5
mov dword [esi], 0
test edi, edi
je 0x42443d
cmp edi, 0xffffffff
je 0x42443d
mov dword [esi], edi
mov eax, dword [esi]
test eax, eax
je 0x42448c
cmp eax, 0xffffffff
je 0x42448c
mov eax, ebx
mov dword [esi + 4], 0
shr eax, 0xa
and al, 1
cmp dword [esp + 0x14], 0
mov byte [esi + 9], al
je 0x42447a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
mov byte [esi + 8], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test bl, 0xa
je 0x42449c
mov byte [esi + 8], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00424500
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00425640
int3
Function at 0x425240
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], 0
mov esi, edx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x4252b3
cmp dword [0x477640], 0
jne 0x4252a0
push 0x44
call fcn.0044ef99
add esp, 4
test eax, eax
je 0x42527d
mov ecx, eax
call fcn.004212e0
mov esi, eax
jmp 0x42527f
xor esi, esi
push 0
push esi
push 0x477640
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x42529d
test esi, esi
je 0x42529d
push ecx
mov ecx, esi
call fcn.004212a0
mov esi, dword [ebp - 4]
mov eax, dword [0x477640]
cmp dword [eax], 1
jl 0x4252b3
mov dword [ebp - 8], 0x10000
jmp 0x4252b5
xor ebx, ebx
push 8
call fcn.0044ef99
add esp, 4
mov edi, eax
push 0
push dword [ebp - 8]
mov dword [edi], esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
push 0x425180
push ebx
setne cl
push 0
mov byte [edi + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4252f8
push edi
call fcn.0044f00f
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x42530e
mov dword [esi], eax
mov al, 1
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426400
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x470a30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
test cl, cl
je 0x4264d2
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0
push 0xffffffffffffffff
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x426451
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453031
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00413a20
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x240]
call fcn.004177a0
cmp esi, eax
je 0x426485
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00414780
cmp dword [ebp - 0x22c], 8
jb 0x42649c
push dword [ebp - 0x240]
call fcn.0044f00f
add esp, 4
xor eax, eax
mov dword [ebp - 0x22c], 7
cmp dword [ebp - 0x214], 8
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
jb 0x4264e5
push dword [ebp - 0x228]
call fcn.0044f00f
add esp, 4
jmp 0x4264e5
push esi
push 0x6c
call fcn.0041fe30
add esp, 8
test al, al
je 0x426440
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 0x40df7c
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x244], 9
push eax
mov ecx, esi
call fcn.004181a0
cmp esi, eax
je 0x42651e
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00414780
cmp dword [ebp - 0x214], 8
jb 0x426535
push dword [ebp - 0x228]
call fcn.0044f00f
add esp, 4
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 0x40df88
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x244], 0x11
push eax
mov ecx, esi
call fcn.004181a0
cmp esi, eax
je 0x42656e
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00414780
cmp dword [ebp - 0x214], 8
jb 0x426585
push dword [ebp - 0x228]
call fcn.0044f00f
add esp, 4
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 0x40df9c
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x244], 0xc
push eax
mov ecx, esi
call fcn.004181a0
cmp esi, eax
je 0x4265be
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00414780
cmp dword [ebp - 0x214], 8
jb 0x4265d5
push dword [ebp - 0x228]
call fcn.0044f00f
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00453031
mov esp, ebp
pop ebp
ret

Function at 0x4276e0
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32FirstW]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
mov edi, edi
push 0x22c
push 0
push edi
call fcn.0042d1b5
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x427718
mov byte [esi + 8], 1
call ebx
jmp 0x42771e
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x42773a
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
test al, al
je 0x4276f0
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4284d0
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.004285a0
test al, al
je 0x42853d
mov eax, dword [0x471ba8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x4284f5
call fcn.0042a8f0
mov ecx, eax
mov eax, dword [0x47725c]
cmp dword [ecx + eax*4], 0
jne 0x42853d
push 0x70
call fcn.0044ef99
add esp, 4
test eax, eax
je 0x42851a
push esi
mov ecx, eax
call fcn.004282c0
mov esi, eax
jmp 0x42851c
xor esi, esi
mov eax, dword [0x471ba8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x428535
call fcn.0042a8f0
mov ecx, eax
mov eax, dword [0x47725c]
mov dword [ecx + eax*4], esi
pop esi
ret

Function at 0x429be0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
mov esi, 8
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0xc]
cmp esi, 0xffffffff
lea eax, [ebp - 4]
cmovbe eax, edx
mov edi, dword [eax]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x429c48
test bl, 1
je 0x429c30
lea ecx, [ebp - 0xc0]
and ebx, 0xfffffffe
call fcn.004198f0
mov ecx, dword [ebp - 8]
sub esi, edi
add ecx, edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ecx
test esi, esi
jne 0x429c03
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00425640
int3

Function at 0x42a8f0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x470a30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x471ba8]
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x10c], ebx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x42a95e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
mov dword [ebp - 0x10c], ebx
cmp ebx, 0xffffffff
je 0x42a9ca
push 0xffffffffffffffff
push ebx
push 0x471ba8
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 0xffffffff
je 0x42a95e
push ebx
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov ebx, dword [0x471ba8]
mov dword [ebp - 0x10c], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x42a9ca
push 0x100
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0042d1b5
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x100
call fcn.004501b5
add esp, 4
lea esi, [ebp - 0x108]
mov ebx, eax
mov ecx, 0x40
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00453031
mov esp, ebp
pop ebp
ret
call fcn.00425640
int3
Function at 0x42a9d0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
mov eax, dword [0x470a30]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [0x471ba8]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x40
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.004501b0
add esp, 4
mov edi, 0x40
jmp 0x42aa30
mov esi, dword [0x4772b0]
xor dl, dl
test esi, esi
jle 0x42aa68
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x42aa63
mov eax, dword [esi*4 + 0x4772c0]
test eax, eax
je 0x42aa63
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x42aa40
dec edi
test edi, edi
jle 0x42aa71
test dl, dl
jne 0x42aa30
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00453031
mov esp, ebp
pop ebp
ret
Function at 0x42ad00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x470a30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], esi
test edi, edi
jne 0x42ad24
xor edx, edx
jmp 0x42ad3b
cmp byte [edi], 0
jne 0x42ad2d
xor edx, edx
jmp 0x42ad3b
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x42ad32
sub edx, ecx
xor eax, eax
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
mov ecx, edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], 0
push eax
call fcn.00420a50
add esp, 4
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 8], 8
mov ebx, eax
jb 0x42ad86
push dword [ebp - 0x1c]
call fcn.0044f00f
add esp, 4
test ebx, ebx
jne 0x42ad9f
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453031
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x42aeed
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004501b5
add esp, 4
mov esi, eax
test edi, edi
jne 0x42adcc
xor edx, edx
jmp 0x42ade9
cmp byte [edi], 0
jne 0x42add5
xor edx, edx
jmp 0x42ade9
mov edx, edi
lea ecx, [edx + 1]
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x42ade0
sub edx, ecx
xor eax, eax
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
mov ecx, edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], 0
push eax
call fcn.00420a50
add esp, 4
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 8], 8
jb 0x42ae30
push dword [ebp - 0x1c]
call fcn.0044f00f
add esp, 4
push esi
lea ecx, [ebp - 0x1c]
call fcn.00413a20
cmp dword [ebp - 8], 8
lea edi, [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x34]
cmovae edi, dword [ebp - 0x1c]
mov edx, ebx
push eax
mov ecx, edi
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.00427530
lea eax, [ebp - 0x34]
mov edx, ebx
push eax
mov ecx, edi
call fcn.00420b80
mov ebx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
add esp, 8
cmp ebx, eax
je 0x42aeac
cmp dword [ebx + 0x14], 0x10
jb 0x42ae90
push dword [ebx]
call fcn.0044f00f
add esp, 4
lea eax, [ebp - 0x34]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov ecx, ebx
push eax
mov byte [ebx], 0
call fcn.00414220
cmp dword [ebp - 0x20], 0x10
jb 0x42aebd
push dword [ebp - 0x34]
call fcn.0044f00f
add esp, 4
cmp dword [ebp - 8], 8
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
jb 0x42aee0
push dword [ebp - 0x1c]
call fcn.0044f00f
add esp, 4
test esi, esi
je 0x42aeed
push esi
call fcn.004501b0
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00453031
mov esp, ebp
pop ebp
ret 8
Function at 0x42b64c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.0042b61f
mov eax, dword [ebp + 8]
lea ecx, [esi + 0xc]
push ecx
push eax
mov dword [esi + 8], eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esi], eax
test eax, eax
je 0x42b770
push ebx
xor ebx, ebx
inc ebx
push edi
mov edi, ebx
cmp dword [esi + 0xc], ebx
jle 0x42b757
mov eax, dword [esi]
push 0x401418
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x42b6a2
mov dword [esi + 4], 0x4012d8
jmp 0x42b74d
mov eax, dword [esi]
push 0x401434
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x42b6be
mov byte [esi + 0x14], bl
jmp 0x42b74d
mov eax, dword [esi]
push 0x401448
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x42b6d7
mov byte [esi + 0x15], bl
jmp 0x42b74d
mov eax, dword [esi]
push 0x401468
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x42b74a
mov eax, dword [esi]
push 0x401480
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x42b74a
mov eax, dword [esi]
push 0x4014a0
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x42b718
mov byte [esi + 0x17], bl
jmp 0x42b74d
mov eax, dword [esi]
push 0x4014c0
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x42b731
mov byte [esi + 0x18], bl
jmp 0x42b74d
mov eax, dword [esi]
push 0x4014e0
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x42b74d
mov dword [esi + 0x10], ebx
jmp 0x42b74d
mov byte [esi + 0x16], bl
inc edi
cmp edi, dword [esi + 0xc]
jl 0x42b682
cmp byte [esi + 0x17], 0
jne 0x42b76e
cmp byte [esi + 0x15], 0
jne 0x42b769
cmp byte [esi + 0x16], 0
je 0x42b76b
xor ebx, ebx
mov byte [esi + 0x14], bl
pop edi
pop ebx
xor eax, eax
cmp dword [esi], eax
pop esi
setne al
pop ebp
ret 4
Function at 0x42b916
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x471ea4]
sub esp, 0x208
push ebx
xor ebx, ebx
push esi
test eax, eax
jne 0x42b99b
push 0x206
lea eax, [ebp - 0x206]
push ebx
push eax
call fcn.0042d1b5
add esp, 0xc
mov esi, ebx
xor eax, eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x208]
push 0x104
push eax
push dword [esi + 0x4014f4]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
ja 0x42b983
push 8
push ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x471ea4], eax
jmp 0x42b988
mov eax, dword [0x471ea4]
test eax, eax
jne 0x42b99b
add esi, 4
cmp esi, 0xc
jb 0x42b943
mov eax, dword [0x471eb0]
jmp 0x42b9d2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4015c8
push eax
call esi
push 0x4015d4
push dword [0x471ea4]
mov dword [0x471ea8], eax
call esi
push 0x4015e0
push dword [0x471ea4]
mov dword [0x471eac], eax
call esi
mov dword [0x471eb0], eax
cmp dword [0x471ea8], ebx
je 0x42b9e9
cmp dword [0x471eac], ebx
je 0x42b9e9
test eax, eax
je 0x42b9e9
xor ebx, ebx
inc ebx
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42bd11
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
mov edi, 0x104
push edi
push esi
call fcn.0042d2f9
add esp, 0xc
test al, al
je 0x42bdc0
push 0x401734
push edi
push esi
call fcn.0042d2d1
add esp, 0xc
test al, al
je 0x42bdc0
push edi
push esi
call fcn.0042d334
mov ebx, eax
sub edi, ebx
pop ecx
pop ecx
cmp edi, 0xb
jb 0x42bdc0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
shr ecx, 0xc
xor eax, ecx
lea ecx, [esi + ebx*2]
push 0xa
mov dword [ebp + 0xc], eax
pop eax
push edi
dec eax
push ecx
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push 4
push eax
call fcn.0042d276
add esp, 0x10
test al, al
je 0x42bdc0
lea eax, [ebx + 5]
mov ecx, esi
push eax
call fcn.0042d198
push 0x4018e4
push 0x104
push esi
call fcn.0042d2d1
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42bdc9
inc dword [ebp + 0xc]
lea ecx, [esi + ebx*2]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x42bd70
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4018f0
push 0x104
push esi
call fcn.0042d2d1
add esp, 0xc
jmp 0x42bdc2
Function at 0x42bdde
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push ebx
push dword [ebp + 8]
xor eax, eax
mov ebx, 0x104
mov word [ebp - 0x254], ax
mov word [ebp - 0x45c], ax
lea eax, [ebp - 0x45c]
push ebx
push eax
call fcn.0042d2f9
add esp, 0xc
test al, al
je 0x42bf1c
push dword [ebp + 0xc]
lea eax, [ebp - 0x45c]
push ebx
push eax
call fcn.0042d2d1
add esp, 0xc
test al, al
je 0x42bf1c
push 0x401900
lea eax, [ebp - 0x45c]
push ebx
push eax
call fcn.0042d2d1
add esp, 0xc
test al, al
je 0x42bf1c
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x24c]
push 0x24c
push esi
push eax
mov dword [ebp - 0x250], esi
call fcn.0042d1b5
add esp, 0xc
lea eax, [ebp - 0x250]
push esi
push esi
push 1
push eax
push esi
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42bf1a
xor eax, eax
mov word [ebp - 0x460], ax
mov word [ebp - 0x668], ax
test byte [ebp - 0x250], 0x10
je 0x42bf01
cmp word [ebp - 0x1c], 0
lea eax, [ebp - 0x224]
lea esi, [ebp - 0x1c]
cmove esi, eax
push esi
call fcn.0042c19a
pop ecx
test al, al
jne 0x42bf01
push dword [ebp + 8]
lea eax, [ebp - 0x668]
push ebx
push eax
call fcn.0042d2f9
add esp, 0xc
test al, al
je 0x42bf01
push esi
lea eax, [ebp - 0x668]
push ebx
push eax
call fcn.0042d2d1
add esp, 0xc
test al, al
je 0x42bf01
lea eax, [ebp - 0x668]
push eax
call fcn.0042c425
pop ecx
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42bea3
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42bf21
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x30]
call fcn.00413a20
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
call fcn.004177a0
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00414a30
push 0x40168c
lea ecx, [ebp - 0x30]
call fcn.00413a20
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x18]
call fcn.00417d70
mov ecx, eax
call fcn.00417f50
push eax
lea ecx, [ebp - 0x18]
call fcn.004177f0
lea ecx, [ebp - 0x48]
call fcn.00413b30
lea ecx, [ebp - 0x60]
call fcn.00413b30
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00414a30
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmovae eax, dword [ebp - 0x18]
push eax
call esi
push dword [ebp + 0xc]
call esi
push dword [ebp + 0x10]
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x18]
call fcn.00413b30
pop esi
mov esp, ebp
pop ebp
ret