joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4105b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, edx
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
xor esi, esi
lea edx, [eax + edx*2]
movzx ebx, byte [eax + 1]
cmp byte [eax], ch
lea eax, [eax + 2]
lea edi, [esi + ebx]
jne 0x410600
cmp esi, edi
ja 0x410668
cmp edi, dword [esp + 0x1c]
ja 0x41067b
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x410602
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x4105f0
jmp 0x41065f
ja 0x410608
cmp eax, edx
mov esi, edi
jne 0x4105c3
mov edi, dword [esp + 0x24]
movzx ecx, cx
mov al, 1
add edi, ebp
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebp]
lea esi, [ebp + 1]
test dl, dl
js 0x410640
mov ebp, esi
sub ecx, edx
jns 0x410657
jmp 0x410661
cmp esi, edi
je 0x410690
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x410661
xor al, 1
cmp ebp, edi
jne 0x410620
jmp 0x410661
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x44b600
call fcn.00447250
add esp, 4
ud2
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0x44b600
call fcn.00447040
add esp, 4
ud2
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srcio_borrowed_buf.rs_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rs
mov edx, 0x2b
push 0x44b5f0
call fcn.004470b0
add esp, 4
ud2
Function at 0x411c1e
Capabilities:
Hash data with crc32

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, edx
mov edx, dword [esp + 0x18]
mov ebx, ecx
not ebx
cmp edx, 0x40
jb 0x411d45
push 4
pop edi
sub edi, 1
jb 0x411c2d
cmp edx, 0xf
jbe 0x411d55
movzx ebp, byte [eax + 0xe]
movzx esi, byte [eax + 0xf]
mov ecx, ebx
mov dword [esp], edx
mov edx, 0xff
shr ecx, 0x18
mov ebp, dword [ebp*4 + 0x44c3f4]
xor ebp, dword [esi*4 + 0x44bff4]
movzx esi, byte [eax + 0xd]
xor ebp, dword [esi*4 + 0x44c7f4]
movzx esi, byte [eax + 0xc]
xor ebp, dword [esi*4 + 0x44cbf4]
movzx esi, byte [eax + 0xb]
xor ebp, dword [esi*4 + 0x44cff4]
movzx esi, byte [eax + 0xa]
xor ebp, dword [esi*4 + 0x44d3f4]
movzx esi, byte [eax + 9]
xor ebp, dword [esi*4 + 0x44d7f4]
movzx esi, byte [eax + 8]
xor ebp, dword [esi*4 + 0x44dbf4]
movzx esi, byte [eax + 7]
xor ebp, dword [esi*4 + 0x44dff4]
movzx esi, byte [eax + 6]
xor ebp, dword [esi*4 + 0x44e3f4]
movzx esi, byte [eax + 5]
xor ebp, dword [esi*4 + 0x44e7f4]
movzx esi, byte [eax + 4]
xor ebp, dword [esi*4 + 0x44ebf4]
movzx esi, byte [eax + 3]
xor ecx, esi
mov esi, ebx
xor ebp, dword [ecx*4 + 0x44eff4]
movzx ecx, byte [eax + 2]
shr esi, 0x10
and esi, edx
xor esi, ecx
movzx ecx, byte [eax + 1]
xor ebp, dword [esi*4 + 0x44f3f4]
mov esi, ebx
and ebx, edx
shr esi, 8
and esi, edx
mov edx, dword [esp]
xor esi, ecx
movzx ecx, byte [eax]
xor ebp, dword [esi*4 + 0x44f7f4]
xor ebx, ecx
mov ecx, eax
xor ebp, dword [ebx*4 + 0x44fbf4]
push 0x44bfe4
call fcn.004121ac
pop ecx
mov ebx, ebp
jmp 0x411c39
mov cl, byte [eax]
inc eax
dec edx
xor cl, bl
shr ebx, 8
movzx esi, cl
xor ebx, dword [esi*4 + 0x44bff4]
test edx, edx
jne 0x411d32
not ebx
mov eax, ebx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xf
pop ecx
push 0x44bfd4
call fcn.00446fd0
pop eax
ud2
Function at 0x41df50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x45e04c]
test eax, eax
je 0x41e008
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x41df7c
cmp dword [eax + 4], 0
mov edi, eax
je 0x41df7c
add edi, 8
jmp 0x41e003
mov eax, dword [0x45e04c]
test eax, eax
je 0x41e017
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x41e001
mov esi, eax
test eax, eax
jne 0x41dfd7
movzx eax, byte [0x45eaa8]
mov ecx, 0xc
mov edx, 4
call fcn.00437a70
test eax, eax
je 0x41e032
mov dword [eax], 0x45e04c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x45e04c]
test eax, eax
je 0x41e026
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x41e003
test ecx, ecx
je 0x41e003
lock dec dword [ecx]
jne 0x41e003
call fcn.0041dc50
jmp 0x41e003
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x45e04c
call fcn.00447b20
jmp 0x41df60
mov ecx, 0x45e04c
call fcn.00447b20
jmp 0x41df8a
mov ecx, 0x45e04c
call fcn.00447b20
jmp 0x41dfcf
mov ecx, 4
mov edx, 0xc
call fcn.00446e10
ud2
Function at 0x41ec80
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
sub esp, 0x34
mov eax, dword [esp + 0x40]
mov esi, ecx
mov ecx, dword [esp + 0x44]
mov edi, edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x103
lea edx, [esp + 4]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x41ecd4
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0x103
je 0x41ecf7
test eax, eax
js 0x41ece3
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov al, 4
jmp 0x41ecef
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
add esp, 0x34
pop esi
pop edi
ret
mov eax, esp
mov dword [esp + 0x1c], 0x454024
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
push ecx
push edx
call fcn.0041d760
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.0041d890
mov ecx, 7
int 0x29
ud2
Function at 0x41f2c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x45e03c]
test eax, eax
je 0x41f358
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x41f2e6
cmp dword [eax + 4], 0
je 0x41f2e6
add eax, 8
pop esi
ret
mov eax, dword [0x45e03c]
test eax, eax
je 0x41f367
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x41f354
mov esi, eax
test eax, eax
jne 0x41f33d
movzx eax, byte [0x45eaa8]
mov ecx, 0x10
mov edx, 4
call fcn.00437a70
test eax, eax
je 0x41f382
mov dword [eax], 0x45e03c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x45e03c]
test eax, eax
je 0x41f376
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
lea eax, [esi + 8]
mov byte [esi + 0xc], 0
pop esi
ret
xor eax, eax
pop esi
ret
mov ecx, 0x45e03c
call fcn.00447b20
jmp 0x41f2cf
mov ecx, 0x45e03c
call fcn.00447b20
jmp 0x41f2f0
mov ecx, 0x45e03c
call fcn.00447b20
jmp 0x41f335
mov ecx, 4
mov edx, 0x10
call fcn.00446e10
ud2
Function at 0x421200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x440
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x437d90
mov dword [ebp - 0x28], ecx
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x30], 0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
cmp esi, 0x201
jae 0x421290
jmp 0x42127e
jbe 0x42131c
cmp esi, 0x201
jae 0x421290
mov dword [ebp - 0x2c], 0x200
lea ebx, [ebp - 0x44c]
mov edi, esi
jmp 0x4212cb
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
sub esi, edi
sub eax, edi
cmp eax, esi
jae 0x4212bc
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x3c]
mov edx, edi
push esi
call fcn.00447db0
add esp, 4
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], edi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x4212eb
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x421354
cmp esi, edi
jne 0x421270
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42138f
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x42127e
jmp 0x421290
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], 0
cmp esi, edx
ja 0x4213af
lea ecx, [ebp - 0x4c]
mov edx, ebx
push esi
call fcn.00421a50
add esp, 4
movsd xmm0, qword [ebp - 0x4c]
mov eax, dword [ebp - 0x28]
movsd xmm1, qword [ebp - 0x44]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
jmp 0x421367
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebp - 0x28]
mov byte [ecx], 0
mov dword [ecx + 4], eax
mov byte [ecx + 0xc], 2
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x42137b
mov ecx, dword [ebp - 0x24]
mov edx, 2
call fcn.00437ad0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x440
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, str.internal_error:_entered_unreachable_code
mov edx, 0x28
push 0x45477c
call fcn.004470b0
add esp, 4
jmp 0x4213be
mov ecx, esi
push 0x45476c
call fcn.00447040
add esp, 4
ud2
Function at 0x429620
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x45e06c]
test eax, eax
je 0x4296d8
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x42964c
cmp dword [eax + 4], 0
mov edi, eax
je 0x42964c
add edi, 8
jmp 0x4296d3
mov eax, dword [0x45e06c]
test eax, eax
je 0x4296e7
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4296d1
mov esi, eax
test eax, eax
jne 0x4296a7
movzx eax, byte [0x45eaa8]
mov ecx, 0xc
mov edx, 4
call fcn.00437a70
test eax, eax
je 0x429702
mov dword [eax], 0x45e06c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x45e06c]
test eax, eax
je 0x4296f6
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x4296d3
test ecx, ecx
je 0x4296d3
lock dec dword [ecx]
jne 0x4296d3
call fcn.00429720
jmp 0x4296d3
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x45e06c
call fcn.00447b20
jmp 0x429630
mov ecx, 0x45e06c
call fcn.00447b20
jmp 0x42965a
mov ecx, 0x45e06c
call fcn.00447b20
jmp 0x42969f
mov ecx, 4
mov edx, 0xc
call fcn.00446e10
ud2
Function at 0x430220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [esp + 0xc]
push dword [esp + 0x38]
call fcn.0041fb40
add esp, 4
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test edx, edx
je 0x430285
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov ecx, esp
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00430160
mov edi, dword [esp]
test edi, edi
je 0x430294
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4302a9
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
jmp 0x4302a1
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], 0
mov ecx, esp
call fcn.0041fcf0
mov dword [esi], 0
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
mov dword [esi], 0
je 0x4302a1
mov ecx, edi
mov edx, 2
call fcn.00437ad0
jmp 0x4302a1
Function at 0x4324d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1038
call fcn.00438390
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x437ff0
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edx
lea esi, [ebp - 0x1044]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push esi
call fcn.00439a60
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x42a020
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x432624
mov ebx, dword [sym.imp.kernel32.dll_SleepEx]
mov dword [ebp - 0x20], edi
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x43255a
cmp dword [ebp - 0x2c], 0
jne 0x432635
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x432635
cmp esi, 0x1000
ja 0x432671
xor edi, edi
nop dword [eax]
mov eax, esi
sub eax, edi
jb 0x432657
xorps xmm0, xmm0
lea edx, [ebp - 0x30]
lea ecx, [ebp + edi - 0x1044]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x42a020
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_WriteFileEx]
test eax, eax
je 0x43262c
nop dword [eax]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4325d0
cmp dword [ebp - 0x2c], 0
jne 0x432632
add edi, dword [ebp - 0x28]
cmp edi, esi
jne 0x432590
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x42a020
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1044]
push eax
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x43255a
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x432635
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, dword [ebp - 0x20]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1038
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, edi
mov edx, esi
push 0x45425c
call fcn.00447250
add esp, 4
jmp 0x43268c
mov dword [ebp - 0x10], 0
mov ecx, esi
mov edx, 0x1000
push 0x45425c
call fcn.00447040
add esp, 4
ud2
Function at 0x432760
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov esi, esp
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], esp
mov dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x44], 0x438010
lea eax, [esi + 0x40]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x40], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x4327c4
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov edx, esi
lea ecx, [esi + 8]
mov dword [esi + 0x20], 0x45436c
mov dword [esi + 0x24], 1
mov dword [esi + 0x30], 0
mov byte [esi], 0
mov dword [esi + 4], eax
mov dword [esi + 0x48], 0
mov dword [esi + 8], edx
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0x20]
mov edx, 0x454398
mov dword [esi + 0xc], fcn.004258e0
mov dword [esi + 0x2c], 1
call fcn.00446f30
ud2
Function at 0x4369b0
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov ebp, dword [esp + 0x48]
mov ebx, edx
mov edx, dword [ebp + 4]
mov edi, dword [ebp + 8]
mov eax, edx
sub eax, edi
jb 0x436a62
mov esi, ecx
mov ecx, dword [ebp]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x103
lea edx, [esp + 4]
add ecx, edi
push 0
push 0
push eax
push ecx
push edx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x436a10
push 0xffffffffffffffff
push ebx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, 0xc0000011
je 0x436a28
cmp eax, 0x103
je 0x436a73
test eax, eax
js 0x436a43
mov ecx, dword [esp + 8]
add ecx, edi
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
cmp eax, ecx
cmova ecx, eax
mov dword [ebp + 0xc], ecx
mov byte [esi], 4
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
mov edi, eax
call fcn.00420430
cmp al, 0xb
je 0x436a38
mov dword [esi], 0
mov dword [esi + 4], edi
jmp 0x436a3b
mov ecx, edi
push 0x452158
call fcn.00446f60
add esp, 4
ud2
mov eax, esp
mov dword [esp + 0x1c], 0x454024
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
push ecx
push edx
call fcn.0041d760
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.0041d890
mov ecx, 7
int 0x29
ud2

Function at 0x436ae0
Capabilities:
Delete file

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov ecx, esp
push dword [esp + 0x28]
call fcn.0041fb40
add esp, 4
mov ecx, dword [esp]
mov ebx, dword [esp + 4]
mov eax, dword [esp + 8]
test ecx, ecx
je 0x436b44
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
lea ecx, [esp + 0xc]
mov edx, esp
push 1
call fcn.00426b40
add esp, 4
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x436b40
push edi
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x436b4b
mov byte [esi], 4
test ebx, ebx
jne 0x436b5b
jmp 0x436b67
mov eax, dword [esp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], eax
jmp 0x436b67
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x436b67
mov ecx, edi
mov edx, 2
call fcn.00437ad0
add esp, 0x18
pop esi
pop edi
pop ebx
ret

Function at 0x4389f9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x438a38
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x438a38
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x438a38
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x438a38
cmp dword [ecx + 0x74], 0xe
jbe 0x438a38
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x440293
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x440330
push ebx
push esi
call fcn.0044025c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004401f0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4402dd
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44032f
push edi
push eax
call fcn.00440eb0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4402fd
call fcn.0043ed51
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44032e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004401f0
add esp, 0x20
test eax, eax
jne 0x44031c
push edi
call fcn.0043ed51
jmp 0x440324
push ebx
call fcn.0043ed51
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x44162d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x457058
push 0x457050
push str.FlsAlloc
push 0x1f
call fcn.004414ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x441661
push dword [ebp + 8]
mov ecx, esi
call dword [0x4491e8]
call esi
jmp 0x441667
call dword [sym.imp.kernel32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4416ab
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x457068
push 0x457060
push str.FlsGetValue
push 0x21
call fcn.004414ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4416e2
push dword [ebp + 8]
mov ecx, esi
call dword [0x4491e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsGetValue]

Function at 0x4416ea
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x457070
push 0x457068
push str.FlsSetValue
push 0x22
call fcn.004414ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x441724
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4491e8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsSetValue]
Function at 0x446b80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x446bad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x446bad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x447b20
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x447b91
lea ebx, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x447bcc
cmp dword [esp + 4], 0
je 0x447bb3
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x447be1
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x45ea5c]
nop dword [eax]
mov dword [esi + 8], eax
lock cmpxchg dword [0x45ea5c], esi
jne 0x447b70
mov byte [0x45ea58], 1
push 0
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
jmp 0x447bc3
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x447c24
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x447bb7
mov edi, dword [esp]
jmp 0x447bc3
mov edi, dword [esi]
jmp 0x447bc2
mov edi, eax
push dword [esp]
call dword [sym.imp.kernel32.dll_TlsFree]
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0
call fcn.00447c60
ud2
push 0
push 4
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0x45468c
mov dword [esp + 8], 0x454654
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0x454ea4
mov dword [esp + 0x14], 0
call fcn.00446f30
ud2
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x454654
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0x454ea4
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00447ca0
ud2

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x40b85ed8
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x5bf237ca
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219