joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1020ea4
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
test dword [0x10382cc], 0x200
jne 0x1020f06
push esi
mov esi, dword [ebp + 8]
test byte [esi], 2
jne 0x1020f05
push edi
mov di, word [ebp + 0xc]
cmp di, word [esi + 0xc]
jl 0x1020f04
cmp di, word [esi + 0x10]
jg 0x1020f04
mov ecx, dword [ebp + 0xc]
shr ecx, 0x10
cmp cx, word [esi + 0xe]
jl 0x1020f04
cmp cx, word [esi + 0x12]
jg 0x1020f04
movzx eax, word [esi + 0x64]
mov dword [ebp + 8], eax
cmp di, ax
jne 0x1020df9
cmp cx, word [esi + 0x66]
je 0x1020f04
push ebx
mov bl, byte [0x1038415]
test bl, bl
je 0x1020e4b
movsx eax, word [esi + 0x44]
movsx ecx, cx
add eax, ecx
movsx ecx, word [esi + 0xa]
cdq
idiv ecx
movsx ecx, di
movsx eax, dx
imul eax, eax, 0x1c
add eax, dword [esi + 0x3c]
mov eax, dword [eax + 0xc]
mov al, byte [ecx + eax]
test al, 1
je 0x1020e35
movsx eax, word [esi + 8]
dec eax
cmp ecx, eax
jne 0x1020e44
jmp 0x1020e4b
test al, 2
je 0x1020e4b
test di, di
je 0x1020e4b
dec di
mov word [ebp + 0xc], di
mov dword [ebp - 4], 1
cmp dword [esi + 0x34], 0
jl 0x1020efd
test byte [0x10381e8], 0x10
je 0x1020efd
mov ax, word [ebp + 8]
mov cx, word [esi + 0x66]
mov word [ebp - 8], ax
mov word [ebp - 0xc], ax
mov word [ebp - 6], cx
mov word [ebp - 0xa], cx
test bl, bl
je 0x1020eb5
movsx edi, ax
movsx eax, word [esi + 0x44]
movsx ecx, cx
add eax, ecx
movsx ecx, word [esi + 0xa]
cdq
idiv ecx
mov ecx, dword [esi + 0x3c]
movsx eax, dx
imul eax, eax, 0x1c
mov eax, dword [eax + ecx + 0xc]
test byte [edi + eax], 1
je 0x1020eb1
movsx eax, word [esi + 8]
dec eax
cmp edi, eax
je 0x1020eb1
inc word [ebp - 8]
mov di, word [ebp + 0xc]
mov ax, word [ebp + 0xe]
mov word [esi + 0x66], ax
lea eax, [ebp - 0xc]
push eax
push esi
mov word [esi + 0x64], di
call fcn.01001b5b
cmp dword [ebp - 4], 0
mov ax, word [ebp + 0xc]
mov word [ebp - 8], ax
mov word [ebp - 0xc], ax
mov ax, word [ebp + 0xe]
mov word [ebp - 6], ax
mov word [ebp - 0xa], ax
je 0x1020ef1
mov eax, dword [ebp + 0xc]
inc eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.01001b5b
jmp 0x1020f03
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x64], eax
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x10238d1
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address
Get number of processors

Disassembly:
cmp dword [ebp - 0x20], 0xc0030001
je 0x102397e
cmp byte [ebx + 0x70], 0
jne 0x102395b
mov eax, dword [0x1038030]
add eax, 0x300000
mov dword [ebp + 0x18], eax
mov eax, dword fs:[0x18]
mov dword [ebp + 0x1c], eax
push dword [ebp - 0x28]
push dword [ebp + 0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
jne 0x10238e1
mov byte [ebp - 0x19], 1
jmp 0x102397e
cmp dword [ebx + 0x60], 0x50
ja 0x10238ec
lea esi, [ebx + 6]
jmp 0x10238f2
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 8]
mov dword [ebp - 0x24], esi
cmp byte [0x1038415], 0
je 0x1023917
mov eax, dword [ebp - 0x48]
add eax, 0x34
push eax
push dword [ebp - 0x28]
push edi
mov eax, dword [ebx + 0x5c]
shr eax, 1
push eax
push esi
call fcn.01036d87
jmp 0x102392b
mov eax, dword [ebx + 0x5c]
shr eax, 1
push eax
push edi
push eax
push esi
push dword [0x1038330]
call fcn.0101c284
mov dword [ebx + 0x5c], eax
push eax
push edi
push esi
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
cmp dword [ebp - 0x2c], 0
je 0x1023943
inc dword [ebx + 0x5c]
mov eax, dword fs:[0x18]
mov dword [ebp - 0x38], eax
push edi
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20], eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x3c], eax
push dword [ebp + 0x10]
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
ret
Function at 0x102391c
Capabilities:
Get number of processors

Disassembly:
cmp dword [ebp - 0x20], 0xc0030001
je 0x102397e
cmp byte [ebx + 0x70], 0
jne 0x102395b
mov eax, dword [0x1038030]
add eax, 0x300000
mov dword [ebp + 0x18], eax
mov eax, dword fs:[0x18]
mov dword [ebp + 0x1c], eax
push dword [ebp - 0x28]
push dword [ebp + 0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
jne 0x10238e1
mov byte [ebp - 0x19], 1
jmp 0x102397e
cmp dword [ebx + 0x60], 0x50
ja 0x10238ec
lea esi, [ebx + 6]
jmp 0x10238f2
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 8]
mov dword [ebp - 0x24], esi
cmp byte [0x1038415], 0
je 0x1023917
mov eax, dword [ebp - 0x48]
add eax, 0x34
push eax
push dword [ebp - 0x28]
push edi
mov eax, dword [ebx + 0x5c]
shr eax, 1
push eax
push esi
call fcn.01036d87
jmp 0x102392b
mov eax, dword [ebx + 0x5c]
shr eax, 1
push eax
push edi
push eax
push esi
push dword [0x1038330]
call fcn.0101c284
mov dword [ebx + 0x5c], eax
push eax
push edi
push esi
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
cmp dword [ebp - 0x2c], 0
je 0x1023943
inc dword [ebx + 0x5c]
mov eax, dword fs:[0x18]
mov dword [ebp - 0x38], eax
push edi
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20], eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x3c], eax
push dword [ebp + 0x10]
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
ret
Function at 0x102393b
Capabilities:
Get number of processors

Disassembly:
cmp dword [ebp - 0x20], 0xc0030001
je 0x102397e
cmp byte [ebx + 0x70], 0
jne 0x102395b
mov eax, dword [0x1038030]
add eax, 0x300000
mov dword [ebp + 0x18], eax
mov eax, dword fs:[0x18]
mov dword [ebp + 0x1c], eax
push dword [ebp - 0x28]
push dword [ebp + 0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
jne 0x10238e1
mov byte [ebp - 0x19], 1
jmp 0x102397e
cmp dword [ebx + 0x60], 0x50
ja 0x10238ec
lea esi, [ebx + 6]
jmp 0x10238f2
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 8]
mov dword [ebp - 0x24], esi
cmp byte [0x1038415], 0
je 0x1023917
mov eax, dword [ebp - 0x48]
add eax, 0x34
push eax
push dword [ebp - 0x28]
push edi
mov eax, dword [ebx + 0x5c]
shr eax, 1
push eax
push esi
call fcn.01036d87
jmp 0x102392b
mov eax, dword [ebx + 0x5c]
shr eax, 1
push eax
push edi
push eax
push esi
push dword [0x1038330]
call fcn.0101c284
mov dword [ebx + 0x5c], eax
push eax
push edi
push esi
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
cmp dword [ebp - 0x2c], 0
je 0x1023943
inc dword [ebx + 0x5c]
mov eax, dword fs:[0x18]
mov dword [ebp - 0x38], eax
push edi
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20], eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x3c], eax
push dword [ebp + 0x10]
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
ret
Function at 0x1026e59
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
push esi
push dword [ebp + 0x1c]
call fcn.01026d2f
mov edi, dword [ebp + 0xc]
cmp eax, edi
ja 0x1026ed1
cmp esi, dword [ebp + 0x18]
jne 0x1026da3
push eax
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
jmp 0x1026ed1
push ebx
movsx ebx, word [ebp + 0x1c]
mov dword [ebp + 0x10], ebx
mov ecx, ebx
cmp esi, 2
jne 0x1026e43
and ecx, 0x80000007
jns 0x1026dc3
dec ecx
or ecx, 0xfffffff8
inc ecx
jne 0x1026dda
mov ecx, ebx
and ecx, 0x8000000f
jns 0x1026dd4
dec ecx
or ecx, 0xfffffff0
inc ecx
je 0x1026e63
mov esi, dword [ebp + 8]
push eax
push 0
push esi
call fcn.01001852
xor eax, eax
add esp, 0xc
add edi, esi
cmp ax, word [ebp + 0x1e]
mov word [ebp + 0xa], ax
jge 0x1026ed0
mov edx, dword [ebp + 0x14]
jmp 0x1026e03
mov ebx, dword [ebp + 0x10]
cmp esi, edi
jae 0x1026ed0
lea eax, [ebx + 7]
sar eax, 3
xor ecx, ecx
test eax, eax
jle 0x1026e2a
cmp esi, edi
jae 0x1026e2a
mov bl, byte [edx]
mov byte [esi], bl
inc esi
inc edx
inc cx
movsx ebx, cx
cmp ebx, eax
jl 0x1026e17
test al, 1
je 0x1026e2f
inc esi
inc word [ebp + 0xa]
mov ax, word [ebp + 0xa]
cmp ax, word [ebp + 0x1e]
jge 0x1026ed0
jmp 0x1026e00
and ecx, 0x80000007
jns 0x1026e50
dec ecx
or ecx, 0xfffffff8
inc ecx
jne 0x1026e75
mov ecx, ebx
and ecx, 0x8000000f
jns 0x1026e61
dec ecx
or ecx, 0xfffffff0
inc ecx
jne 0x1026e75
push eax
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
jmp 0x1026ed0
mov esi, dword [ebp + 8]
push eax
push 0
push esi
call fcn.01001852
xor eax, eax
add esp, 0xc
add edi, esi
cmp ax, word [ebp + 0x1e]
mov word [ebp + 0xa], ax
jge 0x1026ed0
mov edx, dword [ebp + 0x14]
jmp 0x1026e9a
mov ebx, dword [ebp + 0x10]
cmp esi, edi
jae 0x1026ed0
lea eax, [ebx + 7]
sar eax, 3
xor ecx, ecx
test eax, eax
jle 0x1026ebd
cmp esi, edi
jae 0x1026ebd
mov bl, byte [edx]
mov byte [esi], bl
inc esi
inc edx
inc cx
movsx ebx, cx
cmp ebx, eax
jl 0x1026eaa
test al, 1
je 0x1026ec2
inc edx
inc word [ebp + 0xa]
mov ax, word [ebp + 0xa]
cmp ax, word [ebp + 0x1e]
jl 0x1026e97
pop ebx
pop edi
pop esi
pop ebp
ret 0x18

Function at 0x102a257
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x102a264
cmp dword [ebp + 0xc], 0
je 0x102a264
push dword [ebp + 0x10]
xor eax, eax
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov word [esi], ax
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x102a266
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x102d67c
Capabilities:
Log keystrokes via input method manager

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
push dword [eax + 0x38]
call fcn.01029c76
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
push dword [eax + 0x3c]
call fcn.01029ce4
push 2
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
mov esi, dword [ebp + 0xc]
pop ebx
test byte [eax + 0x30], bl
je 0x102d7d8
mov al, byte [ebp + 8]
xor edx, edx
lea ecx, [esi + 8]
test al, 8
je 0x102d6ef
mov edi, ebx
test al, 1
je 0x102d6d9
test bl, al
je 0x102d6c3
mov ax, word [edx + 0x1038ef8]
mov word [ecx], ax
add edx, ebx
add ecx, 4
cmp edx, 4
jae 0x102d73a
jmp 0x102d6ad
mov ax, word [edx + str.hQB0hQ]
mov word [ecx], ax
add edx, ebx
add ecx, 4
cmp edx, 4
jae 0x102d73a
jmp 0x102d6c3
mov ax, word [edx + 0x1038ef0]
mov word [ecx], ax
add edx, ebx
add ecx, 4
cmp edx, 4
jae 0x102d73a
jmp 0x102d6d9
push 3
pop edi
test al, 1
je 0x102d726
test bl, al
je 0x102d710
mov ax, word [edx + 0x1038ee8]
mov word [ecx], ax
add edx, ebx
add ecx, 4
cmp edx, 6
jae 0x102d73a
jmp 0x102d6fa
mov ax, word [edx + 0x1038ee0]
mov word [ecx], ax
add edx, ebx
add ecx, 4
cmp edx, 6
jae 0x102d73a
jmp 0x102d710
mov ax, word [edx + 0x1038ed8]
mov word [ecx], ax
add edx, ebx
add ecx, 4
cmp edx, 6
jb 0x102d726
mov eax, dword [ebp - 4]
test eax, eax
jne 0x102d749
mov ax, word [0x1038eb0]
jmp 0x102d782
test al, 1
je 0x102d755
mov ax, word [0x1038eb2]
jmp 0x102d782
test bl, al
je 0x102d761
mov ax, word [0x1038eb4]
jmp 0x102d782
test al, 4
je 0x102d76d
mov ax, word [0x1038eb6]
jmp 0x102d782
test al, 8
je 0x102d779
mov ax, word [0x1038eb8]
jmp 0x102d782
push 0x20
pop eax
mov word [esi + edi*4 + 8], ax
inc edi
mov word [esi + edi*4 + 8], ax
push 0x15
inc edi
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x102d7b3
lea eax, [esi + edi*4 + 8]
xor ecx, ecx
add edi, 4
mov dx, word [ecx + 0x1038ed0]
mov word [eax], dx
add ecx, ebx
add eax, 4
cmp ecx, 8
jae 0x102d7da
jmp 0x102d79d
test byte [ebp + 8], 0x10
je 0x102d7da
lea eax, [esi + edi*4 + 8]
xor ecx, ecx
add edi, 4
mov dx, word [ecx + 0x1038ec8]
mov word [eax], dx
add ecx, ebx
add eax, 4
cmp ecx, 8
jae 0x102d7da
jmp 0x102d7c2
xor edi, edi
test edi, edi
jle 0x102d7ef
lea eax, [esi + 0xa]
mov ecx, edi
push 7
pop edx
mov word [eax], dx
add eax, 4
dec ecx
jne 0x102d7e3
xor eax, eax
mov dword [esi], edi
inc eax
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
leave
ret 8
Function at 0x102d8a7
Capabilities:
Log keystrokes via input method manager

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push esi
push edi
push dword [eax + 0x38]
call fcn.01029c76
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
and dword [ebp + 8], 0
mov dword [ebp - 4], eax
lea eax, [edi + esi*4 + 8]
mov dword [ebp + 0x10], eax
add ebx, 0x10
movzx eax, word [ebx]
test ax, ax
je 0x102d85d
mov ecx, dword [ebp + 0x10]
push eax
mov word [ecx], ax
call fcn.01029b35
xor ecx, ecx
test eax, eax
setne cl
add dword [ebp + 0x10], 4
inc ecx
add dword [ebp + 8], ecx
inc ebx
inc ebx
inc esi
cmp dword [ebp + 8], 4
jb 0x102d831
push 5
pop eax
cmp dword [ebp + 8], eax
jae 0x102d87a
sub eax, dword [ebp + 8]
lea ecx, [edi + esi*4 + 8]
add esi, eax
push 0x20
pop edx
mov word [ecx], dx
add ecx, 4
dec eax
jne 0x102d86e
test byte [ebp - 4], 8
mov ax, word [0x1038efc]
jne 0x102d88c
mov ax, word [0x1038f00]
mov word [edi + esi*4 + 8], ax
push 0x20
pop eax
inc esi
mov word [edi + esi*4 + 8], ax
push 0x3a
inc esi
inc esi
pop eax
mov word [edi + esi*4 + 4], ax
je 0x102d8b7
lea eax, [edi + 0xa]
mov ecx, esi
push 7
pop edx
mov word [eax], dx
add eax, 4
dec ecx
jne 0x102d8ab
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x102dad2
Capabilities:
Log keystrokes via input method manager

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
cmp dword [eax + 0x2ac], 0
push ebx
mov ebx, dword [ebp + 0x10]
je 0x102dba5
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
push esi
mov esi, dword [eax + 0x224]
mov ecx, dword [esi + 0xc]
push edi
lea edx, [esi + 0x2c]
lea edi, [ecx + esi + 0x2e]
test ecx, ecx
jbe 0x102db2c
mov ecx, edx
mov edx, dword [ebp + 0xc]
mov eax, ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], ecx
lea edi, [edx + eax*4 + 0xa]
jmp 0x102dae6
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 4], 0xa
jae 0x102db2c
mov ax, word [ecx]
mov word [edi - 2], ax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
mov ax, word [esi + eax*2 + 0x1c]
mov word [edi], ax
movzx eax, word [ecx]
push eax
inc ebx
add edi, 4
call fcn.01029b35
xor ecx, ecx
test eax, eax
setne cl
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], 2
inc ecx
add dword [ebp - 4], ecx
inc dword [ebp - 8]
cmp eax, dword [esi + 0xc]
jb 0x102dae3
push 0xa
pop eax
cmp dword [ebp - 4], eax
jae 0x102db4c
mov ecx, dword [ebp + 0xc]
sub eax, dword [ebp - 4]
lea ecx, [ecx + ebx*4 + 8]
add ebx, eax
push 0x20
pop edx
mov word [ecx], dx
add ecx, 4
dec eax
jne 0x102db40
mov ecx, dword [ebp + 0xc]
and dword [ebp + 0x10], 0
push 0x3a
pop eax
mov word [ecx + ebx*4 + 8], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2ac]
movzx edx, word [eax + 4]
mov ecx, dword [eax]
inc ebx
add ecx, eax
test dx, dx
je 0x102dba3
movzx edi, dx
mov edx, dword [ebp + 0xc]
lea edx, [edx + ebx*4 + 0xa]
mov word [edx - 2], di
mov edi, dword [ebp + 0x10]
movzx edi, byte [edi + ecx]
mov di, word [esi + edi*2 + 0x1c]
mov word [edx], di
inc ebx
add edx, 4
inc dword [ebp + 0x10]
mov edi, dword [ebp + 0x10]
movzx edi, word [eax + edi*2 + 4]
test di, di
jne 0x102db7c
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x102dcfd
Capabilities:
Log keystrokes via input method manager

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0
push esi
push edi
call fcn.0102d803
mov ecx, dword [edi + 4]
cmp dword [ecx + 0x34], 0
je 0x102dd04
cmp dword [edi + 0x228], 0
push eax
push esi
push edi
je 0x102dcff
call fcn.0102d8c5
jmp 0x102dd04
call fcn.0102da33
push eax
push esi
push edi
call fcn.0102dbd8
and dword [esi + 4], 0
mov dword [esi], eax
xor eax, eax
pop edi
inc eax
pop esi
pop ebp
ret 8

Function at 0x102e8e7
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
xor eax, eax
xor edi, edi
test esi, esi
je 0x102e8e4
cmp dword [ebp + 0xc], eax
je 0x102e8e0
movzx edx, word [ebx]
test dx, dx
je 0x102e8e0
mov word [ecx], dx
inc ecx
inc ecx
inc ebx
inc ebx
dec esi
dec dword [ebp + 0xc]
inc edi
test esi, esi
jne 0x102e8c3
test esi, esi
jne 0x102e8ec
dec ecx
dec ecx
dec edi
mov eax, 0x8007007a
xor edx, edx
mov word [ecx], dx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x102e8fa
mov dword [ecx], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x401d33
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
lea eax, [esp + 0x18]
mov edi, ecx
push eax
call fcn.00401ee6
xor ebp, ebp
pop ecx
pop ecx
mov ebx, dword [eax]
mov dword [eax], ebp
cmp dword [esp + 0x14], ebp
je 0x401d62
push 4
push dword [esp + 0x18]
call fcn.004068f9
pop ecx
pop ecx
lea esi, [edi + 4]
push esi
push ebp
push ebx
push 0x401b2a
push ebp
push ebp
call fcn.0040e95b
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x401d84
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 6
mov dword [esi], ebp
call fcn.00404766
int3

Function at 0x405e41
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x405e62
jl 0x405e59
test edi, edi
jne 0x405e62
xor eax, eax
xor edx, edx
jmp 0x405f23
cmp dword [ebx + 0x38], 0
je 0x405e77
push eax
push edi
push dword [ebp + 8]
call fcn.00405f29
jmp 0x405f23
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x405ebe
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x405ebe
cmp eax, edi
jb 0x405e98
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00407600
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x405ec4
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x405f18
mov ecx, ebx
call fcn.00405691
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x405f03
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040fe76
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x405f18
jmp 0x405ed6
test edx, edx
je 0x405f18
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040fe76
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x407240
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40727f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40727f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40727f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40727f
cmp dword [ecx + 0x74], 0xe
jbe 0x40727f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x415a34
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42934c
push 0x429344
push str.FlsAlloc
push 0x1e
call fcn.00415861
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415a68
push dword [ebp + 8]
mov ecx, esi
call dword [0x42515c]
call esi
jmp 0x415a6e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x415ab2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42935c
push 0x429354
push str.FlsGetValue
push 0x20
call fcn.00415861
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415ae9
push dword [ebp + 8]
mov ecx, esi
call dword [0x42515c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41903a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418eab

Function at 0x419434
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004075b0
mov eax, dword [0x473d00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00416f05
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419476
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4195d2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004069e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4758b8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a42b
mov ecx, dword [esi*4 + 0x4758b8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4195cb
cmp eax, dword [edi + ecx + 0x24]
jne 0x4195cb
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4195cb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a42b
add esp, 0x14
test edx, edx
jl 0x4195cb
jg 0x419541
test eax, eax
jb 0x4195cb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4195cb
jl 0x41955b
cmp dword [ebp - 0x1008], eax
ja 0x4195cb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x419579
test ebx, ebx
je 0x4195b2
cmp ecx, edi
jae 0x4195b2
mov al, byte [ecx]
cmp al, 0xd
jne 0x419593
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41959f
cmp byte [ecx + 1], 0xa
jne 0x41959f
inc ecx
jmp 0x41959f
movzx eax, al
movsx eax, byte [eax + 0x473fc8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x419579
cmp edx, ebx
jne 0x419579
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4195d0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040690c
leave
ret