joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3001392a
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push esi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x434]
mov esi, 0x101
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.DLL_GetUserNameA]
test eax, eax
jne 0x30013964
lea eax, [ebp - 0x434]
push esi
push eax
push 0x30001870
call fcn.30025695
push 0x10
lea eax, [ebp - 4]
pop esi
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
test eax, eax
jne 0x30013994
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push esi
push eax
push 0x30001880
call fcn.30025695
lea eax, [ebp - 0x24]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
push 0x30001638
call fcn.300256b0
mov ebx, 0x3002a6c8
mov esi, eax
push ebx
call fcn.300256b0
lea ecx, [esi + eax + 2]
mov esi, dword [sym.imp.SHLWAPI.DLL_wnsprintfA]
mov eax, 0x104
mov edi, 0x208
cmp ecx, eax
jg 0x30013a90
push 0x30001638
push ebx
push 0x300138f6
push eax
lea eax, [ebp - 0x330]
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x22c]
push edi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.3000f509
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x22c]
push 0x300138fe
push eax
call fcn.300256b0
mov ecx, edi
sub ecx, eax
lea eax, [ebp - 0x22c]
push ecx
push eax
call fcn.300256b0
lea eax, [ebp + eax - 0x22c]
push eax
call esi
mov eax, dword [0x3002abf8]
add esp, 0x14
mov eax, dword [eax]
test eax, eax
je 0x30013a48
push eax
push 0x30013906
jmp 0x30013a53
push dword [0x3002a9d4]
push 0x3001390e
lea eax, [ebp - 0x22c]
push eax
call fcn.300256b0
mov ecx, edi
sub ecx, eax
lea eax, [ebp - 0x22c]
push ecx
push eax
call fcn.300256b0
lea eax, [ebp + eax - 0x22c]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.3000e5db
push 0x30001650
call fcn.300256b0
push 0x3002a7cc
mov ebx, eax
call fcn.300256b0
lea ecx, [ebx + eax + 2]
mov eax, 0x104
cmp ecx, eax
pop ebx
jg 0x30013b41
push 0x30001650
push 0x3002a7cc
push 0x30013916
push eax
lea eax, [ebp - 0x330]
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x22c]
push edi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.3000f509
push 0x3002a9d8
call fcn.3000ebf3
cmp byte [eax], 0x5c
jne 0x30013af5
inc eax
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x22c]
push 0x3001391e
push eax
call fcn.300256b0
sub edi, eax
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.300256b0
lea eax, [ebp + eax - 0x22c]
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.3000e5db
pop edi
pop esi
leave
ret
Function at 0x30017c3e
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, eax
dec eax
test edi, edi
jle 0x30017c7e
lea edi, [eax + 1]
movzx eax, byte [ecx]
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or eax, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or eax, ebx
inc ecx
xor edx, eax
dec edi
jne 0x30017c5c
and esi, 3
xor eax, eax
dec esi
je 0x30017c9a
dec esi
je 0x30017c93
dec esi
jne 0x30017c9f
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
pop edi
pop esi
xor eax, edx
pop ebx
ret 0xc

Function at 0x3001865a
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edx, 0x8000
mov ecx, dword [eax + 0x14]
and dword [eax + 0x20], 0
push 2
mov word [eax + 0x3c], dx
mov dword [eax + 0x34], edx
add ecx, edx
pop edx
movzx esi, byte [ecx]
mov edi, dword [eax + 0x20]
and esi, 0x7fff
and edi, 0x3ff
shl edi, 5
xor esi, edi
inc ecx
dec edx
mov dword [eax + 0x20], esi
jne 0x30018678
pop edi
pop esi
ret 4
Function at 0x3001c90e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
je 0x3001c935
xor eax, eax
jmp 0x3001c967
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x3001c95e
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x14]
je 0x3001c962
xor eax, eax
jmp 0x3001c967
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10

Function at 0x3001c96d
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
je 0x3001c97f
cmp dword [ebp + 8], 0xffffffff
jne 0x3001c990
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3001c9a7
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x14], 0
jne 0x3001c9be
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x84]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x7c]
mov eax, dword [ebp + 0xc]
add ecx, dword [eax + 0x80]
cmp edx, ecx
jbe 0x3001c9e7
xor eax, eax
jmp 0x3001ca63
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x3001ca0e
xor eax, eax
jmp 0x3001ca63
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x3001ca37
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
je 0x3001ca3b
xor eax, eax
jmp 0x3001ca63
cmp dword [ebp + 0x18], 0
je 0x3001ca49
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x84]
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x84], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x3001cce2
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
je 0x3001ccf4
cmp dword [ebp + 8], 0xffffffff
jne 0x3001cd05
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x3001cd1c
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3001cd33
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x28]
mov eax, dword [ebp + 0xc]
add ecx, dword [eax + 0x2c]
cmp edx, ecx
jbe 0x3001cd56
xor eax, eax
jmp 0x3001cdcc
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x3001cd7d
xor eax, eax
jmp 0x3001cdcc
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x3001cda6
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
je 0x3001cdaa
xor eax, eax
jmp 0x3001cdcc
cmp dword [ebp + 0x18], 0
je 0x3001cdb8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x30]
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x30], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x3001cdd2
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
je 0x3001cde4
cmp dword [ebp + 8], 0xffffffff
jne 0x3001cdf5
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3001ce0c
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
xor eax, eax
test eax, eax
je 0x3001ce23
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.300221d9
add esp, 4
shl eax, 1
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
add edx, 6
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x78]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x70]
mov eax, dword [ebp + 0xc]
add ecx, dword [eax + 0x74]
cmp edx, ecx
jbe 0x3001ce63
xor eax, eax
jmp 0x3001cf0e
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x3001ce8d
xor eax, eax
jmp 0x3001cf0e
push 0
lea edx, [ebp - 8]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x3001ceb2
cmp dword [ebp - 8], 4
je 0x3001ceb6
xor eax, eax
jmp 0x3001cf0e
mov edx, dword [ebp - 0x14]
add edx, 2
mov dword [ebp - 0x14], edx
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x3001cee8
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x14]
je 0x3001ceec
xor eax, eax
jmp 0x3001cf0e
cmp dword [ebp + 0x14], 0
je 0x3001cefa
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x78]
add edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x78], edx
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x3001cf14
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
je 0x3001cf26
cmp dword [ebp + 8], 0xffffffff
jne 0x3001cf37
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x3001cf4e
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3001cf65
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
mov dword [ebp - 4], 0x6c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov eax, dword [ebp + 0xc]
add ecx, dword [eax + 0x3c]
cmp edx, ecx
jbe 0x3001cf8f
xor eax, eax
jmp 0x3001d005
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x3001cfb6
xor eax, eax
jmp 0x3001d005
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x3001cfdf
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
je 0x3001cfe3
xor eax, eax
jmp 0x3001d005
cmp dword [ebp + 0x14], 0
je 0x3001cff1
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x40]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x40], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x3001d00b
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
je 0x3001d01d
cmp dword [ebp + 8], 0xffffffff
jne 0x3001d02e
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x3001d045
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3001d05c
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
mov dword [ebp - 4], 0x18
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x4c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x44]
mov eax, dword [ebp + 0xc]
add ecx, dword [eax + 0x48]
cmp edx, ecx
jbe 0x3001d086
xor eax, eax
jmp 0x3001d0fc
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x3001d0ad
xor eax, eax
jmp 0x3001d0fc
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x3001d0d6
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
je 0x3001d0da
xor eax, eax
jmp 0x3001d0fc
cmp dword [ebp + 0x14], 0
je 0x3001d0e8
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x4c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x4c], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x3001d7cd
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
cmp dword [ebp + 8], 0
je 0x3001d7df
cmp dword [ebp + 8], 0xffffffff
jne 0x3001d7f0
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3001d807
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x3001d81e
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
mov eax, dword [ebp + 0x10]
add eax, 0x34
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x34], eax
jne 0x3001d836
mov eax, 1
jmp 0x3001d963
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x20], eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0
jne 0x3001d86c
xor eax, eax
jmp 0x3001d963
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x34], 0x18
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x30], edx
push 0
lea eax, [ebp - 0x2c]
push eax
push 0xc
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x3001d8a5
cmp dword [ebp - 0x2c], 0xc
je 0x3001d8ac
xor eax, eax
jmp 0x3001d963
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x4c]
add ecx, 0xc
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x4c], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0x10]
add edx, 0x34
cmp dword [ebp - 0x1c], edx
je 0x3001d95e
mov eax, dword [ebp - 0x1c]
sub eax, 0x220
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x14
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.3001cdd2
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x3001d90b
xor eax, eax
jmp 0x3001d963
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], ecx
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.3001d00b
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x3001d8c4
xor eax, eax
jmp 0x3001d963
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x3001e063
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
jne 0x3001e080
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x3001e097
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
add edx, 0x34
cmp dword [ebp - 8], edx
je 0x3001e0e9
mov eax, dword [ebp - 8]
sub eax, 0x220
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
add eax, 0x14
push eax
call fcn.300221d9
add esp, 4
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
jmp 0x3001e0a7
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x48], 0
je 0x3001e103
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x48]
add eax, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x48], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
imul eax, eax, 0x18
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x48]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x48], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x74]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x74], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x3001e141
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
jne 0x3001e15e
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x3001e175
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
add edx, 0x3c
cmp dword [ebp - 4], edx
je 0x3001e1da
mov eax, dword [ebp - 4]
sub eax, 0x5c
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 8]
lea eax, [edx + ecx*8 + 0x50]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x54]
shl edx, 4
mov eax, dword [ebp + 0xc]
add edx, dword [eax + 0x5c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x5c], edx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x68]
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 0x58]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x68], eax
jmp 0x3001e185
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x54], 0
je 0x3001e1f4
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x54]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx + 0x18]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x54], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x3001e212
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x14], 0
jne 0x3001e225
mov eax, 1
jmp 0x3001e26f
cmp dword [ebp + 0x14], 0xffffffff
jbe 0x3001e22f
xor eax, eax
jmp 0x3001e26f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 8], edx
push 0
lea eax, [ebp - 0x10]
push eax
push 0xc
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x3001e266
cmp dword [ebp - 0x10], 0xc
je 0x3001e26a
xor eax, eax
jmp 0x3001e26f
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x3001eb1e
Capabilities:
Get system information on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
mov dword [ebp - 0x140], 0
lea eax, [ebp - 0x1fc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov cx, word [ebp - 0x1fc]
mov word [ebp - 0x38], cx
mov dx, word [ebp - 0x1dc]
mov word [ebp - 0x36], dx
mov ax, word [ebp - 0x1da]
mov word [ebp - 0x34], ax
mov word [ebp - 0x32], 0
mov dword [ebp - 0x1d8], 0x94
lea ecx, [ebp - 0x1d8]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov dword [ebp - 0x200], eax
cmp dword [ebp - 0x200], 0
jne 0x3001eb92
xor eax, eax
jmp 0x3001eca1
mov edx, dword [ebp - 0x1d4]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x1d0]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x1cc]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x1c8]
mov dword [ebp - 0x24], edx
push 0x80
lea eax, [ebp - 0x138]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
jne 0x3001ebe0
xor eax, eax
jmp 0x3001eca1
lea edx, [ebp - 0x138]
push edx
call fcn.300221d9
add esp, 4
lea eax, [eax + eax + 2]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x13c]
cmp edx, dword [ecx + 0x1c]
je 0x3001ec25
mov eax, 1
test eax, eax
je 0x3001ec21
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
xor eax, eax
jmp 0x3001eca1
lea ecx, [ebp - 0x140]
push ecx
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.3001cdd2
mov dword [ebp - 0x200], eax
cmp dword [ebp - 0x200], 0
jne 0x3001ec53
xor eax, eax
jmp 0x3001eca1
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x18]
push eax
call fcn.3001ea5d
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], 0x38
je 0x3001ec7f
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
push 0x38
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.3001c90e
mov dword [ebp - 0x200], eax
mov eax, dword [ebp - 0x200]
mov esp, ebp
pop ebp
ret 8