joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30012735
Capabilities:
Connect to http server

Disassembly:
mov eax, dword [0x3002c398]
xor ecx, ecx
test eax, eax
je 0x30012745
mov ecx, 0x800000
neg eax
sbb eax, eax
push 1
and eax, 0x16b
push ecx
push 3
add eax, 0x50
push 0x30012730
push 0x30012734
push eax
push 0x3002b96c
push dword [0x3002b938]
call dword [sym.imp.WININET.DLL_InternetConnectA]
and dword [0x3002b944], 0
mov dword [0x3002b93c], eax
test eax, eax
mov dword [0x3002d810], 1
jne 0x3001279c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x300127b8
xor eax, eax
ret
and dword [0x3002d810], 0
push 0
push 0
push 0x1427
push dword [0x3002d814]
call dword [sym.imp.USER32.DLL_PostMessageA]
push 1
pop eax
ret

Function at 0x300128a1
Capabilities:
Send data

Disassembly:
mov eax, dword [0x3002c3ac]
push edi
xor edi, edi
cmp eax, edi
je 0x300128f2
mov ecx, dword [0x3002c3a0]
push 0x3002c3a8
push dword [0x3002c3a4]
add ecx, eax
mov dword [0x3002d810], 1
push ecx
push dword [0x3002b940]
call dword [sym.imp.WININET.DLL_InternetWriteFile]
test eax, eax
jne 0x300128ec
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x30012905
xor eax, eax
pop edi
ret
mov dword [0x3002d810], edi
push edi
push edi
push 0x1427
push dword [0x3002d814]
call dword [sym.imp.USER32.DLL_PostMessageA]
push 1
pop eax
pop edi
ret
Function at 0x30013754
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 0x3001378e
lea eax, [ebp - 0x434]
push esi
push eax
push 0x30001868
call fcn.300254dd
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 0x300137be
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push esi
push eax
push 0x30001878
call fcn.300254dd
lea eax, [ebp - 0x24]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
push 0x30001630
call fcn.300254f8
mov ebx, 0x3002a6c8
mov esi, eax
push ebx
call fcn.300254f8
lea ecx, [esi + eax + 2]
mov esi, dword [sym.imp.SHLWAPI.DLL_wnsprintfA]
mov eax, 0x104
mov edi, 0x208
cmp ecx, eax
jg 0x300138ba
push 0x30001630
push ebx
push 0x30013720
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.3000f35f
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x22c]
push 0x30013728
push eax
call fcn.300254f8
mov ecx, edi
sub ecx, eax
lea eax, [ebp - 0x22c]
push ecx
push eax
call fcn.300254f8
lea eax, [ebp + eax - 0x22c]
push eax
call esi
mov eax, dword [0x3002abf8]
add esp, 0x14
mov eax, dword [eax]
test eax, eax
je 0x30013872
push eax
push 0x30013730
jmp 0x3001387d
push dword [0x3002a9d4]
push 0x30013738
lea eax, [ebp - 0x22c]
push eax
call fcn.300254f8
mov ecx, edi
sub ecx, eax
lea eax, [ebp - 0x22c]
push ecx
push eax
call fcn.300254f8
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.3000e431
push 0x30001648
call fcn.300254f8
push 0x3002a7cc
mov ebx, eax
call fcn.300254f8
lea ecx, [ebx + eax + 2]
mov eax, 0x104
cmp ecx, eax
pop ebx
jg 0x3001396b
push 0x30001648
push 0x3002a7cc
push 0x30013740
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.3000f35f
push 0x3002a9d8
call fcn.3000ea49
cmp byte [eax], 0x5c
jne 0x3001391f
inc eax
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x22c]
push 0x30013748
push eax
call fcn.300254f8
sub edi, eax
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.300254f8
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.3000e431
pop edi
pop esi
leave
ret
Function at 0x30017a86
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 0x30017ac6
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 0x30017aa4
and esi, 3
xor eax, eax
dec esi
je 0x30017ae2
dec esi
je 0x30017adb
dec esi
jne 0x30017ae7
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 0x300184a2
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 0x300184c0
pop edi
pop esi
ret 4
Function at 0x3001c756
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 0x3001c77d
xor eax, eax
jmp 0x3001c7af
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 0x3001c7a6
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x14]
je 0x3001c7aa
xor eax, eax
jmp 0x3001c7af
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
je 0x3001c7c7
cmp dword [ebp + 8], 0xffffffff
jne 0x3001c7d8
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3001c7ef
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x14], 0
jne 0x3001c806
push 0x30001c70
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 0x3001c82f
xor eax, eax
jmp 0x3001c8ab
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 0x3001c856
xor eax, eax
jmp 0x3001c8ab
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 0x3001c87f
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
je 0x3001c883
xor eax, eax
jmp 0x3001c8ab
cmp dword [ebp + 0x18], 0
je 0x3001c891
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 0x3001cb2a
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
je 0x3001cb3c
cmp dword [ebp + 8], 0xffffffff
jne 0x3001cb4d
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x3001cb64
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3001cb7b
push 0x30001c70
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 0x3001cb9e
xor eax, eax
jmp 0x3001cc14
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 0x3001cbc5
xor eax, eax
jmp 0x3001cc14
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 0x3001cbee
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
je 0x3001cbf2
xor eax, eax
jmp 0x3001cc14
cmp dword [ebp + 0x18], 0
je 0x3001cc00
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 0x3001cc1a
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
je 0x3001cc2c
cmp dword [ebp + 8], 0xffffffff
jne 0x3001cc3d
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3001cc54
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
xor eax, eax
test eax, eax
je 0x3001cc6b
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.30022021
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 0x3001ccab
xor eax, eax
jmp 0x3001cd56
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 0x3001ccd5
xor eax, eax
jmp 0x3001cd56
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 0x3001ccfa
cmp dword [ebp - 8], 4
je 0x3001ccfe
xor eax, eax
jmp 0x3001cd56
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 0x3001cd30
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x14]
je 0x3001cd34
xor eax, eax
jmp 0x3001cd56
cmp dword [ebp + 0x14], 0
je 0x3001cd42
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 0x3001cd5c
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
je 0x3001cd6e
cmp dword [ebp + 8], 0xffffffff
jne 0x3001cd7f
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x3001cd96
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3001cdad
push 0x30001c70
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 0x3001cdd7
xor eax, eax
jmp 0x3001ce4d
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 0x3001cdfe
xor eax, eax
jmp 0x3001ce4d
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 0x3001ce27
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
je 0x3001ce2b
xor eax, eax
jmp 0x3001ce4d
cmp dword [ebp + 0x14], 0
je 0x3001ce39
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 0x3001ce53
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
je 0x3001ce65
cmp dword [ebp + 8], 0xffffffff
jne 0x3001ce76
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x3001ce8d
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3001cea4
push 0x30001c70
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 0x3001cece
xor eax, eax
jmp 0x3001cf44
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 0x3001cef5
xor eax, eax
jmp 0x3001cf44
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 0x3001cf1e
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
je 0x3001cf22
xor eax, eax
jmp 0x3001cf44
cmp dword [ebp + 0x14], 0
je 0x3001cf30
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 0x3001d615
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
cmp dword [ebp + 8], 0
je 0x3001d627
cmp dword [ebp + 8], 0xffffffff
jne 0x3001d638
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3001d64f
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x3001d666
push 0x30001c70
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 0x3001d67e
mov eax, 1
jmp 0x3001d7ab
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 0x3001d6b4
xor eax, eax
jmp 0x3001d7ab
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 0x3001d6ed
cmp dword [ebp - 0x2c], 0xc
je 0x3001d6f4
xor eax, eax
jmp 0x3001d7ab
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 0x3001d7a6
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.3001cc1a
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x3001d753
xor eax, eax
jmp 0x3001d7ab
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.3001ce53
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x3001d70c
xor eax, eax
jmp 0x3001d7ab
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x3001deab
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
jne 0x3001dec8
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x3001dedf
push 0x30001c70
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 0x3001df31
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.30022021
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 0x3001deef
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x48], 0
je 0x3001df4b
push 0x30001c70
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 0x3001df89
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
jne 0x3001dfa6
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x3001dfbd
push 0x30001c70
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 0x3001e022
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 0x3001dfcd
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x54], 0
je 0x3001e03c
push 0x30001c70
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 0x3001e05a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x14], 0
jne 0x3001e06d
mov eax, 1
jmp 0x3001e0b7
cmp dword [ebp + 0x14], 0xffffffff
jbe 0x3001e077
xor eax, eax
jmp 0x3001e0b7
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 0x3001e0ae
cmp dword [ebp - 0x10], 0xc
je 0x3001e0b2
xor eax, eax
jmp 0x3001e0b7
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10