joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47debd
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
call fcn.0047e1d9
test al, al
je 0x47df19
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0047dc97
test eax, eax
jne 0x47df19
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp + 0xc]
push eax
call fcn.0047ddc3
lea ecx, [ebp - 0x18]
call fcn.004640b5
test al, al
jne 0x47df19
lea ecx, [ebp - 0x18]
call fcn.004c680b
test al, al
jne 0x47df19
mov eax, dword [ebp + 8]
push esi
push edi
push 5
pop ecx
lea esi, [ebp - 0x18]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
jmp 0x47df79
cmp byte [ebp + 0xc], 2
jne 0x47df6e
push 0x100
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x47df6e
cmp word [eax + 8], 2
jne 0x47df6e
cmp word [eax + 0xa], 4
jne 0x47df6e
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x47df6e
push 0
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp + 8]
push eax
call fcn.004c6176
jmp 0x47df76
mov ecx, dword [ebp + 8]
call fcn.004c61dc
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 8

Function at 0x47e1d9
Capabilities:
Link many functions at runtime

Disassembly:
push ecx
cmp dword [0x763940], 0
push esi
jne 0x47e2e8
push str.Iphlpapi.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [0x763940], eax
test eax, eax
jne 0x47e203
xor al, al
jmp 0x47e2ea
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.GetAdaptersInfo
push eax
call esi
mov dword [0x763944], eax
test eax, eax
jne 0x47e22f
push dword [0x763940]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
and dword [0x763940], 0
jmp 0x47e1fc
push str.GetIfTable
push dword [0x763940]
call esi
mov dword [0x763948], eax
test eax, eax
je 0x47e21a
push str.GetIfEntry
push dword [0x763940]
call esi
mov dword [0x76394c], eax
test eax, eax
je 0x47e21a
push str.GetBestInterface
push dword [0x763940]
call esi
mov dword [0x763950], eax
test eax, eax
je 0x47e21a
push str.GetBestInterfaceEx
push dword [0x763940]
call esi
push str.GetIpAddrTable
push dword [0x763940]
mov dword [0x763954], eax
call esi
mov dword [0x763958], eax
test eax, eax
je 0x47e21a
push str.GetAdaptersAddresses
push dword [0x763940]
call esi
push 0x699c7c
push dword [0x763940]
mov dword [0x76395c], eax
call esi
push str.NotifyIpInterfaceChange
push dword [0x763940]
mov dword [0x763960], eax
call esi
mov dword [0x763964], eax
test eax, eax
je 0x47e2e8
lea ecx, [esp + 4]
push ecx
push 0
push 0x73f7d0
push 0x47e1cf
push 2
call eax
mov al, 1
pop esi
pop ecx
ret
Function at 0x47e4a9
Capabilities:
Get process image filename
List tcp connections and listeners

Disassembly:
sub esp, 0x234
push ebp
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 4], ebp
call fcn.0047e1d9
test al, al
jne 0x47e4de
mov eax, dword [esp + 0x23c]
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ebp
mov word [eax], cx
jmp 0x47e620
push esi
push edi
push 0x1c
pop esi
push esi
call fcn.0045d923
push ebp
push 4
push 2
mov edi, eax
mov dword [esp + 0x18], esi
push 1
lea eax, [esp + 0x1c]
push eax
push edi
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
cmp eax, 0x7a
jne 0x47e519
push 1
push edi
call fcn.0045d916
push dword [esp + 0xc]
call fcn.0045d923
mov edi, eax
xor eax, eax
push 0x206
mov word [esp + 0x3c], ax
lea eax, [esp + 0x3e]
push ebp
push eax
call fcn.00635a30
add esp, 0xc
lea eax, [esp + 0xc]
push ebp
push 4
push 2
push 1
push eax
push edi
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
test eax, eax
jne 0x47e5fe
push ebx
mov ebx, ebp
cmp dword [edi], ebp
jle 0x47e5fd
lea ebp, [edi + 0xc]
movzx eax, word [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [esp + 0x1c], eax
movzx eax, word [ebp]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x24c]
movzx esi, ax
mov eax, dword [ebp + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 4]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x28]
push eax
call fcn.0047671c
movzx eax, word [eax + 0x10]
cmp esi, eax
jne 0x47e5c5
mov ecx, dword [esp + 0x24c]
call fcn.00476996
cmp eax, dword [esp + 0x1c]
jne 0x47e5c5
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x14], eax
je 0x47e5cf
inc ebx
add ebp, 0x18
cmp ebx, dword [edi]
jl 0x47e55b
jmp 0x47e5fd
push dword [esp + 0x18]
push 0
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x47e5fd
push 0x104
lea eax, [esp + 0x40]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebx
push 1
push edi
call fcn.0045d916
mov ecx, dword [esp + 0x244]
lea eax, [esp + 0x38]
push eax
call fcn.004249e7
mov eax, dword [esp + 0x244]
pop edi
pop esi
pop ebp
add esp, 0x234
ret 8
Function at 0x47e712
Capabilities:
Create directory

Disassembly:
mov eax, 0x66ebe8
call fcn.006313fc
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x68]
push ebx
call fcn.0047e9e2
test al, al
je 0x47e901
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x34], eax
jbe 0x47e8fc
lea ecx, [ebx + 0x24]
push eax
call fcn.004f47a5
mov ebp, eax
cmp dword [ebp + 0x14], 0x10
jb 0x47e758
mov ebp, dword [ebp]
push ebp
lea eax, [esp + 0x1c]
push eax
call fcn.0047a1e1
and dword [esp + 0x68], 0
xor edx, edx
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
test edi, edi
je 0x47e7b3
push 0x2f
pop ebx
mov esi, ecx
cmp eax, 8
jae 0x47e788
lea esi, [esp + 0x18]
cmp bx, word [esi + edx*2]
jne 0x47e7aa
cmp eax, 8
jae 0x47e797
lea ecx, [esp + 0x18]
push 0x5c
pop eax
mov word [ecx + edx*2], ax
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
inc edx
cmp edx, edi
jb 0x47e77d
mov ebx, dword [esp + 0x74]
cmp eax, 8
jae 0x47e7bc
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x78]
cmp dword [eax + 0x14], 8
jb 0x47e7c8
mov eax, dword [eax]
push ecx
push eax
lea eax, [esp + 0x38]
push 0x68f938
push eax
call fcn.0047224d
add esp, 0x10
mov esi, ebp
mov byte [esp + 0x68], 1
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x47e7e6
push 0x2f
pop eax
push eax
push ebp
sub esi, ecx
call fcn.00632780
pop ecx
pop ecx
mov ecx, eax
lea eax, [esi - 1]
sub ecx, ebp
cmp ecx, eax
mov eax, dword [esp + 0x30]
jne 0x47e823
cmp dword [esp + 0x44], 8
jae 0x47e815
lea eax, [esp + 0x30]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jmp 0x47e8c8
cmp dword [esp + 0x44], 8
jae 0x47e82e
lea eax, [esp + 0x30]
mov edi, 0x80
push edi
push 7
push eax
call fcn.0045eeaa
mov esi, eax
cmp esi, 0xffffffff
jne 0x47e872
push 0
lea eax, [esp + 0x34]
push eax
call fcn.0045df1f
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x47e85e
lea eax, [esp + 0x30]
push edi
push 7
push eax
call fcn.0045eeaa
mov esi, eax
cmp esi, 0xffffffff
je 0x47e926
push ebp
lea eax, [esp + 0x4c]
push eax
call fcn.0047a1e1
cmp dword [eax + 0x14], 8
mov byte [esp + 0x68], 2
jb 0x47e88a
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
push ebx
call fcn.0047ed14
push 0
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 1
mov edi, eax
call fcn.0042341c
push dword [esp + 0x14]
push edi
push esi
call fcn.0045f311
test eax, eax
jne 0x47e911
push 1
push edi
call fcn.0045d916
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0
push 1
lea ecx, [esp + 0x38]
call fcn.0042341c
or dword [esp + 0x68], 0xffffffff
lea ecx, [esp + 0x18]
push 0
push 1
call fcn.0042341c
mov eax, dword [esp + 0x10]
lea ecx, [ebx + 0x24]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [ebx + 0x34]
jb 0x47e747
mov al, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x54]
pop ebx
mov dword fs:[0], ecx
leave
ret 8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
push edi
call fcn.0045d916
push 0
push 1
lea ecx, [esp + 0x38]
call fcn.0042341c
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.0042341c
xor al, al
jmp 0x47e8fe
Function at 0x4814fd
Capabilities:
Delete file

Disassembly:
mov eax, 0x66ef70
call fcn.006313fc
sub esp, 0x34
mov eax, dword [0x7639a8]
push esi
mov esi, dword [eax]
mov dword [ebp - 0x10], esi
cmp esi, eax
je 0x4815bf
mov eax, dword [esi + 0x28]
add eax, 0x68
cmp dword [eax + 0x14], 8
jb 0x48152b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0046e883
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x28]
and dword [ebp - 4], 0
add eax, 0xcc
push eax
call fcn.00422efb
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
je 0x481567
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x481560
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [esi + 0x28]
cmp dword [eax + 0x78], 0
je 0x481582
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x48157c
lea eax, [ebp - 0x40]
push eax
call fcn.0045e704
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x28]
push 0
push 1
mov dword [eax + 0x64], 4
call fcn.0042341c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.0042341c
lea ecx, [ebp - 0x10]
call fcn.0045d8b6
mov esi, dword [ebp - 0x10]
cmp esi, dword [0x7639a8]
jne 0x48151d
cmp byte [ebp + 8], 0
pop esi
jne 0x4815cb
call fcn.004703fb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4817a4
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x7637b6], 0
je 0x4817b4
mov eax, 0x80004005
jmp 0x4817e9
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov ecx, esi
sub ecx, 0
je 0x4817e6
dec ecx
dec ecx
je 0x4817e6
push dword [esp + 0xc]
push esi
push str.RegKey::DeleteKey_fail___d_:__s_n
call fcn.004790ad
add esp, 0xc
mov eax, esi
jmp 0x4817e8
xor eax, eax
pop esi
ret 8

Function at 0x4817ec
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x7637b6], 0
je 0x4817f9
xor al, al
jmp 0x481828
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, eax
sub ecx, 0
je 0x481826
dec ecx
dec ecx
je 0x481826
push dword [esp + 8]
push eax
push str.RegKey::DeleteTree_fail___d_:__s_n
call fcn.004790ad
add esp, 0xc
jmp 0x4817f5
mov al, 1
ret 8

Function at 0x48182b
Capabilities:
Delete registry value

Disassembly:
cmp byte [0x7637b6], 0
jne 0x48185b
push dword [esp + 4]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x48185b
cmp eax, 2
je 0x48185b
push eax
push dword [esp + 8]
push str.RegKey:_Could_not_delete_value__s:__d_n
call fcn.004790ad
add esp, 0xc
ret 4
Function at 0x48185e
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x66f10a
call fcn.006313fc
sub esp, 0x214
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ebx, 0x104
mov dword [esp + 0x18], ebp
mov edi, ecx
push 0x208
mov dword [esp + 0x230], ebp
mov dword [esp + 0x18], ebx
call fcn.0061c0ee
pop ecx
mov esi, eax
mov dword [esp + 0x10], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [esp + 0x10]
push eax
push esi
push ebp
push ebp
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x254]
push dword [edi]
call ebx
mov ebp, eax
cmp ebp, 0xea
jne 0x481910
push esi
call fcn.006341e9
mov eax, dword [esp + 0x14]
xor ecx, ecx
inc eax
push 2
pop edx
mov dword [esp + 0x14], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0061c0ee
pop ecx
pop ecx
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x254]
push dword [edi]
call ebx
mov ebp, eax
mov edi, dword [esp + 0x238]
mov ecx, edi
push 0x689954
call fcn.004249e7
push 0x689954
lea ecx, [edi + 0x18]
mov dword [esp + 0x230], 1
call fcn.004249e7
and dword [esp + 0x22c], 0
mov dword [esp + 0x18], 1
test ebp, ebp
jne 0x48197e
lea eax, [esp + 0x1c]
push eax
call fcn.004236bc
pop ecx
push eax
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.00434a57
cmp dword [esp + 0x10], ebp
je 0x48197e
push esi
call fcn.004236bc
pop ecx
push eax
push esi
lea ecx, [edi + 0x18]
call fcn.00434a57
push esi
call fcn.006341e9
pop ecx
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x481a35
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 4], eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0x14]
push eax
push esi
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, dword [ebp + 0x10]
jne 0x481a66
cmp dword [ebp + 0x14], eax
jne 0x481a66
inc esi
cmp eax, 1
jne 0x481a76
xor eax, eax
cmp dword [ebp + 0x14], 2
sete al
or esi, eax
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x481a82
mov eax, dword [ebp - 4]
mov dword [ecx], eax
test esi, esi
pop esi
setne al
mov esp, ebp
pop ebp
ret 0x14

Function at 0x481f4a
Capabilities:
Set registry value

Disassembly:
cmp byte [0x7637b6], 0
jne 0x481f84
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x481f84
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
push str.RegKey:_Could_not_write_DWORD_valuename__s_value__d__Error__d_n
call fcn.004790ad
add esp, 0x10
ret 8

Function at 0x481f87
Capabilities:
Set registry value

Disassembly:
cmp byte [0x7637b6], 0
je 0x481f95
or eax, 0xffffffff
jmp 0x481faf
push dword [esp + 0x10]
push dword [esp + 0xc]
push dword [esp + 0x14]
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0x10
Function at 0x484310
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x66d0c2
call fcn.006313fc
push ecx
cmp byte [0x7639c5], 0
je 0x48432b
mov al, 1
jmp 0x4843b7
push esi
push edi
xor edi, edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp byte [0x7639c5], 0
jne 0x4843b3
push 0x10
mov dword [0x7639c0], esi
call fcn.00630af1
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x48436d
mov ecx, eax
call fcn.00483a1f
jmp 0x48436f
mov eax, edi
or dword [ebp - 4], 0xffffffff
cmp dword [0x7639b8], 0
mov dword [0x7639b4], eax
je 0x484385
xor al, al
jmp 0x4843b5
add eax, 8
push eax
push edi
push edi
push 0x483c04
push edi
push edi
push str.BenchThread::BenchThreadRunner
call fcn.00466e60
mov ecx, dword [0x7639b4]
push esi
mov byte [0x7639c5], 1
mov dword [ecx + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x48a34f
Capabilities:
Create directory

Disassembly:
mov eax, 0x66fbf3
call fcn.006313fc
sub esp, 0x20
push ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.00480515
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
cmp dword [ebp - 0x18], 8
mov dword [ebp - 4], ebx
jae 0x48a377
lea eax, [ebp - 0x2c]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
sub esp, 0x18
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00422efb
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x764364
call fcn.00425373
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0048543f
push 0x7640e4
call fcn.0048be40
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0042341c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x491a07
Capabilities:
Get disk information

Disassembly:
mov eax, 0x6700e0
call fcn.006313fc
sub esp, 0x174
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x190]
push edi
lea ebx, [ebp + 4]
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esp + 0x198]
test eax, eax
je 0x491a3b
mov byte [eax], 0
push 0x69229c
push 0x69cc30
call fcn.004617d7
mov ecx, eax
or eax, 0xffffffff
test ecx, ecx
je 0x491a6f
lea eax, [esp + 0x14]
push eax
call ecx
test eax, eax
jne 0x491a6f
mov eax, dword [esp + 0x1e]
mov dword [ebx], eax
mov ax, word [esp + 0x22]
mov word [ebx + 4], ax
jmp 0x491a7c
push eax
push str.Cant_create_UUID____d
call fcn.00479036
pop ecx
pop ecx
push esi
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push ecx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [ebp + 0xa]
push eax
push ecx
push ecx
push 0x69cc54
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
lea ecx, [esp + 0x110]
call fcn.0046638e
and dword [esp + 0x18c], 0
lea ecx, [esp + 0x110]
push 0xe
push ebp
call fcn.0046632a
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.0046638e
push 0xa
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x194], 1
call fcn.0046632a
cmp ebx, eax
je 0x491aeb
push 5
pop ecx
mov esi, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x9c]
call fcn.0046638e
push 4
push ebp
lea ecx, [esp + 0xa4]
mov byte [esp + 0x194], 2
call fcn.0046632a
xor edx, edx
pop esi
mov ecx, dword [edx + eax]
add dword [ebx + edx], ecx
add edx, 4
cmp edx, 0x14
jne 0x491b11
lea ecx, [esp + 0x98]
mov byte [esp + 0x188], 1
call fcn.00409edb
lea ecx, [esp + 0x24]
mov byte [esp + 0x188], 0
call fcn.00409edb
or dword [esp + 0x188], 0xffffffff
lea ecx, [esp + 0x10c]
call fcn.00409edb
mov ecx, dword [esp + 0x180]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4922a7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x670161
call fcn.006313fc
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov byte [esp + 0x14], 0x3f
push 1
xor ebp, ebp
mov byte [esp + 0x14], 0x3f
push ebp
lea eax, [esp + 0x18]
lea esi, [edi + 0x78]
push eax
mov ecx, esi
call fcn.00435670
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x49230c
push 1
push ebp
lea eax, [esp + 0x18]
mov byte [esp + 0x1c], 0x23
push eax
mov ecx, esi
mov byte [esp + 0x1c], 0x23
call fcn.00435670
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x49230c
push esi
lea ecx, [edi + 0x48]
call fcn.00422f82
xor ebx, ebx
jmp 0x49235b
push ebx
push ebp
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call fcn.0043d015
push eax
lea ecx, [edi + 0x48]
call fcn.00409822
push ebp
push 1
lea ecx, [esp + 0x38]
call fcn.0040a0e9
push 0xffffffffffffffff
lea eax, [ebx + 1]
mov ecx, esi
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0043d015
push eax
lea ecx, [edi + 0x90]
call fcn.00409822
xor ebx, ebx
lea ecx, [esp + 0x30]
push ebx
push 1
call fcn.0040a0e9
lea ebp, [edi + 0x18]
push ebp
lea ecx, [esp + 0x1c]
call fcn.0040a0c6
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
mov dword [esp + 0x80], ebx
jae 0x49237e
lea eax, [esp + 0x18]
push dword [esp + 0x14]
push eax
call fcn.00478a5e
mov esi, eax
test esi, esi
je 0x4923a3
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [esp + 0x18]
jae 0x49239d
lea ecx, [esp + 0x18]
mov eax, esi
sub eax, ecx
jmp 0x4923a6
or eax, 0xffffffff
push eax
push ebx
lea eax, [esp + 0x20]
mov dword [esp + 0x4c], 0xf
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.0040a034
lea eax, [esp + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00409822
push ebx
push 1
lea ecx, [esp + 0x38]
call fcn.0040a0e9
test esi, esi
je 0x49245e
push 0x26
push esi
call fcn.00478a5e
push 0x3d
push esi
mov dword [esp + 0x1c], eax
call fcn.00478a5e
mov ebx, eax
test ebx, ebx
je 0x49245c
push esi
call fcn.00468509
push ebx
call fcn.00468509
push esi
lea ecx, [esp + 0x4c]
call fcn.00409ba7
push ebx
lea eax, [esp + 0x64]
mov byte [esp + 0x84], 1
push eax
call fcn.004627fd
lea eax, [esp + 0x48]
mov byte [esp + 0x80], 2
push eax
lea ecx, [edi + 0xf8]
call fcn.00487c86
xor ebx, ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x80], bl
call fcn.004884de
mov eax, dword [esp + 0x14]
mov esi, eax
test eax, eax
jne 0x4923e3
jmp 0x49245e
xor ebx, ebx
push 1
push ebx
lea eax, [esp + 0x18]
mov byte [esp + 0x18], 0x23
push eax
mov ecx, ebp
call fcn.00435670
cmp eax, 0xffffffff
je 0x49249e
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x50]
mov ecx, ebp
push eax
call fcn.0043d015
push eax
lea ecx, [edi + 0x10c]
call fcn.00409822
push ebx
push 1
lea ecx, [esp + 0x50]
call fcn.0040a0e9
push ebx
push 1
lea ecx, [esp + 0x20]
call fcn.0040a0e9
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x49825a
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push 0x6c078965
push dword [esp + 0xc]
or dword [esi + 0x1384], 0xffffffff
call fcn.004b7a41
mov eax, esi
pop esi
ret 4
Function at 0x498706
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x6703b2
call fcn.006313fc
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push esi
mov dword [ebp - 0x10], edi
call fcn.00422efb
and dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00422efb
mov eax, dword [esi + 0x30]
lea ecx, [edi + 0x5c]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [edi + 0x40], eax
mov eax, dword [esi + 0x44]
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x48]
mov dword [edi + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [edi + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [edi + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [edi + 0x54], eax
mov al, byte [esi + 0x58]
mov byte [edi + 0x58], al
mov al, byte [esi + 0x59]
mov byte [edi + 0x59], al
mov al, byte [esi + 0x5a]
mov byte [edi + 0x5a], al
lea eax, [esi + 0x5c]
push eax
mov byte [ebp - 4], 1
call fcn.00422efb
mov eax, dword [esi + 0x74]
mov dword [edi + 0x74], eax
mov eax, dword [esi + 0x78]
mov dword [edi + 0x78], eax
mov eax, dword [esi + 0x7c]
mov dword [edi + 0x7c], eax
mov eax, dword [esi + 0x80]
mov dword [edi + 0x80], eax
mov eax, dword [esi + 0x84]
mov dword [edi + 0x84], eax
mov al, byte [edi + 0x88]
xor al, byte [esi + 0x88]
and al, 1
mov byte [ebp - 4], 2
xor byte [edi + 0x88], al
mov al, byte [edi + 0x88]
mov cl, byte [esi + 0x88]
xor cl, al
and cl, 2
xor cl, al
mov byte [edi + 0x88], cl
mov al, byte [esi + 0x88]
xor al, cl
and al, 4
xor al, cl
mov byte [edi + 0x88], al
mov cl, byte [esi + 0x88]
xor cl, al
and cl, 8
xor cl, al
mov byte [edi + 0x88], cl
mov al, byte [esi + 0x88]
xor al, cl
and al, 0x10
xor al, cl
mov byte [edi + 0x88], al
lea ecx, [edi + 0xa0]
mov eax, dword [esi + 0x8c]
mov dword [edi + 0x8c], eax
mov eax, dword [esi + 0x90]
mov dword [edi + 0x90], eax
mov eax, dword [esi + 0x94]
mov dword [edi + 0x94], eax
mov eax, dword [esi + 0x98]
mov dword [edi + 0x98], eax
mov eax, dword [esi + 0x9c]
mov dword [edi + 0x9c], eax
lea eax, [esi + 0xa0]
push eax
call fcn.0040a0c6
lea eax, [esi + 0xb8]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0xb8]
call fcn.0040a0c6
mov al, byte [esi + 0xd0]
mov ecx, dword [ebp - 0xc]
mov byte [edi + 0xd0], al
mov eax, dword [esi + 0xd4]
mov dword [edi + 0xd4], eax
mov eax, dword [esi + 0xd8]
mov dword [edi + 0xd8], eax
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4