joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6101dc8d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [ebp - 8], esi
cmp dword [ebp + 0xc], ebx
jne 0x6101dcb4
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp + 8]
cmp eax, 4
jne 0x6101dcc5
mov dword [ebp - 4], 0x61003a98
jmp 0x6101dced
cmp eax, 9
jne 0x6101dcd3
mov dword [ebp - 4], 0x6100471c
jmp 0x6101dced
cmp eax, 0xa
jne 0x6101dce1
mov dword [ebp - 4], 0x610019dc
jmp 0x6101dced
cmp eax, 8
jne 0x6101dcab
mov dword [ebp - 4], 0x610046e8
call fcn.6101c80a
test eax, eax
je 0x6101dcab
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp + 8], ebx
push dword [esi + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
test eax, eax
jne 0x6101dcab
cmp dword [ebp + 8], 1
jbe 0x6101dcab
add dword [ebp + 8], 4
push dword [ebp + 8]
call fcn.6102c0d4
mov edi, eax
pop ecx
cmp edi, ebx
je 0x6101dcab
push dword [ebp + 8]
push ebx
push edi
call fcn.6102bb20
add esp, 0xc
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 8]
push edi
push ebx
push ebx
push dword [ebp - 4]
push dword [eax + 0x10]
call esi
push edi
test eax, eax
je 0x6101dd5a
call fcn.6102b403
pop ecx
jmp 0x6101dcab
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.61019ecc
push edi
call fcn.6102b403
xor eax, eax
cmp dword [esi + 8], ebx
pop ecx
setne al
jmp 0x6101dcad
Function at 0x6101e044
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x6103f96d
call fcn.6102b2d6
mov dword [ebp - 4], 1
xor edi, edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], edi
call fcn.6100d83e
mov byte [ebp - 4], 2
push 0x61004820
lea ecx, [ebp - 0x10]
call fcn.6100dfda
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.6101836c
mov bl, al
neg bl
sbb bl, bl
inc bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.6100d793
test bl, bl
je 0x6101e0ae
mov dword [ebp - 0x10], 0x65b
jmp 0x6101e160
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push dword [ebp - 0x1c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x10], eax
cmp eax, edi
jne 0x6101e160
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call ebx
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x6101e0ff
cmp eax, 2
jne 0x6101e160
mov dword [ebp - 0x10], 0x490
jmp 0x6101e160
add dword [ebp - 0x14], 4
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, edi
jne 0x6101e11d
mov dword [ebp - 0x10], 8
jmp 0x6101e155
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call ebx
mov dword [ebp - 0x10], eax
cmp eax, edi
jne 0x6101e155
mov eax, dword [ebp - 0x14]
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2 - 4], cx
mov eax, dword [ebp - 0x14]
shr eax, 1
mov word [esi + eax*2 - 2], cx
mov ecx, dword [ebp + 0x10]
push esi
call fcn.61019ecc
mov dword [ebp - 0x10], edi
cmp esi, edi
je 0x6101e160
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x18], edi
je 0x6101e16e
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.6100d793
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.6100d793
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.6100d793
mov eax, dword [ebp - 0x10]
call fcn.6102b3c2
ret 0xc

Function at 0x6101eea7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor ebx, ebx
push 0x104
mov ecx, esi
mov dword [ebp - 8], ebx
call fcn.61012308
push 0x20019
push 2
push ebx
push 1
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov edi, eax
cmp edi, 0xffffffff
je 0x6101ef18
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push ebx
push ebx
push 0x61004950
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x6101ef11
cmp dword [ebp - 4], ebx
jbe 0x6101ef11
mov dword [ebp - 8], 1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
mov ecx, esi
call fcn.61011dc1
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret 8
Function at 0x6102199c
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push 0x28
mov eax, 0x6104097a
call fcn.6102b2d6
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x10]
push 0xe0000000
push edi
push edi
mov dword [ebp - 0x10], 1
mov dword [eax], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x61021b3b
push 0x80010020
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, edi
je 0x61021b18
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x61021a10
cmp eax, 3
je 0x61021a10
cmp eax, 4
je 0x61021a10
cmp eax, 1
jne 0x61021a5e
lea eax, [ebp - 0x34]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x61021a36
call edi
push eax
push dword [ebp + 8]
push 0x61005e78
push 3
call fcn.6101b566
add esp, 0x10
push ebx
lea ebx, [ebp - 0x34]
call fcn.61025717
test eax, eax
jne 0x61021a5e
push dword [ebp + 8]
push 0x61005e40
push 2
call fcn.6101b566
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [eax], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x61021af8
push dword [ebp + 8]
push 0x61005e08
push 1
call fcn.6101b566
add esp, 0xc
push dword [ebp - 0x14]
call esi
xor edi, edi
cmp dword [ebp + 0xc], 2
je 0x61021a9b
cmp dword [ebp + 0xc], 3
mov dword [ebp + 0xc], 6
jne 0x61021aa2
mov dword [ebp + 0xc], 3
push 0x80000000
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
inc edi
test ebx, ebx
je 0x61021b34
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push ebx
call esi
cmp edi, dword [ebp + 0xc]
jne 0x61021ae6
push 0x61005d30
push 2
call fcn.6101b566
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
mov dword [eax], 1
jmp 0x61021af1
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, dword [ebp + 0xc]
jb 0x61021aa2
jmp 0x61021b34
and dword [ebp - 0x10], 0
call edi
push eax
push dword [ebp + 8]
push 0x61005cb8
push 3
call fcn.6101b566
add esp, 0x10
push dword [ebp - 0x14]
call esi
jmp 0x61021b34
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x61005c28
push 3
call fcn.6101b566
add esp, 0x10
push dword [ebp - 0x18]
call esi
jmp 0x61021b54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x61005b88
push 3
call fcn.6101b566
add esp, 0xc
mov dword [ebp - 0x10], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.6100d793
mov eax, dword [ebp - 0x10]
call fcn.6102b3c2
ret 0xc
Function at 0x61022020
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x6104028e
call fcn.6102b2d6
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
call fcn.6100d83e
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x10]
call fcn.6100d83e
mov byte [ebp - 4], 1
push 0x61005fe0
lea ecx, [ebp - 0x1c]
call fcn.6100dfda
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.6101836c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.6100d793
push dword [0x610480cc]
lea ecx, [ebp - 0x20]
call fcn.6100dfda
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.6101836c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.6100d793
lea eax, [ebp - 0x14]
push eax
push 0x2001f
push ebx
push dword [ebp - 0x10]
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
je 0x610220da
cmp edi, 2
je 0x6102212e
mov eax, dword [ebp + 8]
push dword [eax]
push edi
push 0x61006138
push 3
jmp 0x61022124
push ebx
push ebx
push ebx
push ebx
push dword [0x610480d0]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x610220f9
mov dword [ebp - 0x24], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], ebx
je 0x6102212e
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp edi, ebx
je 0x6102212e
mov eax, dword [ebp + 8]
push dword [eax]
push edi
push 0x61006028
push 1
call fcn.6101b566
add esp, 0x10
jmp 0x61022130
xor edi, edi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.6100d793
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.6100d793
mov eax, edi
call fcn.6102b3c2
ret 4
Function at 0x61025717
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x61025765
cmp dword [ebx + 4], 1
push edi
je 0x61025761
mov edi, 0x1f4
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x61025775
add dword [ebp - 4], edi
cmp dword [ebp - 4], 0x2710
ja 0x6102576a
cmp dword [ebx + 4], 1
jne 0x6102573e
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
push 0x41d
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x61025764
Function at 0x6102a6ad
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x61048110]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.6102a5ee
mov eax, 0x61000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.6102bb20
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x6102a720
cmp dword [ebp - 0x94], 5
jb 0x6102a741
jmp 0x6102a73d
cmp dword [ebp - 0x88], 1
jne 0x6102a741
cmp dword [ebp - 0x94], 4
ja 0x6102a73d
jne 0x6102a741
cmp dword [ebp - 0x90], 0
jbe 0x6102a741
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x6100aa70
call fcn.6102a485
test eax, eax
jge 0x6102a762
mov byte [0x61049484], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.6102b2c1
leave
ret

Function at 0x6102aa20
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x61048110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
cmp eax, 1
jne 0x6102ab21
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x6102aa65
xor eax, eax
jmp 0x6102abbc
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x88]
and eax, 0x7fff
cmp ecx, 2
je 0x6102aa80
or eax, 0x8000
mov edx, dword [ebp - 0x90]
mov dword [0x610497e0], ecx
mov ecx, dword [ebp - 0x94]
mov esi, ecx
shl esi, 8
add esi, edx
push 1
mov dword [0x610497e8], esi
mov dword [0x610497ec], ecx
mov dword [0x610497f0], edx
mov dword [0x610497e4], eax
call fcn.6102e29f
pop ecx
test eax, eax
je 0x6102aa5e
call fcn.6102d8da
test eax, eax
jne 0x6102aacc
call fcn.6102e304
jmp 0x6102aa5e
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x6104b498], eax
call fcn.6102e101
mov dword [0x610497c8], eax
call fcn.6102da59
test eax, eax
jge 0x6102aaf1
call fcn.6102d568
jmp 0x6102aac5
call fcn.6102e00d
test eax, eax
jl 0x6102ab1a
call fcn.6102dceb
test eax, eax
jl 0x6102ab1a
push 0
call fcn.6102d257
pop ecx
test eax, eax
jne 0x6102ab1a
inc dword [0x610497c0]
jmp 0x6102abb9
call fcn.6102dc98
jmp 0x6102aaea
xor edi, edi
cmp eax, edi
jne 0x6102ab5c
cmp dword [0x610497c0], edi
jle 0x6102aa5e
dec dword [0x610497c0]
cmp dword [0x6104981c], edi
jne 0x6102ab46
call fcn.6102d3d2
cmp dword [ebp + 0x10], edi
jne 0x6102abb9
call fcn.6102dc98
call fcn.6102d568
call fcn.6102e304
jmp 0x6102abb9
cmp eax, 2
jne 0x6102abad
call fcn.6102d539
push 0x214
push 1
call fcn.6102cf43
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
je 0x6102aa5e
push esi
push dword [0x610481c0]
push dword [0x6104982c]
call fcn.6102d4b3
pop ecx
call eax
test eax, eax
je 0x6102aba1
push edi
push esi
call fcn.6102d5aa
pop ecx
jmp 0x6102abb8
push esi
call fcn.6102b701
pop ecx
jmp 0x6102aa5e
cmp eax, 3
jne 0x6102abb9
push edi
call fcn.6102d867
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.6102b2c1
leave
ret 0xc
Function at 0x6102b8e3
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x61048110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.6102d1d0
pop ecx
test eax, eax
je 0x6102b918
push esi
push esi
push esi
push esi
push esi
call fcn.610301d0
add esp, 0x14
push 4
pop eax
call fcn.6102ca00
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x6102ba34
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
inc edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], esi
jne 0x6102b9ad
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x6100ab1c
call esi
test eax, eax
jne 0x6102b984
push 0x61003f1c
call esi
test eax, eax
je 0x6102b9ad
push 0x6100ab04
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x6102b9ad
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x6102b9ad
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x6102b9ad
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.6102b8b7
add esp, 0xc
test eax, eax
jl 0x6102ba34
not esi
and dword [ebp - 8], esi
je 0x6102b9df
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.6102b8b7
add esp, 0xc
test eax, eax
jl 0x6102ba34
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x6102b9ea
mov dword [ebp - 8], eax
lea esi, [ebx - 1]
not esi
and esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x6102b9fe
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x6102ba34
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x6102ba34
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x6102ba34
xor eax, eax
inc eax
jmp 0x6102ba36
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.6102b2c1
leave
ret
Function at 0x6102d8da
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x6100ab98
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x6102d92c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6100ac04
push edi
call esi
push 0x6100abf8
push edi
mov dword [0x61049824], eax
call esi
push 0x6100abec
push edi
mov dword [0x61049828], eax
call esi
push 0x6100abe4
push edi
mov dword [0x6104982c], eax
call esi
mov dword [0x61049830], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x61049824], ebx
je 0x6102d952
cmp dword [0x61049828], ebx
je 0x6102d952
cmp dword [0x6104982c], ebx
je 0x6102d952
cmp dword [0x61049830], ebx
jne 0x6102d976
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x61049828], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x61049824], 0x6102d52b
mov dword [0x6104982c], esi
mov dword [0x61049830], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x610481bc], eax
cmp eax, 0xffffffff
je 0x6102d9e9
push dword [0x61049828]
push eax
call esi
test eax, eax
je 0x6102d9e9
call fcn.6102d3e6
push dword [0x61049824]
call fcn.6102d42d
push dword [0x61049828]
mov dword [0x61049824], eax
call fcn.6102d42d
push dword [0x6104982c]
mov dword [0x61049828], eax
call fcn.6102d42d
push dword [0x61049830]
mov dword [0x6104982c], eax
call fcn.6102d42d
add esp, 0x10
mov dword [0x61049830], eax
call fcn.6103124a
test eax, eax
jne 0x6102d9ef
call fcn.6102d568
xor eax, eax
pop edi
pop esi
pop ebx
ret
push fcn.6102d717
push dword [0x61049824]
call fcn.6102d4b3
pop ecx
call eax
mov dword [0x610481c0], eax
cmp eax, 0xffffffff
je 0x6102d9e4
push 0x214
push 1
call fcn.61035665
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x6102d9e4
push esi
push dword [0x610481c0]
push dword [0x6104982c]
call fcn.6102d4b3
pop ecx
call eax
test eax, eax
jne 0x6102da42
push esi
call fcn.6102b701
pop ecx
jmp 0x6102d9e4
push ebx
push esi
call fcn.6102d5aa
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x6102d9eb
Function at 0x61031f4d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x610484c8]
je 0x61031f73
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x61031f61
cmp esi, 0x17
jae 0x610320cd
push 3
call fcn.61036d54
pop ecx
cmp eax, 1
je 0x61032097
push 3
call fcn.61036d54
pop ecx
test eax, eax
jne 0x61031fa6
cmp dword [0x610497d4], 1
je 0x61032097
cmp edi, 0xfc
je 0x610320cd
push 0x6100b284
mov edi, 0x314
push edi
mov esi, 0x61049dc8
push esi
call fcn.610356b6
add esp, 0xc
test eax, eax
je 0x61031fdc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.610301d0
add esp, 0x14
mov byte [0x61049ee5], bl
push 0x104
mov ebx, 0x61049de1
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6103201f
push 0x6100b26c
push 0x2fb
push ebx
call fcn.610356b6
add esp, 0xc
test eax, eax
je 0x6103201f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.610301d0
add esp, 0x14
push ebx
push edi
push esi
call fcn.61036cdb
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x6103203d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.610301d0
add esp, 0x14
push 0x6100b268
push edi
push esi
call fcn.61036cdb
add esp, 0xc
test eax, eax
je 0x6103205d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.610301d0
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x610484cc]
push edi
push esi
call fcn.61036cdb
add esp, 0xc
test eax, eax
je 0x61032082
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.610301d0
add esp, 0x14
push 0x12010
push 0x6100b240
push esi
call fcn.61036b34
add esp, 0xc
jmp 0x610320cd
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x610320cd
cmp edi, 0xffffffff
je 0x610320cd
mov edx, dword [esi*8 + 0x610484cc]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x610320b6
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x61036b34
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.6102d4a5
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x6104a158], ebx
jne 0x61036c0d
push ebx
push ebx
push 0x6100b3d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x61036b78
xor eax, eax
jmp 0x61036cd1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6100b3cc
push edi
call esi
cmp eax, ebx
je 0x61036b71
push eax
call fcn.6102d42d
mov dword [esp], 0x6100b3bc
push edi
mov dword [0x6104a158], eax
call esi
push eax
call fcn.6102d42d
mov dword [esp], 0x6100b3a8
push edi
mov dword [0x6104a15c], eax
call esi
push eax
call fcn.6102d42d
mov dword [0x6104a160], eax
lea eax, [ebp - 8]
push eax
call fcn.6102d1d0
pop ecx
pop ecx
test eax, eax
je 0x61036bdb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.610301d0
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x61036c0d
push 0x6100b38c
push edi
call esi
push eax
call fcn.6102d42d
pop ecx
mov dword [0x6104a168], eax
cmp eax, ebx
je 0x61036c0d
push 0x6100b374
push edi
call esi
push eax
call fcn.6102d42d
pop ecx
mov dword [0x6104a164], eax
mov eax, dword [0x6104a164]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x61036c86
cmp dword [0x6104a168], esi
je 0x61036c86
push eax
call fcn.6102d4b3
pop ecx
call eax
cmp eax, ebx
je 0x61036c53
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x6104a168]
call fcn.6102d4b3
pop ecx
call eax
test eax, eax
je 0x61036c53
test byte [ebp - 0x18], 1
jne 0x61036c86
lea eax, [ebp - 0xc]
push eax
call fcn.6102d211
pop ecx
test eax, eax
je 0x61036c6e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.610301d0
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x61036c7d
or dword [ebp + 0x10], 0x200000
jmp 0x61036cb7
or dword [ebp + 0x10], 0x40000
jmp 0x61036cb7
mov eax, dword [0x6104a15c]
cmp eax, esi
je 0x61036cb7
push eax
call fcn.6102d4b3
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x61036cb7
mov eax, dword [0x6104a160]
cmp eax, esi
je 0x61036cb7
push dword [ebp - 4]
push eax
call fcn.6102d4b3
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x6104a158]
call fcn.6102d4b3
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret