joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b1a0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x483408]
mov dword [esp], 0
push esi
test eax, 0xfffffffe
jne 0x42b21c
push 0
push 1
push 0x483408
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x42b1f8
mov eax, dword [0x483408]
cmp eax, 1
jne 0x42b21c
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, edi
push 0
call esi
mov eax, dword [0x483408]
cmp eax, 1
je 0x42b1e0
mov eax, dword [0x483408]
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x48340c], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x48340c], eax
cmp eax, 0xffffffff
je 0x42b226
mov dword [0x483408], 0x48340c
mov eax, dword [0x483408]
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00426870
int3

Function at 0x42c090
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
call fcn.0042c160
test al, al
je 0x42c0fd
mov eax, dword [0x47dbb8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x42c0b5
call fcn.00435af0
mov ecx, eax
mov eax, dword [0x48341c]
cmp dword [ecx + eax*4], 0
jne 0x42c0fd
push 0x70
call fcn.0045acd7
add esp, 4
test eax, eax
je 0x42c0da
push esi
mov ecx, eax
call fcn.0042be80
mov esi, eax
jmp 0x42c0dc
xor esi, esi
mov eax, dword [0x47dbb8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x42c0f5
call fcn.00435af0
mov ecx, eax
mov eax, dword [0x48341c]
mov dword [ecx + eax*4], esi
pop esi
ret

Function at 0x42d8e0
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 0x42d948
test bl, 1
je 0x42d930
lea ecx, [ebp - 0xc0]
and ebx, 0xfffffffe
call fcn.00419e30
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 0x42d903
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00426870
int3
Function at 0x42f500
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esi], 0x40e62c
mov dword [esi + 4], edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword [edi + 0x22c]
mov dword [esi + 0x20], eax
call fcn.0042b1a0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov dword [ebp + 8], esi
mov edx, dword [eax + 0x54]
lea ecx, [eax + 0x50]
mov eax, dword [ecx]
cmp eax, edx
je 0x42f577
cmp dword [eax], esi
je 0x42f573
add eax, 4
cmp eax, edx
jne 0x42f568
cmp eax, edx
jne 0x42f580
lea eax, [ebp + 8]
push eax
call fcn.0042b230
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [0x48371f]
lea ecx, [edi + 0x1e0]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00434050
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42f5f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
mov dword [edi], 0x40e62c
call fcn.0042b1a0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x50]
cmp edx, ecx
je 0x42f65a
cmp dword [edx], edi
je 0x42f62f
add edx, 4
cmp edx, ecx
jne 0x42f624
cmp edx, ecx
je 0x42f65a
cmp dword [esi + 0x5c], 0
je 0x42f641
mov dword [edx], 0
jmp 0x42f65a
mov eax, ecx
lea ecx, [edx + 4]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
push edx
call fcn.0045aea0
add esp, 0xc
add dword [esi + 0x54], 0xfffffffc
mov esi, dword [edi + 0x10]
test esi, esi
je 0x42f6c5
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
cmp ecx, 0xffffffff
jne 0x42f67e
cmp edx, 0x7fffffff
jne 0x42f67e
movsd xmm0, qword [0x47d9f0]
jmp 0x42f68b
call fcn.0045eabf
divsd xmm0, qword [0x40e928]
movd xmm1, esi
cvtdq2pd xmm1, xmm1
divsd xmm0, xmm1
movsd qword [esp + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov ecx, edi
lea eax, [esp + 0x10]
push eax
sub esp, 0xc
push 0
call fcn.0042f770
add esp, 4
mov edx, esi
mov ecx, eax
call fcn.00433e80
add esp, 0xc
mov esi, dword [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 8], 0
je 0x42f700
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x22c]
cmp dword [edi + 0x20], eax
jne 0x42f700
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov eax, esp
mov dword [edi + 8], 0
mov dword [eax], edx
mov eax, dword [ecx]
push dword [edi + 0xc]
call dword [eax + 8]
call fcn.0042b1a0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [edi + 4]
mov dword [esp + 0xc], eax
add ecx, 0x1e0
lea eax, [esp + 0xc]
push eax
call fcn.00432ce0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 4]
push 0
push dword [eax + 0x1d4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x42f745
call fcn.0042da60
mov esi, dword [edi + 8]
test esi, esi
je 0x42f75c
mov ecx, esi
call fcn.004338c0
push esi
call fcn.0045ad4d
add esp, 4
mov dword [edi], 0x40e060
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x431d50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
jne 0x431d75
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [edi + 0x1d4]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
test eax, eax
je 0x431dca
push dword [edi + 0x1d4]
call esi
mov ebx, eax
mov esi, dword [ebx + 8]
test esi, esi
je 0x431dca
mov edx, dword [ebp + 0xc]
cmp edx, dword [esi + 0x1808]
jne 0x431dcd
mov ecx, dword [ebp + 0x10]
movzx eax, cx
cmp eax, dword [ebx + 0xc]
jne 0x431dcd
mov eax, dword [ebp + 0x12]
movzx eax, ax
lea eax, [eax + eax*2]
shl eax, 5
add eax, 8
add eax, esi
je 0x431dcd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test esi, esi
je 0x431de9
cmp byte [esi + 4], 0
jne 0x431de9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp + 0xc]
mov byte [esi + 4], 1
mov ecx, dword [edi + 0x200]
test ecx, ecx
je 0x431e27
mov eax, dword [ebp + 0x10]
movzx eax, ax
cmp eax, dword [edi + 0x204]
jne 0x431e27
cmp edx, dword [ecx + 0x1808]
jne 0x431d6a
mov eax, dword [ebp + 0x12]
movzx eax, ax
lea eax, [eax + eax*2]
shl eax, 5
add eax, 8
add eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [edi + 0x3c]
push dword [ebp + 0x10]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4334f0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x4834dc]
mov dword [esp], 0
push esi
test eax, 0xfffffffe
jne 0x43356c
push 0
push 1
push 0x4834dc
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x433548
mov eax, dword [0x4834dc]
cmp eax, 1
jne 0x43356c
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, edi
push 0
call esi
mov eax, dword [0x4834dc]
cmp eax, 1
je 0x433530
mov eax, dword [0x4834dc]
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x4834e0], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4834e0], eax
cmp eax, 0xffffffff
je 0x433576
mov dword [0x4834dc], 0x4834e0
mov eax, dword [0x4834dc]
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00426870
int3

Function at 0x433c50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov edi, dword [edx + 0x10]
jb 0x433c63
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x433c81
mov edi, edi
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x433c70
push 0x1f31d
and esi, 0x7fffffff
push esi
call fcn.00460c50
imul ecx, eax, 0xb14
add esp, 8
imul edx, edx, 0x41a7
sub edx, ecx
lea eax, [edx + 0x7fffffff]
js 0x433cad
mov eax, edx
pop edi
pop esi
pop ebp
ret 4
Function at 0x435af0
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 [0x47ca30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x47dbb8]
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x10c], ebx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x435b5e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
mov dword [ebp - 0x10c], ebx
cmp ebx, 0xffffffff
je 0x435bca
push 0xffffffffffffffff
push ebx
push 0x47dbb8
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 0xffffffff
je 0x435b5e
push ebx
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov ebx, dword [0x47dbb8]
mov dword [ebp - 0x10c], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x435bca
push 0x100
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00438c15
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x100
call fcn.0045bef5
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.0045ed71
mov esp, ebp
pop ebp
ret
call fcn.00426870
int3

Function at 0x435bd0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
mov eax, dword [0x47ca30]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [0x47dbb8]
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.0045bef0
add esp, 4
mov edi, 0x40
jmp 0x435c30
mov esi, dword [0x4834e8]
xor dl, dl
test esi, esi
jle 0x435c68
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x435c63
mov eax, dword [esi*4 + 0x4834f0]
test eax, eax
je 0x435c63
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x435c40
dec edi
test edi, edi
jle 0x435c71
test dl, dl
jne 0x435c30
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.0045ed71
mov esp, ebp
pop ebp
ret
Function at 0x435f00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x47ca30]
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 0x435f24
xor edx, edx
jmp 0x435f3b
cmp byte [edi], 0
jne 0x435f2d
xor edx, edx
jmp 0x435f3b
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x435f32
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.00421070
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 0x435f86
push dword [ebp - 0x1c]
call fcn.0045ad4d
add esp, 4
test ebx, ebx
jne 0x435f9f
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045ed71
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x4360ed
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045bef5
add esp, 4
mov esi, eax
test edi, edi
jne 0x435fcc
xor edx, edx
jmp 0x435fe9
cmp byte [edi], 0
jne 0x435fd5
xor edx, edx
jmp 0x435fe9
mov edx, edi
lea ecx, [edx + 1]
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x435fe0
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.00421070
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 0x436030
push dword [ebp - 0x1c]
call fcn.0045ad4d
add esp, 4
push esi
lea ecx, [ebp - 0x1c]
call fcn.004140d0
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.0042ae80
lea eax, [ebp - 0x34]
mov edx, ebx
push eax
mov ecx, edi
call fcn.004211e0
mov ebx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
add esp, 8
cmp ebx, eax
je 0x4360ac
cmp dword [ebx + 0x14], 0x10
jb 0x436090
push dword [ebx]
call fcn.0045ad4d
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.004148d0
cmp dword [ebp - 0x20], 0x10
jb 0x4360bd
push dword [ebp - 0x34]
call fcn.0045ad4d
add esp, 4
cmp dword [ebp - 8], 8
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
jb 0x4360e0
push dword [ebp - 0x1c]
call fcn.0045ad4d
add esp, 4
test esi, esi
je 0x4360ed
push esi
call fcn.0045bef0
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045ed71
mov esp, ebp
pop ebp
ret 8
Function at 0x4370ac
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.0043707f
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 0x4371d0
push ebx
xor ebx, ebx
inc ebx
push edi
mov edi, ebx
cmp dword [esi + 0xc], ebx
jle 0x4371b7
mov eax, dword [esi]
push 0x401418
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x437102
mov dword [esi + 4], 0x4012d8
jmp 0x4371ad
mov eax, dword [esi]
push 0x401434
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x43711e
mov byte [esi + 0x14], bl
jmp 0x4371ad
mov eax, dword [esi]
push 0x401448
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x437137
mov byte [esi + 0x15], bl
jmp 0x4371ad
mov eax, dword [esi]
push 0x401468
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4371aa
mov eax, dword [esi]
push 0x401480
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4371aa
mov eax, dword [esi]
push 0x4014a0
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x437178
mov byte [esi + 0x17], bl
jmp 0x4371ad
mov eax, dword [esi]
push 0x4014c0
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x437191
mov byte [esi + 0x18], bl
jmp 0x4371ad
mov eax, dword [esi]
push 0x4014e0
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4371ad
mov dword [esi + 0x10], ebx
jmp 0x4371ad
mov byte [esi + 0x16], bl
inc edi
cmp edi, dword [esi + 0xc]
jl 0x4370e2
cmp byte [esi + 0x17], 0
jne 0x4371ce
cmp byte [esi + 0x15], 0
jne 0x4371c9
cmp byte [esi + 0x16], 0
je 0x4371cb
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 0x437376
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x47e064]
sub esp, 0x208
push ebx
xor ebx, ebx
push esi
test eax, eax
jne 0x4373fb
push 0x206
lea eax, [ebp - 0x206]
push ebx
push eax
call fcn.00438c15
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 0x4373e3
push 8
push ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x47e064], eax
jmp 0x4373e8
mov eax, dword [0x47e064]
test eax, eax
jne 0x4373fb
add esi, 4
cmp esi, 0xc
jb 0x4373a3
mov eax, dword [0x47e070]
jmp 0x437432
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4015c8
push eax
call esi
push 0x4015d4
push dword [0x47e064]
mov dword [0x47e068], eax
call esi
push 0x4015e0
push dword [0x47e064]
mov dword [0x47e06c], eax
call esi
mov dword [0x47e070], eax
cmp dword [0x47e068], ebx
je 0x437449
cmp dword [0x47e06c], ebx
je 0x437449
test eax, eax
je 0x437449
xor ebx, ebx
inc ebx
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x437771
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.00438d59
add esp, 0xc
test al, al
je 0x437820
push 0x401734
push edi
push esi
call fcn.00438d31
add esp, 0xc
test al, al
je 0x437820
push edi
push esi
call fcn.00438d94
mov ebx, eax
sub edi, ebx
pop ecx
pop ecx
cmp edi, 0xb
jb 0x437820
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.00438cd6
add esp, 0x10
test al, al
je 0x437820
lea eax, [ebx + 5]
mov ecx, esi
push eax
call fcn.00438bf8
push 0x4018e4
push 0x104
push esi
call fcn.00438d31
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x437829
inc dword [ebp + 0xc]
lea ecx, [esi + ebx*2]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4377d0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4018f0
push 0x104
push esi
call fcn.00438d31
add esp, 0xc
jmp 0x437822
Function at 0x43783e
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.00438d59
add esp, 0xc
test al, al
je 0x43797c
push dword [ebp + 0xc]
lea eax, [ebp - 0x45c]
push ebx
push eax
call fcn.00438d31
add esp, 0xc
test al, al
je 0x43797c
push 0x401900
lea eax, [ebp - 0x45c]
push ebx
push eax
call fcn.00438d31
add esp, 0xc
test al, al
je 0x43797c
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x24c]
push 0x24c
push esi
push eax
mov dword [ebp - 0x250], esi
call fcn.00438c15
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 0x43797a
xor eax, eax
mov word [ebp - 0x460], ax
mov word [ebp - 0x668], ax
test byte [ebp - 0x250], 0x10
je 0x437961
cmp word [ebp - 0x1c], 0
lea eax, [ebp - 0x224]
lea esi, [ebp - 0x1c]
cmove esi, eax
push esi
call fcn.00437bfa
pop ecx
test al, al
jne 0x437961
push dword [ebp + 8]
lea eax, [ebp - 0x668]
push ebx
push eax
call fcn.00438d59
add esp, 0xc
test al, al
je 0x437961
push esi
lea eax, [ebp - 0x668]
push ebx
push eax
call fcn.00438d31
add esp, 0xc
test al, al
je 0x437961
lea eax, [ebp - 0x668]
push eax
call fcn.00437e85
pop ecx
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x437903
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x437981
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.004140d0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
call fcn.00417ce0
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004150e0
push 0x40168c
lea ecx, [ebp - 0x30]
call fcn.004140d0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x18]
call fcn.004182b0
mov ecx, eax
call fcn.00418490
push eax
lea ecx, [ebp - 0x18]
call fcn.00417d30
lea ecx, [ebp - 0x48]
call fcn.004141e0
lea ecx, [ebp - 0x60]
call fcn.004141e0
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004150e0
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.004141e0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x437a2c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
xor eax, eax
push esi
mov word [ebp - 4], ax
mov esi, 0x104
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x437a7c
cmp eax, esi
jae 0x437a7c
xor esi, esi
push dword [esi + 0x401908]
lea eax, [ebp - 0x20c]
push eax
call fcn.0043783e
add esi, 4
pop ecx
pop ecx
cmp esi, 8
jb 0x437a60
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x437e85
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x104
push ebx
push esi
call fcn.00438d94
push 0x4018f4
push ebx
push esi
mov dword [ebp + 8], eax
call fcn.00438d31
add esp, 0x14
test al, al
je 0x437f6a
and dword [ebp - 0x250], 0
lea eax, [ebp - 0x24c]
push edi
push 0x24c
push 0
push eax
call fcn.00438c15
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x437f58
cmp word [ebp - 0x1c], 0
lea eax, [ebp - 0x224]
lea ebx, [ebp - 0x1c]
cmove ebx, eax
push ebx
call fcn.00437bfa
pop ecx
test al, al
jne 0x437f3f
mov eax, dword [ebp + 8]
mov ecx, esi
inc eax
push eax
call fcn.00438bf8
push ebx
push 0x104
push esi
call fcn.00438d31
add esp, 0xc
test al, al
je 0x437f3f
test byte [ebp - 0x250], 0x10
push esi
je 0x437f39
call fcn.00437e85
pop ecx
jmp 0x437f3f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x437eec
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
mov ecx, esi
call fcn.00438bf8
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x437fb3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push 0x40
xor ebx, ebx
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.00438c15
add esp, 0xc
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x10], xmm0
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x438000
xor al, al
jmp 0x438041
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebp - 0x10]
mov bl, 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x43801e
xor bl, bl
jmp 0x438036
cmp dword [ebp + 0x10], 0
je 0x438036
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
neg eax
sbb al, al
and bl, al
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret