joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413230
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebx, ecx
mov dword [esp + 0xc], 0x80000000
push esi
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
mov eax, dword [ebx]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call dword [eax + 0x28]
mov esi, dword [esp + 0x58]
lea ecx, [ebx + 0xc]
mov edi, dword [esp + 0x5c]
mov edx, 0xa
mov ebp, dword [esp + 0x50]
sub esi, ebp
sub edi, dword [esp + 0x54]
call fcn.00413050
push dword [0x4459c4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [esp + 0x28]
mov dword [esp + 0x24], eax
mov ecx, ebx
call fcn.00413640
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebx]
mov ecx, ebx
mov dword [ebx + 0x24], 1
call dword [edx + 0x48]
mov edx, dword [ebx]
test eax, eax
je 0x413321
push ecx
mov ecx, ebx
mov dword [esp + 0x24], 0
call dword [edx + 0x24]
mov edx, eax
lea ecx, [esp + 0x24]
call fcn.0040e20d
push ecx
mov edx, 0x43ace4
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x20]
call fcn.0040e20d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x2c]
push eax
push dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
push 0
push 0
push edi
mov edi, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x38]
push eax
push ebp
push dword [esp + 0x34]
push edi
push esi
push dword [esp + 0x44]
call dword [sym.imp.USER32.dll_CreateWindowExA]
push esi
call fcn.0042008d
push edi
call fcn.0042008d
add esp, 8
jmp 0x413352
mov ecx, ebx
call dword [edx + 0x2c]
push eax
push dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
mov ecx, ebx
push 0
push 0
push edi
push esi
push eax
mov eax, dword [ebx]
push ebp
push dword [esp + 0x34]
push 0x43ace4
call dword [eax + 0x24]
push eax
push dword [esp + 0x44]
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x2c], 0
mov esi, eax
je 0x413371
lea ecx, [esp + 0x28]
call fcn.00413680
push dword [esp + 0x24]
push dword [0x4459c4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x24

Function at 0x413b21
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4307a9
call fcn.00430150
push ecx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 8]
mov dword [edi], vtable.CPatchRes.0
call fcn.0040eeb4
xor edx, edx
lea ecx, [edi + 0xc]
mov dword [ebp - 4], edx
call fcn.0040df66
lea ecx, [edi + 0x1c]
mov dword [edi + 0x18], edx
call fcn.00412194
push ecx
lea ecx, [edi + 0x34]
mov dword [edi + 0x28], edx
mov dword [edi + 0x2c], edx
mov dword [edi + 0x30], edx
call fcn.00410055
mov dword [edi + 0x34], vtable._CXErrorModule605.0
push ecx
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00413c0b
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], eax
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 8
Function at 0x413c98
Capabilities:
Parse pe header

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0
je 0x413d1f
mov eax, dword [esi + 0x10]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x413d1f
mov ecx, dword [eax + 0x3c]
mov edx, 0x4550
cmp word [ecx + eax], dx
jne 0x413d1f
add eax, 4
xor ebx, ebx
add ecx, eax
xor ebp, ebp
mov dword [esp + 0x10], ecx
movzx eax, word [ecx + 0x10]
lea edi, [ecx + 0x14]
add edi, eax
xor eax, eax
cmp ax, word [ecx + 2]
jae 0x413d1f
test ebx, ebx
jne 0x413d0a
push str..rsrc
push edi
call fcn.00421c5a
pop ecx
pop ecx
test eax, eax
jne 0x413cf6
inc ebx
jmp 0x413cf9
add edi, 0x28
mov eax, dword [esp + 0x10]
inc ebp
movzx eax, word [eax + 2]
cmp ebp, eax
jl 0x413cde
test ebx, ebx
je 0x413d1f
mov ecx, dword [edi + 0x14]
xor eax, eax
and dword [esi + 0x2c], 0
inc eax
mov dword [esi + 0x28], ecx
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x30], ecx
jmp 0x413d21
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x413e8b
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x430821
call fcn.00430150
sub esp, 0x41c
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x40], ebx
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
push 0x104
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 9
push ecx
push eax
mov dword [edi + 0x50], 0x60
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x428]
xor edx, edx
push ebx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402d4d
pop ecx
pop ecx
lea edx, [ebp - 0x428]
lea ecx, [edi + 0x20]
call fcn.0040efc0
mov dword [0x447284], edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push dword [edi + 4]
mov dword [edi + 0x50], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4145be
Capabilities:
Hide graphical window
Resume thread
Terminate thread

Disassembly:
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov edi, dword [esp + 0x14]
cmp edi, dword [esi + 0x54]
jne 0x414614
push ebp
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebp
inc ebp
push ebp
push 0x402
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xa
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push dword [esi + 0xc]
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ecx, [esi + 0x28]
mov dword [esi + 0x1c], ebp
call fcn.0040ef7e
mov dword [esi + 0x2c], eax
xor ebp, ebp
cmp edi, dword [esi + 0x58]
jne 0x414645
cmp dword [esi + 0x1c], ebp
je 0x414638
push dword [esi + 0x18]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0x80010001
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
push ebp
push 0x10
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
ret 8
Function at 0x414674
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push edi
mov edi, ecx
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [edi + 8]
xor esi, esi
movaps xmm0, xmmword [0x440850]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x48], 0x414093
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], str.CLASS_FENATTENTETELECHARGEMENTFW
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x4146d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80000000
jmp 0x4147fe
push ebx
push 0x1e0
mov ecx, edi
call fcn.00414802
push 0xe6
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.00414802
lea ecx, [edi + 0x24]
mov dword [ebp - 4], eax
call fcn.0040ef7e
mov edx, dword [edi]
mov ebx, 0x10000000
mov dword [edi + 0x2c], eax
test edx, edx
je 0x414715
push esi
push edx
mov ebx, 0x10c00000
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [edi]
lea ecx, [edi + 0x20]
call fcn.0040ef7e
push esi
push dword [edi + 8]
mov ecx, 0x80000000
push esi
push edx
push dword [ebp - 4]
push dword [ebp - 8]
push ecx
push ecx
push ebx
push eax
push str.CLASS_FENATTENTETELECHARGEMENTFW
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x4147ed
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
push ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
push 0xa
push 1
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [edi + 0x18], eax
lea eax, [ebp - 8]
push eax
push 4
push edi
push 0x413f77
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x41479d
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80000000
jmp 0x4147fd
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x4147b9
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
call ebx
test eax, eax
jne 0x4147a5
cmp dword [edi], esi
je 0x4147d4
push 1
push dword [edi]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 8]
push str.CLASS_FENATTENTETELECHARGEMENTFW
call dword [sym.imp.USER32.dll_UnregisterClassW]
jmp 0x4147fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
or esi, 0x80000000
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x415ab1
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0xffffffffffffffec
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [0x4473f0]
mov edi, eax
push 0x64
pop edx
test ecx, ecx
je 0x415add
cmp dword [esp + 0x14], edx
jge 0x415add
or edi, 0x80000
mov ebp, dword [sym.imp.USER32.dll_SetWindowLongW]
xor ebx, ebx
cmp edi, eax
setne bl
je 0x415b05
push 0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push 0xffffffffffffffec
push dword [esi + 0x1c]
call ebp
mov ecx, dword [0x4473f0]
test ecx, ecx
je 0x415b21
imul eax, dword [esp + 0x14], 0xff
push 2
push 0x64
pop edi
cdq
idiv edi
push eax
push 0
push dword [esi + 0x1c]
call ecx
test ebx, ebx
je 0x415b5d
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
pop ebx
push ebx
push dword [esi + 0x1c]
call edi
and eax, 0xfdffffff
push eax
push ebx
push dword [esi + 0x1c]
call ebp
push 5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push dword [esi + 0x1c]
call edi
or eax, 0x2000000
push eax
push ebx
push dword [esi + 0x1c]
call ebp
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4168c5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push str.INFOEXE
mov esi, ecx
mov edi, edx
push 0x7c
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x12ca
push eax
push edi
call fcn.00419790
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
inc eax
pop esi
ret
Function at 0x416a75
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4309c3
call fcn.00430150
sub esp, 0x444
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x24]
call fcn.0040df66
xor esi, esi
mov eax, ecx
mov dword [ebp - 4], esi
push dword [edi + 0x870]
push dword [edi + 0x86c]
push ecx
push 0x82
push eax
mov ecx, edi
call fcn.004177cf
test eax, eax
je 0x416bb8
lea eax, [ebp - 0x450]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x240]
push eax
push esi
push 0x44010c
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x18]
call fcn.00412194
push esi
push 0x10000000
push 2
push esi
push 0x40000000
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 1
push eax
call fcn.0041223e
test eax, eax
je 0x416bb0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push dword [ebp - 0x20]
call fcn.004122c7
test eax, eax
je 0x416bb0
lea ecx, [ebp - 0x18]
call fcn.00412276
push 0xc4
call fcn.004187b9
pop ecx
mov ecx, eax
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 2
lea eax, [edi + 0xadc]
push dword [edi + 0x10c0]
push dword [edi + 0x10bc]
push dword [edi + 0x10b8]
push dword [edi + 0x10b4]
push eax
lea eax, [edi + 0x8ba]
push eax
lea eax, [edi + 0xfea]
push eax
lea eax, [edi + 0xdc8]
push eax
lea eax, [edi + 0xba6]
push eax
push dword [edi + 0x880]
lea eax, [ebp - 0x240]
push eax
push dword [edi + 4]
call fcn.00414aa8
mov byte [ebp - 4], 1
mov dword [edi + 0x12f4], eax
test eax, eax
je 0x416bb0
mov ecx, eax
call fcn.00414d8c
inc esi
lea ecx, [ebp - 0x18]
call fcn.004121a5
lea ecx, [ebp - 0x24]
call fcn.0040df77
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x416ce2
Capabilities:
Get common file path

Disassembly:
mov eax, 0x430a0f
call fcn.00430150
sub esp, 0x664
push ebx
push esi
push edi
xor esi, esi
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x25c], esi
movlpd qword [ebp - 0x38], xmm0
call fcn.0040df66
mov dword [ebp - 4], esi
mov eax, ecx
push dword [edi + 0x646]
push dword [edi + 0x642]
push ecx
push 0x83
push eax
mov ecx, edi
call fcn.004177cf
test eax, eax
je 0x416ef7
mov dword [ebp - 0x14], esi
cmp dword [edi + 0x64a], esi
jle 0x416ef7
mov eax, dword [ebp - 0x34]
mov ecx, esi
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x416db8
mov eax, dword [ebp - 0x2c]
add eax, ebx
push 0x418
push eax
lea eax, [ebp - 0x670]
push eax
call fcn.00419790
lea eax, [ebp - 0x466]
push 0x43fc38
push eax
call fcn.0041fa57
add esp, 0x14
test eax, eax
jne 0x416d8e
xor ecx, ecx
inc ecx
mov dword [ebp - 0x18], ecx
jmp 0x416da1
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x18]
add eax, 0x418
add ebx, eax
adc dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [edi + 0x64a]
jl 0x416d53
test ecx, ecx
je 0x416ef7
lea ecx, [ebp - 0x44]
call fcn.0040df66
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
mov eax, ecx
push eax
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x25c]
add eax, 0x418
add eax, ebx
push eax
call fcn.00416f24
test eax, eax
je 0x416eed
lea ecx, [edi + 0x12dc]
call fcn.0040ef7e
push esi
lea edx, [ebp - 0x258]
mov ecx, eax
call fcn.00402d88
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x670]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x258]
mov ebx, str._s_s
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0040f56f
add esp, 0x14
lea ecx, [ebp - 0x24]
call fcn.00412194
push esi
push 0x10000000
push 2
push esi
push 0x40000000
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0040ef7e
push eax
lea ecx, [ebp - 0x24]
call fcn.0041223e
test eax, eax
jne 0x416ea8
lea eax, [ebp - 0x258]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0040f56f
add esp, 0x10
lea ecx, [ebp - 0x10]
push esi
push 0x10000000
push 2
push esi
push 0x40000000
call fcn.0040ef7e
push eax
lea ecx, [ebp - 0x24]
call fcn.0041223e
test eax, eax
je 0x416edd
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push dword [ebp - 0x40]
call fcn.004122c7
test eax, eax
je 0x416edd
lea ecx, [ebp - 0x24]
call fcn.00412276
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
xor ebx, ebx
inc ebx
push eax
mov dword [edi + 0x12f8], ebx
call fcn.0040f1f8
mov esi, ebx
lea ecx, [ebp - 0x24]
call fcn.004121a5
lea ecx, [ebp - 0x10]
call fcn.0040eef5
lea ecx, [ebp - 0x44]
call fcn.0040df77
jmp 0x416f09
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x222]
push eax
call fcn.0040f210
xor esi, esi
inc esi
lea ecx, [ebp - 0x30]
call fcn.0040df77
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x417292
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [0x447280], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x417369
xor ebx, ebx
mov dword [edi + 0x12e0], ebx
cmp dword [edi + 0x65e], ebx
jne 0x417369
lea ecx, [edi + 0x12dc]
call fcn.0040ef7e
lea ecx, [ebp - 0x20c]
xor edx, edx
push ecx
mov ecx, eax
call fcn.00402d88
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0x12e0], eax
test eax, eax
je 0x417373
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x417373
lea eax, [edi + 0x12e4]
xor ecx, ecx
push eax
lea eax, [ebp - 0x20c]
inc ecx
push eax
call fcn.0041484e
mov dword [edi + 0x12e8], eax
pop ecx
pop ecx
test eax, eax
je 0x417369
push 0xffffffffffffffff
push dword [edi + 0x12e0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 4
push eax
push dword [edi + 0x12e8]
call fcn.00419790
add esp, 0xc
push dword [edi + 0x12e0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
lea eax, [edi + 0x12e4]
xor ecx, ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0041484e
mov dword [edi + 0x12e8], eax
pop ecx
pop ecx
test eax, eax
je 0x4173f4
push 0xffffffffffffffff
push dword [edi + 0x12e0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x12e8]
push dword [edi + 0x12e0]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, edi
call fcn.00416576
push esi
call fcn.004170a5
mov esi, eax
test esi, esi
je 0x4173f4
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 3
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 8]
or dword [eax], 0xffffffff
xor eax, eax
jmp 0x41736c
mov eax, dword [edi + 0x12e0]
test eax, eax
je 0x417405
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
mov ecx, edi
push str.Cette_application_ne_peut_pas
call dword [eax + 4]
jmp 0x4173e7
Function at 0x417413
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x430950
call fcn.00430150
sub esp, 0x644
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x2c]
call fcn.0040df66
and dword [ebp - 4], 0
mov eax, ecx
push dword [edi + 0x646]
push dword [edi + 0x642]
push ecx
push 0x83
push eax
mov ecx, edi
call fcn.004177cf
test eax, eax
je 0x4167b7
lea ecx, [edi + 0x12dc]
call fcn.0040ef7e
push 0
lea edx, [ebp - 0x238]
mov ecx, eax
call fcn.00402d88
mov eax, dword [edi + 0x64e]
xorps xmm0, xmm0
add eax, dword [edi + 0x64a]
and dword [ebp - 0x18], 0
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
jle 0x41676e
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x650]
push 0x418
add esi, ebx
push esi
push eax
call fcn.00419790
add esp, 0xc
lea eax, [ebp - 0x238]
mov ecx, edi
push eax
lea eax, [esi + 0x418]
push eax
lea eax, [ebp - 0x650]
push eax
call fcn.004167d2
test eax, eax
je 0x4167b7
mov eax, dword [ebp - 0x23c]
add eax, 0x418
add ebx, eax
mov eax, dword [ebp - 0x18]
adc dword [ebp - 0x14], 0
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x10]
jl 0x416717
call fcn.00401723
lea edi, [eax + 4]
lea eax, [ebp - 0x238]
mov ecx, edi
push eax
call fcn.0040f210
mov ecx, edi
call fcn.0040f1e7
dec eax
lea edx, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0040f2e9
mov esi, eax
xor ebx, ebx
mov ecx, edi
inc ebx
mov byte [ebp - 4], bl
call fcn.0040ef21
mov ecx, dword [esi]
mov dword [edi], ecx
lea ecx, [ebp - 0x10]
and dword [esi], 0
call fcn.0040eef5
jmp 0x4167b9
xor ebx, ebx
lea ecx, [ebp - 0x2c]
call fcn.0040df77
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push ecx
push esi
push edi
push 0xc
mov edi, ecx
call fcn.004187b9
pop ecx
mov ecx, eax
mov dword [esp + 8], eax
call fcn.0040df66
push dword [edi + 0x652]
mov dword [edi + 0x1308], eax
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
push str.INFOEXE
push 0x7d
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [edi + 0x652]
mov ecx, dword [edi + 0x1308]
push eax
push dword [ecx + 4]
call fcn.00419790
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, edi
pop edi
pop esi
add esp, 4
jmp 0x41668f
Function at 0x417915
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x430567
call fcn.00430150
sub esp, 0xc
push ebx
push esi
xor eax, eax
push edi
mov edi, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push str.FILEPATH
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0x6d
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
call fcn.004069e0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.FILEPATH
push 0x6e
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040f210
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.FILEPATH
push 0x6f
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040f210
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x14]
call fcn.0040ef7e
lea ecx, [ebp - 0x18]
mov edx, eax
call fcn.0040ef7e
mov ecx, eax
call fcn.004069ee
push str.FILEPATH
push 0x70
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f210
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x417a2f
xor ecx, ecx
cmp word [eax], cx
je 0x417a2f
lea ecx, [ebp - 0x10]
call fcn.0040ef7e
mov ecx, eax
call fcn.00406a9d
push str.INFOEXE
push 0x7f
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x417a62
mov ecx, dword [edi]
call fcn.00406ac5
lea ecx, [ebp - 0x10]
call fcn.0040eef5
lea ecx, [ebp - 0x14]
call fcn.0040eef5
lea ecx, [ebp - 0x18]
call fcn.0040eef5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42bf74
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042bc34
Function at 0x40171d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push dword [0x411260]
call fcn.004029e0
xor ebx, ebx
push ebx
push sym.hpfldr.exe__StatusDialogProc_16
push ebx
push 0x65
push dword [0x411260]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
cmp eax, ebx
mov dword [0x411688], eax
je 0x4017bb
push esi
lea ecx, [ebp - 0x14]
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
sub esi, dword [ebp - 0x14]
sub edi, dword [ebp - 0x10]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
call ebx
sub eax, esi
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 4], eax
call ebx
sub eax, edi
push 0
cdq
sub eax, edx
push edi
sar eax, 1
push esi
push eax
push dword [ebp - 4]
push dword [0x411688]
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
push dword [0x411688]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x411688]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
pop edi
pop esi
jmp 0x4017bd
xor eax, eax
pop ebx
leave
ret