joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10060c8
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x102d0fa
call fcn.010092bd
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x10061c0
cmp byte [esi + 0x46], bl
je 0x10061c0
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x1006104
xor al, al
jmp 0x10061c2
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.010063d6
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ebx, edi
cmp eax, 0x10
jae 0x1006131
lea ebx, [ebp - 0x28]
mov edi, ebx
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, ebx
mov edx, dword [ecx]
push eax
push edi
lea eax, [esi + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1006158
dec eax
je 0x100615c
dec eax
dec eax
je 0x10061ae
xor bl, bl
jmp 0x10061b0
mov byte [esi + 0x46], 0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov ecx, edi
cmp eax, 0x10
jae 0x100616c
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
sub ebx, ecx
je 0x1006194
cmp eax, 0x10
jae 0x100617b
lea edi, [ebp - 0x28]
push dword [esi + 0x50]
push ebx
push 1
push edi
call fcn.0100a1d0
add esp, 0x10
cmp ebx, eax
jne 0x1006154
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp byte [esi + 0x46], 0
je 0x10061ae
test ebx, ebx
jne 0x1006125
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.01006375
jmp 0x100611f
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.01002980
mov al, bl
jmp 0x10061c2
mov al, 1
call fcn.0100927b
ret
Function at 0x1006776
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x102d14c
call fcn.010092bd
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, 0xffff
cmp si, bx
jne 0x1006798
xor eax, eax
jmp 0x1006920
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x10067c4
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x10067c4
dec dword [edx]
mov ax, bx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x1006920
cmp dword [edi + 0x50], 0
je 0x100691d
mov ecx, edi
call fcn.01006305
xor ecx, ecx
cmp dword [edi + 0x40], ecx
jne 0x10067f7
push dword [edi + 0x50]
push ebx
call fcn.01005d17
pop ecx
pop ecx
test al, al
je 0x100691d
movzx esi, bx
jmp 0x100691d
push ecx
movzx eax, bx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], 0xf
call fcn.010063d6
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
cmp ecx, 0x10
jae 0x100682a
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
cmp ecx, 0x10
jae 0x1006838
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov ecx, dword [edi + 0x40]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x2c]
mov edx, dword [ecx]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x32]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [edi + 0x48]
push eax
call dword [edx + 0x1c]
mov ebx, dword [ebp + 8]
test eax, eax
js 0x1006911
cmp eax, 1
jg 0x10068f5
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
cmp ecx, 0x10
jb 0x1006885
mov dword [ebp - 0x2c], eax
jmp 0x100688b
lea edx, [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x38]
sub edx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], edx
je 0x10068bd
cmp ecx, 0x10
jae 0x100689e
lea eax, [ebp - 0x28]
push dword [edi + 0x50]
push edx
push 1
push eax
call fcn.0100a1d0
mov edx, dword [ebp - 0x2c]
add esp, 0x10
cmp edx, eax
jne 0x10068ed
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
lea ebx, [ebp - 0x34]
mov byte [edi + 0x46], 1
cmp dword [ebp - 0x3c], ebx
mov ebx, dword [ebp + 8]
jne 0x10068ea
test edx, edx
jne 0x1006822
cmp dword [ebp - 0x18], 0x20
jae 0x10068f0
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.01006375
jmp 0x1006819
movzx esi, bx
movzx esi, si
movzx esi, si
jmp 0x100690e
cmp eax, 3
jne 0x1006911
push dword [edi + 0x50]
push dword [ebp - 0x34]
call fcn.01005d17
pop ecx
pop ecx
test al, al
je 0x100690e
movzx esi, bx
movzx esi, si
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.01002980
mov ax, si
call fcn.0100927b
ret 4
Function at 0x10168a8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1057620]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0100c178
mov dword [ebp - 0x14], eax
cmp dword [0x1059bf8], esi
jne 0x101699b
push 0x800
push esi
push 0x1033214
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1016928
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1016a7b
push esi
push esi
push 0x1033214
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1016a7b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1016a7b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x1059bf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x1059bfc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x1059c00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1059c08], eax
test eax, eax
je 0x1016998
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1059c04], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10169c0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10169b3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10169d5
push 4
pop eax
jmp 0x1016a7d
cmp dword [ebp - 0x14], esi
je 0x10169d5
push dword [0x1059bf8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10169ba
mov eax, dword [0x1059c04]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1016a33
cmp dword [0x1059c08], edi
je 0x1016a33
push eax
call ebx
push dword [0x1059c08]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1016a33
test eax, eax
je 0x1016a33
call ecx
test eax, eax
je 0x1016a28
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 0x1016a28
test byte [ebp - 8], 1
jne 0x1016a33
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1016a63
mov eax, dword [0x1059bfc]
cmp eax, edi
je 0x1016a60
push eax
call ebx
test eax, eax
je 0x1016a60
call eax
mov esi, eax
test esi, esi
je 0x1016a60
mov eax, dword [0x1059c00]
cmp eax, edi
je 0x1016a60
push eax
call ebx
test eax, eax
je 0x1016a60
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1059bf8]
call ebx
test eax, eax
je 0x1016a7b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1016a7d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010076be
mov esp, ebp
pop ebp
ret
Function at 0x100251e0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.10026c20
mov dword [ebp - 8], 0xffffffff
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
je 0x10025206
mov eax, dword [ebp + 8]
and eax, 0x400001ff
je 0x1002520a
mov byte [ebp - 1], 1
mov ecx, dword [ebp + 8]
and ecx, 0x20000000
je 0x10025222
call fcn.100546a0
mov dword [ebp - 8], eax
jmp 0x10025326
mov edx, dword [ebp + 8]
and edx, 1
je 0x10025239
mov eax, dword [ebp - 8]
push eax
call fcn.10025330
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
and ecx, 2
je 0x10025252
push 1
mov edx, dword [ebp - 8]
push edx
call fcn.100255d0
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and eax, 4
je 0x10025269
mov ecx, dword [ebp - 8]
push ecx
call fcn.10025770
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
and edx, 8
je 0x10025280
mov eax, dword [ebp - 8]
push eax
call fcn.10025830
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
and ecx, 0x10
je 0x10025299
push 1
mov edx, dword [ebp - 8]
push edx
call fcn.10025910
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and eax, 0x20
je 0x100252b2
push 1
mov ecx, dword [ebp - 8]
push ecx
call fcn.10025ad0
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
and edx, 0x40
je 0x100252d7
call fcn.100261f0
cmp dword [ebp + 0xc], eax
jge 0x100252d7
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10026980
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
and edx, 0x80
je 0x100252f1
mov eax, dword [ebp - 8]
push eax
call fcn.100269d0
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
and ecx, 0x100
je 0x1002530b
mov edx, dword [ebp - 8]
push edx
call fcn.10026ac0
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and eax, 0x40000000
je 0x10025326
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.10025910
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10026720
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x458a210]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1f], 3
mov byte [ebp - 0x1e], 0x8a
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 3
mov byte [ebp - 0x1b], 0xff
mov byte [ebp - 0x1a], 0
mov byte [ebp - 0x19], 5
mov byte [ebp - 0x18], 0x69
mov byte [ebp - 0x17], 0
mov byte [ebp - 0x16], 0xc
mov byte [ebp - 0x15], 0x29
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 0x50
mov byte [ebp - 0x12], 0x56
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x10], 0x50
mov byte [ebp - 0xf], 0xf2
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xd], 0x53
mov byte [ebp - 0xc], 0x45
mov byte [ebp - 0xb], 0x44
mov byte [ebp - 0xa], 0x45
mov byte [ebp - 9], 0x53
mov byte [ebp - 8], 0xff
mov byte [ebp - 7], 0xff
mov byte [ebp - 6], 0xff
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 2]
cmp ecx, 0x20
jne 0x100267d3
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 3]
cmp eax, 0x52
jne 0x100267d3
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 4]
cmp edx, 0x41
jne 0x100267d3
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 5]
cmp ecx, 0x53
jne 0x100267d3
mov al, 1
jmp 0x10026895
mov dword [ebp - 0x24], 0
jmp 0x100267e5
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
imul eax, eax, 3
movzx ecx, byte [ebp + eax - 0x20]
cmp ecx, 0xff
je 0x1002683f
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 3
movzx edx, byte [ebp + ecx - 0x20]
cmp eax, edx
jne 0x1002683d
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 1]
mov edx, dword [ebp - 0x24]
imul edx, edx, 3
movzx eax, byte [ebp + edx - 0x1f]
cmp ecx, eax
jne 0x1002683d
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 2]
mov eax, dword [ebp - 0x24]
imul eax, eax, 3
movzx ecx, byte [ebp + eax - 0x1e]
cmp edx, ecx
jne 0x1002683d
mov al, 1
jmp 0x10026895
jmp 0x100267dc
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 3]
test eax, eax
jne 0x10026878
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 4]
cmp edx, 0x30
jne 0x10026878
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 5]
test ecx, ecx
jne 0x10026878
call fcn.10022110
xor edx, edx
mov ecx, 0x64
div ecx
cmp eax, 4
jne 0x10026878
mov al, 1
jmp 0x10026895
push 6
push 0x45810a4
mov edx, dword [ebp + 8]
push edx
call fcn.10058bcd
add esp, 0xc
test eax, eax
jne 0x10026893
mov al, 1
jmp 0x10026895
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10058185
mov esp, ebp
pop ebp
ret

Function at 0x100332b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10031710
add esp, 0xc
pop ebp
ret
Function at 0x1003c6d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x458a210]
xor eax, ebp
mov dword [ebp - 0xc], eax
call fcn.10034610
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, dword [0x4595c78]
add eax, 5
mov ecx, dword [0x4595c7c]
adc ecx, 0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x4c]
jg 0x1003c719
jl 0x1003c714
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x50]
jae 0x1003c719
jmp 0x1003c89e
mov ecx, dword [ebp - 8]
mov dword [0x4595c78], ecx
mov edx, dword [ebp - 4]
mov dword [0x4595c7c], edx
mov byte [0x45944dd], 0
mov al, byte [0x45944dd]
mov byte [0x45944dc], al
mov byte [ebp - 0x2f], 0x4f
mov byte [ebp - 0x25], 0x43
mov byte [ebp - 0x10], 0
mov byte [ebp - 0x33], 0x52
mov byte [ebp - 0x32], 0x4f
mov byte [ebp - 0x3f], 0x73
mov byte [ebp - 0x17], 0x6f
mov byte [ebp - 0x34], 0x50
mov byte [ebp - 0x46], 0x67
mov byte [ebp - 0x40], 0x61
mov byte [ebp - 0x23], 0x41
mov byte [ebp - 0x22], 0x53
mov byte [ebp - 0x1c], 0x46
mov byte [ebp - 0x45], 0x4d
mov byte [ebp - 0x24], 0x4c
mov byte [ebp - 0x21], 0x53
mov byte [ebp - 0x1a], 0x6c
mov byte [ebp - 0x2e], 0x4e
mov byte [ebp - 0x2d], 0x5f
mov byte [ebp - 0x42], 0x43
mov byte [ebp - 0x16], 0x6e
mov byte [ebp - 0x3d], 0
mov byte [ebp - 0x27], 0x57
mov byte [ebp - 0x26], 0x5f
mov byte [ebp - 0x44], 0x6f
mov byte [ebp - 0x47], 0x65
mov byte [ebp - 0x13], 0x61
mov byte [ebp - 0x41], 0x6c
mov byte [ebp - 0x15], 0x43
mov byte [ebp - 0x30], 0x4d
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x18], 0x4d
mov byte [ebp - 0x48], 0x52
mov byte [ebp - 0x31], 0x43
mov byte [ebp - 0x2a], 0x4e
mov byte [ebp - 0x3e], 0x73
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x43], 0x6e
mov byte [ebp - 0x12], 0x73
mov byte [ebp - 0x29], 0x44
mov byte [ebp - 0x28], 0x4f
mov byte [ebp - 0x1b], 0x69
mov byte [ebp - 0x11], 0x73
mov byte [ebp - 0x2c], 0x57
mov byte [ebp - 0x2b], 0x49
mov byte [ebp - 0x14], 0x6c
push 0
lea ecx, [ebp - 0x1c]
push ecx
call dword [0x457f3cc]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x1003c810
mov byte [0x45944dd], 1
push 0
lea edx, [ebp - 0x48]
push edx
call dword [0x457f3cc]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x1003c82c
mov byte [0x45944dc], 1
push 0
lea eax, [ebp - 0x34]
push eax
call dword [0x457f3cc]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x1003c84f
mov byte [0x45944dc], 1
mov byte [0x45944dd], 1
movzx ecx, byte [0x45944dc]
test ecx, ecx
je 0x1003c865
movzx edx, byte [0x45944dd]
test edx, edx
jne 0x1003c872
push 0
push 0x454a540
call dword [0x457f3fc]
mov edx, dword [0x457f01c]
push edx
mov eax, dword [0x457f000]
push eax
call fcn.100239d0
add esp, 8
test eax, eax
je 0x1003c89e
mov byte [0x45944dc], 1
mov cl, byte [0x45944dc]
mov byte [0x45944dd], cl
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.10058185
mov esp, ebp
pop ebp
ret
Function at 0x401320
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x407018]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x134]
push eax
push edi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4013cd
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x110]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401390
test dl, dl
je 0x40138c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401390
add eax, 2
add ecx, 2
test dl, dl
jne 0x401370
xor eax, eax
jmp 0x401395
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4013bb
mov ecx, dword [ebp - 0x12c]
push ecx
push eax
push 1
call ebx
mov esi, eax
test esi, esi
je 0x4013bb
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x134]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x401364
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004034d0
mov esp, ebp
pop ebp
ret
Function at 0x402ad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403f88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x407018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x402c62
cmp byte [ebx + 0x49], 0
je 0x402c62
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x402c56
lea esi, [ebp - 0x2c]
call fcn.004028d0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x402b43
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x402b7b
dec eax
je 0x402b7f
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x402c5d
call fcn.00401c20
xor al, al
jmp 0x402c64
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x402b8f
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x402bbd
cmp edi, 0x10
jae 0x402b9e
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x402c4e
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x402c5a
test esi, esi
jne 0x402b37
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x402c7f
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x402c7f
cmp edi, esi
jae 0x402c37
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.00403090
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x402b37
mov ecx, eax
cmp edi, 0x10
jae 0x402c13
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x402c2e
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x402b31
test esi, esi
jne 0x402c09
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x402c46
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x402b31
lea esi, [ebp - 0x2c]
call fcn.00401c20
xor al, al
jmp 0x402c64
lea esi, [ebp - 0x2c]
call fcn.00401c20
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004034d0
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3

Function at 0x4034d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x407018]
jne 0x4034da
repz ret
jmp fcn.004038ed
Function at 0x40c3d0
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword [0x94b584]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40c59b
sub esp, 0x38
mov eax, dword [esp + 0x3c]
cmp eax, 0x7000000
jle 0x40c3f9
mov eax, 0x7000000
jmp 0x40c401
test eax, eax
je 0x40c576
mov dword [esp + 0x14], eax
mov ecx, dword [0x94b584]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x94]
mov ebx, dword [ecx + 0x98]
mov ebp, edx
shl edx, 0x11
xor edx, ebp
mov ebp, ebx
xor ebx, edx
shr edx, 7
xor edx, ebx
mov ebx, ebp
shr ebp, 0x10
xor ebp, edx
lea edx, [ebp + ebx]
shr edx, 6
inc edx
mov dword [ecx + 0x94], ebx
mov dword [ecx + 0x98], ebp
mov dword [esp], edx
call fcn.00467e90
movsd xmm0, qword [esp + 4]
movsd qword [esp + 0x28], xmm0
mov eax, dword [esp + 0x2c]
mov ecx, eax
shr ecx, 0x14
and ecx, 0x7ff
mov edx, eax
shr edx, 0xf
and edx, 0x1f
shl eax, 5
mov ebx, dword [esp + 0x28]
shr ebx, 0x1b
or ebx, eax
lea eax, [0x8ee7e0]
movsd xmm0, qword [eax + edx*8]
mov ebp, ecx
add ecx, 0xfffffc01
add edx, 1
mov esi, 0
adc esi, 0
test esi, esi
jne 0x40c58e
cmp edx, 0x21
jae 0x40c582
movsd qword [esp + 0x18], xmm0
add ebp, 0xfffffc01
mov ebp, 0xffffffff
adc ebp, 0
and ebx, 0xfffff
mov dword [esp + 0x10], ebx
movsd xmm0, qword [eax + edx*8]
movsd qword [esp + 0x20], xmm0
mov dword [esp + 4], ebp
mov dword [esp], ecx
call fcn.0045fc20
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x30], xmm0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call fcn.0045fcf0
movsd xmm0, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x18]
addsd xmm0, xmm1
movsd xmm2, qword [esp + 0x20]
subsd xmm2, xmm1
movsd xmm1, qword [esp + 8]
mulsd xmm1, xmm2
movsd xmm2, qword [0x6dcbf8]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd xmm1, qword [0x6dcc48]
subsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jbe 0x40c551
xorps xmm0, xmm0
mov eax, dword [esp + 0x14]
cvtsi2sd xmm1, eax
movsd xmm2, qword [0x6dcc90]
mulsd xmm1, xmm2
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
inc eax
mov dword [esp + 0x40], eax
add esp, 0x38
ret
mov dword [esp + 0x40], 0
add esp, 0x38
ret
mov eax, edx
mov ecx, 0x21
call fcn.00467f50
mov eax, edx
mov ecx, 0x21
call fcn.00468030
nop
call fcn.00466ae0
jmp fcn.0040c3d0