joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
push esi
push edi
push edx
pop edi
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
or ebx, ebx
je 0x4016d4
push esi
pop edi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
push edi
pop edx
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
push esi
pop ebx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
or ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
push eax
pop esi
mov edx, esi
push ebx
pop ecx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x414ac0
Capabilities:
Encode data using xor

Disassembly:
ror byte [eax], cl
xor byte [edx], bl
sbb byte [ebx + 0xb2da47d], dh
sbb dword [edx], esp
rcr dword [ecx], cl
and eax, 0x11cce659
jb 0x414ad7
adc dword [edx + 0x1c], esi
fld xword [edi + ebp*8]
out dx, eax
and al, 0xb0
mov al, 0xa4
mov al, 0xa4
push es
loop 0x414aa5
std
mov dl, 0x65
in eax, 0x2c
mov esi, esp
daa
outsd dx, dword [esi]
jecxz 0x414b1e
adc eax, ebp
cdq
loope 0x414af0
sal byte [ebx + 0x1deb41cc], cl
fistp dword [ebp + ebp + 3]
in ax, 0x97
out 0xc4, eax
cmpsd dword [esi], dword es:[edi]
sub eax, 0x6c85145b
jecxz 0x414ab8
int3
mov ch, 0xd2
sbb al, 0xdb
or eax, 0x1adb1c76
xchg ebp, eax
inc esp
movsb byte es:[edi], byte [esi]
sub eax, 0xd263f50b
sbb al, 0xed
sub eax, 0x2de524e3
jecxz 0x414b2c
in eax, 0x2d
jecxz 0x414b30
in eax, 0x2d
jecxz 0x414b34
sbb dl, dl
sbb al, 0xdb
in eax, 0x2d
jecxz 0x414b3c
sbb dl, dl
sbb al, 0xdb
in eax, 0x2d
jecxz 0x414b44
in eax, 0x2d
jecxz 0x414b48
in eax, 0x2d
jecxz 0x414b4c
in eax, 0x2d
pushal
enter 0xffffffffffffeae1, 0xffffffffffffffe7
add byte [ecx], cl
test dword [ecx - 0x532913dc], esp
loope 0x414b18
out 0, eax
or dword [ebp - 0x2913db5f], eax
in al, dx
salc
lodsb al, byte [esi]
dec esp
in eax, 0x5d
mov byte [0x5b6aab24], al
stosd dword es:[edi], eax
push 0x5b
cld
pop ss
lahf
sub bh, byte [ebx + eax*4 + 0x61]
int3
in eax, 0x3d
mov dword [0xe2ea6424], eax
and al, 0xe5
sub eax, 0x5b0cca62
jmp 0x414b22
Function at 0x403520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
movzx esi, cx
push 0x44acb0
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x40357a
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40362d
push 0x2000
push ebx
push ebx
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
xor eax, eax
call fcn.00402ed0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403596
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.00430920
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0xc]
push eax
push 1
xor esi, esi
push edi
mov dword [esp + 0x18], esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x403626
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x403626
mov ebx, dword [ebp + 8]
push eax
push ebx
call fcn.00402ab0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
sub esp, 0x10
mov eax, esp
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
xor edi, edi
mov dword [eax + 8], esi
push ebx
mov dword [eax + 0xc], edi
call fcn.00403420
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4057f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x445738
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4561c4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00401990
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405846
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.00405a20
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00401990
cmp dword [esp + 0x24], 8
jb 0x40588f
mov edx, dword [esp + 0x10]
push edx
call fcn.0042bcf0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x405ff0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi + 0xac], 0
jne 0x406008
xor al, al
pop esi
add esp, 0x20
ret 4
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [esi + 0xac]
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
push 0x41
add eax, dword [esp + 0x24]
push 0
cdq
sub eax, edx
sar eax, 1
push 0
push eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x1c]
add eax, dword [esp + 0x2c]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi + 0xac]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0xac]
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xac]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov al, 1
pop esi
add esp, 0x20
ret 4

Function at 0x406090
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx]
mov edx, dword [eax + 0x8c]
push 0
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x4060d0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push edi
call edx
push eax
call dword [sym.imp.USER32.dll_IsIconic]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x406100
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 9
mov ecx, esi
call edx
push eax
call edi
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 5
mov ecx, esi
call edx
push eax
call edi
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 0x43
push 0
push 0
push 0
push 0
push 0
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
ret
Function at 0x409410
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x24]
mov dword [esi + 0xc], 1
test eax, eax
je 0x409425
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], 1
test eax, eax
je 0x409463
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x409452
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
ret
Function at 0x409c80
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x446bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4561c4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov eax, dword [0x4561c4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [edi + 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x409e56
mov edi, edi
mov eax, dword [edi + 0x20]
call fcn.0040a4b0
mov esi, eax
cmp esi, ebx
je 0x409e21
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x409cea
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push ebx
push ebx
push 1
push ecx
push edx
call eax
add esp, 0x14
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x1c], ax
push ebx
mov eax, esi
lea ecx, [esp + 0x1c]
xor ebp, ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
call fcn.00401990
mov dword [esp + 0x3c], ebx
cmp dword [edi + 0xc], ebx
jne 0x409d82
cmp ebp, dword [esi + 0x40]
jg 0x409d5b
push esi
mov ecx, edi
call fcn.00409470
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x409d5b
mov eax, dword [edi + 0xc]
inc ebp
cmp eax, ebx
jne 0x409d5b
cmp ebp, dword [esi + 0x40]
jg 0x409d56
lea esp, [esp]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0xc], 0
jne 0x409d54
inc ebx
cmp ebx, 0xa
jl 0x409d40
xor ebx, ebx
cmp dword [edi + 0xc], ebx
je 0x409d1a
cmp dword [edi + 0xc], ebx
jne 0x409d82
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x409d7c
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x4c]
push esi
push ecx
mov ecx, dword [esi + 0x48]
push 3
push edx
push ecx
call eax
add esp, 0x14
cmp dword [esp + 0x10], ebx
je 0x409da1
cmp dword [esi + 0x30], ebx
je 0x409da1
cmp dword [esi + 0x58], ebx
je 0x409da1
cmp dword [esi + 0x34], 8
jb 0x409d97
mov eax, dword [esi + 0x20]
jmp 0x409d9a
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x409db4
push eax
call fcn.0042be07
add esp, 4
mov dword [esi + 0x38], ebx
cmp dword [esi + 0x34], 8
jb 0x409dc6
mov eax, dword [esi + 0x20]
push eax
call fcn.0042bcf0
add esp, 4
mov ebp, 7
xor edx, edx
mov dword [esi + 0x34], ebp
mov dword [esi + 0x30], ebx
mov word [esi + 0x20], dx
cmp dword [esi + 0x18], 8
jb 0x409de9
mov eax, dword [esi + 4]
push eax
call fcn.0042bcf0
add esp, 4
xor eax, eax
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push esi
mov word [esi + 4], ax
call fcn.0042bcf0
add esp, 4
cmp dword [edi + 0xc], ebx
jne 0x409e42
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x409e37
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0042bcf0
add esp, 4
jmp 0x409e37
mov edx, dword [edi + 0x24]
push 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x409e56
cmp dword [edi + 0xc], ebx
je 0x409cc0
jmp 0x409e56
cmp dword [esp + 0x2c], 8
jb 0x409e56
mov eax, dword [esp + 0x18]
push eax
call fcn.0042bcf0
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0042bcfb
add esp, 0x30
ret
Function at 0x409e80
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x445708
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4561c4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4561c4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
xor edi, edi
mov dword [esp + 0x14], edi
xor ecx, ecx
mov word [esp + 0x1c], cx
mov ecx, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
lea esi, [ecx + 2]
jmp 0x409ee0
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x409ee0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x1c]
call fcn.00401b20
mov dword [esp + 0x40], edi
mov edx, esi
push edx
mov edi, 1
lea ebx, [esp + 0x18]
mov dword [esp + 0x18], 0x2f
call fcn.00405650
mov esi, ebp
cmp eax, 0xffffffff
jne 0x409f3e
xor eax, eax
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], 0
mov word [ebp + 4], ax
push eax
mov eax, 0x44ac48
call fcn.00401b20
jmp 0x409f4e
lea edx, [eax + 1]
lea eax, [esp + 0x18]
push eax
or ecx, 0xffffffff
call fcn.00405620
cmp dword [esp + 0x30], 8
jb 0x409f62
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0042bcf0
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0042bcfb
add esp, 0x30
ret 8
Function at 0x40a0c0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x446d9b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4561c4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
cmp dword [ebp + 0x50], ebx
je 0x40a0fa
lea eax, [ebx + 1]
jmp 0x40a1e1
cmp dword [ebp + 0x54], ebx
mov dword [esp + 0x2c], ebx
jle 0x40a1d6
push 0x28
call fcn.0042bda2
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], ebx
cmp esi, ebx
je 0x40a13c
lea eax, [esi + 4]
push eax
mov dword [esi], ebx
call fcn.0040a6d0
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x24], eax
jmp 0x40a13e
xor esi, esi
push ebx
lea edi, [esi + 4]
push ebx
push edi
push 0x40a860
mov dword [esp + 0x34], 0xffffffff
push ebx
push ebx
mov dword [esp + 0x30], esi
mov dword [edi + 0xc], 0x409c70
mov dword [edi + 0x10], esi
mov dword [edi + 8], ebx
call fcn.0042c6ac
add esp, 0x18
mov dword [edi + 4], eax
cmp eax, ebx
jne 0x40a19c
cmp esi, ebx
je 0x40a1c4
call fcn.00409410
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x40a18a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.0040a7a0
push esi
call fcn.0042bcf0
add esp, 4
jmp 0x40a1c4
mov esi, dword [ebp + 0x6c]
mov edx, dword [esi + 4]
lea ebx, [ebp + 0x58]
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
call fcn.0040a690
mov ecx, ebx
mov edi, eax
call fcn.0040ac40
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
xor ebx, ebx
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, dword [ebp + 0x54]
mov dword [esp + 0x2c], eax
jl 0x40a107
xor eax, eax
cmp dword [ebp + 0x70], ebx
setne al
mov dword [ebp + 0x50], eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x40a200
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ebx + 0x6c]
mov ecx, dword [eax]
push esi
push edi
mov edi, dword [ebx + 0x58]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
jmp 0x40a220
mov esi, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x58]
test edi, edi
je 0x40a22e
cmp edi, eax
je 0x40a233
call fcn.0042c306
cmp dword [esp + 0xc], esi
je 0x40a35f
test edi, edi
jne 0x40a354
call fcn.0042c306
xor eax, eax
mov edx, dword [esp + 0xc]
cmp edx, dword [eax + 0x14]
jne 0x40a25a
call fcn.0042c306
mov eax, dword [esp + 0xc]
mov edi, dword [eax + 8]
mov eax, dword [edi + 0x24]
mov dword [edi + 0xc], 1
test eax, eax
je 0x40a276
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 8]
lea esi, [edi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x40a2b7
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40a2a6
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [edi + 0x24]
mov dword [edi + 0xc], 1
test eax, eax
je 0x40a2cc
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x40a30a
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40a2f9
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x40a318
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0040a7a0
push edi
call fcn.0042bcf0
mov eax, dword [esp + 0xc]
add esp, 4
test eax, eax
jne 0x40a35b
call fcn.0042c306
xor eax, eax
mov esi, dword [esp + 0xc]
cmp esi, dword [eax + 0x14]
jne 0x40a345
call fcn.0042c306
mov edx, dword [esi]
mov edi, dword [esp + 8]
mov dword [esp + 0xc], edx
jmp 0x40a220
mov eax, dword [edi]
jmp 0x40a24c
mov eax, dword [eax]
jmp 0x40a337
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [ebx + 0x6c]
mov dword [ecx + 4], ecx
xor ecx, ecx
mov dword [ebx + 0x70], ecx
cmp eax, dword [ebx + 0x6c]
je 0x40a395
mov esi, dword [eax]
push eax
call fcn.0042bcf0
add esp, 4
mov eax, esi
cmp esi, dword [ebx + 0x6c]
jne 0x40a376
mov dword [ebx + 0x50], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [ebx + 0x50], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a7a0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4462cb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4561c4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CThreadHolder.0
mov dword [esp + 0x14], 0
mov eax, dword [esi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x40a811
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40a800
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
cmp dword [esi + 0x14], 0
jne 0x40a822
push esi
call fcn.0040a920
call fcn.0040aa70
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esi + 0x18]
sub esi, 0x10
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40a849
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x40c980
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x44494b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4561c4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0042af73
push 4
mov dword [esp + 0x20], 0
call fcn.0042bda2
mov edi, eax
add esp, 4
test edi, edi
je 0x40c9fe
call fcn.0042abfe
mov dword [edi], eax
call fcn.0042aa2c
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0042a950
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40c9f3
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0042a978
jmp 0x40ca00
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x40cb20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x44494b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4561c4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0042af73
push 4
mov dword [esp + 0x20], 0
call fcn.0042bda2
mov edi, eax
add esp, 4
test edi, edi
je 0x40cb9e
call fcn.0042abfe
mov dword [edi], eax
call fcn.0042aa2c
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0042a950
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40cb93
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0042a978
jmp 0x40cba0
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40ebb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40ebc7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40ebf8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40ebf4
cmp esi, eax
jae 0x40ebf8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x40ebe4
cmp esi, eax
jb 0x40ebfe
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret