joyce8/EMBER2024-capa huggingface dataset:
Function at 0xcd6f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xceb9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xcd7002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00cdadff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xcd7002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00cd26e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00cdb20b
push 0x10
call fcn.00cdb1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xcd6fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00cc71c0
jmp 0xcd6fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00cd6b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xcd6ff0
mov ecx, edi
call fcn.00cc72c0
push edi
call fcn.00cdb1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xcd7021
inc ebx
cmp ebx, 0x20
jb 0xcd6f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xcd8250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcec808
push 0xcdc288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xcd8329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xcd8329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00cdb1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xcd8329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xcd8329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xcd832c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00cd8351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xcd8d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xcd8d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xcd8d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xcd8d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xcd8d94
push eax
push esi
call fcn.00cdb20b
add esp, 8
pop esi
ret 0x10

Function at 0xcd8da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xcd8e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xcd8e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xcf1320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00cdadff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xcd8dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xcd8e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xcd8ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xcd8eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xcf1320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00cdadff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xcd8eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xcd8e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xcd9000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xcd9131
push esi
call fcn.00cdc145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00ccb080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xcd9131
push 0
push ebp
call fcn.00ccb3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00ccb260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xcd908b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00ccb2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xcd9121
push 0xcf1918
push edi
call fcn.00cda3f0
push eax
push ebx
push esi
call fcn.00cd8f60
push 0xcf18f8
push edi
call fcn.00cda3f0
push eax
push ebx
push esi
call fcn.00cd8f60
push 0xcf18d8
push edi
call fcn.00cda3f0
push eax
push ebx
push esi
call fcn.00cd8f60
push 0xcf18c0
push edi
call fcn.00cda3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00cd8f60
push 0xcf18a0
push edi
call fcn.00cda3f0
push eax
push ebx
push esi
call fcn.00cd8f60
push 0xcf1888
push edi
call fcn.00cda3f0
push eax
push ebx
push esi
call fcn.00cd8f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xcda1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00cda140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00cda140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00cda140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00cda140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xcdabfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xcdac50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xcec87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xcdac43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xcdac52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4014f0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x452ad4]
mov edx, dword [0x44e0f0]
mov dword [esp + 0x14], eax
mov eax, dword [0x44e0f4]
mov ecx, eax
sub ecx, edx
mov edx, dword [0x44e10c]
push ebx
lea ecx, [ecx + edx + 0x3977]
push ebp
mov dword [0x44e0f8], ecx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
push esi
push edi
mov dword [esp + 0x10], 0
jle 0x401658
mov edi, dword [esp + 0x2c]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
mov ebp, dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40155e
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x44e0f4]
mov ecx, dword [0x44e0f0]
mov edx, dword [str._r_____r____]
add edx, ecx
mov ecx, dword [0x44e0fc]
lea edx, [ecx + edx + 0x27c0]
mov ecx, dword [0x44e0ec]
mov dword [0x44e0fc], edx
mov edx, dword [0x44e100]
sub ecx, eax
lea eax, [edx + ecx + 0x2edc]
push edi
mov word [esp + 0x18], 2
mov dword [0x44e100], eax
call ebx
push 0
mov word [esp + 0x1a], ax
call ebp
mov ecx, dword [0x44e0f0]
mov edx, dword [0x44e100]
push 0
mov dword [esp + 0x1c], eax
mov eax, dword [0x44e10c]
add edx, ecx
push 1
lea ecx, [edx + eax + 0x218d]
push 2
mov dword [0x44e104], ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4016ab
push 0x10
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x401689
mov eax, dword [0x44e0f0]
mov edx, dword [0x44e104]
mov ecx, dword [0x44e0ec]
sub eax, edx
sub eax, ecx
add eax, 0xd5a
push esi
mov dword [0x44e108], eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [0x44e0fc]
mov ecx, dword [0x44e100]
sub ecx, eax
mov eax, dword [0x44e0f4]
lea edx, [ecx + eax - 0x186]
mov ecx, dword [esp + 0x10]
mov dword [0x44e10c], edx
mov edx, dword [esp + 0x34]
inc ecx
cmp ecx, edx
mov dword [esp + 0x10], ecx
jl 0x401546
mov edx, dword [0x44e0f8]
mov ecx, dword [str._r_____r____]
pop edi
pop esi
sub ecx, edx
lea edx, [ecx + eax - 0x5c8]
pop ebp
mov dword [0x44e0ec], edx
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
call fcn.00424ef1
add esp, 0x18
ret
mov eax, dword [0x44e0f8]
mov edx, dword [0x44e0fc]
lea ecx, [eax + eax]
sub ecx, edx
mov edx, dword [esp + 0x30]
add ecx, 0x2bf
mov dword [str._r_____r____], ecx
mov dword [edx], esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.00424ef1
add esp, 0x18
ret

Function at 0x4016e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4016f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40170d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40172e
cmp esi, eax
jae 0x401707
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401720
cmp esi, eax
jae 0x401707
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40ddf0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x452ad4]
mov edx, dword [esp + 0x11c]
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x128], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40df12
lea ecx, [esp + 8]
call fcn.0040dcd0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x40df16
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x40dec0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.0040ddf0
mov edi, eax
test edi, edi
jne 0x40df3a
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x40de82
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40ded9
push eax
call edi
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x128]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40def8
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.00424ef1
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x40df21
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.00424ef1
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40df49
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
call fcn.00424ef1
add esp, 0x118
ret 4
Function at 0x40e420
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40e432
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x411870
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x451a78]
mov eax, 0xfe03f81
imul ecx
push ebx
mov ebx, dword [0x451a84]
imul ebx, ebx, 0xe8
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push esi
mov esi, dword [0x451a68]
mov edx, ebx
sub edx, eax
push edi
mov edi, dword [0x451a6c]
sub edx, esi
lea eax, [edx + edi + 0x21b]
mov dword [str._r_____r_____n], eax
cmp dword [esp + 0x10], 0x132b600
je 0x4118e0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
lea esp, [esp]
push 0x3e8
call edi
dec esi
jne 0x4118d0
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov esi, dword [0x451a7c]
mov eax, 0xa29ecf17
imul ecx
push ebp
add edx, ecx
sar edx, 8
mov ebp, esi
imul ebp, ebp, 0xfffffefe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x451a80]
sub ebp, eax
mov eax, 0x43b3d5b
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x451a64]
sub ebp, eax
add ebp, dword [str._r_____r_____n]
lea eax, [edx + ebp - 0xd8]
mov dword [0x451a64], eax
mov eax, dword [0x563e08]
mov edx, eax
inc eax
test edx, edx
mov dword [0x563e08], eax
pop ebp
jle 0x41197c
mov eax, 0x577f7cc1
imul esi, esi, 0x21e
imul edi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x451a70]
add eax, esi
sub eax, ebx
sub eax, edx
pop edi
add eax, 0x33e
pop esi
mov dword [0x451a68], eax
mov eax, 1
pop ebx
ret
mov eax, 0xae4c415d
imul ecx
add edx, ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x2053e08b
imul edi
sub edx, edi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, ecx
mov ecx, dword [0x451a84]
sub eax, esi
lea edx, [eax + ecx - 0xd2]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x411430
push 0
push 0
mov dword [0x563b18], 0
mov dword [0x451a6c], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x451a78]
mov eax, 0x7a0a7ce7
imul ecx
mov eax, dword [0x451a74]
sar edx, 8
imul eax, eax, 0x79
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x451a68]
imul edx, edx, 0x21e
sub edx, ecx
mov ecx, dword [0x451a80]
pop edi
add edx, ecx
lea ecx, [eax + edx + 0x215]
pop esi
mov dword [0x451a70], ecx
mov eax, 1
pop ebx
ret
Function at 0x415750
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x451a70]
mov eax, 0x577f7cc1
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
push esi
mov esi, dword [0x451a74]
push edi
mov edi, eax
mov eax, 0x8d3dcb09
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x451a84]
imul edx, edx, 0xd9
sub eax, edi
sub eax, edx
add eax, 0x506
mov dword [0x451a74], eax
cmp dword [esp + 0xc], 0x132b600
je 0x4157c2
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
push 0x3e8
call edi
dec esi
jne 0x4157b3
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [0x451a68]
imul ecx, ecx, 0xd9
mov esi, dword [0x451a6c]
mov eax, edx
imul esi, esi, 0x102
imul eax, eax, 0x193
sub esi, eax
mov eax, 0x43b3d5b
imul edx
mov eax, dword [0x563b0c]
add esi, ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
test eax, eax
mov dword [0x451a78], esi
jne 0x41586f
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0x414580
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x451a78]
mov esi, dword [0x451a68]
mov dword [0x563afc], eax
imul esi, esi, 0x21e
mov eax, 0x7a0a7ce7
imul ecx
mov ecx, dword [0x451a74]
sar edx, 8
imul ecx, ecx, 0x79
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, dword [0x451a80]
lea edx, [ecx + esi + 0x215]
mov dword [0x563b0c], 1
mov dword [0x451a70], edx
pop edi
mov eax, 1
pop esi
ret
Function at 0x417c70
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x43fd78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x451a78]
mov eax, 0xfe03f81
imul ecx
mov ecx, dword [0x451a84]
imul ecx, ecx, 0xe8
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x451a6c]
sub ecx, eax
sub ecx, dword [0x451a68]
lea eax, [ecx + edx + 0x21b]
mov edx, dword [0x5674f4]
push esi
mov ecx, 0x5674f4
mov dword [str._r_____r_____n], eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
mov ecx, dword [0x451a78]
mov eax, 0xae4c415d
imul ecx
add edx, ecx
mov ecx, dword [0x451a6c]
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x2053e08b
imul ecx
sub edx, ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x451a7c]
sub ecx, esi
sub ecx, edx
mov edx, dword [0x451a84]
lea eax, [ecx + edx - 0xd2]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
mov dword [0x451a6c], eax
call fcn.004179e0
mov ecx, dword [0x451a68]
mov esi, dword [0x451a70]
mov edx, dword [0x451a6c]
imul esi, esi, 0xd9
mov eax, ecx
imul edx, edx, 0x102
imul eax, eax, 0x193
sub esi, eax
add esi, edx
mov eax, 0x43b3d5b
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov dword [0x451a78], esi
mov esi, dword [esp + 4]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x417db4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41c0a3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x41c0f6
call fcn.0043cc62
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x41c0f6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x41c0ec
xor eax, eax
jmp 0x41c20f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x41c126
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x41c126
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x41c20c
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x41c153
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0041c847
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x41c20c
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41c19c
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x41c19c
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x41c196
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0041c847
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x41c1fc
and dword [ebp + 0xc], 0
jmp 0x41c1fc
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x41c1fc
push 0xc
call fcn.00436b64
mov esi, eax
test esi, esi
pop ecx
je 0x41c1de
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x41c1e0
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x41c1f7
push dword [ebp - 8]
call fcn.004325b7
jmp 0x41c1fc
call fcn.0043258e
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x41c161
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42540d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42542d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004276dc
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x425450
test byte [esp + 8], 2
je 0x425450
call fcn.004276ca
mov dword [eax], 0xd
call fcn.004276d3
mov dword [eax], 5
jmp 0x425429
xor eax, eax
ret