joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001da89
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x18
mov eax, dword [0x1002c00c]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x14], edi
lea eax, [edi + 0x2d58]
push eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
xor esi, esi
push esi
mov dword [edi + 0x2d4c], esi
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
push 0x26
push ebx
mov dword [esp + 0x18], ebx
call ebp
xor ecx, ecx
shr eax, 8
inc ecx
and eax, ecx
cmp dword [sym.imp.USER32.dll_UpdateLayeredWindow], esi
je 0x1001daea
test eax, eax
jne 0x1001daea
mov dword [edi + 0x2d4c], ecx
mov dword [edi + 0x2894], 4
cmp dword [edi + 0x2d4c], esi
je 0x1001db28
push 0xff000000
push 0xff
push 0xff00
push 0xff0000
push edi
call fcn.100181a4
mov dword [edi + 0x34], 1
mov dword [edi + 0x2898], esi
jmp 0x1001dbd6
mov dword [edi + 0x2898], ecx
test eax, eax
je 0x1001dbbc
push 0x6a
push ebx
call ebp
push 0x68
push ebx
mov esi, eax
call ebp
mov ebx, eax
sub ebx, esi
xor esi, esi
push esi
push esi
push esi
push esi
push edi
call fcn.100181a4
add esp, 0x14
mov eax, esi
test ebx, ebx
jle 0x1001db6b
lea ecx, [edi + 0x2934]
mov dword [ecx], eax
inc eax
lea ecx, [ecx + 4]
cmp eax, ebx
jl 0x1001db61
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.1001bf02
lea esi, [edi + 0x2934]
mov ebp, eax
push esi
lea ebx, [edi + 0x44]
add edi, 0x2494
push ebx
lea eax, [esp + 0x28]
push edi
push eax
call fcn.1001ba6e
mov eax, dword [esp + 0x2c]
add esp, 0x18
mov dword [eax + 0x40], esi
xor esi, esi
mov dword [eax + 0x38], ebx
mov ebx, dword [esp + 0x10]
mov dword [eax + 0x20], 1
mov dword [eax + 0x2c], edi
mov dword [eax + 0x3c], ebp
mov dword [eax + 0x2d54], esi
jmp 0x1001dbd9
push 0xff000000
push 0xff
push 0xff00
push 0xff0000
push edi
call fcn.100181a4
add esp, 0x14
push ebx
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
push str.JAVA2D_DPIAWARE
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
jne 0x1001dc0d
call fcn.100181a4
movss xmm0, dword [0x10027834]
fstp dword [esp]
comiss xmm0, dword [esp]
ja 0x1001dc1f
jmp 0x1001dc40
push eax
push str.true
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x1001dc40
push str.user32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
je 0x1001dc40
push str.SetProcessDPIAware
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x1001dc40
call eax
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10020582
add esp, 0x18
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x408b8e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x408b9d
pop dword [ebp - 0x2c]
mov eax, 0x62ee3538
add eax, 0x9d525665
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3cec4
push 0
mov eax, 0x31d36694
sub eax, 0x319285bc
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x56de
mov esi, eax
mov edx, 0x7fbf0339
add edx, 0x8082388b
add edx, dword [ebp - 0x2c]
mov edi, 0x47cf6c51
mov dword [ebp - 0x10], 0x98481d47
mov ebx, dword [edx]
add dword [ebp - 0x1c], 0xba2833fe
xor ebx, edi
mov dword [ebp - 4], 0xffbe5adf
mov dword [esi], ebx
add esi, 0xca83254b
add esi, 0x357cdab9
add edx, 4
loop 0x408bf0
add eax, 0x14e4b
mov ebx, eax
add eax, 0xdb628150
sub eax, 0xdb62814b
mov ecx, 0xd7979ea5
sub ecx, 0xd7579ea5
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x40324c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
cmp dword [0x405770], ebx
jne 0x40327a
push fcn.00403219
push 0x10
push 0x148
call fcn.0040345c
mov dword [0x405770], eax
mov esi, dword [ebp + 0xc]
cmp esi, ebx
jne 0x403286
mov esi, section..rdata
push 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call sub.MSVCRT.dll_strncpy
push esi
mov byte [ebp - 4], bl
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp eax, ebx
je 0x4032c2
cmp byte [eax + esi - 1], 0x5c
je 0x4032c2
lea eax, [ebp - 0x108]
push 0x404014
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4032cd
cmp byte [eax], bl
jne 0x4032d2
mov eax, 0x404018
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push dword [ebp + 8]
push dword [0x405770]
call fcn.00403397
mov esi, eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x40330e
mov dword [esi + 4], ebx
jmp 0x403320
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x403324
mov dword [esi + 4], 1
mov edi, esi
jmp 0x403338
cmp dword [ebp + 8], 0xffffffff
jne 0x403336
push esi
push dword [0x405770]
call fcn.00403426
mov dword [esi], ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x403386
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x403394
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 8

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0xc]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 4], 0xe8
call ebx
mov eax, dword [ebp - 0xc]
mov cl, byte [ebp - 4]
lea edx, [ebp - 8]
push edx
push eax
push 1
push esi
mov byte [esi], cl
call ebx
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
push ecx
push 0x40
sub edi, esi
push 4
inc esi
push esi
sub edi, 5
call ebx
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
push edx
push eax
push 4
push esi
mov dword [esi], edi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10001060
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0xc]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 4], 0xe9
call ebx
mov eax, dword [ebp - 0xc]
mov cl, byte [ebp - 4]
lea edx, [ebp - 8]
push edx
push eax
push 1
push esi
mov byte [esi], cl
call ebx
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
push ecx
push 0x40
sub edi, esi
push 4
inc esi
push esi
sub edi, 5
call ebx
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
push edx
push eax
push 4
push esi
mov dword [esi], edi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402290
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x40c
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x41c]
push edi
push str.SETUPAPI.DLL
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x402301
push str.SetupUninstallOEMInfA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
je 0x4022fa
mov eax, dword [esp + 0x424]
push 0
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
call ebp
test eax, eax
je 0x4022ee
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40238c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call edi
test eax, eax
je 0x40238c
push 0x100
lea ecx, [esp + 0x31c]
push ecx
push 0x100
lea edx, [esp + 0x224]
push edx
push 0x100
lea eax, [esp + 0x28]
push eax
push 3
lea ecx, [esp + 0x2c]
push ecx
push esi
call fcn.00440e5b
push str..PNF
lea edx, [esp + 0x240]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x40]
push ecx
push str._s_s_s_s
lea edx, [esp + 0x14c]
push 0x104
push edx
call fcn.00408330
add esp, 0x40
lea eax, [esp + 0x114]
push eax
call edi
test eax, eax
je 0x40238c
mov bl, 1
mov ecx, dword [esp + 0x418]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.004404d4
add esp, 0x40c
ret
Function at 0x4060e0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x34c
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
push esi
mov esi, dword [esp + 0x358]
push edi
mov edi, dword [esp + 0x360]
push esi
push str._s.INF
lea eax, [esp + 0x258]
push 0x104
push eax
call fcn.00408330
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406199
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 0x3c]
push eax
push esi
push str._s_s
lea ecx, [esp + 0x15c]
push 0x104
push ecx
call fcn.00408330
lea edx, [esp + 0x164]
push edi
push edx
call fcn.00405930
add esp, 0x1c
test al, al
je 0x406185
lea eax, [esp + 0x150]
push 1
push eax
call fcn.00402290
add esp, 8
lea ecx, [esp + 0x10]
push ecx
push ebx
call ebp
test eax, eax
jne 0x406141
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov ecx, dword [esp + 0x354]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.004404d4
add esp, 0x34c
ret

Function at 0x4061c0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x2b0
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x2ac], eax
mov eax, dword [str.INFOTHER]
mov ecx, dword [0x462998]
mov dx, word [0x46299c]
push esi
mov esi, dword [esp + 0x2b8]
mov dword [esp + 0x9c], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 8], 0x464e49
mov dword [esp + 0xa4], ecx
mov word [esp + 0xa8], dx
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40623b
xor al, al
pop esi
mov ecx, dword [esp + 0x2ac]
xor ecx, esp
call fcn.004404d4
add esp, 0x2b0
ret
push 0x104
lea ecx, [esp + 0x1b0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x40630b
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x1b0]
push eax
push str._s_s
lea ecx, [esp + 0xb4]
push 0x104
push ecx
call fcn.00408330
lea edx, [esp + 0xbc]
push esi
push edx
call fcn.004060e0
add esp, 0x1c
test al, al
je 0x406223
cmp dword [esp + 0x18], 1
jne 0x40630b
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x1b0]
push ecx
push str._s_s
lea edx, [esp + 0xb4]
push 0x104
push edx
call fcn.00408330
lea eax, [esp + 0xbc]
push esi
push eax
call fcn.004060e0
add esp, 0x1c
test al, al
je 0x406223
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x1b0]
push edx
push str._s_sDRVIDX.BIN
lea eax, [esp + 0xb4]
push 0x104
push eax
call fcn.00408330
add esp, 0x14
lea ecx, [esp + 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x2b0]
pop esi
xor ecx, esp
mov al, 1
call fcn.004404d4
add esp, 0x2b0
ret
Function at 0x406b10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45c281
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4762c4]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x6c]
push eax
xor ebx, ebx
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [esp + 0x68]
push ecx
call edi
lea eax, [esp + 0x68]
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x406b74
sub eax, ebp
push eax
lea edx, [esp + 0x6c]
push edx
lea ecx, [esi + 0xf4]
call fcn.00402d40
lea eax, [esp + 0x16c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x16c]
push ecx
call edi
mov ebp, 0xf
lea eax, [esp + 0x16c]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x406bc8
sub eax, edi
push eax
lea edx, [esp + 0x170]
push edx
lea ecx, [esp + 0x1c]
call fcn.00402d40
push 0x462a84
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x288], ebx
call fcn.00406a50
push str._ESINST_TEMP
push eax
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x294], 1
call fcn.00406a50
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x110]
mov byte [esp + 0x288], 2
call fcn.00402c60
mov edi, 0x10
cmp dword [esp + 0x64], edi
jb 0x406c4a
mov eax, dword [esp + 0x50]
push eax
call fcn.0042f877
add esp, 4
cmp dword [esp + 0x48], edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jb 0x406c69
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0042f877
add esp, 4
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x406c88
mov edx, dword [esp + 0x18]
push edx
call fcn.0042f877
add esp, 4
cmp dword [esi + 0x108], ebx
je 0x406c9c
cmp dword [esi + 0x124], ebx
je 0x406c9c
mov al, 1
jmp 0x406c9e
xor al, al
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004404d4
add esp, 0x26c
ret
Function at 0x407d80
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x44
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x40], eax
cmp dword [0x477a54], 1
mov eax, dword [esp + 0x48]
push esi
mov esi, dword [esp + 0x50]
push eax
push 0x40
jne 0x407dce
cmp byte [0x477a60], 0
je 0x407dbd
lea eax, [esp + 0xc]
push eax
push 0x462a70
push str.NTx64_Ver
jmp 0x407ddd
lea ecx, [esp + 0xc]
push ecx
push 0x462a70
push str.NT_Ver
jmp 0x407ddd
lea edx, [esp + 0xc]
push edx
push 0x462a70
push str.9X_Ver
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x407e50
mov eax, dword [0x477a54]
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov cl, byte [0x477a60]
lea edx, [esp + 4]
push 0x462b80
push edx
mov byte [esi + 0xc], cl
call fcn.00442295
add esp, 8
test eax, eax
je 0x407e50
push 0xa
push 0
push eax
call fcn.0044226b
push 0x462b7c
push 0
mov dword [esi + 4], eax
call fcn.00442295
add esp, 0x14
test eax, eax
je 0x407e50
push 0xa
push 0
push eax
call fcn.0044226b
add esp, 0xc
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x44]
pop esi
xor ecx, esp
mov al, 1
call fcn.004404d4
add esp, 0x44
ret 8

Function at 0x407e70
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x11c]
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x124]
push 0
push edi
push esi
mov dword [esp + 0x1c], eax
call ebp
test eax, eax
jne 0x407f36
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x407eca
mov eax, 7
jmp 0x407f3f
cmp eax, 0x20
jne 0x407f3a
lea ecx, [esp + 0x14]
push ecx
push 0
push str._ESTMP
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x407f0f
push 0
lea edx, [esp + 0x18]
push edx
push esi
call ebp
test eax, eax
je 0x407f3a
cmp dword [0x477a54], 0
jne 0x407f16
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0042e2f0
add esp, 8
test al, al
jne 0x407f2f
mov eax, 8
jmp 0x407f3f
push 5
push edi
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x407f2f
mov eax, 8
jmp 0x407f3f
mov edx, dword [esp + 0x10]
mov byte [edx], 1
xor eax, eax
jmp 0x407f3f
mov eax, 9
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004404d4
add esp, 0x10c
ret 0x10
Function at 0x408cb0
Capabilities:
Create process on windows
Get common file path
Get file version info

Disassembly:
sub esp, 0x374
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x370], eax
push ebx
push 0x104
lea eax, [esp + 0x170]
push eax
mov byte [esp + 0xf], 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x408e36
push ebp
push esi
push edi
push str.HHCTRL.OCX
lea ecx, [esp + 0x17c]
push ecx
push str._s_s
lea edx, [esp + 0x80]
push 0x104
push edx
call fcn.00408330
add esp, 0x14
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x78]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, eax
push edi
push 8
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x408e19
push esi
push edi
push 0
lea edx, [esp + 0x80]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x408d7e
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x462a84
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x14]
cmp dword [eax + 8], 0x4004a
jae 0x408d80
cmp dword [eax + 0xc], 0x22ab0000
jae 0x408d80
mov bl, 1
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test bl, bl
je 0x408e19
cmp dword [0x477abc], 0x10
mov eax, dword [0x477aa8]
jae 0x408da7
mov eax, 0x477aa8
push str.LIBHHUPD.EXE__Q
push eax
push str._s_s
lea edx, [esp + 0x288]
push 0x104
push edx
call fcn.00408330
push 0x40
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.00440b70
add esp, 0x20
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x29c]
push eax
push 0
mov dword [esp + 0x58], 0x44
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov al, 1
jne 0x408e1d
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x370]
xor ecx, esp
call fcn.004404d4
add esp, 0x374
ret
mov ecx, dword [esp + 0x374]
pop ebx
xor ecx, esp
xor al, al
call fcn.004404d4
add esp, 0x374
ret
Function at 0x40b640
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x254
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x250], eax
cmp dword [0x477ab8], 0
push esi
mov esi, dword [esp + 0x25c]
push edi
mov edi, ecx
mov dword [esp + 0xc], esi
jne 0x40b673
xor al, al
jmp 0x40b7c5
cmp dword [0x477abc], 0x10
mov eax, dword [0x477aa8]
jae 0x40b686
mov eax, 0x477aa8
push 0x462c80
push 0x462c5c
push eax
push str._s_s_s
lea eax, [esp + 0x164]
push 0x104
push eax
call fcn.00408330
add esp, 0x18
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
je 0x40b7ab
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push ebp
test byte [esp + 0x1c], 0x10
je 0x40b786
push 0x462c70
lea eax, [esp + 0x4c]
push eax
call ebx
test eax, eax
je 0x40b786
push 0x462c6c
lea ecx, [esp + 0x4c]
push ecx
call ebx
test eax, eax
je 0x40b786
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jne 0x40b786
push 0x10
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.0044226b
movzx ebp, ax
add esp, 0xc
mov dword [esp + 0x18], ebp
xor esi, esi
mov ecx, dword [edi + 0x8f8]
test ecx, ecx
je 0x40b770
mov eax, dword [edi + 0x8fc]
sub eax, ecx
sar eax, 1
cmp esi, eax
jae 0x40b770
test ecx, ecx
je 0x40b75a
mov eax, dword [edi + 0x8fc]
sub eax, ecx
sar eax, 1
cmp esi, eax
jb 0x40b75f
call fcn.00440a4f
mov ecx, dword [edi + 0x8f8]
cmp bp, word [ecx + esi*2]
je 0x40b786
add esi, 1
jmp 0x40b730
test bp, bp
je 0x40b786
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
add ecx, 4
call fcn.0040b220
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b6d3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x14]
pop ebp
pop ebx
mov eax, dword [esi + 8]
test eax, eax
je 0x40b66c
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 1
je 0x40b66c
mov al, 1
mov ecx, dword [esp + 0x258]
pop edi
pop esi
xor ecx, esp
call fcn.004404d4
add esp, 0x254
ret 4
Function at 0x40b7e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 8]
cmp dword [edi + 4], esi
mov dword [esp + 0x10], eax
jbe 0x40b814
call fcn.00440a4f
mov ebx, dword [edi + 4]
cmp ebx, dword [edi + 8]
jbe 0x40b821
call fcn.00440a4f
push esi
push edi
push ebx
push edi
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.00409b40
mov edx, dword [esp + 0x10]
push edx
push 0x100
lea eax, [esp + 0x28]
push eax
push 0
push 0
push str.LanguageMapping
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40b94a
xor ebx, ebx
cmp byte [esp + 0x20], bl
je 0x40b94a
lea esi, [esp + 0x20]
jmp 0x40b870
lea eax, [esp + 0x18]
mov ecx, eax
mov edx, 8
sub esi, ecx
lea ecx, [ecx]
lea ecx, [edx + 0x7ffffff6]
test ecx, ecx
je 0x40b89d
mov cl, byte [esi + eax]
test cl, cl
je 0x40b89d
mov byte [eax], cl
add eax, 1
sub edx, 1
jne 0x40b880
jmp 0x40b8a1
test edx, edx
jne 0x40b8a4
sub eax, 1
mov edx, dword [esp + 0x10]
push edx
push 0x100
mov byte [eax], 0
lea eax, [esp + 0x128]
push eax
push 0
lea ecx, [esp + 0x28]
push ecx
push str.LanguageMapping
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40b92c
lea edx, [esp + 0x120]
push 0x462c84
push edx
call fcn.00441f82
add esp, 8
test eax, eax
je 0x40b92c
push 0x10
push 0
push eax
call fcn.0044226b
push 0x10
mov word [esp + 0x24], ax
lea eax, [esp + 0x28]
push 0
push eax
call fcn.0044226b
add esp, 0x18
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
mov word [esp + 0x1a], ax
call fcn.0040b290
push 0x462c84
push 0
call fcn.00441f82
add esp, 8
test eax, eax
jne 0x40b8e8
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx + eax + 1]
cmp byte [esp + ebx + 0x20], 0
lea esi, [esp + ebx + 0x20]
jne 0x40b870
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004404d4
mov esp, ebp
pop ebp
ret 8