joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40478b
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40482f
push esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x108]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4047ef
test dl, dl
je 0x4047eb
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4047ef
add eax, 2
add ecx, 2
test dl, dl
jne 0x4047cf
xor eax, eax
jmp 0x4047f4
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40481d
push dword [ebp - 0x124]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40481d
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4047c6
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00404cee
leave
ret

Function at 0x404ca7
Capabilities:
Hide graphical window

Disassembly:
call fcn.00404c74
test eax, eax
jne 0x404cb4
or eax, 0xffffffff
ret
call fcn.00404c8e
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x270f
push str.hidden
call fcn.00404c3d
pop ecx
pop ecx
xor eax, eax
ret

Function at 0x405535
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405574
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405574
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405574
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405574
cmp dword [ecx + 0x74], 0xe
jbe 0x405574
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40aecf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40af6c
push ebx
push esi
call fcn.0040ae98
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040ae2c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40af19
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40af6b
push edi
push eax
call fcn.0040ba00
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40af39
call fcn.0040998d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40af6a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040ae2c
add esp, 0x20
test eax, eax
jne 0x40af58
push edi
call fcn.0040998d
jmp 0x40af60
push ebx
call fcn.0040998d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40c17d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4156a0
push 0x415698
push str.FlsAlloc
push 0x1f
call fcn.0040c03c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c1b1
push dword [ebp + 8]
mov ecx, esi
call dword [0x412144]
call esi
jmp 0x40c1b7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40c1fb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4156b0
push 0x4156a8
push str.FlsGetValue
push 0x21
call fcn.0040c03c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c232
push dword [ebp + 8]
mov ecx, esi
call dword [0x412144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40c23a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4156b8
push 0x4156b0
push str.FlsSetValue
push 0x22
call fcn.0040c03c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c274
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x412144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4116d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4116fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4116fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4017d0
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 0x4017e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4017fd
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 0x40181e
cmp esi, eax
jae 0x4017f7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401810
cmp esi, eax
jae 0x4017f7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x407120
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x444a18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x456824]
mov eax, 0x7f3171f
imul ecx
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456830]
push esi
imul edx, edx, 0x293deaa
mov esi, dword [0x456838]
imul esi, esi, 0x372f5c1
sub esi, eax
add esi, edx
mov eax, 0x61bc1a5d
imul ecx
mov ecx, dword [0x45681c]
sar edx, 0x19
push edi
mov edi, edx
add esi, edx
mov eax, 0x979d1eb7
imul ecx
add edx, ecx
sar edx, 0x19
mov eax, edx
shr edi, 0x1f
shr eax, 0x1f
add eax, edx
mov edx, dword [0x56cb8c]
add edi, esi
sub edi, eax
mov ecx, 0x56cb8c
mov dword [str._r_____r____], edi
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov ecx, dword [0x45682c]
mov esi, dword [str._r_____r____]
mov eax, 0x7f3171f
imul esi, esi, 0x4067eec
imul ecx
mov ecx, dword [0x456818]
sar edx, 0x15
imul ecx, ecx, 0xde454f
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, ecx
mov ecx, dword [0x456820]
mov eax, 0x31a5bd5f
imul ecx
sar edx, 0x17
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456834]
sub esi, eax
sub esi, edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
sub esi, 0x5305094
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
mov dword [0x456820], esi
call fcn.00406e90
mov ecx, dword [0x456820]
mov eax, 0x7f3171f
imul ecx
mov eax, dword [0x456830]
sar edx, 0x15
imul eax, eax, 0x22d753a
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, dword [0x45682c]
add edi, eax
mov esi, dword [0x45681c]
imul edx, edx, 0x5305094
imul ecx, ecx, 0x360833b
add edi, edx
mov eax, 0x936c7f27
imul esi
add edx, esi
mov esi, dword [esp + 8]
sar edx, 0x17
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
add edi, ecx
push esi
mov dword [0x45682c], edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x4072b9
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 0x40d9c0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
mov ecx, dword [0x456824]
mov eax, 0x7f3171f
imul ecx
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456830]
push ebp
imul edx, edx, 0x293deaa
push esi
mov esi, dword [0x456838]
imul esi, esi, 0x372f5c1
sub esi, eax
add esi, edx
mov eax, 0x61bc1a5d
imul ecx
mov ecx, dword [0x45681c]
push edi
sar edx, 0x19
mov edi, edx
add esi, edx
mov eax, 0x979d1eb7
imul ecx
add edx, ecx
sar edx, 0x19
mov eax, edx
shr edi, 0x1f
shr eax, 0x1f
add edi, esi
add eax, edx
sub edi, eax
lea ecx, [esp + 0x10]
mov dword [str._r_____r____], edi
mov edi, dword [esp + 0x1c]
push ecx
xor ebp, ebp
push edi
mov dword [esp + 0x18], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebp
je 0x40dc0c
mov ecx, dword [0x456838]
push ebx
mov ebx, dword [0x456830]
mov edx, ecx
imul ebx, ebx, 0x293deaa
imul edx, edx, 0x372f5c1
sub ebx, edx
mov edx, dword [0x45681c]
mov eax, 0x13a45601
imul edx
sar edx, 0x16
mov eax, edx
shr eax, 0x1f
add ebx, edx
add eax, ebx
mov ebx, eax
mov eax, 0x61bc1a5d
imul ecx
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add ebx, edx
mov edx, dword [str._r_____r____]
add eax, ebx
sub eax, edx
add eax, 0x294039f
push esi
mov dword [0x45681c], eax
call fcn.0043be02
add esp, 4
mov ebx, eax
push ebx
push esi
xor esi, esi
push esi
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40dc02
mov edi, dword [0x456818]
mov ecx, dword [0x456828]
imul edi, edi, 0x293deaa
imul ecx, ecx, 0xde454f
add edi, ecx
mov ecx, dword [0x45682c]
mov eax, 0x13a45601
imul ecx
mov ecx, dword [str._r_____r____]
sar edx, 0x16
imul ecx, ecx, 0x53d1950
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456830]
sub edi, eax
add edi, edx
lea edx, [ecx + edi - 0x5305094]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x4471f4
push ebx
mov dword [0x456824], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40dba7
mov ecx, dword [0x456834]
mov esi, dword [0x456818]
mov eax, 0x7f3171f
imul esi, esi, 0x3422234
imul ecx
mov ecx, dword [0x456828]
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x61bc1a5d
imul ecx
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul edx, edx, 0x53d1950
sub esi, eax
add esi, edx
mov eax, 0x979d1eb7
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x10]
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov dword [0x456834], esi
mov bp, word [ecx + 0x14]
mov ecx, dword [0x456820]
mov eax, 0x7f3171f
imul ecx
imul ecx, ecx, 0x360833b
mov eax, dword [0x45682c]
mov esi, dword [0x45681c]
imul eax, eax, 0x5305094
sar edx, 0x15
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, dword [0x456830]
imul edx, edx, 0x22d753a
add edi, edx
add edi, eax
mov eax, 0x936c7f27
imul esi
add edx, esi
sar edx, 0x17
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
add edi, ecx
mov dword [0x45682c], edi
push ebx
call fcn.0043be07
add esp, 4
pop ebx
pop edi
pop esi
mov ax, bp
pop ebp
add esp, 0xc
ret
Function at 0x417400
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x458190]
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 0x417522
lea ecx, [esp + 8]
call fcn.004172e0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x417526
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 0x4174d0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.00417400
mov edi, eax
test edi, edi
jne 0x41754a
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 0x417492
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4174e9
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 0x417508
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042a171
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x417531
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042a171
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x417559
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.0042a171
add esp, 0x118
ret 4
Function at 0x417a30
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 0x417a42
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 0x41b430
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x456824]
mov eax, 0x7f3171f
imul ecx
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
push ebx
push esi
mov esi, eax
mov eax, 0x61bc1a5d
imul ecx
mov ebx, dword [0x456830]
sar edx, 0x19
imul ebx, ebx, 0x293deaa
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub ecx, esi
mov esi, dword [0x45681c]
mov eax, 0x979d1eb7
imul esi
push edi
mov edi, dword [0x456838]
add edx, esi
imul edi, edi, 0x372f5c1
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, dword [esp + 0x10]
add ecx, ebx
add ecx, edi
cmp eax, 0x132b600
mov dword [str._r_____r____], ecx
je 0x41b4c2
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
push 0x3e8
call edi
dec esi
jne 0x41b4b2
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, 0x3ac7f767
imul dword [0x456820]
sar edx, 0x17
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], eax
push ebp
mov ebp, dword [0x456834]
mov eax, 0x62ace781
imul ebp
mov eax, dword [esp + 0x14]
sar edx, 0x19
add eax, edx
mov esi, edx
mov edx, dword [0x456818]
imul edx, edx, 0x5305094
shr esi, 0x1f
add esi, eax
add esi, edx
mov eax, 0x936c7f27
imul ebp
add edx, ebp
sar edx, 0x17
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, dword [0x456830]
imul eax, eax, 0x360833b
sub esi, eax
mov eax, dword [0x56a64c]
mov edx, eax
inc eax
test edx, edx
mov dword [0x456818], esi
mov dword [0x56a64c], eax
jle 0x41b587
mov eax, 0x13a45601
imul dword [0x45681c]
sar edx, 0x16
mov esi, edx
shr esi, 0x1f
add esi, edx
mov eax, 0x61bc1a5d
imul dword [0x456838]
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add esi, edx
add eax, esi
sub eax, edi
pop ebp
sub eax, ecx
pop edi
lea ecx, [eax + ebx + 0x294039f]
pop esi
mov dword [0x45681c], ecx
mov eax, 1
pop ebx
ret
mov edx, dword [0x45682c]
imul ecx, ecx, 0x4067eec
imul esi, esi, 0xde454f
mov eax, 0x7f3171f
imul edx
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0x31a5bd5f
imul dword [0x456820]
sar edx, 0x17
mov eax, edx
add ecx, esi
shr eax, 0x1f
add eax, edx
sub ecx, eax
sub ecx, ebp
sub ecx, 0x5305094
mov dword [0x456820], ecx
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x41af00
push 0
push 0
mov dword [0x56a36c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x456818]
mov edx, dword [0x456828]
imul esi, esi, 0x293deaa
mov ecx, dword [0x45682c]
imul edx, edx, 0xde454f
add esi, edx
mov eax, 0x13a45601
imul ecx
mov ecx, dword [str._r_____r____]
sar edx, 0x16
imul ecx, ecx, 0x53d1950
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, dword [0x456830]
pop ebp
add esi, eax
pop edi
lea edx, [ecx + esi - 0x5305094]
pop esi
mov dword [0x456824], edx
mov eax, 1
pop ebx
ret
Function at 0x41fea0
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [0x456824]
mov eax, 0x61bc1a5d
imul ebp
sar edx, 0x19
push esi
mov esi, dword [0x456838]
push edi
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, 0x94723637
imul esi
add edx, esi
sar edx, 0x19
mov ebx, dword [0x45681c]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
mov eax, 0x63510a67
imul esi
sar edx, 0x18
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov edx, esi
imul edx, edx, 0x5305094
mov eax, ebx
imul eax, eax, 0x3422234
sub ecx, edx
add ecx, eax
mov eax, dword [esp + 0x14]
sub ecx, edi
cmp eax, 0x132b600
mov dword [0x456828], ecx
mov eax, 0x7f3171f
je 0x41ff76
imul ebp
imul esi, esi, 0x372f5c1
sar edx, 0x15
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x456830]
imul edx, edx, 0x293deaa
sub esi, ecx
add esi, edx
mov eax, 0x979d1eb7
imul ebx
add edx, ebx
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [str._r_____r____], esi
mov esi, 0x64
push 0x3e8
call edi
dec esi
jne 0x41ff65
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov esi, dword [0x456820]
imul esi
imul esi, esi, 0x360833b
mov eax, dword [0x45682c]
sar edx, 0x15
imul eax, eax, 0x5305094
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, dword [0x456830]
imul edx, edx, 0x22d753a
add edi, edx
add edi, eax
mov eax, 0x936c7f27
imul ebx
add edx, ebx
sar edx, 0x17
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, dword [0x56a360]
add edi, esi
test eax, eax
mov dword [0x45682c], edi
jne 0x4200a9
mov edx, dword [0x456834]
mov esi, dword [0x456818]
mov eax, 0x7f3171f
imul esi, esi, 0x3422234
imul edx
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x61bc1a5d
imul ecx
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul edx, edx, 0x53d1950
sub esi, eax
add esi, edx
mov eax, 0x979d1eb7
imul ecx
add edx, ecx
lea ecx, [esp + 0x14]
push ecx
push 0
sar edx, 0x19
push 0
mov eax, edx
shr eax, 0x1f
push 0x41e990
add eax, edx
push 0
sub esi, eax
push 0
mov dword [0x456834], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [0x456818]
mov edx, dword [0x456828]
imul esi, esi, 0x293deaa
mov ecx, dword [0x45682c]
imul edx, edx, 0xde454f
mov dword [0x56a350], eax
add esi, edx
mov eax, 0x13a45601
imul ecx
mov ecx, dword [str._r_____r____]
sar edx, 0x16
imul ecx, ecx, 0x53d1950
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, dword [0x456830]
lea edx, [ecx + esi - 0x5305094]
mov dword [0x56a360], 1
mov dword [0x456824], edx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x42134e
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 0x4213a1
call fcn.00441ed5
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4213a1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x421397
xor eax, eax
jmp 0x4214ba
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 0x4213d1
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 0x4213d1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4214b7
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4213fe
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004205c3
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4214b7
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x421447
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x421447
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x421441
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004205c3
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4214a7
and dword [ebp + 0xc], 0
jmp 0x4214a7
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4214a7
push 0xc
call fcn.0043bdd7
mov esi, eax
test esi, esi
pop ecx
je 0x421489
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 0x42148b
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4214a2
push dword [ebp - 8]
call fcn.0043782a
jmp 0x4214a7
call fcn.00437801
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x42140c
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42a6fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042c94c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x42a720
test byte [esp + 8], 2
je 0x42a720
call fcn.0042c93a
mov dword [eax], 0xd
call fcn.0042c943
mov dword [eax], 5
jmp 0x42a6f9
xor eax, eax
ret