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

Disassembly:
push ecx
mov eax, dword [0x1004b5fc]
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x100236c8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp byte [0x1004b56c], bl
je 0x100236e6
mov eax, dword [0x1004b5f0]
mov byte [0x1004b56c], bl
cmp eax, ebx
je 0x100236e6
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x1004b568]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x10023765
push 0x64
push eax
call esi
cmp eax, 0x102
jne 0x10023765
mov ecx, dword [0x1004b568]
lea eax, [esp + 0x10]
push eax
push ecx
mov byte [0x1004b56c], bl
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x10], 0x103
jne 0x10023765
mov edx, dword [0x1004b568]
push 0xffffffffffffffff
push edx
call edi
mov eax, dword [0x1004b568]
push eax
call ebp
mov al, byte [0x1004b56d]
mov dword [0x1004b564], ebx
cmp al, bl
je 0x10023765
mov ecx, 0x1004b560
test ecx, ecx
je 0x10023765
push 1
call fcn.100089f0
mov eax, dword [0x1004b74c]
cmp eax, ebx
je 0x10023776
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp byte [0x1004b6bc], bl
je 0x10023794
mov eax, dword [0x1004b740]
mov byte [0x1004b6bc], bl
cmp eax, ebx
je 0x10023794
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x1004b6b8]
cmp eax, ebx
je 0x1002380e
push 0x64
push eax
call esi
cmp eax, 0x102
jne 0x1002380e
mov eax, dword [0x1004b6b8]
lea edx, [esp + 0x10]
push edx
push eax
mov byte [0x1004b6bc], bl
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x10], 0x103
jne 0x1002380e
mov ecx, dword [0x1004b6b8]
push 0xffffffffffffffff
push ecx
call edi
mov edx, dword [0x1004b6b8]
push edx
call ebp
mov al, byte [0x1004b6bd]
mov dword [0x1004b6b4], ebx
cmp al, bl
je 0x1002380e
mov eax, 0x1004b6b0
test eax, eax
je 0x1002380e
mov ecx, eax
call fcn.1000ecb0
push 0x1004b6b0
call fcn.1003ed30
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10023af0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov al, byte [esi + 0xc]
test al, al
jne 0x10023b59
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push esi
push 0x100087d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 4]
mov dword [esi + 8], eax
test eax, eax
mov dword [esi + 4], ecx
jne 0x10023b6a
push eax
call fcn.1002ba20
add esp, 4
add esi, 0xe
lea ecx, [esp + 8]
push eax
push esi
push str._comm__create_thread__s__failed:__s
push 0x10046650
call fcn.1002ce00
push eax
call fcn.1002ce10
add esp, 0x10
pop esi
add esp, 8
ret
mov esi, dword [esi + 0x90]
test esi, esi
je 0x10023b6a
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
add esp, 8
ret
Function at 0x10023c00
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
mov byte [0x1004b808], 0
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10023c25
mov byte [0x1004b808], 1
add esp, 0x190
ret

Function at 0x10023c60
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
push esi
mov dword [0x1004b80c], eax
mov eax, dword [esp + 0xc]
cmp eax, 3
ja case.default.0x10023c77
jmp dword [eax*4 + 0x10023d24]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10047e10
call esi
push str.cmgtc
call fcn.1002a4e0
add esp, 4
mov dword [0x1004b3e0], eax
mov dword [0x1005a998], eax
push str._cmgtc__DLL_PROCESS_ATTACH_____._n
call esi
mov eax, 1
pop esi
ret 0xc
push str._cmgtc__DLL_THREAD_ATTACH._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
pop esi
ret 0xc
push str._cmgtc__DLL_THREAD_DETACH._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
pop esi
ret 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10047e98
call edi
mov ecx, dword [0x1004b818]
test ecx, ecx
je 0x10023d11
call fcn.10024150
mov esi, dword [0x1004b818]
test esi, esi
je 0x10023d11
mov ecx, esi
call fcn.10023fc0
push esi
call fcn.1003ed30
add esp, 4
push str._cmgtc__DLL_PROCESS_DETACH_____._n
call edi
pop edi
mov eax, 1
pop esi
ret 0xc

Function at 0x10024670
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push esi
push 0
push 0xa
xor bl, bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x100246f2
push ebp
lea eax, [esp + 0xc]
push edi
push eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
cmp eax, 1
jne 0x100246de
mov edi, dword [esp + 0x140]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x34]
push ecx
push edi
call ebp
test eax, eax
je 0x100246cf
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
jne 0x100246de
jmp 0x100246b1
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x18]
mov bl, 1
mov dword [eax], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
mov al, bl
pop esi
pop ebx
add esp, 0x128
ret
mov al, bl
pop esi
pop ebx
add esp, 0x128
ret

Function at 0x10024740
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
xor eax, eax
lea ecx, [esp]
mov dword [esp + 4], eax
mov dword [esp], eax
mov eax, dword [esp + 0x10]
push ecx
push 0x10024700
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_EnumWindows]
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
mov dword [edx], eax
mov al, 1
add esp, 8
ret
Function at 0x10024c70
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xc80
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x8d]
mov byte [esp + 0x8c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x48d]
mov byte [esp + 0x48c], bl
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0xc98]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
lea eax, [esp + 0x10]
push str.___s__
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x8c]
lea edx, [esp + 0xc]
push 0x400
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x48c]
push eax
push esi
push str._s_s
push ecx
call edi
mov esi, dword [esp + 0xca0]
mov eax, dword [esp + 0xca4]
add esp, 0x10
mov byte [esi + eax], bl
inc eax
xor ecx, ecx
mov dl, byte [esp + ecx + 0x48c]
cmp dl, bl
je 0x10024d3f
mov byte [eax + esi], dl
inc eax
inc ecx
cmp ecx, 0x800
jl 0x10024d27
mov byte [eax + esi + 1], bl
mov byte [eax + esi + 2], bl
pop edi
pop esi
pop ebx
add esp, 0xc80
ret
Function at 0x10027370
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1002738d
push str.Wow64Redirection::restore_____
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 8]
push eax
call dword [esi + 0xc]
pop esi
ret 4
Function at 0x100278b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x90
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x21
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0xa0]
lea eax, [esp + 0x14]
push 0x1001
push eax
push edi
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
push ebx
cmp esi, ebx
jne 0x10027920
call fcn.1002ba20
add esp, 4
lea ecx, [esp + 0xc]
push eax
push edi
push str._comm__write_file__s__OpenFile_failed:__s
push 0x100486dc
call fcn.1002ce00
push eax
call fcn.1002ce10
add esp, 0x10
mov al, bl
pop edi
pop esi
pop ebx
add esp, 0x90
ret
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1002797a
push ebx
call fcn.1002ba20
add esp, 4
lea ecx, [esp + 0xc]
push eax
push edi
push str._comm__write_file__s__WriteFile_failed:__s
push 0x10048710
call fcn.1002ce00
push eax
call fcn.1002ce10
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x90
ret
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x90
ret
Function at 0x10028260
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov eax, 0x1114
call fcn.1003eef0
mov eax, dword [0x100488cc]
push esi
mov esi, dword [esp + 0x111c]
push edi
cmp esi, eax
jb 0x10028421
mov eax, dword [esp + 0x1124]
test eax, eax
je 0x10028421
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x1c]
cmp esi, 8
rep stosd dword es:[edi], eax
mov ecx, 0x240
lea edi, [esp + 0x81c]
rep stosd dword es:[edi], eax
jbe 0x100282b1
xor esi, esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x14]
push str.GWCLI
shl esi, 4
add esi, 0x100488d4
and ecx, 0xffff
push esi
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
push edx
mov edx, dword [esp + 0x1e]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
push str.__02d__02d__02d:_02d:_02d___s___s_
lea eax, [esp + 0x3c]
push 0x800
push eax
call fcn.10028430
mov edx, dword [esp + 0x114c]
lea ecx, [esp + 0x1150]
push ecx
push edx
lea eax, [esp + 0x84c]
push 0x800
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
mov esi, dword [sym.imp.MSVCRT.dll_strncat]
lea ecx, [esp + 0x854]
push 0x7ff
lea edx, [esp + 0x58]
push ecx
push edx
call esi
add esp, 0x44
lea eax, [esp + 0x1c]
mov byte [esp + 0x81b], 0
push 0x100489b8
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
push 0x7ff
lea ecx, [esp + 0x20]
push 0x100489bc
push ecx
call esi
mov al, byte [0x100488d0]
add esp, 0xc
test al, 1
mov byte [esp + 0x81b], 0
je 0x1002839d
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [0x100488d0], 2
je 0x10028421
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push str.c:gwlog.txt
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10028421
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push esi
call edi
cmp eax, 0x20000
jbe 0x100283f8
push 0
push 0
push 0
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [esp + 8]
push 0
push eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x1114
ret
Function at 0x10029040
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
xor al, al
ret

Function at 0x100291e0
Capabilities:
Identify system language via api

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 1
jl 0x100291ee
cmp eax, 3
jle 0x1002920e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp ax, 0x804
jne 0x10029200
mov eax, 2
ret
sub ax, 0x404
neg ax
sbb eax, eax
and al, 0xfe
add eax, 3
ret
Function at 0x10029210
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov al, byte [0x1004b84a]
sub esp, 0xc4
test al, al
push esi
jne 0x10029458
push edi
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x30], 0
mov dword [esp + 0xc], eax
rep stosd dword es:[edi], eax
mov ecx, 8
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push eax
mov dword [0x1004b864], eax
call fcn.10026940
xor eax, eax
add esp, 4
xor esi, esi
cmp eax, str.kernel32.dll
je 0x10029280
mov edi, str.kernel32.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10029280
push str.kernel32.dll
call fcn.10026910
add esp, 4
mov esi, eax
push str.GetNativeSystemInfo
push esi
call fcn.10026920
push esi
mov edi, eax
call fcn.10026940
add esp, 0xc
test edi, edi
je 0x100292a3
lea ecx, [esp + 0xc]
push ecx
call edi
jmp 0x100292ae
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x10029431
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
and edx, 0xffff
cmp ecx, 5
mov dword [0x1004b854], ecx
mov dword [0x1004b858], eax
mov dword [0x1004b860], edx
jne 0x100293bb
test eax, eax
jne 0x10029313
mov dword [0x1004b850], 1
mov byte [0x1004b84a], 1
pop esi
add esp, 0xc4
ret
cmp eax, 1
jne 0x1002932f
mov dword [0x1004b850], 2
mov byte [0x1004b84a], al
pop esi
add esp, 0xc4
ret
cmp eax, 2
jne 0x10029458
cmp byte [esp + 0xc6], 1
jne 0x10029363
cmp word [esp + 8], 9
jne 0x10029363
mov dword [0x1004b850], 3
mov byte [0x1004b84a], 1
pop esi
add esp, 0xc4
ret
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call esi
test eax, eax
je 0x100293a2
cmp word [esp + 0xc4], 0x8000
je 0x100293a2
push 0x59
call esi
test eax, eax
je 0x10029458
mov dword [0x1004b850], 5
mov byte [0x1004b84a], 1
pop esi
add esp, 0xc4
ret
mov dword [0x1004b850], 4
mov byte [0x1004b84a], 1
pop esi
add esp, 0xc4
ret
cmp ecx, 6
jne 0x10029458
test eax, eax
jne 0x100293eb
mov dl, byte [esp + 0xc6]
mov byte [0x1004b84a], 1
cmp dl, 1
pop esi
setne al
add eax, ecx
mov dword [0x1004b850], eax
add esp, 0xc4
ret
cmp eax, 1
jne 0x10029413
mov cl, byte [esp + 0xc6]
mov byte [0x1004b84a], al
dec cl
pop esi
neg cl
sbb ecx, ecx
add ecx, 9
mov dword [0x1004b850], ecx
add esp, 0xc4
ret
cmp eax, 2
jne 0x10029458
mov dword [0x1004b850], 0xa
mov byte [0x1004b84a], 1
pop esi
add esp, 0xc4
ret
push 0
call fcn.1002ba20
add esp, 4
lea ecx, [esp + 4]
push eax
push str._comm__detect_OS_type_failed:__s
push str._error_
call fcn.1002ce00
push eax
call fcn.1002ce10
add esp, 0xc
mov byte [0x1004b84a], 1
pop esi
add esp, 0xc4
ret
Function at 0x10029620
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, ecx
test ebp, ebp
push esi
je 0x10029634
mov eax, dword [ebp]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
xor eax, eax
mov ecx, 0x1505
mov al, byte [edx]
inc edx
test eax, eax
je 0x10029658
mov esi, ecx
shl esi, 5
add eax, esi
add ecx, eax
xor eax, eax
mov al, byte [edx]
inc edx
test eax, eax
jne 0x10029646
xor eax, eax
lea esi, [ebp + 4]
mov edx, dword [esi]
test edx, edx
je 0x100296a1
cmp ecx, edx
je 0x10029685
inc eax
add esi, 0x28
cmp eax, 0x14
jl 0x1002965d
test ebp, ebp
je 0x1002967e
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
xor eax, eax
pop ebp
ret 4
lea ecx, [eax + eax*4]
test ebp, ebp
lea esi, [ebp + ecx*8 + 4]
je 0x1002969a
mov edx, dword [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
pop esi
pop ebp
ret 4
cmp eax, 0x14
jge 0x10029670
lea eax, [eax + eax*4]
push ebx
push edi
mov ecx, 8
lea ebx, [ebp + eax*8]
xor eax, eax
lea esi, [ebx + 8]
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
push ecx
push 0x10048cdc
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add ebx, 4
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov dword [ebx], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10029708
mov al, byte [esi]
inc esi
test eax, eax
mov ecx, 0x1505
je 0x10029706
mov edx, ecx
shl edx, 5
add eax, edx
add ecx, eax
xor eax, eax
mov al, byte [esi]
inc esi
test eax, eax
jne 0x100296f4
mov dword [ebx], ecx
test ebp, ebp
je 0x10029716
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
pop edi
pop ebx
pop esi
pop ebp
ret 4

Function at 0x10029720
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, ecx
test ebx, ebx
je 0x10029732
mov eax, dword [ebx]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
push esi
push edi
mov ecx, 0x4e2
xor eax, eax
mov edi, 0x1004b904
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
push ecx
push edx
push 0x1004b904
call dword [sym.imp.MSVCRT.dll_vsprintf]
lea esi, [ebx + 0x338]
mov ecx, 0x500
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [0x1004b8f0], eax
add esp, 0xc
mov dword [0x1004b8f4], eax
mov dword [0x1004b8f8], eax
push 0x1004b8f0
mov dword [0x1004b8fc], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0x1004b904
push ecx
mov ecx, dword [0x1004b8fc]
lea edx, [eax + eax*2]
and ecx, 0xffff
lea eax, [edx*2 + 0x100406b0]
xor edx, edx
mov dx, word [0x1004b8fa]
push eax
mov eax, dword [0x1004b8f8]
push ecx
and eax, 0xffff
push edx
push eax
push str.__02u:_02u:_02u___s____s__s_n
push 0x1388
push esi
call fcn.10028430
add esp, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
test ebx, ebx
je 0x100297ee
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop ebx
ret 0x10
Function at 0x1002a500
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, ecx
push esi
push edi
lea esi, [ebp + 4]
mov ecx, 8
xor eax, eax
mov edi, esi
mov dword [ebp], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
push eax
push 0x10048dc8
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1002a570
mov edx, esi
mov ecx, 0x1505
mov al, byte [edx]
inc edx
test eax, eax
je 0x1002a55c
mov esi, ecx
shl esi, 5
add eax, esi
add ecx, eax
xor eax, eax
mov al, byte [edx]
inc edx
test eax, eax
jne 0x1002a54a
mov dword [ebp], ecx
mov ecx, dword [0x10048cd4]
pop edi
mov dword [ebp + 0x24], ecx
mov eax, ebp
pop esi
pop ebp
ret 4
mov edx, dword [0x10048cd4]
pop edi
mov dword [ebp + 0x24], edx
mov eax, ebp
pop esi
pop ebp
ret 4

Function at 0x1002ce10
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
push 0
push 0
push 0x2801
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 0
call fcn.10005020
mov esi, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x1a], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1e], eax
push ecx
mov dword [esp + 0x26], eax
mov word [esp + 0x1c], 0
mov word [esp + 0x2a], ax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
and ecx, 0xffff
mov eax, dword [edx]
mov edx, dword [esp + 0x22]
push eax
mov eax, dword [esp + 0x24]
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
push str.__02u:_02u:_02u__s
push esi
call ebx
mov edx, dword [esp + 0x48]
mov edi, eax
lea ecx, [esp + 0x4c]
push ecx
lea eax, [edi + esi]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0x24
add edi, eax
add edi, esi
push 0x10049060
push edi
call ebx
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
test eax, eax
je 0x1002ced1
push eax
call fcn.1003ed30
add esp, 4
add esp, 0x1c
ret

Function at 0x1002d440
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
lea edx, [esp + 0x10]
push eax
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002d478
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [ecx], edx
add esp, 8
ret 8
Function at 0x1002d480
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x2808
call fcn.1003eef0
push ebp
push esi
mov edx, ecx
push edi
mov ecx, 0x9ff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [edx]
lea ecx, [esp + 0x14]
stosb byte es:[edi], al
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x2800
push eax
lea eax, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x2828]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, eax
test ebp, ebp
jne 0x1002d510
mov esi, dword [esp + 0x281c]
mov ecx, dword [esp + 0xc]
mov eax, dword [esi]
test eax, eax
jbe 0x1002d4e9
cmp eax, ecx
jbe 0x1002d4eb
mov dword [esi], ecx
mov eax, dword [esi]
test eax, eax
jbe 0x1002d510
mov edi, dword [esp + 0x2818]
dec eax
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, dword [esi]
add esp, 0xc
mov byte [ecx + edi - 1], 0
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x2808
ret 0xc

Function at 0x1002d540
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [ecx]
lea edx, [esp + 8]
push 4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x1002d570
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [edx]
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8
Function at 0x1002e040
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xa4
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x21
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xb8]
push ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x30]
mov dword [esp + 0x14], ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002e126
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [esp + 0x10], eax
jbe 0x1002e11f
push ebx
push ebx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], ebx
call fcn.10005020
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
push ebx
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002e10e
push ebx
push ebx
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], ebx
call fcn.10005020
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.1002d710
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, ebp
push edx
push eax
call fcn.1002e140
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1002e10e
push eax
call fcn.1003ed30
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x1002e11f
push eax
call fcn.1003ed30
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 4