joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017450
Capabilities:
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x10028dbb
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x100812a0]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100812a0]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
push 0x103
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edi, [esp + 0x3c]
add edi, 0xfffffffe
xor ebx, ebx
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x100174a4
mov ecx, 0xb
mov esi, str._syswow64kernel32.dll
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x3c]
movsw word es:[edi], word [esi]
push ecx
mov esi, 3
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
jle 0x100174d7
mov esi, 4
lea edx, [esp + 0x18]
push edx
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebx
call fcn.100140d0
mov ebp, eax
add esp, 8
mov byte [esp + 0x17], bl
cmp ebp, ebx
jne 0x10017524
mov byte [esp + 0x17], 1
mov ebp, 0x1002c280
cmp esi, 3
je 0x1001750f
mov ebp, 0x1003f068
sub esi, 3
neg esi
sbb esi, esi
and esi, 0x67f0
add esi, 0x12de5
jmp 0x10017528
mov esi, dword [esp + 0x18]
mov dword [esp + 0x2c], 0x1007eae8
mov dword [esp + 0x30], 0x81
mov dword [esp + 0x34], 0x1007eb70
mov dword [esp + 0x38], 0x40
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
push esi
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x34]
mov ecx, ebp
mov dword [esp + 0x258], ebx
call fcn.10012d00
mov esi, dword [esp + 0x1c]
test eax, eax
js 0x100175bc
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor ecx, ecx
push 0x103
xor ecx, 0x7933
xor eax, 0x81956583
push ecx
push eax
lea edi, [esp + 0x48]
call fcn.10017ea0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
mov edx, edi
push edx
mov ecx, esi
call fcn.1001bab0
add esp, 8
test eax, eax
jne 0x100175bc
mov dword [esp + 0x18], ebx
cmp byte [esp + 0x17], bl
jne 0x100175cf
cmp ebp, ebx
je 0x100175cf
push ebp
call fcn.100201f7
add esp, 4
mov dword [esp + 0x250], 0xffffffff
cmp esi, ebx
je 0x100175e7
push esi
call fcn.100201f7
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x100175f8
push eax
call fcn.100201f7
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.100201e8
add esp, 0x240
ret
Function at 0x10017740
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x100812a0]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
mov ebp, dword [esp + 0x218]
mov eax, fcn.10017740
and eax, 0xffff0000
mov ecx, 0x5a4d
push esi
push edi
cmp word [eax], cx
je 0x1001777f
dec eax
and eax, 0xffff0000
mov edx, ecx
cmp word [eax], dx
jne 0x10017772
push 0x103
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push closesocket
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10017802
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
mov dword [esp + 0x14], ebx
call fcn.10020596
mov esi, eax
add esp, 4
test esi, esi
je 0x100177f1
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100177f1
push esi
call fcn.100201f7
add esp, 4
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
mov dword [ebp], ecx
pop ebx
jmp 0x10017809
mov edx, dword [esp + 0xc]
mov dword [ebp], edx
mov ecx, dword [esp + 0x218]
pop edi
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.100201e8
add esp, 0x210
ret
Function at 0x10017bd0
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5b0
mov eax, dword [0x100812a0]
xor eax, esp
mov dword [esp + 0x5ac], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor edi, edi
test eax, eax
je 0x10017c26
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x10017c00
sub ecx, esi
sar ecx, 1
test ecx, ecx
jle 0x10017c26
dec ecx
js 0x10017c26
cmp word [eax + ecx*2], 0x7c
je 0x10017c22
dec ecx
jns 0x10017c16
jmp 0x10017c26
lea edi, [eax + ecx*2 + 2]
lea eax, [esp + 0x1a0]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x10017cef
movzx ecx, word [esp + eax*2 + 0x19e]
cmp ecx, 0x5c
je 0x10017c61
cmp ecx, 0x2f
je 0x10017c61
mov ecx, 0x5c
mov word [esp + eax*2 + 0x1a0], cx
inc eax
xor edx, edx
mov word [esp + eax*2 + 0x1a0], dx
test edi, edi
je 0x10017cac
mov eax, edi
mov edx, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10017c73
lea edi, [esp + 0x1a0]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10017c90
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1a0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10017cb6
sub eax, edx
sar eax, 1
movzx ecx, word [esp + eax*2 + 0x19e]
cmp ecx, 0x5c
je 0x10017ce5
cmp ecx, 0x2f
je 0x10017ce5
mov ecx, 0x5c
mov word [esp + eax*2 + 0x1a0], cx
inc eax
xor edx, edx
mov word [esp + eax*2 + 0x1a0], dx
push 5
push 0
push 0
lea eax, [esp + 0x1ac]
push eax
push str.open
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
push 0x18e
push ecx
lea edx, [esp + 0x1a]
push edx
mov dword [esp + 0x18], 0
mov word [esp + 0x1c], cx
call fcn.10025370
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esp + 0xc]
push ecx
call fcn.10017740
add esp, 4
mov edi, eax
call fcn.10017830
test eax, eax
jns 0x10017d85
mov esi, dword [esp + 0xc]
push esi
push edi
call fcn.100165f0
add esp, 8
test eax, eax
jns 0x10017d85
test edi, edi
je 0x10017d99
mov edx, esi
mov ecx, edi
call fcn.10015e00
test eax, eax
je 0x10017d99
push edi
call fcn.100201f7
add esp, 4
mov ecx, dword [esp + 0x5b4]
pop edi
pop esi
xor ecx, esp
call fcn.100201e8
mov esp, ebp
pop ebp
ret
mov eax, edi
call fcn.10016200
int3
Function at 0x10017db0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a0
mov eax, dword [0x100812a0]
xor eax, esp
mov dword [esp + 0x19c], eax
push esi
push edi
xor eax, eax
push 0x18e
push eax
lea ecx, [esp + 0x1a]
push ecx
mov dword [esp + 0x18], 0
mov word [esp + 0x1c], ax
call fcn.10025370
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esp + 0xc]
push eax
call fcn.10017740
add esp, 4
mov edi, eax
call fcn.10017830
test eax, eax
jns 0x10017e42
mov esi, dword [esp + 0xc]
push esi
push edi
call fcn.100165f0
add esp, 8
test eax, eax
jns 0x10017e42
test edi, edi
je 0x10017e56
mov edx, esi
mov ecx, edi
call fcn.10015e00
test eax, eax
je 0x10017e56
push edi
call fcn.100201f7
add esp, 4
mov ecx, dword [esp + 0x1a4]
pop edi
pop esi
xor ecx, esp
call fcn.100201e8
mov esp, ebp
pop ebp
ret
mov eax, edi
call fcn.10016200
int3

Function at 0x10018140
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
mov edi, eax
xor ebx, ebx
mov eax, dword [0x10083b10]
test eax, eax
je 0x1001816f
cmp dword [0x10083b58], edi
jne 0x1001817f
inc dword [0x10083b54]
jmp 0x1001819d
mov ecx, 1
mov edx, 0x10083b10
xchg dword [edx], ecx
test ecx, ecx
je 0x1001818d
inc ebx
test bl, 0x3f
jne 0x10018156
push 0
push 0
call esi
jmp 0x10018156
mov dword [0x10083b58], edi
mov dword [0x10083b54], 1
mov eax, dword [0x100836ac]
test eax, eax
jne 0x1001821f
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x28]
mov esi, 0x100000
cmp eax, 0x100000
jb 0x100181c3
mov esi, eax
mov edi, dword [esp + 0x10]
lea edx, [esi - 1]
mov dword [0x100831b4], eax
test esi, edx
jne 0x100181da
lea eax, [edi - 1]
test edi, eax
je 0x100181df
call fcn.10020f0a
mov dword [0x100836b4], esi
mov dword [0x100836b0], edi
mov dword [0x100836b8], 0x40000
mov dword [0x100836bc], 0x200000
mov dword [0x100836c0], 7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, 0x55555550
and eax, 0xfffffff8
or eax, 8
mov dword [0x100836ac], eax
dec dword [0x10083b54]
pop edi
pop esi
pop ebx
jne 0x1001823d
mov dword [0x10083b58], 0
xor ecx, ecx
mov edx, 0x10083b10
xchg dword [edx], ecx
mov eax, 1
add esp, 0x24
ret
Function at 0x1001ac40
Capabilities:
Set thread local storage value

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, dword [sym.imp.KERNEL32.dll_SleepEx]
mov esi, eax
xor ebx, ebx
mov eax, dword [edi]
test eax, eax
je 0x1001ac67
cmp dword [edi + 0x48], esi
jne 0x1001ac74
inc dword [edi + 0x44]
jmp 0x1001ac8c
mov ecx, 1
mov edx, edi
xchg dword [edx], ecx
test ecx, ecx
je 0x1001ac82
inc ebx
test bl, 0x3f
jne 0x1001ac57
push 0
push 0
call ebp
jmp 0x1001ac57
mov dword [edi + 0x48], esi
mov dword [edi + 0x44], 1
xor ecx, ecx
lea eax, [edi + 0x58]
cmp dword [eax - 4], 0
je 0x1001acc3
cmp dword [eax], 0
je 0x1001acb8
cmp dword [eax + 4], 0
je 0x1001acbb
cmp dword [eax + 8], 0
je 0x1001acc0
add ecx, 4
add eax, 0x10
cmp ecx, 0x100
jl 0x1001ac91
jmp 0x1001acc3
inc ecx
jmp 0x1001acc3
add ecx, 2
jmp 0x1001acc3
add ecx, 3
mov dword [esp + 0x10], ecx
cmp ecx, 0x100
jne 0x1001ace7
dec dword [edi + 0x44]
jne 0x1001acdf
mov dword [edi + 0x48], 0
xor eax, eax
xchg dword [edi], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov esi, dword [edi + 0x458]
push 1
push 0x68
mov eax, esi
call fcn.10019fa0
add esp, 8
test eax, eax
je 0x1001ad76
mov ecx, dword [eax - 4]
test cl, 3
mov edx, 0
sete dl
and ecx, 0xfffffff8
lea edx, [edx*4 + 8]
sub ecx, edx
mov edx, dword [0x100831b8]
test edx, edx
je 0x1001ad28
cmp dword [esi + 0x10], edx
jae 0x1001ad31
mov edx, dword [esi + 0x10]
mov dword [0x100831b8], edx
mov edx, dword [0x100831bc]
test edx, edx
je 0x1001ad3f
cmp ecx, edx
jbe 0x1001ad52
mov edx, dword [0x100836b0]
add ecx, edx
dec edx
not edx
and ecx, edx
mov dword [0x100831bc], ecx
mov ebx, eax
mov edx, dword [esp + 0x10]
xor esi, esi
mov dword [edi + edx*4 + 0x54], ebx
cmp ebx, esi
jne 0x1001ad7a
dec dword [edi + 0x44]
jne 0x1001ad6e
mov dword [edi + 0x48], esi
xor eax, eax
xchg dword [edi], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
xor ebx, ebx
jmp 0x1001ad54
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 4], eax
cmp dword [edi + 0x458], esi
je 0x1001ad9a
lea ecx, [edi + 0x458]
add ecx, 4
inc esi
cmp dword [ecx], 0
jne 0x1001ad91
cdq
xor eax, edx
sub eax, edx
cdq
idiv esi
dec dword [edi + 0x44]
mov dword [ebx], edx
jne 0x1001adb6
mov dword [edi + 0x48], 0
xor ecx, ecx
mov edx, edi
xchg dword [edx], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x454]
inc eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1001add2
call fcn.10020f0a
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x1001af40
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0x100836ac]
test eax, eax
jne 0x1001af4e
call fcn.10018140
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.KERNEL32.dll_SleepEx]
xor ebp, ebp
mov esi, eax
xor ebx, ebx
mov ecx, dword [0x10083b10]
test ecx, ecx
je 0x1001af7e
cmp dword [0x10083b58], esi
jne 0x1001af8e
inc dword [0x10083b54]
jmp 0x1001afaa
mov edx, 1
mov eax, 0x10083b10
xchg dword [eax], edx
test edx, edx
je 0x1001af9a
inc ebx
test bl, 0x3f
jne 0x1001af64
push ebp
push ebp
call edi
jmp 0x1001af64
mov dword [0x10083b58], esi
mov dword [0x10083b54], 1
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x50], ebp
jne 0x1001b06a
mov dword [edi + 0x48], ebp
mov dword [edi + 0x44], ebp
mov dword [edi], ebp
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 0x454], eax
cmp eax, 0xffffffff
je 0x1001afe3
mov esi, dword [esp + 0x18]
call fcn.10019e50
mov dword [edi + 0x458], eax
cmp eax, ebp
jne 0x1001b048
cmp dword [esp + 0x1c], ebp
jge 0x1001afee
call fcn.10020f0a
mov eax, edi
call fcn.1001ac00
mov eax, dword [edi + 0x458]
cmp eax, ebp
je 0x1001b00a
call fcn.10019ed0
mov dword [edi + 0x458], ebp
mov eax, dword [edi + 0x454]
cmp eax, ebp
je 0x1001b02a
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
test eax, eax
jne 0x1001b024
call fcn.10020f0a
mov dword [edi + 0x454], ebp
dec dword [0x10083b54]
jne 0x1001b041
mov dword [0x10083b58], ebp
xor ecx, ecx
mov edx, 0x10083b10
xchg dword [edx], ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov dword [eax + 0x218], edi
mov eax, dword [esp + 0x1c]
cmp eax, 0x10
jle 0x1001b05e
mov eax, 0x10
jmp 0x1001b067
cmp eax, ebp
jne 0x1001b067
mov eax, 4
mov dword [edi + 0x50], eax
mov eax, 1
sub dword [0x10083b54], eax
jne 0x1001b086
mov dword [0x10083b58], ebp
xor ecx, ecx
mov edx, 0x10083b10
xchg dword [edx], ecx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1001b470
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov eax, 0x14
push esi
push edi
cmp dword [esp + 0x24], eax
jae 0x1001b48a
mov dword [esp + 0x24], eax
test ebp, ebp
jne 0x1001b49b
lea eax, [esp + 0x20]
call fcn.1001b3f0
mov ebp, dword [esp + 0x20]
mov eax, dword [ebp + 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jle 0x1001b4b8
mov eax, dword [ebp + eax*4 + 0x50]
mov esi, dword [eax]
mov dword [esp + 0x10], eax
jmp 0x1001b4d5
lea edi, [esp + 0x14]
lea esi, [esp + 0x10]
lea ebx, [esp + 0x20]
call fcn.1001b420
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
test ebx, 0xfffe
jne 0x1001b523
test eax, eax
je 0x1001b523
cmp dword [esp + 0x24], 0x2000
ja 0x1001b523
lea ecx, [esp + 0x24]
push ecx
mov edi, eax
call fcn.1001ade0
mov edi, eax
add esp, 4
test edi, edi
je 0x1001b523
test bl, 1
je 0x1001b519
mov edx, dword [esp + 0x24]
push edx
push 0
push edi
call fcn.10025370
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edi, dword [ebp + esi*4 + 0x458]
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [edi + 0x1cc]
mov ebp, dword [esp + 0x24]
test ecx, ecx
je 0x1001b552
cmp dword [edi + 0x214], eax
jne 0x1001b575
inc dword [edi + 0x210]
jmp 0x1001b58f
mov edx, 1
lea ecx, [edi + 0x1cc]
xchg dword [ecx], edx
test edx, edx
jne 0x1001b575
mov dword [edi + 0x214], eax
mov dword [edi + 0x210], 1
jmp 0x1001b58f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push ebp
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
call fcn.1001b090
add esp, 0x10
mov edi, eax
push ebx
push ebp
mov eax, edi
call fcn.10019fa0
add esp, 8
test eax, eax
je 0x1001b5f4
mov ecx, dword [eax - 4]
test cl, 3
mov edx, 0
sete dl
and ecx, 0xfffffff8
lea edx, [edx*4 + 8]
sub ecx, edx
mov edx, dword [0x100831b8]
test edx, edx
je 0x1001b5c8
cmp dword [edi + 0x10], edx
jae 0x1001b5d1
mov edx, dword [edi + 0x10]
mov dword [0x100831b8], edx
mov edx, dword [0x100831bc]
test edx, edx
je 0x1001b5df
cmp ecx, edx
jbe 0x1001b5f6
mov edx, dword [0x100836b0]
add ecx, edx
dec edx
not edx
and ecx, edx
mov dword [0x100831bc], ecx
jmp 0x1001b5f6
xor eax, eax
dec dword [edi + 0x210]
lea ecx, [edi + 0x1cc]
jne 0x1001b51b
mov dword [ecx + 0x48], 0
xor edx, edx
xchg dword [ecx], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x1001b930
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 8], ebx
cmp esi, ebx
je 0x1001b9fd
push ebp
mov edx, esi
mov dword [esp + 0x10], 1
call fcn.1001aa10
test eax, eax
je 0x1001b9bb
mov eax, dword [esi - 4]
test al, 3
mov ecx, ebx
sete cl
and eax, 0xfffffff8
mov dword [esp + 0x10], ebx
lea ecx, [ecx*4 + 8]
sub eax, ecx
mov ebp, eax
cmp ebp, ebx
jne 0x1001b996
push str.nedmalloc:_nedpfree___called_with_a_block_not_created_by_nedmalloc__n
call fcn.10020f70
add eax, 0x40
push eax
call fcn.10021125
add esp, 8
call fcn.10020f0a
push edi
lea eax, [esp + 0x10]
call fcn.1001b3f0
mov edi, dword [esp + 0x10]
mov edx, dword [edi + 0x454]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
jle 0x1001b9bf
mov eax, dword [edi + eax*4 + 0x50]
jmp 0x1001b9d8
xor ebp, ebp
jmp 0x1001b97b
lea edi, [esp + 0x1c]
lea esi, [esp + 0x18]
lea ebx, [esp + 0x10]
call fcn.1001b420
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
test eax, eax
je 0x1001ba03
cmp dword [esp + 0x14], 0
jne 0x1001ba0a
lea ecx, [ebp - 0x14]
cmp ecx, 0x1ff4
ja 0x1001ba1c
push 0
push ebp
mov edi, eax
call fcn.1001aeb0
add esp, 8
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10
ret
cmp dword [esp + 0x14], 0
je 0x1001ba1c
push esi
call dword [0x10081dd0]
add esp, 4
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10
ret
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0x10
jmp fcn.1001a2d0

Function at 0x1001ba30
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001ba54
or eax, eax
pop esi
pop ecx
ret
push edi
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call edi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret
Function at 0x100201e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100812a0]
jne 0x100201f2
repz ret
jmp fcn.100214ae

Function at 0x100258da
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100812a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1002287f
and dword [ebp - 0x14], 0
cmp dword [0x10083104], 0
mov dword [ebp - 0x18], eax
jne 0x1002598d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10025a35
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10025a35
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10083104], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10083108], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1008310c], eax
call edi
push eax
call esi
mov dword [0x10083114], eax
test eax, eax
je 0x1002598d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10083110], eax
mov eax, dword [0x10083110]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100259e6
cmp dword [0x10083114], ecx
je 0x100259e6
push eax
call esi
push dword [0x10083114]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100259e6
test ebx, ebx
je 0x100259e6
call edi
test eax, eax
je 0x100259dd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100259dd
test byte [ebp - 8], 1
jne 0x100259e6
or dword [ebp + 0x10], 0x200000
jmp 0x10025a19
mov eax, dword [0x10083108]
cmp eax, dword [ebp - 0x18]
je 0x10025a19
push eax
call esi
test eax, eax
je 0x10025a19
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10025a19
mov eax, dword [0x1008310c]
cmp eax, dword [ebp - 0x18]
je 0x10025a19
push eax
call esi
test eax, eax
je 0x10025a19
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10083104]
call esi
test eax, eax
je 0x10025a35
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10025a37
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100201e8
leave
ret
Function at 0x10002290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call fcn.100013a0
mov ecx, eax
jmp fcn.10002320
Function at 0x1000c1f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100f9258
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
lea ecx, [esp + 0x14]
call fcn.100f6d96
xor ebx, ebx
push ebx
mov dword [esp + 0x30], ebx
call dword [0x10109170]
push eax
lea ecx, [esp + 0x18]
call fcn.100f6d90
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.1000c0a0
add esp, 0x14
test eax, eax
jne 0x1000c279
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100f6d84
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
mov ecx, dword [esp + 8]
push ebp
neg eax
sbb eax, eax
push esi
push edi
and eax, edx
push ebx
lea edx, [esp + 0x1c]
push ebx
push edx
push ebx
push ecx
push eax
mov dword [esp + 0x30], ebx
call dword [0x1010905c]
mov edi, dword [esp + 0x18]
mov ebp, eax
cmp edi, ebx
je 0x1000c2c6
cmp ebp, ebx
je 0x1000c2c6
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov esi, dword [0x1010a0fc]
cmp eax, ebx
je 0x1000c2de
push eax
call esi
add esp, 4
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1000c2f0
push eax
call esi
add esp, 4
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x1000c2fe
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.100f6d84
mov ecx, dword [esp + 0x30]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret