joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10028510
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
xor ebx, ebx
mov dword [ebp - 4], edx
mov dword [ebp - 8], 0xffffffff
mov ecx, dword [edi + 8]
mov dword [ebp - 0x14], ecx
movzx eax, word [ecx + 0x14]
lea esi, [ecx + 0x18]
add esi, eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov eax, dword [edi + 8]
mov edx, ecx
movzx eax, word [eax + 6]
mov dword [ebp - 0x18], eax
cmp ax, 0x60
mov dword [ebp - 0x10], ecx
movzx eax, ax
jb 0x1002855d
mov eax, 0x60
cmp ecx, eax
jge 0x100285fd
mov eax, dword [edi + 4]
cmp eax, 0x28
jb 0x10028652
mov ecx, dword [edi]
cmp esi, ecx
jb 0x10028652
add eax, 0xffffffd8
add eax, ecx
cmp esi, eax
ja 0x10028652
mov ecx, dword [esi + 0xc]
mov eax, ecx
cmp dword [ebp - 8], ecx
cmovbe eax, dword [ebp - 8]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 8], eax
jb 0x100285dc
ja 0x100285a4
cmp dword [ebp + 0xc], ecx
jb 0x100285dc
cmp edx, ecx
ja 0x100285dc
mov eax, dword [ebp - 0x14]
mov edi, 0x200
mov ebx, dword [esi + 0x14]
mov edx, ecx
mov dword [ebp - 4], edx
mov eax, dword [eax + 0x3c]
cmp eax, edi
cmovb edi, eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
test edi, edi
je 0x100285eb
xor edx, edx
mov eax, ebx
div edi
mov edi, dword [ebp + 8]
test edx, edx
je 0x100285d9
sub ebx, edx
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
add esi, 0x28
mov eax, dword [ebp - 0x18]
inc ecx
jmp 0x1002854c
mov ecx, dword [ebp - 0x10]
add esi, 0x28
mov edi, dword [ebp + 8]
inc ecx
mov eax, dword [ebp - 0x18]
jmp 0x1002854c
cmp dword [ebp + 0x10], 0
ja 0x1002861a
jb 0x1002860d
mov eax, dword [ebp - 8]
cmp dword [ebp + 0xc], eax
jae 0x1002861a
mov eax, dword [edi + 4]
xor edx, edx
mov dword [ebp - 4], edx
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov esi, dword [ebp + 0xc]
mov ecx, esi
mov eax, dword [ebp + 0x10]
sub ecx, edx
sbb eax, 0
test eax, eax
ja 0x10028652
jb 0x10028632
cmp ecx, dword [ebp - 0xc]
jae 0x10028652
xor edx, edx
sub ebx, dword [ebp - 4]
sbb edx, edx
add ebx, esi
adc edx, dword [ebp + 0x10]
test edx, edx
jg 0x10028652
jl 0x10028649
cmp ebx, dword [edi + 4]
jae 0x10028652
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
or edx, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002adf0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea ecx, [eax + 8]
mov dword [ebp - 8], ecx
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov ebx, dword [ebp + 0xc]
lea eax, [ecx + edi]
mov ecx, 3
mov dword [ebp + 8], eax
div ecx
mov eax, dword [ebp + 0x14]
mov esi, edx
sub ecx, esi
neg esi
sbb esi, esi
and esi, ecx
mov dword [eax], esi
mov eax, dword [ebp - 4]
lea ecx, [eax*4 + 3]
mov eax, 0xaaaaaaab
mul ecx
lea eax, [edi + 0xc]
shr edx, 1
add edx, esi
add eax, edx
push eax
call fcn.1000b8b0
mov edi, eax
add esp, 4
mov dword [ebp + 0x14], edi
test edi, edi
je 0x1002ae74
push dword [ebp + 8]
call fcn.1000b8b0
mov esi, eax
add esp, 4
mov dword [ebp + 0xc], esi
test esi, esi
jne 0x1002ae7d
push edi
call fcn.1000b8a0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp + 8], eax
test ecx, ecx
jle 0x1002aea6
mov dword [ebp + 8], ecx
mov eax, 0x41414141
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 0x14]
mov eax, edx
push dword [ebp - 4]
add eax, esi
push dword [ebp - 8]
push eax
call fcn.10035110
mov edx, esi
add esp, 0xc
lea esi, [edi + 8]
mov eax, edx
mov edi, dword [ebp + 8]
add edi, dword [ebp - 4]
add eax, edi
mov dword [ebp + 0x10], eax
cmp edi, 3
jl 0x1002af32
nop
movzx eax, byte [edx]
sub edi, 3
shr eax, 2
movzx eax, byte [eax + ebx + 8]
mov byte [esi], al
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ecx + ebx + 8]
mov byte [esi + 1], al
movzx ecx, byte [edx + 1]
movzx eax, byte [edx + 2]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
movzx eax, byte [ecx + ebx + 8]
mov byte [esi + 2], al
movzx eax, byte [edx + 2]
add edx, 3
and eax, 0x3f
movzx eax, byte [eax + ebx + 8]
mov byte [esi + 3], al
add esi, 4
cmp edi, 3
jge 0x1002aed0
mov eax, dword [ebp + 0x10]
sub eax, edx
mov dword [ebp + 0x10], eax
je 0x1002af84
movzx eax, byte [edx]
shr eax, 2
mov al, byte [eax + ebx + 8]
mov byte [esi], al
movzx ecx, byte [edx]
and ecx, 3
shl ecx, 4
cmp dword [ebp + 0x10], 1
jne 0x1002af5f
mov al, byte [ecx + ebx + 8]
mov cl, 0x3d
mov byte [esi + 1], al
jmp 0x1002af7a
movzx eax, byte [edx + 1]
shr eax, 4
or eax, ecx
mov al, byte [eax + ebx + 8]
mov byte [esi + 1], al
movzx eax, byte [edx + 1]
and eax, 0xf
mov cl, byte [ebx + eax*4 + 8]
mov byte [esi + 2], cl
mov byte [esi + 3], 0x3d
add esi, 4
push dword [ebp + 0xc]
call fcn.1000b8a0
mov eax, dword [ebp + 0x14]
add esp, 4
sub esi, eax
sub esi, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002dff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1002e1a0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1002e0bd
mov edx, dword [ebp - 4]
cmp edx, dword [0x10068c54]
jb 0x1002e03a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10068c58]
ja 0x1002e03a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1002e00a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10035c10
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1002e060
jmp 0x1002e0bd
cmp dword [ebp - 0x14], 0x10000
jne 0x1002e0a3
cmp dword [ebp - 0x18], 0x10000
jb 0x1002e0a3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1002e096
mov eax, dword [ebp - 8]
jmp 0x1002e0bf
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1002e0b8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1002e1a0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1002e00a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1002e0d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1002e1d0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1002e195
mov edx, dword [ebp - 4]
cmp edx, dword [0x10068c54]
jb 0x1002e115
mov eax, dword [ebp - 4]
cmp eax, dword [0x10068c58]
ja 0x1002e115
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1002e0e5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10035c10
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1002e13b
jmp 0x1002e195
cmp dword [ebp - 0x14], 0x10000
jne 0x1002e17e
cmp dword [ebp - 0x18], 0x10000
jb 0x1002e17e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1002e171
mov eax, dword [ebp - 8]
jmp 0x1002e197
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1002e190
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1002e1d0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1002e0e5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10047479
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100472ef
Function at 0x70a4169e
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x711a8008]
movzx eax, word [eax + 0x14]
movzx eax, ax
mov edx, dword [0x711a8008]
add eax, edx
add eax, 0x18
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], 0
jmp 0x70a41722
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [0x711a8004]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov edx, dword [0x711a800c]
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.70a428e8
add dword [ebp - 0xc], 0x28
add dword [ebp - 0x10], 1
mov eax, dword [0x711a8008]
movzx eax, word [eax + 6]
movzx eax, ax
cmp eax, dword [ebp - 0x10]
ja 0x70a416dc
nop
leave
ret
Function at 0x404928
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x409b08
call fcn.00404df4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x40bdec
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x4046e3
cmp eax, esi
jne 0x4046d6
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4046e6
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4046bd
xor esi, esi
inc esi
mov eax, dword [0x40bde8]
cmp eax, esi
jne 0x4046f9
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x404728
mov eax, dword [0x40bde8]
test eax, eax
jne 0x404722
mov dword [0x40bde8], esi
push 0x401220
push 0x401214
call fcn.0040461f
pop ecx
pop ecx
test eax, eax
je 0x404728
jmp 0x40484c
mov dword [0x40b370], esi
mov eax, dword [0x40bde8]
cmp eax, esi
jne 0x40474c
push 0x401210
push 0x401204
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40bde8], 2
cmp dword [ebp - 0x20], ebx
jne 0x404759
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x40bdf4], ebx
je 0x40477a
push 0x40bdf4
call fcn.00404d69
pop ecx
test eax, eax
je 0x40477a
push ebx
push 2
push ebx
call dword [0x40bdf4]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x40484c
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x4047e4
cmp cx, bx
je 0x40479f
cmp dword [ebp - 0x1c], ebx
jne 0x4047e4
movzx ecx, word [eax]
cmp cx, bx
je 0x4047b4
cmp cx, 0x20
ja 0x4047b4
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x40479f
test byte [ebp - 0x40], 1
je 0x4047c0
movzx ecx, word [ebp - 0x3c]
jmp 0x4047c3
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call main
mov dword [0x40b36c], eax
cmp dword [0x40b360], ebx
jne 0x404829
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x4047f5
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x404789
cmp dword [0x40b370], ebx
jne 0x404837
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40b36c]
jmp 0x404858
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00404e39
ret
call fcn.00404fe7
jmp 0x404680
Function at 0x405678
Capabilities:
Get file size

Disassembly:
push 0x20
push 0x409b90
call fcn.00404df4
mov edi, ecx
mov dword [ebp - 0x28], edi
cmp dword [edi + 0x10], 0xffffffff
je 0x4057b0
call fcn.00405465
test eax, eax
je 0x4057b0
xor ebx, ebx
push ebx
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
test byte [edi + 0xc], 0x14
mov esi, 0x200000
je 0x4056bf
mov esi, 0x2d00000
cmp eax, 0xffffffff
je 0x4057a0
cmp eax, esi
jbe 0x4057a0
mov dword [ebp - 0x20], eax
push ebx
push ebx
push ebx
push 4
push ebx
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x4057a0
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
test ebx, ebx
je 0x405776
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
add eax, ebx
shr esi, 1
mov ecx, eax
sub ecx, esi
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], eax
jae 0x405727
mov edx, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
cmp byte [edx], 0xa
jne 0x405714
cmp dword [ebp - 0x1c], eax
jne 0x40572c
mov dword [ebp - 0x1c], ecx
sub eax, dword [ebp - 0x1c]
mov esi, eax
push esi
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x40576f
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
je 0x40579e
push 0
push 0
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
mov eax, dword [0x40b6ac]
cmp eax, ebx
je 0x4057b0
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.00404e39
ret
Function at 0x405cda
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x40b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebx], edi
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x20c], edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x22c]
push eax
mov dword [ebp - 0x210], esi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 9
push edi
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.00408a12
cmp eax, edi
jl 0x405e71
push dword [ebp - 0x214]
mov esi, 0x100
push dword [0x40b6b0]
lea eax, [ebp - 0x20c]
push 0x4023ec
push esi
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.00405951
add esp, 0x20
cmp eax, edi
jl 0x405e71
test dword [0x40b6b8], 4
je 0x405e31
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x214], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x405dfe
push esi
push edi
push edi
push 0x401ce0
push 0x101
lea eax, [ebp - 0x208]
push eax
call fcn.004057f5
cmp eax, edi
jl 0x405e71
lea eax, [ebp - 0x208]
push eax
push 0x4023e4
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.00405951
add esp, 0x1c
cmp eax, edi
jl 0x405e71
test dword [0x40b6b8], 8
je 0x405e6d
mov eax, dword [ebp - 0x218]
push dword [eax]
lea eax, [ebp - 0x20c]
push 0x4023e4
push esi
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.00405951
add esp, 0x1c
cmp eax, edi
jge 0x405e78
cmp eax, 0x8007007a
jne 0x405e8e
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x21c]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x20c]
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404945
leave
ret 0x10
Function at 0x4064dd
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x40b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x420], ebx
cmp byte [0x40b6b5], bl
jne 0x40651e
call fcn.004063a8
push edi
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
mov edi, 0xfde9
push edi
mov dword [ebp - 0x40c], eax
call esi
mov dword [ebp - 0x410], eax
cmp eax, 0x400
jbe 0x40656f
push eax
call fcn.00406f88
pop ecx
mov dword [ebp - 0x40c], eax
cmp eax, ebx
jne 0x40656f
mov dword [ebp - 0x408], 0x8007000e
jmp 0x406639
push ebx
push ebx
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
push ebx
push edi
call esi
mov esi, dword [ebp - 0x414]
cmp dword [esi + 0x10], 0xffffffff
je 0x406639
call fcn.00405465
test eax, eax
jne 0x4065b2
mov dword [ebp - 0x408], 0x80240fff
jmp 0x406639
push 2
push ebx
push ebx
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4065d3
call fcn.00406c2e
mov dword [ebp - 0x408], eax
jmp 0x406629
push ebx
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4065c6
test dword [esi + 0xc], 8
je 0x406606
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [0x40badc], ebx
je 0x406629
test byte [esi + 0xc], 0x14
mov eax, 0x200000
je 0x40661e
mov eax, 0x2d00000
cmp edi, eax
jbe 0x406629
mov ecx, esi
call fcn.00405678
mov eax, dword [0x40b6ac]
cmp eax, ebx
je 0x406639
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [ebp - 0x404]
pop edi
cmp dword [ebp - 0x40c], eax
je 0x40667c
push dword [ebp - 0x40c]
call fcn.00406fd6
mov dword [esp], 0x402668
push 2
lea eax, [ebp - 0x418]
push ebx
push eax
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x414], 1
call fcn.0040633e
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
pop esi
xor ecx, ebp
pop ebx
call fcn.00404945
leave
ret 8
Function at 0x406697
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x40b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x18]
xor esi, esi
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
inc esi
push edi
mov edi, ecx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x40c], ebx
cmp dword [ebp + 0xc], esi
jne 0x4066ed
test byte [edi + 0xc], 0x10
jne 0x4066ff
mov dword [ebp - 0x408], esi
jmp 0x40682a
cmp dword [ebp + 0xc], 2
jne 0x4066ff
test byte [edi + 0xc], 4
jne 0x4066ff
cmp dword [ebp + 8], 2
ja 0x4066e2
test byte [edi + 0xc], 3
je 0x406841
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 8]
ja 0x406841
xor eax, eax
push 0x3fe
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push ebx
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 0x414], ebx
add esp, 0xc
and dword [ebp - 0x410], 0
mov esi, 0x200
lea ebx, [ebp - 0x404]
push dword [ebp - 0x424]
lea eax, [ebp - 0x414]
push dword [ebp - 0x420]
mov ecx, edi
push dword [ebp - 0x418]
push eax
lea eax, [ebp - 0x408]
push eax
push esi
push ebx
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.00405ea4
mov dword [ebp - 0x408], eax
test eax, eax
jge 0x4067c3
cmp eax, 0x8007007a
jne 0x4067f1
and dword [ebp - 0x408], 0
cmp dword [ebp - 0x410], 0
jne 0x4067c3
push 2
push 0x800
call fcn.0040702c
test eax, eax
je 0x4067c3
mov ebx, eax
xor eax, eax
inc eax
mov esi, 0x800
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x410], eax
jmp 0x40674b
test dword [edi + 0xc], 1
je 0x4067d3
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test dword [edi + 0xc], 2
je 0x4067f1
sub esi, dword [ebp - 0x414]
mov ecx, edi
push esi
push ebx
call fcn.004064dd
mov dword [ebp - 0x408], eax
xor esi, esi
inc esi
cmp dword [ebp - 0x40c], 0
je 0x40682a
push ebx
call fcn.00406fd6
and dword [ebp - 0x41c], 0
mov dword [esp], 0x4026f8
push 2
lea eax, [ebp - 0x41c]
push 0
push eax
mov dword [ebp - 0x418], esi
call fcn.0040633e
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404945
leave
ret 0x18
mov dword [ebp - 0x408], esi
jmp 0x4067f4
Function at 0x406c48
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
test ebx, ebx
jne 0x406c65
mov eax, 0x80070057
jmp 0x406ce8
push edi
push 9
xor eax, eax
pop ecx
lea edi, [ebp - 0x2c]
mov word [ebx], ax
rep stosd dword es:[edi], eax
call fcn.00406b4e
pop edi
test eax, eax
je 0x406c89
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x406cdf
push 0x401aa4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x406ca1
call fcn.00406c2e
mov esi, eax
jmp 0x406ce6
push 0x40296c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x406cd9
call fcn.00406c2e
and dword [ebp - 8], 0
mov esi, eax
push esi
xor eax, eax
inc eax
push 0x4028f0
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push 0
push eax
call fcn.0040633e
add esp, 0x14
jmp 0x406ce6
lea ecx, [ebp - 0x2c]
push ecx
call eax
mov ax, word [ebp - 0x2c]
mov word [ebx], ax
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x407159
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x40b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push edi
mov dword [ebp - 0x210], esi
call fcn.00406b86
test eax, eax
je 0x40718c
push esi
call fcn.0040712f
jmp 0x407232
lea eax, [ebp - 0x210]
push eax
call fcn.00406da5
mov edi, eax
cmp edi, esi
jl 0x407234
push 0x402bb4
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00408b26
mov edi, eax
cmp edi, esi
jl 0x40721f
push ebx
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0x264]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x264]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x264], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x407208
call fcn.00406c2e
mov edi, eax
jmp 0x40721e
push dword [ebp - 0x220]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x21c]
call ebx
pop ebx
push dword [ebp - 0x210]
call fcn.00406e2c
cmp edi, esi
jl 0x407234
cmp eax, esi
jge 0x407234
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00404945
leave
ret