joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40548e
Capabilities:
Terminate process

Disassembly:
jmp 0x4da204
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4da215
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00409543
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4056dc
Capabilities:
Query environment variable

Disassembly:
jmp 0x529068
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x529079
pop esi
ret
push ebx
push edi
push esi
call fcn.00528f4f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004067cb
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5290a1
push ebx
push esi
push edi
call fcn.00409197
add esp, 0xc
push 0
call fcn.0040a62d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4092fa
Capabilities:
Parse pe header

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

Function at 0x47d514
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.004057ae
mov eax, dword [eax + 0x14]
test eax, eax
je 0x47d557
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x47d557
sub eax, 1
je 0x47d552
sub eax, 1
je 0x47d54e
xor eax, eax
leave
ret
push 3
jmp 0x47d559
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x514e0a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x514e49
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x514e49
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x514e49
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x514e49
cmp dword [ecx + 0x74], 0xe
jbe 0x514e49
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x527558
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x58e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x5275a3
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00527a10
test al, al
jne 0x52759d
sub edx, 2
cmp edx, edi
jne 0x527583
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5275c5
lea eax, [edi + 2]
cmp edx, eax
je 0x5275c5
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00527151
add esp, 0x10
jmp 0x5276bf
push esi
lea ecx, [ebp - 0x255]
call fcn.00527a10
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x527608
push dword [ebp - 0x25c]
jmp 0x5275b5
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x527645
cmp word [ebp - 0x226], 0
je 0x527666
cmp word [ebp - 0x226], ax
jne 0x527645
cmp word [ebp - 0x224], 0
je 0x527666
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00527151
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5276b2
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x52761f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x52769a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5276bf
push 0x526b39
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00408e9f
add esp, 0x10
jmp 0x52768f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404a84
leave
ret

Function at 0x52d3a5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00406ce4
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x52d414
cmp esi, dword [ebp - 4]
je 0x52d40f
cmp dword [ebp + 0xc], 0
je 0x52d40f
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x52d3ec
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0052cdcd
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x52d416
xor eax, eax
inc eax
jmp 0x52d416
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x539aba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x597840]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x539afa
cmp byte [ebx], 0xa
jne 0x539afa
or byte [edi + eax + 0x28], 4
jmp 0x539aff
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x539bfe
mov dl, byte [eax]
cmp dl, 0x1a
je 0x539be1
inc eax
cmp dl, 0xd
je 0x539b2b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x539b51
cmp eax, ecx
jae 0x539b5f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x539b13
jmp 0x539bfe
push 0
lea eax, [ebp - 0x10]
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 0x539bdc
cmp dword [ebp - 0x10], 0
je 0x539bdc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x597840]
test byte [eax + edi + 0x28], 0x48
je 0x539bb6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x539ba1
mov byte [esi], dl
jmp 0x539bb2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x597840]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x539bfe
cmp byte [ebp - 1], 0xa
jne 0x539bc5
cmp esi, ebx
jne 0x539bc5
mov byte [esi], 0xa
jmp 0x539bfd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00402054
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x539bfe
mov byte [esi], 0xd
jmp 0x539bfd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x597840]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x539bfb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x539bfe
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x539c5a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x597840]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x539ca0
cmp word [ebx], dx
jne 0x539ca0
or byte [eax + edi + 0x28], 4
jmp 0x539ca5
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x539e08
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x539de8
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x539ce6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x539d1c
cmp eax, edx
jae 0x539d2a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x539cc1
jmp 0x539e08
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x539de3
cmp dword [ebp - 0x18], 0
je 0x539de3
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x597840]
test byte [eax + edi + 0x28], 0x48
je 0x539db9
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x539d7d
mov word [esi], cx
jmp 0x539db4
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x597840]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x597840]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x597840]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x539e08
pop eax
cmp word [ebp - 4], ax
jne 0x539dc9
cmp esi, ebx
jne 0x539dc9
mov word [esi], ax
jmp 0x539e05
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00402054
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x539e08
push 0xd
pop eax
jmp 0x539dc4
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x597840]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x539e02
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x539e08
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x406f30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x406f54
xor eax, eax
jmp 0x406fd4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406f6b
xor eax, eax
jmp 0x406fd4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x406fb7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x406fb7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x406f8e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x406fc3
xor eax, eax
jmp 0x406fd4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x406fd1
xor eax, eax
jmp 0x406fd4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x409ab0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
sub ecx, 4
call fcn.00409ca0
mov ecx, dword [ebp - 4]
sub ecx, 4
call fcn.00409af0
cmp dword [0x46e254], 0
je 0x409ae2
mov eax, dword [0x46e254]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret

Function at 0x409af0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0x46e258
push 4
mov eax, dword [ebp - 4]
push eax
push 0x409a90
push 0
push 0
call fcn.004387f2
add esp, 0x18
mov dword [0x46e254], eax
push 1
mov ecx, dword [0x46e254]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esp, ebp
pop ebp
ret
Function at 0x40a320
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448759
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x46d0c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
cmp dword [ebp + 8], 0
jne 0x40a358
mov eax, 0x80004003
jmp 0x40a4f9
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x20]
call fcn.00405dd0
mov dword [ebp - 4], 0
push 0x104
push 0x104
lea ecx, [ebp - 0x20]
call fcn.004067c0
push eax
mov ecx, 0x46e2a4
call fcn.0040d8a0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x40a4e1
lea ecx, [ebp - 0x48]
push ecx
push 0
lea ecx, [ebp - 0x20]
call fcn.004067c0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40a4da
mov edx, dword [ebp - 0x10]
push edx
call fcn.0042ff5f
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.00431530
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push 0
lea ecx, [ebp - 0x20]
call fcn.004067c0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, 1
jne 0x40a4bf
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x34], 0
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x24]
push eax
push str.StringFileInfo040904B0FileVersion
mov ecx, dword [ebp - 0x18]
push ecx
call sub.VERSION.dll_VerQueryValueW
cmp eax, 1
jne 0x40a4b6
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x38]
call fcn.00405d50
lea ecx, [ebp - 0x14]
call fcn.004028b0
push 0x452644
mov eax, dword [ebp - 0x24]
push eax
call fcn.0040fdc0
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40a497
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00402fe0
push 0x452648
push 0
call fcn.0040fdc0
add esp, 8
mov dword [ebp - 0x28], eax
push 0x45264c
lea ecx, [ebp - 0x14]
call fcn.00402fe0
jmp 0x40a464
lea ecx, [ebp - 0x14]
call fcn.0040d630
mov edx, dword [ebp + 8]
mov dword [edx], eax
lea ecx, [ebp - 0x14]
call fcn.00402cb0
lea ecx, [ebp - 0x38]
call fcn.00405ee0
jmp 0x40a4bd
mov dword [ebp - 0x1c], 1
jmp 0x40a4c6
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0042ff68
add esp, 4
jmp 0x40a4e1
mov dword [ebp - 0x1c], 1
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00405ee0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40e630
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x46d0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], ecx
mov eax, dword [ebp - 0x10c]
cmp dword [eax + 0xc], 0
je 0x40e65c
mov al, 1
jmp 0x40e768
mov ecx, dword [ebp + 8]
call fcn.0040cbc0
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x40e676
xor al, al
jmp 0x40e768
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x10c]
cmp dword [edx + 4], 0
jne 0x40e6a0
xor al, al
jmp 0x40e768
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.0040cbc0
push eax
lea ecx, [ebp - 0x108]
call fcn.0040c2c0
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
call fcn.0040cbc0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x108]
call fcn.004222e0
mov edx, dword [ebp - 0x10c]
cmp dword [edx + 8], 0xffffffff
jne 0x40e701
mov eax, dword [ebp - 0x10c]
mov dword [eax + 8], 0
xor al, al
jmp 0x40e768
mov dword [ebp - 0x114], 0
lea ecx, [ebp - 0x114]
push ecx
push 0
mov edx, dword [ebp - 0x10c]
push edx
push 0x40e300
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x10c]
cmp dword [edx + 0xc], 0xffffffff
je 0x40e74b
mov eax, dword [ebp - 0x10c]
cmp dword [eax + 0xc], 0
jne 0x40e75c
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0xc], 0
xor al, al
jmp 0x40e768
mov dword [0x46d050], 1
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042fca3
mov esp, ebp
pop ebp
ret 4
Function at 0x410c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448db7
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x46d0c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x30], 0
call fcn.00403640
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ecx + 0xb0]
call eax
push 0x4528fa
lea ecx, [ebp - 0x38]
call fcn.004221f0
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x168
call fcn.00402e30
mov byte [ebp - 0x15], al
lea ecx, [ebp - 0x38]
call fcn.00402cb0
movzx edx, byte [ebp - 0x15]
test edx, edx
je 0x410d8c
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00417480
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0x14]
add ecx, 0x168
call fcn.00422500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00402cb0
xor eax, eax
je 0x410d8c
push 0x453888
push str.Diagnose.xml
call fcn.00439edb
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x410d80
mov ecx, dword [ebp - 0x14]
add ecx, 0x168
call fcn.00403470
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x168
call fcn.0040cbc0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x410d19
mov dword [ebp - 0x2c], 0
jmp 0x410d6a
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004357f6
add esp, 4
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3fffffff
jle 0x410d3d
mov dword [ebp - 0x28], 0
jmp 0x410d64
mov eax, dword [ebp - 0x1c]
shl eax, 1
call fcn.004301e0
mov dword [ebp - 0x4c], esp
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x1c]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00422d40
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x50]
push edx
push 1
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0043a12a
add esp, 0x10
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00439d9a
add esp, 4
mov edx, dword [ebp - 0x14]
add edx, 0x168
push edx
mov ecx, dword [ebp + 8]
call fcn.0040c430
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042fca3
mov esp, ebp
pop ebp
ret 4
Function at 0x4115a0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
add eax, 0x188
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1b0], 2
jge 0x4115db
mov edx, dword [ebp + 8]
add edx, 0x188
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80004005
jmp 0x4116ab
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1b0], 3
jl 0x4115fe
mov ecx, dword [ebp + 8]
add ecx, 0x188
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x4116ab
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1b0]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1b0], eax
mov edx, dword [ebp + 8]
add edx, 0x188
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x180]
cmp dword [ecx], 0
jne 0x4116a8
mov edx, dword [ebp + 8]
add edx, 0x184
push edx
push 4
mov eax, dword [ebp + 8]
push eax
push 0x41de80
push 0
push 0
call fcn.004387f2
add esp, 0x18
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x180]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x180]
cmp dword [ecx], 0
je 0x4116a8
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x180]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x180]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4116a8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x411700
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
add eax, 0x188
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1b0], 0
jle 0x411736
mov edx, dword [ebp + 8]
add edx, 0x188
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x4117f5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1b0]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x1b0], ecx
mov eax, dword [ebp + 8]
add eax, 0x188
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 0xc], 0
jne 0x41176a
mov eax, 1
jmp 0x4117f5
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x1ac], edx
mov eax, dword [ebp + 8]
add eax, 0x17c
push eax
push 4
mov ecx, dword [ebp + 8]
push ecx
push 0x41dea0
push 0
push 0
call fcn.004387f2
add esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x178]
mov dword [ecx], eax
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x178]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.0042ff5f
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x1a8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x178]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4117f3
mov eax, 1
jmp 0x4117f5
xor eax, eax
mov esp, ebp
pop ebp
ret 8