joyce8/EMBER2024-capa huggingface dataset:
Function at 0xce5250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf9808
push 0xce9288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xce5329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xce5329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00ce81d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xce5329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xce5329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xce532c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00ce5351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xce5d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xce5d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xce5d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xce5d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xce5d94
push eax
push esi
call fcn.00ce820b
add esp, 8
pop esi
ret 0x10

Function at 0xce5da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xce5e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xce5e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xcfe320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00ce7dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xce5dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xce5e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xce5ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xce5eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xcfe320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00ce7dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xce5eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xce5e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xce6000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xce6131
push esi
call fcn.00ce9145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00cd8080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xce6131
push 0
push ebp
call fcn.00cd83a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00cd8260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xce608b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00cd82f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xce6121
push 0xcfe918
push edi
call fcn.00ce73f0
push eax
push ebx
push esi
call fcn.00ce5f60
push 0xcfe8f8
push edi
call fcn.00ce73f0
push eax
push ebx
push esi
call fcn.00ce5f60
push 0xcfe8d8
push edi
call fcn.00ce73f0
push eax
push ebx
push esi
call fcn.00ce5f60
push 0xcfe8c0
push edi
call fcn.00ce73f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00ce5f60
push 0xcfe8a0
push edi
call fcn.00ce73f0
push eax
push ebx
push esi
call fcn.00ce5f60
push 0xcfe888
push edi
call fcn.00ce73f0
push eax
push ebx
push esi
call fcn.00ce5f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xce71b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00ce7140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00ce7140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00ce7140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00ce7140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xce7bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xce7c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xcf987c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xce7c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xce7c52
xor eax, eax
pop esi
leave
ret 4
Function at 0xa04058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a041a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa0407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa0406a
add dl, dl
jne 0xa04089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa040dc
xor eax, eax
add dl, dl
jne 0xa04096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa0417d
add dl, dl
jne 0xa040a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa040b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa040bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa040c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa040d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa04075
mov eax, 1
add dl, dl
jne 0xa040ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa040f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa040e1
sub eax, ebx
mov ebx, 1
jne 0xa04128
mov ecx, 1
add dl, dl
jne 0xa0410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa04119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa04105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa04075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa0413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa0414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa04136
cmp eax, 0x7d00
jae 0xa0416d
cmp eax, 0x500
jb 0xa04168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa04075
cmp eax, 0x7f
ja 0xa04170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa04075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa0419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa04075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10005776
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cdq
sub dh, al
inc ebp
lcall 0xc635, 0x9b45c633
inc ebp
pushfd
xor al, 0xc6
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.100053b5
push eax
push esi
push dword [ebp + 8]
call fcn.1000536a
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.100053b5
push eax
push esi
push dword [ebp + 8]
call fcn.1000536a
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.100053a5
pop ecx
cmovb ebx, edx
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.100053a5
stosb byte es:[edi], al
mov byte [0x858ddab2], al
jl 0x10005890
invalid
invalid
Function at 0x10005bf8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [ebp + 0x4afffffc], esi
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.100053b5
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000536a
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.100053b5
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000536a
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
invalid
invalid
Function at 0x100188f4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0
je 0x10018927
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x40], 0
je 0x10018925
push str.DevHound_already_started_
push 2
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x40]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x40]
mov eax, dword [edx]
call dword [eax + 0x14]
jmp 0x10018953
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x3c], 1
mov edx, dword [ebp - 4]
add edx, 0x34
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x100189ce
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x30], eax
mov esp, ebp
pop ebp
ret
Function at 0x1001dd08
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov dword [ebp - 0x454], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.10029920
add esp, 8
lea edx, [ebp - 0x104]
push edx
call fcn.10029cb0
add esp, 4
movsx eax, byte [ebp + eax - 0x104]
cmp eax, 0x5c
je 0x1001dd5a
push 0x10041d04
lea ecx, [ebp - 0x104]
push ecx
call fcn.10029930
add esp, 8
mov dword [ebp - 0x34c], 0
jmp 0x1001dd75
mov edx, dword [ebp - 0x34c]
add edx, 1
mov dword [ebp - 0x34c], edx
lea eax, [ebp - 0x104]
push eax
call fcn.10029cb0
add esp, 4
cmp dword [ebp - 0x34c], eax
jge 0x1001de31
mov ecx, dword [ebp - 0x34c]
movsx edx, byte [ebp + ecx - 0x104]
cmp edx, 0x5c
jne 0x1001de2c
mov eax, dword [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x348]
push edx
call fcn.1001deb0
add esp, 0xc
mov eax, dword [ebp - 0x34c]
mov byte [ebp + eax - 0x348], 0
lea ecx, [ebp - 0x348]
push ecx
lea edx, [ebp - 0x450]
push edx
call fcn.10029920
add esp, 8
push str..
lea eax, [ebp - 0x450]
push eax
call fcn.10029930
add esp, 8
lea ecx, [ebp - 0x244]
push ecx
lea edx, [ebp - 0x450]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x1001de2c
push 0
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1001de2c
xor eax, eax
jmp 0x1001de36
jmp 0x1001dd66
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x10021441
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10e30], 0
je 0x100214ea
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10e38], 0
je 0x100214cd
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10e34]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xc80
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10e30]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100214cd
push 0x64
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10e30]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10e38], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x100214cd
push str.Warning__Terminate_mode_thread.
push 2
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10e30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10e30], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10e44], 0xffffffff
jle 0x1002151b
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10e44]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10bc4]
call fcn.1001e33f
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10e44], 0xffffffff
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1002491d
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x1002493f
mov eax, 1
jmp 0x10024a3d
mov ecx, dword [ebp - 0x114]
cmp dword [ecx + 0x838], 0
jbe 0x100249f4
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
shr eax, 0x14
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x838]
jbe 0x100249f4
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x110], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x114]
call fcn.10025b39
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp - 0x114]
call fcn.10025c24
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0xffffffff
jne 0x100249f4
xor eax, eax
jmp 0x10024a3d
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x114]
cmp dword [edx + 0x878], 0
je 0x10024a3a
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 0x114]
call fcn.10024b59
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x100253c8
Capabilities:
Hide graphical window
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x87c], 0xffffffff
je 0x100253e2
jmp 0x100254a1
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x87c], eax
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x87c], 0xffffffff
je 0x100254a1
mov word [ebp - 0x10], 0x3e8
mov word [ebp - 0xe], 0x7ffe
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x87c]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov word [ebp - 0xa], 0
mov word [ebp - 0xc], 0
mov word [ebp - 8], 0x6c
mov word [ebp - 6], 0x1e
lea eax, [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x87c]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10025495
push 1
push 0xf060
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x100254a5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push edi
mov dword [ebp - 0x218], ecx
cmp dword [ebp + 8], 0
jne 0x100254c2
xor eax, eax
jmp 0x10025622
mov eax, dword [ebp + 8]
push eax
call fcn.10029cb0
add esp, 4
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 2
jge 0x100254e4
xor eax, eax
jmp 0x10025622
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x103
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.1001deb0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call fcn.10029cb0
add esp, 4
movsx ecx, byte [ebp + eax - 0x105]
cmp ecx, 0x5c
jne 0x10025548
lea edx, [ebp - 0x104]
push edx
call fcn.10029cb0
add esp, 4
mov byte [ebp + eax - 0x105], 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0xffffffff
je 0x1002557b
mov ecx, dword [ebp - 0x20c]
and ecx, 0x10
test ecx, ecx
je 0x1002557b
mov eax, 1
jmp 0x10025622
mov byte [ebp - 0x208], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x5c
lea edx, [ebp - 0x104]
push edx
call fcn.1001de70
add esp, 8
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x100255db
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x104]
sub eax, ecx
push eax
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x208]
push eax
call fcn.1001deb0
add esp, 0xc
jmp 0x100255df
xor eax, eax
jmp 0x10025622
lea ecx, [ebp - 0x208]
push ecx
mov ecx, dword [ebp - 0x218]
call fcn.100254a5
test eax, eax
je 0x10025620
push 0
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10025619
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10025619
xor eax, eax
jmp 0x10025622
mov eax, 1
jmp 0x10025622
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4