joyce8/EMBER2024-capa huggingface dataset:
Function at 0x614928
Capabilities:
Get number of processors
Terminate process

Disassembly:
mov eax, dword [ecx]
mov eax, dword [eax + 0x84]
push 0x10014c78
push edx
call eax
test eax, eax
je 0x614893
add edi, 0x2c
push edi
mov eax, 0x10014c9c
call fcn.0061503b
xor al, al
jmp 0x614bbc
mov ecx, dword [edi + 0x24]
mov edx, dword [ecx]
mov eax, dword [esp + 0x20]
mov edx, dword [edx + 0xd8]
push eax
call edx
cmp eax, 0x64
je 0x6148bf
add edi, 0x2c
push edi
mov eax, 0x10014cd8
call fcn.0061503b
xor al, al
jmp 0x614bbc
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
mov edx, dword [esp + 0x20]
mov eax, dword [eax + 0xf0]
push ebx
push edx
call eax
mov ecx, dword [edi + 0x24]
mov edx, dword [ecx]
mov edx, dword [edx + 0x108]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
push eax
call edx
mov ecx, dword [edi + 0x24]
push ebx
lea edx, [esp + 0x28]
push edx
mov edx, dword [esi]
push 0xffffffffffffffff
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 0x84]
push 0x10014d30
push edx
call eax
test eax, eax
je 0x614926
add edi, 0x2c
push edi
mov eax, 0x10014d50
call fcn.0061503b
xor al, al
jmp 0x614bbc
mov ecx, dword [edi + 0x24]
mov edx, dword [ecx]
mov eax, dword [esp + 0x24]
mov edx, dword [edx + 0xd8]
push eax
call edx
cmp eax, 0x64
je 0x614952
add edi, 0x2c
push edi
mov eax, 0x10014d88
call fcn.0061503b
xor al, al
jmp 0x614bbc
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
mov edx, dword [esp + 0x24]
push esp
and al, 0x24
mov eax, dword [eax + 0xf0]
push ebx
push edx
call eax
mov ecx, dword [edi + 0x24]
mov edx, dword [ecx]
mov edx, dword [edx + 0x108]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
push eax
call edx
mov eax, 0x10014dbc
lea ecx, [esp + 0x80]
mov dword [esp + 0x24], ebx
call fcn.00614fcb
mov dword [esp + 0xc8], ebx
cmp dword [esp + 0x98], 8
jb 0x6149ae
mov eax, dword [esp + 0x84]
mov dword [esp + 0x1c], eax
jmp 0x6149b9
lea ecx, [esp + 0x84]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0x24]
mov edx, dword [ecx]
mov edx, dword [edx + 0x88]
push ebx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x9c]
add eax, eax
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esi]
push eax
call edx
test eax, eax
je 0x614a03
add edi, 0x2c
push edi
mov eax, 0x10014df8
call fcn.0061503b
lea esi, [esp + 0x80]
call fcn.0061500b
xor al, al
jmp 0x614bbc
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
Function at 0x615b5a
Capabilities:
Authenticate hmac
Parse pe header

Disassembly:
mov ecx, dword [ebp - 0x13b8]
add ecx, 1
mov edx, dword [ebp - 0x13b4]
adc edx, 0
mov dword [ebp - 0x13b8], ecx
dec dword [ecx - 0x13b36b]
invalid
dec dword [ecx - 0x13b36b]
inc dword [ebx - 0x13b343]
inc dword [eax]
cmp dword [ebp - 0x13b4], 0
jg 0x615acf
jl 0x61599a
cmp dword [ebp - 0x13b8], 0xd8fcd3e
jae 0x615acf
mov dword [ebp - 0x1368], 0x11fc7
mov eax, dword [ebp - 0x1368]
mov dword [ebp - 0x174c], eax
mov ecx, dword [ebp - 0x1368]
sub ecx, 1
mov dword [ebp - 0x1368], ecx
mov edx, dword [ebp - 0x10a8]
imul edx, edx, 0x26f
mov dword [ebp - 0x1178], edx
mov eax, dword [ebp - 0x1118]
add eax, 0x13293
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x1288], 0x2a
mov dword [ebp - 0x1118], 0x17fbf
mov dword [ebp - 0x10a8], 0
mov ecx, dword [ebp - 0x121c]
add ecx, 0xe081
mov dword [ebp - 0x121c], ecx
mov edx, dword [ebp - 0x1118]
imul edx, edx, 0xc6e9
mov dword [ebp - 0x1288], edx
mov dword [ebp - 0x11d0], 0xfded
mov dword [ebp - 0x1300], 0
mov eax, dword [ebp - 0x11d0]
mov dword [ebp - 0x1750], eax
mov ecx, dword [ebp - 0x11d0]
sub ecx, 1
mov dword [ebp - 0x11d0], ecx
mov edx, dword [ebp - 0x1118]
or edx, 0xa6ac
add byte [ecx - 0x121b6b], cl
dec dword [ebx - 0x7a766bbb]
lodsb al, byte [esi]
call 0x4ded5a6c
xchg esp, eax
add ecx, 1
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x121c], 0x5bff
mov edx, dword [ebp - 0x1178]
add edx, 0xbc94
mov dword [ebp - 0x1288], edx
mov eax, dword [ebp - 0x6c]
imul eax, eax, 0x147e8
mov dword [ebp - 0x11d0], eax
mov dword [ebp - 0x11d0], 0x1682
invalid
inc dword [edx - 0x74ffffea]
dec ebp
fadd dword [ecx + 0x86b6e1]
add byte [ecx - 0x12ff73], cl
dec dword [ebx - 0x13676b]
inc dword [ecx + 0x445bc2]
add byte [ecx - 0x11776b], cl
invalid
jmp 0x61595d
mov dword [ebp - 0x10a4], 0x28
mov dword [ebp - 0x11a8], 0xb3
mov eax, dword [ebp - 0x10a4]
cmp eax, dword [ebp - 0x11a8]
jle 0x615b67
push ecx
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0xc]
mov ebx, dword [edi + 0x10]
mov eax, esi
mov dword [ebp - 4], eax
mov dword [ebp + 8], esi
jl 0x615b44
cmp esi, 0xffffffff
jne 0x615b16
call fcn.00618b53
mov ecx, dword [ebp + 0x10]
dec esi
lea eax, [esi + esi*4]
lea eax, [ebx + eax*4]
cmp dword [eax + 4], ecx
jge 0x615b2a
cmp ecx, dword [eax + 8]
jle 0x615b2f
cmp esi, 0xffffffff
jne 0x615b3b
mov eax, dword [ebp + 8]
dec dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp + 8], esi
cmp dword [ebp + 0xc], 0
jge 0x615b0c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
inc esi
mov dword [ecx], esi
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp eax, dword [edi + 0xc]
ja 0x615b58
cmp esi, eax
jbe 0x615b5d
call fcn.00618b53
pop edi
lea eax, [esi + esi*4]
pop esi
lea eax, [ebx + eax*4]
pop ebx
leave
mov dword [ebp - 0x1260], 0x60
mov dword [ebp - 0x24], 0xa9
mov ecx, dword [ebp - 0x1260]
cmp ecx, dword [ebp - 0x24]
jle 0x615c12
push 0xffffffffffffffff
push 0x673b7af8
mov eax, dword fs:[0]
push eax
push ecx
Function at 0x615e00
Capabilities:
Parse pe header

Disassembly:
cmp ecx, 0xfffffffb
jne 0x615e11
mov eax, dword [eax]
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x28]
jmp 0x615e2d
cmp ecx, 0xfffffffe
jne 0x615e1f
cmp dword [eax], 0
je 0x615e1f
fld1
jmp 0x615e2d
cmp ecx, 0xfffffffc
jne 0x615e2b
call 0xb3c1fa
jmp 0x615e2d
fldz

Function at 0x61af31
Capabilities:
Authenticate hmac

Disassembly:
add byte [eax], al
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
push 0x40
mov edi, ecx
call dword [0x68b111a8]
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [ebp - 4], eax
cmp esi, eax
je 0x61af69
push edi
mov ecx, esi
call fcn.00615aa3
mov dword [esi], 0x68b12038
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov dword [ebp - 0x1310], 0x41
mov dword [ebp - 0x12c4], 0x7d
mov eax, dword [ebp - 0x1310]

Function at 0x61c406
Capabilities:
Authenticate hmac

Disassembly:
push esi
push 0x6cd8c3ec
lea eax, [ebp - 0x24]
push 0x20
push eax
call 0x62f996
lea ecx, [ebp - 0x24]
push ecx
push 0x6cd8c3e0
push 2
call 0x660a86
add esp, 0x30
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call 0x6a0436
mov esp, ebp
pop ebp
Function at 0x61e03f
Capabilities:
Parse pe header

Disassembly:
push 0x18
push 0x6c1970
call fcn.0061e3ac
mov edi, 0x94
mov eax, edi
call fcn.0061df00
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x7574bc], ecx
mov eax, dword [esi + 4]
mov dword [0x7574c8], eax
mov edx, dword [esi + 8]
mov dword [0x7574cc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x7574c0], esi
cmp ecx, 2
je 0x61e09f
or esi, 0x8000
mov dword [0x7574c0], esi
shl eax, 8
add eax, edx
mov dword [0x7574c4], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x61e0d8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x61e0d8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x61e0f0
cmp eax, 0x20b
je 0x61e0dd
mov dword [ebp - 0x1c], edi
jmp 0x61e104
cmp dword [ecx + 0x84], 0xe
jbe 0x61e0d8
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x61e0fe
cmp dword [ecx + 0x74], 0xe
jbe 0x61e0d8
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0061e51b
pop ecx
test eax, eax
jne 0x61e118
push 0x1c
call fcn.0061e01b
pop ecx
call fcn.00620a0f
test eax, eax
jne 0x61e129
push 0x10
call fcn.0061e01b
pop ecx
call fcn.006207a9
mov dword [ebp - 4], edi
call fcn.006205ab
test eax, eax
jge 0x61e142
push 0x1b
call fcn.0061dff6
pop ecx
call fcn.0062050c
mov dword [0x758cb8], eax
call fcn.006203a2
mov dword [0x757350], eax
call fcn.0062030c
test eax, eax
jge 0x61e167
push 8
call fcn.0061dff6
pop ecx
call fcn.006200d9
test eax, eax
jge 0x61e178
push 9
call fcn.0061dff6
pop ecx
push 1
call fcn.0061fc58
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x61e18e
push eax
call fcn.0061dff6
pop ecx
mov eax, dword [0x7574e4]
mov dword [0x7574e8], eax
push eax
push dword [0x7574d8]
push dword [0x7574d0]
call fcn.00614230
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x61e1bd
push esi
call fcn.0061fd85
call fcn.0061fda7
jmp 0x61e1ef
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0061e3e7
ret
Function at 0x61fcc2
Capabilities:
Terminate process

Disassembly:
push 8
push 0x6c1ba0
call fcn.0061e3ac
push 8
call fcn.0061e6bf
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x7574fc], esi
jne 0x61fcf6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x7574f8], esi
mov al, byte [ebp + 0x10]
mov byte [0x7574f4], al
cmp dword [ebp + 0xc], edi
jne 0x61fd40
cmp dword [0x758c88], edi
je 0x61fd30
mov eax, dword [0x758c84]
sub eax, 4
mov dword [0x758c84], eax
cmp eax, dword [0x758c88]
jb 0x61fd30
mov eax, dword [eax]
cmp eax, edi
je 0x61fd11
call eax
jmp 0x61fd11
push 0x6c4028
mov eax, 0x6c4020
call fcn.0061fc40
pop ecx
push 0x6c4030
mov eax, 0x6c402c
call fcn.0061fc40
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x61fd71
cmp dword [ebp + 0x10], edi
jne 0x61fd7f
mov dword [0x7574fc], esi
push dword [ebp + 8]
call fcn.0061fbfe
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x61fd7e
push 8
call fcn.0061e60a
pop ecx
ret
call fcn.0061e3e7
ret

Function at 0x61fdc5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x7566d8]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x756810]
je 0x61fdfa
inc eax
cmp eax, 0x13
jb 0x61fdeb
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x756810]
jne 0x61ff20
mov eax, dword [0x757354]
cmp eax, 1
je 0x61fef8
cmp eax, edx
jne 0x61fe2a
cmp dword [0x7566e4], 1
je 0x61fef8
cmp ecx, 0xfc
je 0x61ff20
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x61fe60
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00620c00
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00620e30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x61fe94
mov eax, edi
push eax
call fcn.00620e30
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x6c19b4
push edi
call fcn.00620d00
add esp, 0x10
push edi
call fcn.00620e30
push dword [esi + 0x756814]
mov ebx, eax
call fcn.00620e30
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
cld
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x756814]
push dword [esi]
call fcn.00620e30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
Function at 0x6203a2
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x757714]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x6203eb
call ebp
mov esi, eax
cmp esi, ebx
je 0x6203d1
mov dword [0x757714], 1
jmp 0x6203f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x6203e6
push 2
pop eax
mov dword [0x757714], eax
jmp 0x6203eb
mov eax, dword [0x757714]
cmp eax, 1
jne 0x620448
cmp esi, ebx
jne 0x620403
call ebp
mov esi, eax
cmp esi, ebx
jne 0x620403
cmp word [esi], bx
mov eax, esi
je 0x620418
inc eax
inc eax
cmp word [eax], bx
jne 0x62040a
inc eax
inc eax
cmp word [eax], bx
jne 0x62040a
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0061dfe4
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x62043b
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x6204ef
push ebp
push esi
push edi
call fcn.00621f10
add esp, 0xc
jmp 0x62042d
cmp eax, 2
je 0x620451
cmp eax, ebx
jne 0x6203fc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x6203fc
cmp byte [ebp], bl
mov esi, ebp
je 0x620487
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x6203fc
push esi
add edi, eax
call fcn.00620e30
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x620464
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0061dfe4
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x620500
cmp byte [ebp], bl

Function at 0x62050c
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x757718]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x62054c
call esi
test eax, eax
je 0x620531
mov dword [0x757718], 1
jmp 0x620551
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x620548
mov dword [0x757718], 2
jmp 0x62055a
xor eax, eax
jmp 0x6205a8
cmp eax, 1
jne 0x620555
call esi
jmp 0x6205a8
cmp eax, 2
jne 0x620548
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x6205a0
lea eax, [esi + esi]
push eax
call fcn.0061dfe4
mov ebp, eax
test ebp, ebp
pop ecx
je 0x6205a0
Function at 0x620afe
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x75772c], ebx
push esi
push edi
jne 0x620b7e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x620bb9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x75772c], eax
je 0x620bb9
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x757730], eax
call esi
cmp dword [0x7574bc], 2
mov dword [0x757734], eax
jne 0x620b7e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x75773c], eax
je 0x620b7e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x757738], eax
mov eax, dword [0x757738]
test eax, eax
je 0x620bc3
call eax
test eax, eax
je 0x620baa
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x75773c]
test eax, eax
je 0x620baa
test byte [ebp - 8], 1
jne 0x620bc3
cmp dword [0x7574c8], 4
jb 0x620bbd
or byte [ebp + 0x12], 0x20
jmp 0x620be2
xor eax, eax
jmp 0x620bf2
or byte [ebp + 0x12], 4
jmp 0x620be2
mov eax, dword [0x757730]
test eax, eax
je 0x620be2
call eax
mov ebx, eax
test ebx, ebx
je 0x620be2
mov eax, dword [0x757734]
test eax, eax
je 0x620be2
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x75772c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x620faa
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x620fd8
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x620fdf
cmp ebx, dword [eax + 4]
jae 0x620fdf
xor eax, eax
jmp 0x6211cf
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x620ff0
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x621006
cmp ecx, edx
jae 0x62114b
cmp dword [eax + 4], 0
je 0x62100f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x620ff7
cmp dword [ebp + 8], 0
je 0x621031
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x62114b
cmp eax, esi
jae 0x62114b
mov eax, dword [0x757740]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x621056
cmp dword [esi*4 + 0x757748], edi
je 0x62114f
inc esi
cmp esi, eax
jl 0x621044
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x6211cb
cmp dword [ebp - 8], 0x1000000
jne 0x6211cb
test byte [ebp - 0xc], 0xcc
je 0x6210d4
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x6211cb
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x6211cb
cmp word [eax + 0x18], 0x10b
jne 0x6211cb
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x6211cb
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x6210d4
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x6210d4
test byte [ecx + 0x27], 0x80
jne 0x62114b
push 1
xor eax, eax
jmp 0x6211ce
test esi, esi
jle 0x620fe8
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x757788
call ebx
test eax, eax
jne 0x620fe8
cmp dword [esi*4 + 0x757748], edi
je 0x6211a5
mov eax, dword [0x757740]
lea esi, [eax - 1]
test esi, esi
jl 0x621193
cmp dword [esi*4 + 0x757748], edi
je 0x62118f
dec esi
jns 0x621183
test esi, esi
jge 0x6211a3
cmp eax, 0x10
jge 0x62119e
inc eax
mov dword [0x757740], eax
lea esi, [eax - 1]
jmp 0x6211a5
je 0x6211bd
xor ecx, ecx
test esi, esi
jl 0x6211bd
lea eax, [ecx*4 + 0x757748]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x6211ab
push 0
push 0x757788
call ebx
jmp 0x620fe8
or eax, 0xffffffff
Function at 0x62175c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x7566d8]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x62178d
xor eax, eax
jmp 0x621916
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x758b80]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x6217c9
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00622b38
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x6218a4
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x6218e2
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x62182d
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x62181e
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x6217fe
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x62186d
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x621876
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x6217ef
jmp 0x621878
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x621911
cmp dword [ebp - 0x6c], edi
je 0x6218e2
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x6218d7
call fcn.0062126e
mov dword [eax], 9
call fcn.00621277
mov dword [eax], esi
jmp 0x62190c
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6218cc
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x621878
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x621878
push dword [ebp - 0x6c]
call fcn.00621280
pop ecx
jmp 0x62190c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x6218fa
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x6218fa
xor eax, eax
jmp 0x621914
call fcn.0062126e
mov dword [eax], 0x1c
call fcn.00621277
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x621914
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0061dd5e
add ebp, 0x3a0
leave
ret
Function at 0x623dbe
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0061df00
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x623e59
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x7574bc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x623e59
cmp eax, 1
je 0x623e7a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x623e59
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x623e26
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x623e55
cmp edi, eax
jae 0x623e5d
xor eax, eax
jmp 0x623e99
cmp eax, esi
jae 0x623e64
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x7574bc]
jmp 0x623e7d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]