joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4034b8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push VariantClear
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x403500
mov eax, 0xd72ecb
push eax
push 1
mov ebx, 0x194
call fcn.00461eb0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jge 0x403525
jmp 0x4036ad
push dword [ebp + 8]
call fcn.004032bc
mov dword [ebp - 8], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0xd763f8]
fstp qword [ebp - 0x28]
mov dword [ebp - 0x2c], esp
fld qword [ebp - 0x28]
call fcn.00402d09
push eax
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x403579
push 0x129
push 0x404e1b9
push 6
call fcn.0045f7e0
add esp, 0xc
mov dword [ebp - 0xc], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0xd763f8]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.00402d09
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x40367e
fild dword [ebp - 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.00402d09
push eax
call fcn.0040349c
mov word [ebp - 0x14], ax
cmp word [ebp - 0x14], 0
jne 0x40361c
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x403612
push 0x222
push 0x404e1b9
push 6
call fcn.0045f7e0
add esp, 0xc
jmp 0x40367e
cmp word [ebp - 0x14], 0x5c
jne 0x403665
cmp dword [ebp - 0x18], 0
jle 0x403662
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x403662
push 0x2c3
push 0x404e1b9
push 6
call fcn.0045f7e0
add esp, 0xc
inc dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.004036b3
pop ebx
pop ecx
pop edx
add ecx, 2
jmp 0x4035a2
add esp, 0xc
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4036ad
push 0x374
push 0x404e1b9
push 6
call fcn.0045f7e0
add esp, 0xc
mov esp, ebp
pop ebp
ret 4
Function at 0x40d7ab
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x40d7fd
mov dword [ebp - 0xc], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40d7f5
push 0x4f
push 0x4047b0d
push 6
call fcn.0045f7e0
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x40d836
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
push 0
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40d833
push 0x7d
push 0x4047b0d
push 6
call fcn.0045f7e0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40d84a
mov eax, 0
jmp 0x40d8b2
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40d87b
push 0x10b
push 0x4047b0d
push 6
call fcn.0045f7e0
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40d8aa
push 0x12f
push 0x4047b0d
push 6
call fcn.0045f7e0
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x40d8b2
mov esp, ebp
pop ebp
ret 8

Function at 0x40d8b8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
nop
cmp dword [ebp - 4], esp
je 0x40d8ef
push 0x12
push 0x4047a72
push 6
call fcn.0045f7e0
add esp, 0xc
jmp 0x40d8f4
mov esp, ebp
pop ebp
ret 4
Function at 0x4120d7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push reloc.OLEAUT32.dll_SysStringLen
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.00464680
add esp, 0x10
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
call fcn.0040992b
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x41214b
push 0x60
push 0x4047b5e
push 6
call fcn.0045f7e0
add esp, 0xc
jmp 0x412150
mov esp, ebp
pop ebp
ret 0x14

Function at 0x41301c
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
nop
nop
cmp dword [ebp - 8], esp
je 0x413063
push 0x19
push 0x4047b4a
push 6
call fcn.0045f7e0
add esp, 0xc
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x1c]
fild qword [ebx]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
mov ebx, dword [ebp + 0xc]
fild qword [ebx]
fstp qword [ebp - 0x14]
fsub qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.00402d09
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ebx, dword [ebp + 0xc]
fild qword [ebx]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fdiv qword [0xd7d85d]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.00402d09
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ebx, dword [ebp + 0x14]
fild qword [ebx]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fdiv qword [0xd7d85d]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.00402d09
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov ebx, dword [ebp + 0x1c]
fild qword [ebx]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fdiv qword [0xd7d85d]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.00402d09
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov eax, dword [ebp - 4]
jmp 0x413103
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x41379e
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop
nop
cmp dword [ebp - 8], esp
je 0x4137de
push 0
push 0x4047b7d
push 6
call fcn.0045f7e0
add esp, 0xc
mov dword [ebp - 8], esp
push dword [ebp - 4]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
cmp dword [ebp - 8], esp
je 0x41380d
push 0x33
push 0x4047b7d
push 6
call fcn.0045f7e0
add esp, 0xc
jmp 0x413812
mov esp, ebp
pop ebp
ret 4
Function at 0x413fa1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push VariantClear
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x413fe9
mov eax, 0xd72ecb
push eax
push 1
mov ebx, 0x194
call fcn.00461eb0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jge 0x41400e
jmp 0x414196
push dword [ebp + 8]
call fcn.0040581c
mov dword [ebp - 8], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0xd763f8]
fstp qword [ebp - 0x28]
mov dword [ebp - 0x2c], esp
fld qword [ebp - 0x28]
call fcn.00402d09
push eax
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x414062
push 0x129
push 0x404865d
push 6
call fcn.0045f7e0
add esp, 0xc
mov dword [ebp - 0xc], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0xd763f8]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.00402d09
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x414167
fild dword [ebp - 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.00402d09
push eax
call fcn.00413f85
mov word [ebp - 0x14], ax
cmp word [ebp - 0x14], 0
jne 0x414105
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4140fb
push 0x222
push 0x404865d
push 6
call fcn.0045f7e0
add esp, 0xc
jmp 0x414167
cmp word [ebp - 0x14], 0x5c
jne 0x41414e
cmp dword [ebp - 0x18], 0
jle 0x41414b
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x41414b
push 0x2c3
push 0x404865d
push 6
call fcn.0045f7e0
add esp, 0xc
inc dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.0041419c
pop ebx
pop ecx
pop edx
add ecx, 2
jmp 0x41408b
add esp, 0xc
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x414196
push 0x374
push 0x404865d
push 6
call fcn.0045f7e0
add esp, 0xc
mov esp, ebp
pop ebp
ret 4
Function at 0x4611b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x461242
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x461234
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x46122c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4611f5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x461250
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x464880
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4648e9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00460ea0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x465aa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x465ac1
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x465b1b
inc edi
cmp edi, esi
jl 0x465ab5
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x465b50
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x465b0a
cmp byte [eax], bl
je 0x465b25
cmp byte [eax + 1], bl
je 0x465b2e
cmp byte [eax + 2], bl
je 0x465b38
cmp byte [eax + 3], bl
je 0x465b44
add eax, 4
cmp eax, edi
jb 0x465ae1
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x467550
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4675b6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4675b6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x467597
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x467940
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x467978
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4686b0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4686f9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x468b70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x481540
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00468720
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004687a0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004687a0
lea ecx, [esi + 0xc]
call fcn.0047942a
lea ecx, [esi + 0x10]
call fcn.0047942a
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00469d30
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00469d30
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00469d30
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0047949f
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047949f
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x479d54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x481940
call fcn.0046caa4
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0047f7dd
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x479d93
call fcn.0047f7dd
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x479da1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x479daf
or eax, 0xffffffff
jmp 0x479e97
mov ecx, esi
call fcn.00479cca
mov dword [ebp - 0x14], eax
call fcn.0047ad9d
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x479de6
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x479de6
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0047ad51
push dword [ebp - 0x14]
call fcn.0047a882
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00479a62
cmp eax, edi
je 0x479e59
test byte [esi + 0x24], 0x10
je 0x479e27
push 4
mov ecx, esi
pop ebx
call fcn.0047a282
test ah, 1
je 0x479e1f
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0047c8a8
cmp dword [esi + 0x1c], edi
je 0x479e59
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0047a2b6
jmp 0x479e59
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x479e6d
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x479e86
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x479e86
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00479d04
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x47c756
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 0x47c798
call fcn.0047f7dd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47c798
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47c78f
xor eax, eax
jmp 0x47c7a0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047c7a6
pop edi
pop esi
pop ebx
ret 4
Function at 0x47fdd3
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 0x47fe01
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47fe1f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047fd39
jmp 0x47fe1f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47fe1f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047fd39
test edi, edi
mov eax, edi
jne 0x47fe09
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x100f9511
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x100fdaa8]
add esi, 0x647
mov dword [0x100fdaa4], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x100f9545
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x100fb0bc]
mov dh, byte [eax + 0x100fb08d]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x100f9545
lea eax, [ebp - 0x24]
mov dword [0x100fdaa4], 0x16fa
mov dword [0x100fdaa8], 0xec7
mov dword [ebp - 0x34], eax
call fcn.100f9384
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.100f8ef4
mov dword [0x100fdaa4], 0x632
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x100f953d
mov eax, dword [ebp - 0x38]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x100fdaa4]
add ecx, 0xffffe677
mov dword [0x100fdaa4], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.100f99a6
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x44], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0xc], ecx
mov dword [0x100fdaa4], 0x828
add ecx, 0x1571
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x100f964e
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x100f966c
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov edx, dword [0x100fdaa4]
add edx, 0xffffda67
mov dword [0x100fdaa8], edx
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x100fdaa4], 0x2653
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
je 0x100f971a
jmp 0x100f9703
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x100f9745
jmp 0x100f97e6
mov dword [0x100fdaa8], 0xfffff470
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x100f979a
jmp 0x100f97e6
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], eax
jl 0x100f96b5
mov eax, dword [ebp - 0x24]
mov dword [0x100fdaa8], 0x2ce7
mov dword [0x100fdaa4], 0x711
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x28], eax
je 0x100f96cd
jmp 0x100f97e6
mov dword [0x100fdaa4], 0x1a80
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x100f97e6
mov dword [0x100fdaa4], 0x59b
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x100f97e6
mov dword [0x100fdaa4], 0x15f7
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x100f96e1
jmp 0x100f97e6
mov eax, 0x198e
mov ecx, 0x1f4c
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
mov di, word [edx + esi*2 - 0xe]
cmp di, 0x6c
sete bl
cmp di, 0x6c
mov byte [ebp - 0x29], bl
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
je 0x100f97cd
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [0x100fdaa4], eax
mov cl, byte [ebp - 0x29]
and cl, 1
movzx eax, cl
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret