joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035b0
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x7f5b48
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x4036d9
cmp dword fs:[0xc0], eax
je 0x4035db
mov dword [0x7f5b44], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x7f5a2c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x7f5a30], eax
movzx edx, word [esi + 0xac]
mov dword [0x7f5a34], edx
mov eax, dword [esi + 0xb0]
mov dword [0x7f5a38], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x40363b
push 0x7f
push eax
push 0x7f5a3c
call fcn.004013a0
mov edx, dword [0x7f5a34]
add esp, 0xc
jmp 0x403643
xor eax, eax
mov word [0x7f5a3c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x7f5b3c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x7f5b3e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x7f5b40], ax
mov ecx, eax
mov byte [0x7f5b42], 0
cmp byte [0x7ffe0268], 0
je 0x40368a
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x7f5b42], bl
cmp ebx, 1
pop ebx
jne 0x4036a4
and ecx, 0xffef
mov word [0x7f5b40], cx
test edx, edx
jne 0x4036d9
call fcn.004035b0
cmp dword [0x7f5a2c], 6
ja 0x4036d9
jb 0x4036c1
cmp dword [0x7f5a30], 4
jae 0x4036d9
call fcn.004035b0
cmp dword [0x7f5a2c], 0xa
jae 0x4036d9
mov dword [0x7f5a34], 1
ret
Function at 0x403dc0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x403e0b
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x403dfb
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x403de1
jmp 0x403e00
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x403e5b
mov edi, edx
lea ecx, [edi + 2]
jmp 0x403e20
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x403e20
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x403e3c
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.004013a0
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x403e7d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x403ef0
mov esi, dword [ebx]
cmp esi, ebx
je 0x403ef0
test esi, esi
je 0x403ef0
cmp word [esi + 0x24], 2
jbe 0x403eea
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x403eea
cmp dword [esi + 0x18], 0
je 0x403eea
test ebp, ebp
je 0x403ea5
cmp ebp, eax
jne 0x403eea
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.004013a0
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x403eca
cmp eax, dword [esi + 0x18]
jne 0x403eea
cmp dword [esp + 0x10], 0
je 0x403efd
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.004029f0
add esp, 8
test eax, eax
je 0x403efd
mov esi, dword [esi]
cmp esi, ebx
jne 0x403e83
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret
Function at 0x41b432
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x4085c0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x684448
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x73d6e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x60], eax
xor ecx, ecx
mov dword [ebp - 0x44], 7
push 0xffffffffffffffff
push ecx
add eax, 0x204
mov word [ebp - 0x58], cx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
call fcn.00409040
mov edi, dword [ebp + 8]
mov eax, edi
mov esi, dword [ebp + 0xc]
or eax, esi
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x58]
je 0x40873e
cmp dword [ebp - 0x48], 3
jb 0x40873e
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x30], ax
cmp ecx, 8
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x58]
cmovae eax, edx
movq qword [ebp - 0x1e], xmm0
movdqu xmmword [ebp - 0x2e], xmm0
mov ax, word [eax]
mov word [ebp - 0x5a], ax
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x58]
cmovae eax, edx
mov ax, word [eax + 2]
mov word [ebp - 0x5c], ax
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x58]
cmovae eax, edx
mov ax, word [eax + 4]
mov word [ebp - 0x2c], ax
cmp ax, 0x2f
jne 0x408698
mov eax, 0x5c
mov word [ebp - 0x2c], ax
cmp word [ebp - 0x5a], 0x5c
je 0x40873e
cmp word [ebp - 0x5c], 0x3a
jne 0x40873e
cmp ax, 0x5c
jne 0x40873e
lea eax, [ebp - 0x40]
mov byte [ebp - 0x59], 0
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x40], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x40872f
mov eax, dword [ebp - 0x38]
mul dword [ebp - 0x3c]
push 0
push dword [ebp - 0x34]
push edx
push eax
call fcn.0054e7a0
mov ecx, edi
shld esi, ecx, 1
add ecx, ecx
add edi, ecx
mov ecx, dword [ebp + 0xc]
adc ecx, esi
cmp edx, ecx
ja 0x40872f
jb 0x408721
cmp eax, edi
jae 0x40872f
mov ecx, dword [ebp - 0x60]
push 5
mov byte [ebp - 0x59], 1
call fcn.004062e0
cmp byte [ebp - 0x59], 0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x58]
sete al
jmp 0x408740
mov al, 1
mov byte [ebp - 0x59], al
cmp ecx, 8
jb 0x408754
push edx
call fcn.005472b4
mov al, byte [ebp - 0x59]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005472b9
mov esp, ebp
pop ebp
ret 8
Function at 0x40d830
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
push str.E945DD3C_B2BB_4E5F_B090_5B1282E76E72
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x1c8], eax
test eax, eax
je 0x40d876
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40d882
push dword [esi + 0x1c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c8], 0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
mov ecx, esi
call fcn.0040dd20
test al, al
je 0x40d876
lea ecx, [esi + 0x60]
call fcn.0040e280
test al, al
je 0x40d876
mov ecx, esi
call fcn.0040d8c0
mov ecx, esi
call fcn.0040d420
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40e740
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x684bdb
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x73d6e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x10]
cmp dword [edi + 0x10], 0
mov dword [ebp - 0xb0], eax
jne 0x40e790
xor al, al
jmp 0x40e8e6
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x94], 0
jb 0x40e7a4
mov eax, dword [edi]
jmp 0x40e7a6
mov eax, edi
lea ecx, [ebp - 0x94]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x40e789
push ebx
call fcn.004ca65e
mov esi, eax
mov dword [ebp - 0xa0], esi
push ebx
push 0
push esi
mov dword [ebp - 4], 0
call fcn.00549c70
add esp, 0x10
cmp dword [edi + 0x14], 8
jb 0x40e7e3
mov edi, dword [edi]
push esi
push ebx
push dword [ebp - 0x94]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40e8d9
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0
push eax
push str.VarFileInfoTranslation
push esi
mov dword [ebp - 0x98], 0
call ebx
mov edi, dword [ebp - 0xa8]
test edi, edi
je 0x40e8d9
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x90], ax
lea eax, [ebp - 0x8e]
push eax
call fcn.00549c70
movzx eax, word [edi + 2]
push eax
movzx eax, word [edi]
push eax
push str.StringFileInfo_04x_04x_
lea eax, [ebp - 0x90]
push 0x40
push eax
call fcn.0040e180
mov eax, dword [ebp - 0xac]
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x40e87d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x90]
push 0x40
push eax
call fcn.00547d19
add esp, 0xc
mov dword [ebp - 0x9c], 0
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xa4], 0
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x90]
push eax
push esi
call ebx
test eax, eax
je 0x40e8d9
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x40e8d9
mov ecx, dword [ebp - 0xb0]
push eax
call fcn.00408cf0
mov bl, 1
jmp 0x40e8db
xor bl, bl
push esi
call fcn.005472b4
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005472b9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410f10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push 0x105
push ecx
push 0x74f888
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
call fcn.00410d30
mov esi, eax
test esi, esi
jne 0x410f31
xor al, al
pop esi
ret
mov ecx, esi
call fcn.00410db0
movzx eax, word [esi]
test ax, ax
je 0x410f2d
cmp eax, 0x5c
je 0x410f2d
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esi, 0x74f888
push 0x74f888
sar esi, 1
call edi
cmp eax, esi
jle 0x410fa1
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x410f70
push 0x74faa0
push 0x74f888
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x410f91
push eax
call ebx
test byte [0x74faa0], 0x10
je 0x410fe6
call fcn.00410ed0
push 0x74f888
call edi
cmp eax, esi
jg 0x410f70
push 0x74f888
call edi
lea eax, [eax*2 + 0x74f888]
push eax
push 0x74f888
call dword [sym.imp.USER32.dll_CharPrevW]
cmp word [eax], 0x5c
je 0x410fd1
push 0x6ea1a4
push 0x74f888
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x74f888
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
pop ebx
setne al
pop esi
ret
pop edi
pop ebx
xor al, al
pop esi
ret

Function at 0x4125c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6853a0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x73d6e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4126e0
cmp byte [eax + 0x54], 0
je 0x4126e0
add eax, 0x1c
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x1c], xmm0
call fcn.00411110
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x41262a
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4126b4
push 0
lea eax, [ebp - 0x34]
push edi
push eax
call fcn.004286a0
add esp, 0xc
mov byte [ebp - 4], 1
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x38]
push 0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x20], 0x10
jb 0x4126a2
push dword [ebp - 0x34]
call fcn.005472b4
add esp, 4
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x4126d9
cmp byte [ebp - 0x18], 0
je 0x4126d9
mov eax, dword [esi]
test eax, eax
je 0x4126d5
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005472b9
mov esp, ebp
pop ebp
ret 4
Function at 0x4192d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
mov eax, edx
mov dword [ebp - 0x10], eax
movsx eax, al
push esi
push edi
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
movdqa xmmword [ebp - 0x20], xmm0
test ecx, ecx
je 0x419409
mov edi, dword [ebx + 8]
test edi, edi
je 0x419409
mov esi, dword [ebx + 0xc]
test esi, esi
jle 0x419409
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x419409
cmp dword [ebx + 0x14], 0
je 0x419409
cmp dword [eax], 0
jne 0x419409
mov eax, dword [ecx + 8]
push esi
call eax
mov ecx, eax
add esp, 4
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x419409
xor edx, edx
cmp esi, 0x20
jb 0x4193cb
lea eax, [edi - 1]
add eax, esi
cmp ecx, eax
ja 0x419374
lea eax, [esi - 1]
add eax, ecx
cmp eax, edi
jae 0x4193cb
mov eax, esi
and eax, 0x8000001f
jns 0x419382
dec eax
or eax, 0xffffffe0
inc eax
movdqa xmm1, xmmword [ebp - 0x20]
mov dword [ebp - 4], esi
mov esi, ecx
sub dword [ebp - 4], eax
sub esi, edi
mov dword [ebp - 0xc], esi
mov eax, edi
mov esi, dword [ebx + 0xc]
mov edi, dword [ebp - 0xc]
lea esp, [esp]
movdqu xmm0, xmmword [eax]
lea eax, [eax + 0x20]
pxor xmm0, xmm1
movdqu xmmword [edi + eax - 0x20], xmm0
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm0, xmm1
movdqu xmmword [ecx + edx + 0x10], xmm0
add edx, 0x20
cmp edx, dword [ebp - 4]
jl 0x4193a0
mov edi, dword [ebx + 8]
cmp edx, esi
jge 0x4193f4
sub edi, dword [ebp - 8]
add ecx, edx
sub esi, edx
mov edx, dword [ebp - 0x10]
lea esp, [esp]
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor al, dl
mov byte [ecx - 1], al
dec esi
jne 0x4193e0
mov esi, dword [ebx + 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x10]
mov dword [eax], ecx
mov eax, dword [ebx + 0x14]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x41d4f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x70cf88
push 0x553910
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x73d6e0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.0040eea0
mov edx, esi
mov ecx, edi
call fcn.0041d650
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x41d585
test bl, bl
jne 0x41d62d
cmp edi, 0x1a
jne 0x41d62d
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x41d5a7
mov eax, dword [esi]
jmp 0x41d5a9
mov eax, esi
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x430], ax
push 0x40e
push eax
lea eax, [ebp - 0x42e]
push eax
call fcn.00549c70
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [ebp - 0x430], 0
jne 0x41d5f1
xor ecx, ecx
jmp 0x41d60f
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d600
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.00409260
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005472b9
mov esp, ebp
pop ebp
ret
Function at 0x41e510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6870f9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
push 0x18
call fcn.00547bd8
add esp, 4
mov dword [edi + 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x38], 0
lea esi, [edi + 0x24]
mov dword [esi], 0
xor eax, eax
mov byte [esi + 4], 0
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
mov dword [esp + 0x14], esi
mov word [esi + 8], ax
mov byte [esp + 0x38], 2
lea ecx, [esp + 0x18]
push eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push 0x6ea1a8
mov byte [edi + 8], al
mov dword [edi + 0x18], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], ax
call fcn.00409260
mov byte [esp + 0x38], 3
mov eax, dword [esi]
test eax, eax
je 0x41e5da
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x28], 0
mov dword [esi], 0
jne 0x41e5eb
xor eax, eax
jmp 0x41e5f9
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
lea ecx, [esi + 8]
sete al
mov byte [esi + 4], al
lea eax, [esp + 0x18]
cmp ecx, eax
je 0x41e62e
push 0xffffffffffffffff
push 0
push eax
call fcn.00409040
mov byte [esp + 0x38], 2
cmp dword [esp + 0x2c], 8
jb 0x41e646
push dword [esp + 0x18]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov dword [esp + 0x38], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x41eaf0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x687208
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x41eb34
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
add edi, 0x20
mov dword [esp + 0x14], edi
je 0x41eb4a
mov eax, dword [edi]
test eax, eax
je 0x41eb4a
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x20], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x41ebd4
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea ebx, [esi + 4]
push 1
push ebx
call ebp
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x41e680
push 0
push 0
call fcn.0054a242
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
je 0x41ebbd
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x41eba8
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x41ebbd
mov bl, 1
jmp 0x41ebd6
push 0xffffffffffffffff
push ebx
call ebp
dec eax
jne 0x41ebcc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.0041e830
xor bl, bl
mov dword [esp + 0x20], 0xffffffff
test edi, edi
je 0x41ebf7
mov eax, dword [edi]
test eax, eax
je 0x41ebef
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], 0
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x421f50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6879b1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x30], 0
mov edi, dword [esp + 0x44]
push 0
push edi
push dword [esp + 0x48]
mov dword [esp + 0x18], 0
push dword [esp + 0x48]
mov esi, dword [esp + 0x48]
push esi
call fcn.00422050
mov dword [esp + 0x30], 0
cmp dword [esi + 0x10], 0
mov dword [esp + 0xc], 1
jne 0x422038
push 0x100
push edi
push dword [esp + 0x48]
lea eax, [esp + 0x1c]
push dword [esp + 0x48]
push eax
call fcn.00422050
mov edi, eax
mov dword [esp + 0x30], 1
cmp esi, edi
je 0x422009
cmp dword [esi + 0x14], 8
jb 0x421fee
push dword [esi]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.00408e30
mov byte [esp + 0x30], 0
cmp dword [esp + 0x24], 8
jb 0x422021
push dword [esp + 0x10]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0x10
Function at 0x422770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x687b1a
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x73d6e0]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov esi, dword [esp + 0xac]
xor eax, eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
mov dword [esp + 0xa4], 1
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], eax
mov word [esp + 0x40], ax
call fcn.00409040
mov byte [esp + 0xa4], 2
cmp dword [esp + 0x44], 0
jne 0x42283b
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
call fcn.0040ee30
mov dword [esp + 0xc], 1
jmp 0x422968
push str.SOFTWARE_
lea ecx, [esp + 0x68]
call fcn.00408c20
mov byte [esp + 0xa4], 3
lea eax, [esp + 0x34]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x70]
call fcn.00408e90
push str.Value
lea ecx, [esp + 0x14]
call fcn.00408c20
mov byte [esp + 0xa4], 4
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x68]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [esp + 0x88]
push eax
call fcn.00421f50
mov byte [esp + 0xa4], 6
cmp dword [esp + 0x24], 8
jb 0x4228b0
push dword [esp + 0x10]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
push eax
sub esp, 0x10
mov word [esp + 0x24], ax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x34], 0
push 1
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00420380
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
call fcn.0040ee30
mov dword [esp + 0xc], 1
mov byte [esp + 0xa4], 3
cmp dword [esp + 0x90], 8
jb 0x422919
push dword [esp + 0x7c]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], 0
mov word [esp + 0x7c], ax
mov byte [esp + 0xa4], 2
cmp dword [esp + 0x78], 8
jb 0x422951
push dword [esp + 0x64]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], ax
mov byte [esp + 0xa4], 1
cmp dword [esp + 0x48], 8
jb 0x422983
push dword [esp + 0x34]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], eax
mov word [esp + 0x34], ax
mov byte [esp + 0xa4], al
cmp dword [esp + 0x60], 8
jb 0x4229b0
push dword [esp + 0x4c]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], eax
mov word [esp + 0x4c], ax
mov eax, esi
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.005472b9
add esp, 0xa0
ret 4