joyce8/EMBER2024-capa huggingface dataset:
Function at 0x694d00
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b86d0
push 0x6a2fac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.006a00c0
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x694eb0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x694ef1
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x694f5e
cmp dword [esp + 0x1c], 2
jne 0x694f5e
cmp dword [esp + 0x10], 5
jne 0x694f5e
cmp dword [esp + 0x14], 1
jne 0x694f5e
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x694f48
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x694f39
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x694f41
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x694f5e
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret
Function at 0x695ac0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2820
call fcn.006a09f0
mov eax, dword [esp + 0x2824]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x20]
push str..PhysicalDrive_d
push ecx
call fcn.006a1e5d
add esp, 0xc
lea edx, [esp + 0x1c]
push 0
push 0
push 3
push 0
push 3
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x695c6d
xor eax, eax
mov ecx, 0x9c4
mov dword [esp + 0x10], eax
lea edi, [esp + 0x11c]
mov dword [esp + 0x14], eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x2710
push edx
lea eax, [esp + 0x20]
push 0xc
push eax
push 0x2d1400
push esi
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
je 0x695c6d
mov ecx, dword [esp + 0x283c]
mov edx, dword [esp + 0x128]
push ecx
push 0
lea eax, [esp + 0x124]
push edx
push eax
call fcn.00695c80
mov ecx, dword [esp + 0x2848]
mov edx, dword [esp + 0x13c]
push ecx
push 0
lea eax, [esp + 0x134]
push edx
push eax
call fcn.00695c80
mov ecx, dword [esp + 0x2860]
mov edx, dword [esp + 0x150]
push ecx
push 0
lea eax, [esp + 0x144]
push edx
push eax
call fcn.00695c80
mov ecx, dword [esp + 0x2864]
mov edx, dword [esp + 0x164]
push ecx
push 1
lea eax, [esp + 0x154]
push edx
push eax
call fcn.00695c80
mov ecx, dword [esp + 0x2884]
add esp, 0x40
xor eax, eax
lea edi, [esp + 0x11c]
mov dword [ecx], 1
mov ecx, 0x9c4
lea edx, [esp + 0xc]
push eax
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x124]
push 0x2710
push eax
push 0
push 0
push 0x700a0
push esi
call ebx
test eax, eax
je 0x695c6d
mov edi, dword [esp + 0x124]
mov edx, dword [esp + 0x2848]
mov eax, dword [esp + 0x284c]
xor ecx, ecx
cmp edi, 0xc
push esi
setne cl
inc ecx
mov dword [edx], ecx
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x13c]
mov dword [eax], ecx
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2820
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2820
ret
Function at 0x6b99a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x6de480
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.006aeb2e
mov eax, dword [0x7bda60]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.006aea60
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.006ba490
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x6b9a47
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x6b9a3e
cmp al, 0xff
je 0x6b9a3e
dec al
mov byte [ecx], al
jmp 0x6b9a47
push ecx
call fcn.006c44d0
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x6b9a78
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x6b9a6f
cmp al, 0xff
je 0x6b9a6f
dec al
mov byte [ecx], al
jmp 0x6b9a78
push ecx
call fcn.006c44d0
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x6c55e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.006d0897
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x6c561a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.006c562d
pop edi
pop esi
pop ebx
ret 8

Function at 0x6c6c04
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x6c6c3c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.006c4c0d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.006c4be5
jmp 0x6c6c48
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x6c85c9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x6c860b
call fcn.006d0897
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x6c860b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x6c8602
xor eax, eax
jmp 0x6c8613
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.006c8619
pop edi
pop esi
pop ebx
ret 4

Function at 0x6d0dc7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x6d0df5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x6d0e13
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.006d0d2d
jmp 0x6d0e13
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6d0e13
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.006d0d2d
test edi, edi
mov eax, edi
jne 0x6d0dfd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x20249000
Capabilities:
Execute anti-debugging instructions
Parse pe header

Disassembly:
mov dword [0x20262004], esp
jmp 0x2024900b
push 0x2024902b
push dword fs:[0]
jmp 0x2024901b
mov dword fs:[0], esp
jmp 0x20249026
jmp fcn.202494b6
Function at 0x405eca
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a172c], 0
push esi
jne 0x405f01
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405edb
mov dword [ecx*4 + 0x7a1728], eax
inc ecx
cmp ecx, 0x100
jl 0x405ed6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f32
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1728]
xor eax, esi
inc ecx
dec edx
jne 0x405f14
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40c297
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x416710], ebx
push esi
push edi
jne 0x40c317
push 0x413dd8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40c352
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x413dcc
push edi
call esi
test eax, eax
mov dword [0x416710], eax
je 0x40c352
push 0x413dbc
push edi
call esi
push 0x413da8
push edi
mov dword [0x416714], eax
call esi
cmp dword [0x41654c], 2
mov dword [0x416718], eax
jne 0x40c317
push 0x413d8c
push edi
call esi
test eax, eax
mov dword [0x416720], eax
je 0x40c317
push 0x413d74
push edi
call esi
mov dword [0x41671c], eax
mov eax, dword [0x41671c]
test eax, eax
je 0x40c35c
call eax
test eax, eax
je 0x40c343
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x416720]
test eax, eax
je 0x40c343
test byte [ebp - 8], 1
jne 0x40c35c
cmp dword [0x416558], 4
jb 0x40c356
or byte [ebp + 0x12], 0x20
jmp 0x40c37b
xor eax, eax
jmp 0x40c38b
or byte [ebp + 0x12], 4
jmp 0x40c37b
mov eax, dword [0x416714]
test eax, eax
je 0x40c37b
call eax
mov ebx, eax
test ebx, ebx
je 0x40c37b
mov eax, dword [0x416718]
test eax, eax
je 0x40c37b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x416710]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408937
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
mov ebx, edx
call fcn.00408969
or edx, ebx
push ebx
mov edx, dword [esp]
add esp, 4
xor dword [edi], esi
and edx, ebx
inc edi
add ebx, 0xb958cacd
inc edx
cmp edi, ecx
jne fcn.00408937
mov ebx, ebx
ret
Function at 0x4015c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x45b080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0xf
push str.Softwareduoduo
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
call fcn.00401e30
cmp dword [ebp - 0x10], 0x10
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push ecx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x401644
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push str.Hide
push ecx
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete bl
cmp dword [ebp - 0x10], 0x10
jb 0x40165a
push dword [ebp - 0x24]
call fcn.00432b41
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00432b46
mov esp, ebp
pop ebp
ret 8
Function at 0x401790
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x445708
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x45b080]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
dec eax
je 0x40180f
dec eax
jne 0x4018fe
mov eax, dword [edi + 0xc8]
mov eax, dword [eax + 0x68]
test eax, eax
je 0x4017db
mov eax, dword [eax + 4]
push 2
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [edi + 0xc8]
mov eax, dword [eax + 0x68]
test eax, eax
jne 0x4017fe
push eax
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4018fe
mov eax, dword [eax + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4018fe
mov eax, dword [edi + 4]
push str.bar_single
lea ecx, [edi + 4]
call dword [eax + 0x2c]
mov edx, dword [edi + 4]
push str.lab_dl
lea ecx, [edi + 4]
mov ebx, eax
call dword [edx + 0x2c]
mov esi, dword [ebx + 0xd8]
mov dword [esp + 0x18], eax
cmp esi, 0x64
jge 0x4018d7
mov ecx, dword [ebx + 0xcc]
mov eax, dword [ebx + 0xd0]
push 0
inc esi
cmp esi, ecx
push 2
cmovg ecx, esi
push 0x19
push dword [ebx + 0x1c]
cmp ecx, eax
cmovl eax, ecx
push ebx
mov ecx, ebx
mov dword [ebx + 0xd8], eax
call fcn.0040cc50
mov eax, dword [0x45c5a8]
mov ecx, 0x45c5a8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push esi
lea eax, [esp + 0x18]
push str._d__
push eax
mov dword [esp + 0x34], 0
call fcn.00407ae0
mov esi, dword [esp + 0x20]
add esp, 0xc
mov ecx, ebx
push esi
call fcn.004095e0
mov ecx, dword [esp + 0x18]
push esi
call fcn.004095e0
add esi, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4018fe
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4018fe
mov eax, dword [edi + 0xc8]
mov eax, dword [eax + 0x68]
test eax, eax
je 0x4018e7
mov eax, dword [eax + 4]
push 1
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esp + 0x18]
push 0x44ea70
call fcn.004095e0
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401ab0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x445754
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x45b080]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
mov eax, dword [0x45b080]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [ebp + 8], 0x401
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
jne 0x401b63
mov eax, dword [0x460858]
test al, 1
jne 0x4019a8
or eax, 1
mov dword [0x460858], eax
lea ecx, [edi + 4]
mov dword [esp + 0x30], 0
mov eax, dword [ecx]
push str.bar_single
call dword [eax + 0x2c]
mov dword [0x460844], eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [0x460858]
test al, 2
jne 0x4019d6
or eax, 2
mov dword [0x460858], eax
lea ecx, [edi + 4]
mov dword [esp + 0x30], 1
mov eax, dword [ecx]
push str.lab_dl
call dword [eax + 0x2c]
mov dword [0x46085c], eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [0x45c5a8]
mov ecx, 0x45c5a8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov eax, dword [ebp + 0xc]
dec eax
mov dword [esp + 0x30], 2
cmp eax, 4
ja case.default.0x4019ff
jmp dword [eax*4 + 0x401b88]
mov ecx, dword [0x460844]
push ebx
push 0
mov dword [0x45eedc], ebx
call fcn.0040f2a0
mov ecx, dword [0x46085c]
push 0x44ea78
call fcn.004095e0
jmp case.default.0x4019ff
push str.ck_WS
lea ecx, [esp + 0x18]
call fcn.00407b70
push ebx
lea ecx, [esp + 0x18]
call fcn.00407bc0
push dword [esp + 0x14]
mov ecx, dword [0x46085c]
call fcn.004095e0
mov eax, dword [0x45eee0]
mov ecx, dword [0x45eedc]
inc eax
mov dword [0x45eee0], eax
mov edx, 1
test ecx, ecx
cmove ecx, edx
imul eax, eax, 0x64
cdq
idiv ecx
push eax
lea eax, [esp + 0x18]
push str._d__
push eax
call fcn.00407ae0
mov esi, dword [esp + 0x20]
mov ecx, dword [0x460844]
add esp, 0xc
push esi
call fcn.004095e0
push dword [0x45eee0]
mov ecx, dword [0x460844]
call fcn.0040f300
jmp case.default.0x4019ff
push 0
push 0
push edi
push 0x401ce0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp case.default.0x4019ff
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
push str.button_cancle
call dword [eax + 0x2c]
test eax, eax
je 0x401ae4
push 0x44ea70
mov ecx, eax
call fcn.004095e0
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 0
call fcn.004015c0
cmp dword [esp + 0x1c], 1
je 0x401b32
push 0
push 0x44eaac
push 0x44eab4
mov ecx, edi
call fcn.0040b680
jmp 0x401b2b
mov eax, dword [edi + 0xc8]
mov eax, dword [eax + 0x68]
test eax, eax
je 0x401b23
mov eax, dword [eax + 4]
push 0
push 0x44eac0
push ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push ecx
mov ecx, edi
call fcn.0040b620
mov eax, dword [esp + 0x18]
add esi, 0xfffffff0
mov byte [eax], 1
mov dword [esp + 0x30], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401b63
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00432b46
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4023c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4457ab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45b080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x44ec08
push 0x66
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x402432
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402432
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, ebx
mov ecx, eax
call fcn.00408460
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0xcc
call fcn.00433353
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x402460
push ecx
mov ecx, esi
call fcn.004024c0
mov ecx, esi
call fcn.004014a0
jmp 0x402462
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
push ecx
mov ecx, dword [eax + 0xc8]
call fcn.004182a0
mov esi, dword [edi]
mov eax, dword [esi + 0xc8]
mov eax, dword [eax + 0x68]
test eax, eax
je 0x4024a3
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4024a3
mov ecx, dword [esi + 0xc8]
push 0
mov ecx, dword [ecx + 0x68]
call fcn.00410590
mov ecx, dword [edi]
push 1
call fcn.0040a240
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402a20
Capabilities:
Accept command line arguments
Check mutex on windows
Create process on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x45b080]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 8]
push esi
mov dword [0x45ef38], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x18], 2
jle 0x402b49
push str.LL_update
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x402a88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402b49
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
call fcn.004023c0
test al, al
je 0x402ac8
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 0x402550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00402290
push 0x40
lea eax, [esp + 0x28]
push 0
push eax
call fcn.00437d40
add esp, 0xc
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
mov dword [esp + 0xc], 0
movq qword [esp + 0x10], xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push str.__QQQQ
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402b49
lea ecx, [eax + 8]
push 1
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esp + 0x6c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00432b46
mov esp, ebp
pop ebp
ret 0x10