joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001732
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100017b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100017b6
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x100017b2
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x1000176e
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x10001767
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x100017b2
xor eax, eax
push edi
mov word [ebx], ax
call fcn.10001732
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
jne 0x100017b5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100017b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100017b5
or esi, 0xffffffff
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10002324
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
push 2
pop ebx
mov ecx, dword [esi + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebx
test ax, ax
jne 0x10002332
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 0xa]
xor ecx, ecx
mov eax, edi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000494c
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
jne 0x10002365
push 0xe
pop eax
pop edi
pop esi
pop ebx
ret
push str..pipe_
push edi
push eax
call fcn.1000a8ab
push dword [esi + 8]
push edi
push dword [esi + 0xc]
call fcn.1000a8a0
add esp, 0x18
mov ecx, esi
cmp byte [esi + 0x40], 0
pop edi
pop esi
pop ebx
jne 0x100023d0
jmp 0x10002394
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
push 0x40000000
push 3
push esi
push esi
push 0xc0000000
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x10], eax
cmp eax, 0xffffffff
je 0x100023c0
mov byte [edi + 0x42], 1
jmp 0x100023cb
mov dword [edi + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop edi
mov eax, esi
pop esi
ret
push ebx
push esi
push edi
xor ebx, ebx
mov eax, 0x400
push ebx
push ebx
push eax
push eax
push 1
mov edi, ecx
mov esi, ebx
push ebx
push 0x40080003
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ecx, eax
mov dword [edi + 0x10], ecx
cmp ecx, 0xffffffff
jne 0x1000240a
mov dword [edi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10002457
lea eax, [edi + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x1000241f
mov byte [edi + 0x42], 1
jmp 0x10002457
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov esi, eax
cmp esi, 0xe7
jne 0x10002449
push 0x4e20
push dword [edi + 0xc]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x10002419
call ebx
mov esi, eax
cmp esi, 0x3e5
jne 0x10002457
xor esi, esi
mov byte [edi + 0x41], 1
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x1000245d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c0
mov eax, dword [0x1002f004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002f950], 0
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x6c0], eax
jne 0x10002498
test esi, esi
jne 0x10002498
push eax
push dword [ebp + 8]
call fcn.10002767
jmp 0x10002617
mov byte [ebp - 0x6a9], 0
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x100024da
push 0x104
lea eax, [ebp - 0x43c]
push eax
push dword [0x1002f94c]
push edi
call fcn.10003db3
test al, al
jne 0x100024cd
mov eax, 0x643
jmp 0x10002616
lea esi, [ebp - 0x43c]
mov byte [ebp - 0x6a9], 1
push ebx
push esi
mov ebx, pe_nt_image_headers32
lea eax, [ebp - 0x234]
push ebx
push eax
call fcn.100014ae
push str.CustomAction.config
push ebx
lea eax, [ebp - 0x234]
push eax
call fcn.10001430
lea ebx, [ebp - 0x234]
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
push esi
sbb eax, eax
and eax, ebx
mov ebx, 0x136
mov dword [ebp - 0x6b8], eax
lea eax, [ebp - 0x6a8]
push ebx
push eax
call fcn.100014ae
push str.Microsoft.Deployment.WindowsInstaller.dll
push ebx
lea eax, [ebp - 0x6a8]
push eax
call fcn.10001430
lea eax, [ebp - 0x6b0]
mov ebx, 0x643
push eax
lea eax, [ebp - 0x6a8]
mov dword [ebp - 0x6bc], ebx
push eax
push dword [ebp - 0x6b8]
push 0
push edi
call fcn.1000127d
test al, al
je 0x100025fe
lea eax, [ebp - 0x6b4]
push eax
push dword [ebp - 0x6b8]
push esi
push str.CustomAction
push dword [ebp - 0x6b0]
push edi
call section..text
test al, al
je 0x100025e6
lea eax, [ebp - 0x6bc]
push eax
push dword [ebp - 0x6c0]
push dword [ebp - 0x6b4]
push edi
call fcn.10002626
test al, al
je 0x100025b5
mov ebx, dword [ebp - 0x6bc]
mov eax, dword [ebp - 0x6b0]
push dword [ebp - 0x6b4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jns 0x100025da
push eax
push str.Failed_to_unload_app_domain._Error_code_0x_X
push edi
call fcn.1000400a
add esp, 0xc
mov eax, dword [ebp - 0x6b4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x6b0]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x6b0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp byte [ebp - 0x6a9], 0
je 0x10002613
lea eax, [ebp - 0x43c]
push eax
call fcn.10003c1d
mov eax, ebx
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10004903
leave
ret 0xc
Function at 0x10002ac5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
mov edi, ecx
xor ebx, ebx
cmp ebx, dword [ebp + 0xc]
jae 0x10002b7f
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [edi + 0x1c]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
sub eax, ebx
push eax
mov eax, dword [ebp + 8]
add eax, ebx
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10002b74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e5
jne 0x10002b74
cmp byte [edi + 0x40], 0
mov eax, dword [edi + 0x2c]
push 0xffffffffffffffff
je 0x10002b3b
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x10002b42
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
test esi, esi
jne 0x10002b60
push eax
lea eax, [ebp - 4]
push eax
lea eax, [edi + 0x1c]
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x10002b74
jmp 0x10002b65
cmp esi, 0xffffffff
jne 0x10002b6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10002b74
mov esi, 0x3e3
add ebx, dword [ebp - 4]
test esi, esi
je 0x10002ad4
test esi, esi
je 0x10002bab
cmp byte [edi + 0x40], 0
push dword [edi + 0x10]
je 0x10002b9d
call dword [sym.imp.KERNEL32.dll_CancelIo]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x10002ba7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x10], 0
mov byte [edi + 0x42], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x10002d75
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x40], 0
je 0x10002de5
xor eax, eax
cmp dword [esi + 0x18], eax
jne 0x10002de5
push edi
push eax
push eax
push 1
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x10002da4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10002de0
cmp dword [esi + 0x14], edi
je 0x10002db2
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push eax
push eax
push esi
push 0x10002ab6
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x10002de0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 0x18]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x18], 0
mov eax, edi
pop edi
pop esi
ret
mov eax, 0x10dd
pop esi
ret
Function at 0x10002e18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
mov edi, ecx
xor ebx, ebx
cmp ebx, dword [ebp + 0xc]
jae 0x10002ed2
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [edi + 0x1c]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
sub eax, ebx
push eax
mov eax, dword [ebp + 8]
add eax, ebx
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10002ec7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e5
jne 0x10002ec7
cmp byte [edi + 0x40], 0
mov eax, dword [edi + 0x2c]
push 0xffffffffffffffff
je 0x10002e8e
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x10002e95
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
test esi, esi
jne 0x10002eb3
push eax
lea eax, [ebp - 4]
push eax
lea eax, [edi + 0x1c]
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x10002ec7
jmp 0x10002eb8
cmp esi, 0xffffffff
jne 0x10002ec2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10002ec7
mov esi, 0x3e3
add ebx, dword [ebp - 4]
test esi, esi
je 0x10002e27
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x10003c1d
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x1002f004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
mov esi, eax
mov dword [ebp - 0x258], eax
push edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x10003c43
sub esi, ecx
sar esi, 1
lea edi, [esi + 0x107]
lea eax, [edi + edi]
call fcn.10004920
mov ebx, esp
test ebx, ebx
jne 0x10003c6d
xor al, al
jmp 0x10003d77
push dword [ebp - 0x258]
push edi
push ebx
call fcn.100014ae
push 0x100244c8
push edi
push ebx
call fcn.10001430
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10003d66
inc esi
lea esi, [ebx + esi*2]
lea eax, [ebp - 0x228]
push eax
push 0x106
push esi
call fcn.100014ae
test byte [ebp - 0x254], 0x10
je 0x10003d3a
mov ecx, 0x100244d0
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10003cef
test dx, dx
je 0x10003ceb
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10003cef
add eax, 4
add ecx, 4
test dx, dx
jne 0x10003cc9
xor eax, eax
jmp 0x10003cf4
sbb eax, eax
or eax, 1
test eax, eax
je 0x10003d41
mov ecx, 0x100244d4
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10003d29
test dx, dx
je 0x10003d25
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10003d29
add eax, 4
add ecx, 4
test dx, dx
jne 0x10003d03
xor eax, eax
jmp 0x10003d2e
sbb eax, eax
or eax, 1
test eax, eax
je 0x10003d41
push ebx
call fcn.10003c1d
jmp 0x10003d41
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10003d5d
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x10003ca3
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
lea esp, [ebp - 0x264]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004903
leave
ret 4

Function at 0x10003d8e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x10003dad
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10003dad
test al, 0x10
je 0x10003dad
mov al, 1
jmp 0x10003daf
xor al, al
pop ebp
ret 4
Function at 0x1000935f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1002ffd8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1000939f
cmp byte [ebx], 0xa
jne 0x1000939f
or byte [eax + edi + 0x28], 4
jmp 0x100093a4
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100094a2
mov al, byte [edx]
cmp al, 0x1a
je 0x10009484
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100093d3
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100093f8
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10009402
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x100093b5
jmp 0x100094a2
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000947f
cmp dword [ebp - 0xc], 0
je 0x1000947f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1002ffd8]
test byte [eax + edi + 0x28], 0x48
je 0x10009459
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10009444
mov byte [esi], dl
jmp 0x10009455
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002ffd8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100094a2
cmp byte [ebp - 1], 0xa
jne 0x10009468
cmp esi, ebx
jne 0x10009468
mov byte [esi], 0xa
jmp 0x100094a1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10009301
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100094a2
mov byte [esi], 0xd
jmp 0x100094a1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1002ffd8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1000949e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100094a2
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100094ab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1002ffd8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100094ee
cmp word [esi], dx
jne 0x100094ee
or byte [edi + eax + 0x28], 4
jmp 0x100094f3
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1000962c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1000960c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10009535
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1000956b
cmp eax, edx
jae 0x10009577
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1000950d
jmp 0x1000962c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10009608
cmp dword [ebp - 0x14], 0
je 0x10009608
mov eax, dword [ebx*4 + 0x1002ffd8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100095e0
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x10009626
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1002ffd8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x1002ffd8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1002ffd8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x10009629
pop ebx
cmp word [ebp - 4], bx
jne 0x100095f1
cmp esi, dword [ebp + 0xc]
jne 0x100095f1
mov word [esi], bx
jmp 0x10009629
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10009301
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1000962c
push 0xd
jmp 0x10009625
mov ecx, dword [ebx*4 + 0x1002ffd8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10009623
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1000962c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1000f16d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025f58
push 0x10025f50
push str.FlsAlloc
push 0x1e
call fcn.1000f08b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f1a1
push dword [ebp + 8]
mov ecx, esi
call dword [0x10019268]
call esi
jmp 0x1000f1a7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000f1eb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025f68
push 0x10025f60
push str.FlsGetValue
push 0x20
call fcn.1000f08b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f222
push dword [ebp + 8]
mov ecx, esi
call dword [0x10019268]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1000f903
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000f87f
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1000fa7b
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1000fa7b
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1000fa2a
jg 0x1000f95c
test eax, eax
je 0x1000fa20
push 1
push 0x1000
call fcn.100110cd
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1000f982
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1000fa17
push 0x8000
push ebx
call fcn.1000e7cf
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1000f9ae
jg 0x1000f9a9
cmp ecx, 0x1000
jb 0x1000f9ae
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1000a628
add esp, 0x10
cmp eax, 0xffffffff
je 0x1000f9f3
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1000f9a9
jl 0x1000f9da
test ecx, ecx
jne 0x1000f99b
push dword [ebp - 0xc]
push ebx
call fcn.1000e7cf
push esi
call fcn.1000e71a
add esp, 0xc
xor edi, edi
jmp 0x1000fa8c
cmp byte [edi + 0x24], 0
je 0x1000fa0a
cmp dword [edi + 0x20], 5
jne 0x1000fa0a
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1000fa15
mov edi, dword [edi + 0x18]
jmp 0x1000fa17
xor edi, edi
push esi
call fcn.1000e71a
pop ecx
jmp 0x1000fa8c
test ecx, ecx
jg 0x1000f9ec
jl 0x1000fa2a
test eax, eax
jae 0x1000f9ec
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10009301
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1000fa4d
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1000f9ec
jmp 0x1000fa84
push ebx
call fcn.1000f815
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1000f9ec
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1000fa8c
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1000fa89
mov edi, dword [edi + 0x18]
jmp 0x1000fa8c
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10009301
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10012293
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10012330
push ebx
push esi
call fcn.1001225c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000fd8e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100122dd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001232f
push edi
push eax
call fcn.1000e754
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100122fd
call fcn.1000e71a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001232e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000fd8e
add esp, 0x20
test eax, eax
jne 0x1001231c
push edi
call fcn.1000e71a
jmp 0x10012324
push ebx
call fcn.1000e71a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push 0x5040d1
push 0x504088
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x408f6c
nop
mov ecx, 0xdd81d5a
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x58a27fef
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219