joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403132
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x405a48
call fcn.00403444
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x4076cc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x402f51
cmp eax, esi
jne 0x402f44
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x402f54
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402f2b
xor esi, esi
inc esi
mov eax, dword [0x4076c8]
cmp eax, esi
jne 0x402f67
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402fa2
mov eax, dword [0x4076c8]
test eax, eax
jne 0x402f9c
mov dword [0x4076c8], esi
push 0x40411c
push 0x404110
call fcn.00402eb2
pop ecx
pop ecx
test eax, eax
je 0x402fa2
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40306c
mov dword [0x407384], esi
mov eax, dword [0x4076c8]
cmp eax, esi
jne 0x402fc6
push 0x40410c
push 0x404104
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4076c8], 2
cmp dword [ebp - 0x1c], ebx
jne 0x402fd3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x4076d0], ebx
je 0x402ff4
push 0x4076d0
call fcn.00403374
pop ecx
test eax, eax
je 0x402ff4
push ebx
push 2
push ebx
call dword [0x4076d0]
push dword [0x40736c]
push dword [0x407370]
push dword [0x407368]
call fcn.0040209c
add esp, 0xc
mov dword [0x407380], eax
cmp dword [0x407374], ebx
jne 0x403052
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x407384], ebx
jne 0x403060
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x407380]
call fcn.00403489
ret
call fcn.00403573
jmp 0x402f09
Function at 0x412640
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd000]
push edi
or ebp, 0xffffffff
jmp 0x412662
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x412669
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412658
mov eax, 1
add ebx, ebx
jne 0x41267b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x412670
jne 0x41268c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412670
xor ecx, ecx
sub eax, 3
jb 0x4126a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x412712
mov ebp, eax
add ebx, ebx
jne 0x4126ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4126b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4126dc
inc ecx
add ebx, ebx
jne 0x4126c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4126bd
jne 0x4126d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4126bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4126fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4126ed
jmp 0x41265e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4126fc
add edi, ecx
jmp 0x41265e
pop esi
mov edi, esi
mov ecx, 0x20a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41271a
cmp byte [edi], 3
jne 0x41271a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41271f
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x41278e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14028]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x141a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41274c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x141b0]
or eax, eax
je 0x412788
mov dword [ebx], eax
add ebx, 4
jmp 0x412769
call dword [esi + 0x141ac]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4127bf
cmp al, 0xef
ja 0x4127b2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x412794
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4127a1
mov ebp, dword [esi + 0x141b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4127f3
sub esp, 0xffffff80
jmp 0x4065fc
Function at 0x10003590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x18
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
sub esp, 0x10
mov ebx, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], sym._main_loop_func_4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [section..bss], eax
sub esp, 0x18
test eax, eax
je 0x10003639
mov dword [esp + 4], 0xf
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
sub esp, 8
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
sub esp, 4
mov ebx, dword [ebp - 4]
leave
ret
test byte [0x10018090], 2
jne 0x10003655
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 0x80004005
sub esp, 4
jmp 0x10003634
mov dword [esp + 0xc], str.Failed_to_create_main_loop_thread_n
mov dword [esp + 8], str.main_loop_start
mov dword [esp + 4], 0x10018090
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1_2
jmp 0x10003642

Function at 0x10003d40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [esp + 4], str.audio_client_main
mov dword [esp], 0xfffffffe
call dword [sym.imp.kernel32.dll_SetThreadDescription]
mov eax, dword [ebp + 8]
mov edx, dword [0x1002790c]
sub esp, 8
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
mov dword [esp + 0xc], eax
mov eax, dword [0x10027908]
mov dword [esp + 8], 2
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.ntdll.dll___wine_unix_call]
sub esp, 0x10
test eax, eax
jne 0x10003d98
leave
xor eax, eax
ret 4
mov dword [esp + 8], 0x45
mov dword [esp + 4], 0x1001a7ac
mov dword [esp], 0x1001a7ea
call dword [sym.imp.ucrtbase.dll__assert]
lea esi, [esi]
lea edi, [edi]

Function at 0x100069da
Capabilities:
Get file version info

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ecx
sub esp, 0x24
mov eax, dword [ecx + 8]
mov edi, dword [ecx + 4]
mov esi, dword [ecx]
mov edx, dword [0x1002790c]
mov dword [esp + 8], 5
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [0x10027908]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.ntdll.dll___wine_unix_call]
sub esp, 0x10
test eax, eax
jne 0x10006a30
mov eax, dword [ebp - 0x14]
lea esp, [ebp - 0xc]
pop ecx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 8], 0x45
mov dword [esp + 4], 0x1001a7ac
mov dword [esp], 0x1001a7ea
call dword [sym.imp.ucrtbase.dll__assert]
lea esi, [esi]
Function at 0x100090a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x18
mov esi, dword [ebp + 0xc]
test byte [0x10018114], 8
jne 0x10009128
test esi, esi
je 0x100091e8
mov dword [esp], 0xc
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x100091f2
mov dword [eax], esi
mov dword [esp], 0x100180e0
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edx, dword [0x100180fc]
lea eax, [ebx + 4]
mov dword [ebx + 4], 0x100180f8
sub esp, 4
mov dword [ebx + 8], edx
mov dword [edx], eax
mov dword [0x100180fc], eax
mov eax, dword [0x10027004]
test eax, eax
je 0x10009160
mov dword [esp], 0x100180e0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
xor eax, eax
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0x1001b137
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.MMDevEnum_RegisterEndpointNotificationCallback
mov dword [esp + 4], 0x10018114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1_3
jmp 0x100090b4
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._notif_thread_proc_4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [0x10027004], eax
sub esp, 0x18
test eax, eax
jne 0x10009108
test byte [0x10018114], 2
je 0x10009108
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.CreateThread_failed:__lu_n
mov dword [esp + 8], str.MMDevEnum_RegisterEndpointNotificationCallback
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10018114
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_3
jmp 0x10009108
mov eax, 0x80004003
jmp 0x1000911a
mov eax, 0x8007000e
jmp 0x1000911a

Function at 0x10009500
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, 0xffffffff
sub esp, 0x18
mov esi, dword [ebp + 8]
lock xadd dword [esi + 4], ebx
sub ebx, 1
test byte [0x10018114], 8
jne 0x10009530
test ebx, ebx
je 0x10009560
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x1001b29b
mov dword [esp + 8], str.Connector_Release
mov dword [esp + 4], 0x10018114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1_3
test ebx, ebx
jne 0x10009525
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4
Function at 0x10009600
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, 0xffffffff
sub esp, 0x18
mov esi, dword [ebp + 8]
lock xadd dword [esi + 4], ebx
sub ebx, 1
test byte [0x10018114], 8
jne 0x10009630
test ebx, ebx
je 0x10009660
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x1001b29b
mov dword [esp + 8], str.DT_Release
mov dword [esp + 4], 0x10018114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1_3
test ebx, ebx
jne 0x10009625
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4

Function at 0x10009c60
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test byte [0x10018114], 1
jne 0x10009cc8
test esi, esi
jne 0x10009d00
mov dword [esp + 8], 8
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x10009d07
mov dword [eax], sym._Connector_QueryInterface_12
mov dword [eax + 4], 1
mov dword [ebx], eax
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__p_____u___p____partial_stub_n
mov dword [esp + 8], str.DT_GetConnector
mov dword [esp + 4], 0x10018114
mov dword [esp], 0
call sym._wine_dbg_log.constprop.2
jmp 0x10009c77
mov eax, 0x80070057
jmp 0x10009cbc
mov eax, 0x8007000e
jmp 0x10009cbc
Function at 0x1000d9b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [ebp + 8]
test byte [0x10018114], 8
jne 0x1000daa8
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000dadc
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x78]
mov edx, dword [eax + 0x24]
add eax, 0x2c
call sym._MMDevPropStore_OpenPropKey
test eax, eax
js 0x1000da68
mov eax, dword [ebp + 0xc]
xor ebx, ebx
lea edi, [ebp - 0x74]
lea esi, [ebp - 0x70]
mov dword [eax], 0
jmp 0x1000da03
add ebx, 1
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x74], 0x32
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
je 0x1000da00
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test byte [0x10018114], 8
jne 0x1000da78
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.Returning__li_n
mov dword [esp + 8], str.MMDevPropStore_GetCount
mov dword [esp + 4], 0x10018114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1_3
jmp 0x1000da61
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x1001b137
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.MMDevPropStore_GetCount
mov dword [esp + 4], 0x10018114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1_3
jmp 0x1000d9cc
mov eax, 0x80004003
jmp 0x1000da68
Function at 0x1000daf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov dword [ebp - 0x78], 0x32
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
test byte [0x10018114], 8
jne 0x1000dbe8
test esi, esi
je 0x1000dc5e
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x74]
mov edx, dword [eax + 0x24]
add eax, 0x2c
call sym._MMDevPropStore_OpenPropKey
mov ebx, eax
test eax, eax
js 0x1000dbd5
lea eax, [ebp - 0x78]
lea edi, [ebp - 0x70]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
mov ebx, eax
test eax, eax
jne 0x1000dc20
cmp dword [ebp - 0x78], 0x27
jbe 0x1000dc20
mov eax, dword [ebp - 0x74]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
sub esp, 4
mov word [ebp - 0x24], ax
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea eax, [ebp - 0x22]
sub esp, 8
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [esi + 0x10], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.__p_____lu__p__n
mov dword [esp + 8], str.MMDevPropStore_GetAt
mov dword [esp + 4], 0x10018114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1_3
jmp 0x1000db16
mov ebx, 0x80070057
test byte [0x10018114], 4
je 0x1000dbd5
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], str.GetAt__lu_failed_n
mov dword [esp + 8], str.MMDevPropStore_GetAt
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10018114
mov dword [esp], 2
call sym._wine_dbg_log.constprop.3
jmp 0x1000dbd5
mov ebx, 0x80004003
jmp 0x1000dbd5
Function at 0x100167e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10016838
cmp byte [esi + ebx - 1], 0xa
je 0x1001680c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100278c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x100172b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x100278e0]
test eax, eax
je 0x10017368
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x100172f0
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x100172dc
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x1001739d
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x100278e0], eax
sub esp, 8
test eax, eax
jne 0x100172cd
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x100172de
Function at 0x100173b0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x10]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
sub esp, 8
test ebx, ebx
je 0x10017540
mov eax, dword [esi]
test eax, eax
je 0x10017528
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], ecx
mov ecx, eax
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x1001754c
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x10017518
call dword [edx + 0x28]
mov dword [esi + 8], eax
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
lea esp, [ebp - 0xc]
not eax
pop ebx
pop esi
shr eax, 0x1f
pop edi
pop ebp
ret 0x10
call dword [edx + 0x24]
mov dword [esi + 8], eax
sub esp, 8
jmp 0x100174dc
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x10017416
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x10017542
Function at 0x4029b0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4029ed
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.File_GetCurrentDirectoryA
push esp
call sub.File_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.File_GetCurrentDirectoryA
test bl, bl
je 0x402a0d
lea eax, [esp + 0x109]
push eax
call sub.File_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040492c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402c44
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004046bc
test esi, esi
jne 0x402c7a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.File_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004047ac
jmp 0x402c98
call sub.File_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402af8
mov edi, eax
test esi, esi
je 0x402c98
cmp dword [ebx], 0
je 0x402c98
dec esi
jmp 0x402c81
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403260
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x477008], 0x8088405
inc edx
mov dword [ebx + 0x477008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4037dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x477024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403874
push 0x80000002
call sub.idBrush_RegOpenKeyExA_1
test eax, eax
jne 0x403854
xor eax, eax
push ebp
push 0x40384d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403890
mov eax, dword [ebp - 4]
push eax
call sub.idBrush_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403854
mov eax, dword [ebp - 4]
push eax
call sub.idBrush_RegCloseKey_1
ret
mov ax, word [0x477024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x477024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404540
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47904c], 0
je 0x4045a1
cmp word [0x479220], 0xd7b2
jne 0x404569
cmp dword [0x479228], 0
jbe 0x404569
mov eax, 0x47921c
call dword [0x479238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x477094
push 0xfffffffffffffff5
call sub.File_GetStdHandle_1
push eax
call sub.File_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4045c8
push 0xfffffffffffffff5
call sub.File_GetStdHandle_1
push eax
call sub.File_WriteFile_1
pop edx
ret
cmp byte [0x477034], 0
jne 0x4045bd
push 0
push 0x47708c
push 0x477094
push 0
call fcn.004012f4
pop edx
ret