joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b620b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5f7448]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004b275b
mov dword [ebp - 0x14], eax
cmp dword [0x602f68], edi
jne 0x4b62fc
push 0x800
push edi
push 0x58d508
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4b6289
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4b63dc
push 0x58d508
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4b63dc
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b63dc
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x602f68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x602f6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x58d550
push esi
mov dword [0x602f70], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x602f78], eax
test eax, eax
je 0x4b62f9
push 0x58d56c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x602f74], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4b6321
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b6314
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4b6336
push 4
pop eax
jmp 0x4b63de
cmp dword [ebp - 0x14], edi
je 0x4b6336
push dword [0x602f68]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4b631b
mov eax, dword [0x602f74]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4b6394
cmp dword [0x602f78], esi
je 0x4b6394
push eax
call ebx
push dword [0x602f78]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4b6394
test eax, eax
je 0x4b6394
call ecx
test eax, eax
je 0x4b6389
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4b6389
test byte [ebp - 8], 1
jne 0x4b6394
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4b63c4
mov eax, dword [0x602f6c]
cmp eax, esi
je 0x4b63c1
push eax
call ebx
test eax, eax
je 0x4b63c1
call eax
mov edi, eax
test edi, edi
je 0x4b63c1
mov eax, dword [0x602f70]
cmp eax, esi
je 0x4b63c1
push eax
call ebx
test eax, eax
je 0x4b63c1
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x602f68]
call ebx
test eax, eax
je 0x4b63dc
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4b63de
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004adbd4
leave
ret
Function at 0x4e53a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x4e53c4
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
xor cl, byte [eax]
lea eax, [eax + 1]
or dl, cl
dec esi
jne 0x4e53b6
pop edi
movzx eax, dl
pop esi
ret

Function at 0x4e5530
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.004ae7f0
mov eax, dword [0x5f7448]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4e5594
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4e5594
lea eax, [esp + 0x110]
push eax
push dword [esp + 0x110]
call fcn.004b235a
add eax, 0x40
push eax
call fcn.004b9e25
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004adbd4
add esp, 0x108
ret
lea eax, [esp + 0x110]
push eax
push dword [esp + 0x110]
lea eax, [esp + 0xc]
push 0xff
push eax
call fcn.0055e339
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4e5622
call fcn.004e53f0
test eax, eax
jle 0x4e5622
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004adbd4
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004adbd4
add esp, 0x108
ret
Function at 0x4e9880
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20
call fcn.004ae7f0
mov eax, dword [0x5f7448]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e98a5
push 0
sub ecx, edx
push 0
lea eax, [ecx + 1]
push eax
push edi
push 8
push 0xfde9
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 8
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x4e9910
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x4e9903
push 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x4e9910
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jmp 0x4e998c
lea eax, [esi + esi]
call fcn.004af1b0
mov eax, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push edi
push dword [ebp - 0x18]
push 0xfde9
call esi
test eax, eax
je 0x4e99eb
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e9940
push 8
sub ecx, edx
lea eax, [ebp - 0x14]
push eax
lea eax, [ecx + 1]
push eax
push ebx
push 0
push 0xfde9
call esi
test eax, eax
je 0x4e99eb
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call fcn.004ad4a2
mov esi, eax
add esp, 8
test esi, esi
jne 0x4e999e
call fcn.004b0791
cmp dword [eax], 2
je 0x4e998e
call fcn.004b0791
cmp dword [eax], 9
jne 0x4e99eb
push ebx
push edi
call fcn.004b22ab
mov esi, eax
add esp, 8
test esi, esi
je 0x4e99eb
push 0x5fb720
call fcn.004e5d70
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e99bf
push esi
call fcn.004ad256
add esp, 4
jmp 0x4e9a53
push 0
push edi
call fcn.004e5980
push esi
push 1
push 0x6a
push edi
call fcn.004e59b0
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adbd4
mov esp, ebp
pop ebp
ret
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004e8b90
push 0x590da4
push ebx
push 0x5a62c8
push edi
push str.fopen_
push 5
call fcn.004e81c0
add esp, 0x2c
call fcn.004b0791
cmp dword [eax], 2
jne 0x4e9a3b
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
jmp 0x4e9a47
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004e8b90
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adbd4
mov esp, ebp
pop ebp
ret
Function at 0x4f5910
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
xor edx, edx
test esi, esi
je 0x4f5956
mov al, byte [esi]
test al, al
je 0x4f5956
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
rol edx, cl
lea esi, [esi + 1]
add edi, 0x100
xor edx, eax
mov al, byte [esi]
test al, al
jne 0x4f5927
mov eax, edx
shr eax, 0x10
pop edi
xor eax, edx
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x501490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.004ae7f0
mov eax, dword [0x5f7448]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
push ebp
mov ebp, dword [esp + 0x78]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x80]
push esi
xor ebx, ebx
mov dword [esp + 0x14], eax
mov dword [eax], ebx
push edi
mov edi, dword [esp + 0x8c]
lea eax, [esp + 0x20]
push eax
xor esi, esi
call fcn.004f60a0
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.004f5f00
add esp, 0xc
test eax, eax
je 0x501595
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004f5be0
add esp, 0xc
test eax, eax
je 0x501595
lea eax, [esp + 0x20]
push eax
call fcn.004f5e40
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x5015b3
push edi
call fcn.004e7420
push ebx
push edi
mov dword [esp + 0x28], eax
call fcn.00501a70
mov esi, eax
add esp, 0xc
test esi, esi
je 0x501595
push esi
call fcn.005022d0
add esp, 4
test eax, eax
jle 0x501595
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.00501810
add esp, 0x18
test eax, eax
jle 0x501595
push dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
push esi
call fcn.005021f0
add esp, 0x14
test eax, eax
jle 0x501595
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
mov ebx, 1
push esi
call fcn.00501a00
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004adbd4
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x5015cb
cmp dword [edi], edx
je 0x5015f5
inc eax
add ecx, 4
cmp eax, 4
jl 0x5015b8
push 0x7f
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.004e8b90
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004adbd4
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x501629
push 0x85
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.004e8b90
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004adbd4
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x1c]
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x44]
push dword [esp + 0x20]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004adbd4
add esp, 0x6c
ret
Function at 0x502b00
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x90
call fcn.004ae7f0
mov eax, dword [0x5f7448]
xor eax, esp
mov dword [esp + 0x8c], eax
mov edx, dword [esp + 0xa4]
push ebx
push ebp
mov ebp, dword [esp + 0xa0]
push esi
mov esi, dword [esp + 0xa0]
push edi
mov edi, dword [esp + 0xb0]
xor eax, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], edx
test edi, edi
je 0x502b4f
mov eax, 1
mov dword [esi], edi
jmp 0x502b51
mov edi, dword [esi]
test ebp, ebp
je 0x502cd9
push edi
call fcn.004fee40
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x502b85
push str.j____int_sizeof_ctx__key_
push 0x68
push str..cryptohmachmac.c
call fcn.004e5650
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ebx, dword [esp + 0xac]
cmp eax, ebx
jge 0x502bdd
push dword [esp + 0x10]
lea ebp, [esi + 4]
push edi
push ebp
call fcn.004f5c90
add esp, 0xc
test eax, eax
je 0x502cd5
push ebx
push dword [esp + 0x1c]
push ebp
call fcn.004f5e30
add esp, 0xc
test eax, eax
je 0x502cd5
lea ebp, [esi + 0x4c]
push ebp
lea eax, [esi + 0x50]
push eax
lea eax, [esi + 4]
push eax
call fcn.004f5be0
add esp, 0xc
test eax, eax
je 0x502cd5
jmp 0x502c11
test ebx, ebx
js 0x502be9
cmp ebx, 0x80
jle 0x502bfd
push str.len_0__len__int_sizeof_ctx__key_
push 0x75
push str..cryptohmachmac.c
call fcn.004e5650
add esp, 0xc
push ebx
lea eax, [esi + 0x50]
push ebp
push eax
call fcn.004ae030
lea ebp, [esi + 0x4c]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x502c34
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call fcn.004af380
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
lea ebx, [ebx]
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 0x80
jl 0x502c40
push edx
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.004f5c90
add esp, 0xc
test eax, eax
je 0x502cd5
push edi
call fcn.004fee40
push eax
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.004f5e30
add esp, 0x10
test eax, eax
je 0x502cd5
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 0x80
jl 0x502c80
push dword [esp + 0x10]
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.004f5c90
add esp, 0xc
test eax, eax
je 0x502cd5
push edi
call fcn.004fee40
push eax
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.004f5e30
add esp, 0x10
test eax, eax
je 0x502cd5
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.004f5f00
add esp, 8
test eax, eax
jne 0x502ce2
xor eax, eax
jmp 0x502ce7
test eax, eax
je 0x502cc1
jmp 0x502c38
mov eax, 1
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004adbd4
add esp, 0x90
ret
Function at 0x52ba80
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x52bb6c
push edi
mov edi, dword [esp + 0x14]
inc edi
lea ebx, [ebx]
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x52bafe
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 3], cl
jmp 0x52bb4f
shl edx, 0x10
cmp esi, 2
jne 0x52bb0e
movzx ecx, byte [edi]
shl ecx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
cmp esi, 1
jne 0x52bb3b
lea ecx, [esi + 0x3c]
jmp 0x52bb48
shr edx, 6
and edx, 0x3f
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
sub esi, 3
add eax, 4
add ebx, 4
add edi, 3
test esi, esi
jg 0x52baa0
pop edi
mov byte [eax], 0
pop esi
mov eax, ebx
pop ebx
ret
mov byte [eax], bl
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x546a50
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov eax, dword [ebp + 4]
cmp eax, dword [ecx + 4]
jge 0x546a67
mov edi, ecx
jmp 0x546a6b
mov edi, ebp
mov ebp, ecx
mov ebx, dword [esp + 0x10]
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 8]
jg 0x546a7b
mov eax, ebx
jmp 0x546a85
push eax
push ebx
call fcn.004f2c40
add esp, 8
test eax, eax
jne 0x546a8d
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x546aac
mov eax, dword [edi]
mov ecx, dword [ebp]
mov edx, dword [eax + esi*4]
xor edx, dword [ecx + esi*4]
mov eax, dword [ebx]
inc esi
mov dword [eax + esi*4 - 4], edx
cmp esi, dword [ebp + 4]
jl 0x546a95
cmp esi, dword [edi + 4]
jge 0x546ac1
mov eax, dword [edi]
mov ecx, dword [ebx]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [edi + 4]
jl 0x546ab1
mov ecx, dword [edi + 4]
mov dword [ebx + 4], ecx
pop esi
test ecx, ecx
jle 0x546ae5
mov edx, dword [ebx]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x546ae2
dec ecx
test ecx, ecx
jg 0x546ad4
mov dword [ebx + 4], ecx
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x403be8
Capabilities:
Delete file

Disassembly:
push esi
push 0x3a
push dword [esp + 0xc]
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x403bff
pop esi
ret
mov eax, dword [sym.imp.MSVCR71.dll___mb_cur_max]
inc esi
cmp dword [eax], 1
jle 0x403c1a
movsx eax, byte [esi]
push 8
push eax
call dword [sym.imp.MSVCR71.dll__isctype]
pop ecx
pop ecx
jmp 0x403c2b
mov ecx, dword [sym.imp.MSVCR71.dll__pctype]
movsx eax, byte [esi]
mov ecx, dword [ecx]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
jne 0x403bff
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret

Function at 0x403c38
Capabilities:
Delete directory

Disassembly:
push esi
push 0x3a
push dword [esp + 0xc]
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x403c4f
pop esi
ret
mov eax, dword [sym.imp.MSVCR71.dll___mb_cur_max]
inc esi
cmp dword [eax], 1
jle 0x403c6a
movsx eax, byte [esi]
push 8
push eax
call dword [sym.imp.MSVCR71.dll__isctype]
pop ecx
pop ecx
jmp 0x403c7b
mov ecx, dword [sym.imp.MSVCR71.dll__pctype]
movsx eax, byte [esi]
mov ecx, dword [ecx]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
jne 0x403c4f
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret

Function at 0x403c88
Capabilities:
Delete file
Read file on windows

Disassembly:
mov eax, 0x1014
jmp loc.00416252
Function at 0x100262b0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a528
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1010e2b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov edx, dword [eax]
test edx, edx
je 0x10026486
mov edi, dword [0x1010e2b0]
mov ecx, edi
mov eax, edi
and ecx, 0x1f
xor eax, dword [edx]
xor edi, dword [edx + 4]
ror eax, cl
ror edi, cl
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1002644b
cmp eax, 0xffffffff
je 0x1002644b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
mov edx, 0x10006aa4
mov eax, dword [0x1010e2c4]
mov ecx, 5
push 0x10006aa4
push 0x10006a9c
mov dword [ebp - 0x18], eax
call fcn.10037be0
add esp, 8
mov ebx, eax
push dword [ebp - 0x18]
test ebx, ebx
je 0x1006fdde
mov ecx, ebx
call dword [0x10110268]
call ebx
push esi
mov ebx, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
cmp ebx, 1
jne 0x10026469
mov byte [ebp - 0x11], bl
call fcn.1002dc80
mov dword [ebp - 4], 0
mov ecx, 0x20
mov eax, dword [0x1010e2b0]
xor ebx, ebx
and eax, 0x1f
mov dword [ebp - 0x20], edi
sub ecx, eax
ror ebx, cl
mov ecx, dword [ebp - 0x1c]
xor ebx, dword [0x1010e2b0]
mov dword [ebp - 0x18], ecx
mov edi, edi
sub edi, 4
cmp edi, ecx
jb 0x100263ff
mov esi, dword [edi]
cmp esi, ebx
je 0x100263a0
xor esi, dword [0x1010e2b0]
mov ecx, eax
ror esi, cl
mov ecx, esi
mov dword [edi], ebx
call dword [0x10110268]
call esi
mov eax, dword [ebp - 0x28]
mov esi, dword [0x1010e2b0]
and esi, 0x1f
mov ecx, esi
mov eax, dword [eax]
mov eax, dword [eax]
mov edx, dword [eax]
mov eax, dword [eax + 4]
xor edx, dword [0x1010e2b0]
xor eax, dword [0x1010e2b0]
ror edx, cl
ror eax, cl
cmp edx, dword [ebp - 0x18]
jne 0x10026472
mov ecx, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jne 0x10026472
mov eax, esi
jmp 0x100263a0
cmp byte [ebp - 0x11], 0
je 0x1002640d
call fcn.1002dce0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xffffffff
je 0x1002641b
push ecx
call sym.ucrtbase.dll__free_base
add esp, 4
mov eax, dword [0x1010e2b0]
mov ecx, 0x20
and eax, 0x1f
xor edx, edx
sub ecx, eax
ror edx, cl
mov ecx, dword [ebp - 0x28]
xor edx, dword [0x1010e2b0]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [eax + 4], edx
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [eax + 8], edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005cc20
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x11], 0
jmp 0x10026375
mov ecx, edx
mov dword [ebp - 0x20], eax
mov edi, eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
mov eax, esi
jmp 0x100263a0
or eax, 0xffffffff
jmp 0x1002644d
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
jmp 0x1002635b
Function at 0x100262ee
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a528
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1010e2b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov edx, dword [eax]
test edx, edx
je 0x10026486
mov edi, dword [0x1010e2b0]
mov ecx, edi
mov eax, edi
and ecx, 0x1f
xor eax, dword [edx]
xor edi, dword [edx + 4]
ror eax, cl
ror edi, cl
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1002644b
cmp eax, 0xffffffff
je 0x1002644b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
mov edx, 0x10006aa4
mov eax, dword [0x1010e2c4]
mov ecx, 5
push 0x10006aa4
push 0x10006a9c
mov dword [ebp - 0x18], eax
call fcn.10037be0
add esp, 8
mov ebx, eax
push dword [ebp - 0x18]
test ebx, ebx
je 0x1006fdde
mov ecx, ebx
call dword [0x10110268]
call ebx
push esi
mov ebx, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
cmp ebx, 1
jne 0x10026469
mov byte [ebp - 0x11], bl
call fcn.1002dc80
mov dword [ebp - 4], 0
mov ecx, 0x20
mov eax, dword [0x1010e2b0]
xor ebx, ebx
and eax, 0x1f
mov dword [ebp - 0x20], edi
sub ecx, eax
ror ebx, cl
mov ecx, dword [ebp - 0x1c]
xor ebx, dword [0x1010e2b0]
mov dword [ebp - 0x18], ecx
mov edi, edi
sub edi, 4
cmp edi, ecx
jb 0x100263ff
mov esi, dword [edi]
cmp esi, ebx
je 0x100263a0
xor esi, dword [0x1010e2b0]
mov ecx, eax
ror esi, cl
mov ecx, esi
mov dword [edi], ebx
call dword [0x10110268]
call esi
mov eax, dword [ebp - 0x28]
mov esi, dword [0x1010e2b0]
and esi, 0x1f
mov ecx, esi
mov eax, dword [eax]
mov eax, dword [eax]
mov edx, dword [eax]
mov eax, dword [eax + 4]
xor edx, dword [0x1010e2b0]
xor eax, dword [0x1010e2b0]
ror edx, cl
ror eax, cl
cmp edx, dword [ebp - 0x18]
jne 0x10026472
mov ecx, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jne 0x10026472
mov eax, esi
jmp 0x100263a0
cmp byte [ebp - 0x11], 0
je 0x1002640d
call fcn.1002dce0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xffffffff
je 0x1002641b
push ecx
call sym.ucrtbase.dll__free_base
add esp, 4
mov eax, dword [0x1010e2b0]
mov ecx, 0x20
and eax, 0x1f
xor edx, edx
sub ecx, eax
ror edx, cl
mov ecx, dword [ebp - 0x28]
xor edx, dword [0x1010e2b0]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [eax + 4], edx
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [eax + 8], edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005cc20
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x11], 0
jmp 0x10026375
mov ecx, edx
mov dword [ebp - 0x20], eax
mov edi, eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
mov eax, esi
jmp 0x100263a0
or eax, 0xffffffff
jmp 0x1002644d
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
jmp 0x1002635b