joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469140
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x49f204]
mov edi, eax
add esp, 4
test edi, edi
jne 0x46916d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x4691b4
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x4691ba
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x46921a
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
lea ebx, [ebx]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
push 1
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
push 1
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
lea ebx, [ebx + 1]
call eax
add esp, 0x18
dec dword [ebp + 0x10]
jne 0x4691e0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x469247
nop
mov eax, dword [esi + 4]
push 1
push 0x4874f6
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x4874f7
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x469220
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402c8d
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x40c6f0]
call fcn.00404197
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x402d8d
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x402ce3
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x402cdb
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x402d23
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x402d65
push 0x22
pop edx
cmp cx, dx
je 0x402d15
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x402d05
xor ecx, ecx
cmp word [eax], cx
je 0x402d65
mov ecx, eax
add eax, 2
jmp 0x402d67
test dx, dx
je 0x402d6d
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x402d15
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x402d5b
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x402d65
cmp cx, dx
je 0x402d58
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x402d48
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x402d2d
jmp 0x402d15
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x402d6f
xor edx, edx
cmp dword [ebp], ebx
jne 0x402d78
test edi, edi
jne 0x402d95
test edx, edx
je 0x402d7d
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x402cd1
test edi, edi
jne 0x402da6
mov eax, ebx
jmp 0x402daa
test esi, esi
je 0x402da6
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x402daa
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x403063
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4030db
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4030bc
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4030b9
cmp ecx, 0x5c
je 0x4030b9
cmp ecx, 0x2f
jne 0x4030c6
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4030a6
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4030dd
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x403200
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x40323c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x403600
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x403665
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x40365d
push dword [esp + 0x10]
push dword [0x40c710]
call fcn.00404200
test eax, eax
je 0x403653
cmp dword [eax + 4], 0
je 0x403642
push edi
push esi
push eax
call fcn.004039b0
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x403740
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov byte [esp + 7], 0
push dword [0x40c710]
call fcn.00404200
test eax, eax
je 0x40378b
cmp dword [eax + 4], 0
je 0x403775
push 1
lea ecx, [esp + 7]
push ecx
push eax
call fcn.00403ac0
movzx eax, byte [esp + 3]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
lea ecx, [esp + 0xf]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x4037a0
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov dword [esp + 4], 0
push dword [0x40c710]
call fcn.00404200
test eax, eax
je 0x4037ec
cmp dword [eax + 4], 0
je 0x4037d6
push 4
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00403ac0
mov eax, dword [esp]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
lea ecx, [esp + 0xc]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 4

Function at 0x403940
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push dword [esp + 0xc]
mov dword [esp + 4], 0
push dword [0x40c710]
mov dword [esp + 0xc], 0
call fcn.00404200
test eax, eax
je 0x40399c
cmp dword [eax + 4], 0
je 0x403986
push 8
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00403ac0
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 8
ret 4
push 0
lea ecx, [esp + 0x10]
push ecx
push 8
lea ecx, [esp + 0xc]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 8
ret 4
Function at 0x4039b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x403ab7
cmp dword [esi + 0x14], 1
jne 0x4039fb
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x403a78
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x403a63
dec eax
je 0x403a4c
sub eax, 2
je 0x403a37
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.00403200
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x403aa5
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x403a21
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x403ac0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x403ae1
push esi
call fcn.00403200
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x403b55
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x403b42
dec ecx
je 0x403b2d
sub ecx, 2
je 0x403b1a
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x403b9a
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x403bbb
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x403be0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x40c6a8]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x403d64
mov cl, byte [esp + 3]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x403c2e
test ebp, ebp
je 0x403cd0
dec ebp
cmp dword [ebx + 4], 0
je 0x403c47
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00403ac0
mov dword [esp + 0x14], eax
jmp 0x403c61
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
cmp eax, 1
jne 0x403cd0
test cl, cl
je 0x403c75
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov edi, esi
mov edx, dword [esp + 0x20]
dec eax
sub edi, edx
cmp edi, eax
jle 0x403cb0
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x40c6a8]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x20], edx
lea esi, [edi + edx]
test cl, cl
je 0x403cd0
cmp dword [esp + 0x2c], 0
jne 0x403c20
cmp cl, 0xd
je 0x403cd7
cmp cl, 0xa
jne 0x403c20
dec esi
jmp 0x403d47
cmp dword [esp + 0x2c], 0
jne 0x403d47
cmp cl, 0xa
jne 0x403cdf
dec esi
jmp 0x403d47
cmp cl, 0xd
jne 0x403d47
dec esi
cmp dword [ebx + 4], 0
je 0x403cfe
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00403ac0
mov dword [esp + 0x14], eax
jmp 0x403d14
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x403d47
cmp dword [ebx + 4], 0
je 0x403d26
inc dword [ebx + 0xc]
jmp 0x403d47
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x403d70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x40c6a8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x403f1d
mov ax, word [esp]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x1c], 0x7ff
cmp ebp, 0xffffffff
je 0x403dc4
test ebp, ebp
je 0x403e7d
dec ebp
cmp dword [ebx + 4], 0
je 0x403ddd
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00403ac0
mov dword [esp + 0x14], eax
jmp 0x403df7
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, 2
mov ax, word [esp + 0x10]
jne 0x403e7d
test ax, ax
je 0x403e11
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, edi
mov edx, dword [esp + 0x1c]
sub esi, ecx
sar esi, 1
cmp esi, edx
jle 0x403e58
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x40c6a8]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
mov ax, word [esp + 0x10]
mov dword [esp + 0x18], ecx
lea edi, [ecx + esi*2]
test ax, ax
je 0x403e7d
cmp dword [esp + 0x30], 0
jne 0x403db6
cmp ax, 0xd
je 0x403e84
cmp ax, 0xa
jne 0x403db6
sub edi, 2
jmp 0x403efc
cmp dword [esp + 0x30], 0
jne 0x403efc
cmp ax, 0xa
jne 0x403e8f
sub edi, 2
jmp 0x403efc
cmp ax, 0xd
jne 0x403efc
sub edi, 2
cmp dword [ebx + 4], 0
je 0x403eb1
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00403ac0
mov dword [esp + 0x14], eax
jmp 0x403ec7
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x403efc
cmp dword [ebx + 4], 0
je 0x403edb
add dword [ebx + 0xc], 2
jmp 0x403efc
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
xor eax, eax
add esp, 0x18
ret 0x10
Function at 0x403f30
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x40c6a8]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x404080
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x403f7c
test edi, edi
je 0x403fed
dec edi
push esi
push ebp
call fcn.00404090
mov dword [esp + 0x20], eax
test eax, eax
jne 0x403f8f
xor cl, cl
jmp 0x403f91
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x403fd4
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x40c6a8]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x403fed
test eax, eax
jne 0x403f72
cmp cl, 0xd
je 0x403ff1
cmp cl, 0xa
jne 0x403f72
dec esi
jmp 0x404063
test eax, eax
jne 0x404063
cmp cl, 0xa
jne 0x403ff9
dec esi
jmp 0x404063
cmp cl, 0xd
jne 0x404063
dec esi
cmp dword [ebp + 4], 0
je 0x404018
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.00403ac0
mov dword [esp + 0x20], eax
jmp 0x40402f
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x404063
cmp dword [ebp + 4], 0
je 0x404041
inc dword [ebp + 0xc]
jmp 0x404063
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x404090
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x4040b7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00403ac0
mov dword [esp + 4], eax
jmp 0x4040d1
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
je 0x4040dd
xor eax, eax
pop edi
pop ecx
ret 8
mov cl, byte [esp + 0xc]
test cl, cl
js 0x4040f9
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x404109
mov esi, 2
jmp 0x404125
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x404118
mov esi, 3
jmp 0x404125
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x404182
mov esi, 4
mov edx, dword [esp + 0x14]
mov byte [edx], cl
cmp dword [edi + 4], 0
je 0x404154
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push edi
call fcn.00403ac0
mov edx, eax
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 8]
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8
Function at 0x100133d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x12c
mov ebx, dword [ebp + 8]
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebx + 4]
push 0x118
push 0
push eax
call fcn.10149430
add esp, 0xc
mov dword [ebx], 0x11c
push ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov esi, eax
test eax, eax
je 0x100134ca
cmp dword [ebx + 4], 6
ja 0x10013421
jne 0x1001346c
cmp dword [ebx + 8], 2
jb 0x1001346c
xor eax, eax
lea ecx, [ebp - 0x12c]
mov dword [ecx], eax
lea edx, [ebp - 0x130]
mov dword [edx], eax
lea edi, [ebp - 0x134]
mov dword [edi], eax
lea eax, [ebp - 0x138]
push eax
push edi
push edx
push ecx
call fcn.10013570
add esp, 0x10
test al, al
je 0x1001346c
mov eax, dword [ebp - 0x12c]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x130]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x134]
mov dword [ebx + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100134ca
mov edi, eax
lea eax, [ebp - 0x128]
push 0x118
push 0
push eax
call fcn.10149430
add esp, 0xc
lea eax, [ebp - 0x128]
mov dword [eax - 4], 0x11c
mov ecx, edi
call dword [section..00cfg]
lea eax, [ebp - 0x12c]
push eax
call edi
test eax, eax
jne 0x100134ca
mov eax, dword [ebp - 0x120]
mov dword [ebx + 0xc], eax
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101465a3
mov eax, ebx
add esp, 0x12c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10013570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x1019e09e
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100135c0
mov esi, eax
push 0x10
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100135c0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100135c0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x100135c0
mov esi, eax
add eax, 6
push 0x101784e0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100135c5
xor eax, eax
pop esi
pop ebp
ret
cmp word [esi + 2], 0
je 0x100135c0
mov eax, dword [ebp + 8]
movzx ecx, word [esi + 0x32]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
movzx ecx, word [esi + 0x30]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
movzx ecx, word [esi + 0x36]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
movzx ecx, word [esi + 0x34]
mov dword [eax], ecx
mov al, 1
jmp 0x100135c2
Function at 0x10015f8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10017464

Function at 0x100171f4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x818
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x810]
push 0x800
push 0xff
push edi
call fcn.10149430
add esp, 0xc
mov esi, edi
push edi
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10017288
cmp eax, 0x3ff
jb 0x1001728f
lea esi, [eax + 2]
lea ecx, [eax + eax]
add ecx, 4
mov edi, eax
xor edx, edx
dec edx
test esi, esi
cmovns edx, ecx
push edx
call fcn.10145c03
add esp, 4
mov esi, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ebx, ebx
test eax, eax
je 0x1001734a
cmp eax, edi
ja 0x1001734a
mov word [esi + eax*2], 0
lea ecx, [esi + eax*2]
add ecx, 2
mov dword [ebp - 0x820], esi
jmp 0x100172ac
xor ebx, ebx
jmp 0x10017357
mov word [ebp + eax*2 - 0x810], 0
lea ecx, [eax*2 - 0x80e]
add ecx, ebp
mov dword [ebp - 0x820], 0
mov edx, esi
mov word [ecx], 0
xor ebx, ebx
lea edi, [ebp - 0x81c]
xor ecx, ecx
mov dword [ebp - 0x824], esi
cmp word [edx + ebx*2], 0
jne 0x1001730d
cmp ecx, ebx
je 0x1001730d
mov esi, eax
lea eax, [edx + ecx*2]
mov ecx, edi
push eax
call fcn.100349a0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
jae 0x10017310
test eax, eax
je 0x1001736e
mov edx, ecx
mov ecx, dword [ebp - 0x814]
mov dword [eax + 8], ecx
movsd xmm0, qword [ebp - 0x81c]
movsd qword [eax], xmm0
add eax, 0xc
mov dword [edx + 4], eax
jmp 0x1001732d
inc ebx
jmp 0x1001733e
push edi
call fcn.1005cfe0
cmp byte [ebp - 0x811], 0
jns 0x1001732d
push dword [ebp - 0x81c]
call fcn.10145bd4
add esp, 4
inc ebx
mov ecx, ebx
lea edi, [ebp - 0x81c]
mov eax, esi
mov edx, dword [ebp - 0x824]
cmp ebx, eax
jne 0x100172c3
mov bl, 1
mov esi, dword [ebp - 0x820]
test esi, esi
je 0x10017357
push esi
call fcn.10145c0c
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101465a3
mov eax, ebx
add esp, 0x818
pop esi
pop edi
pop ebx
pop ebp
ret
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x23
push str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
push str._s:_d:_assertion__s_failed:__s
call fcn.10036b34
int3