joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406870
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
push ebx
mov ebx, dword [esp + 0x64]
push ebp
push esi
mov dword [esp + 0xc], ecx
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x74]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.__s___s
add edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], 0
lea eax, [edx + ecx + 0x104]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ebp
mov esi, eax
push ebx
push str.__s___s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x38]
add esp, 0x10
rep stosd dword es:[edi], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
mov cx, word [esp + 0x78]
push edx
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push esi
push 0
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x7c], 1
mov word [esp + 0x80], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406998
mov ecx, dword [esp + 0x10]
push esi
push str.The_other_process_initiated
call fcn.00407a40
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x40696c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 8], ecx
push esi
mov dword [eax + 0xc], edx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x10
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0x1c]
push ecx
call edi
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x10
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x10

Function at 0x407750
Capabilities:
Identify system language via api

Disassembly:
mov ax, word [0x41e38c]
sub esp, 0x104
test ax, ax
push esi
mov esi, ecx
jne 0x4077a8
lea eax, [esp + 4]
push 0x104
push eax
push str.LANG
call fcn.00404890
mov ecx, dword [eax + 0xc]
push ecx
mov ecx, esi
call fcn.004077b0
test eax, eax
je 0x40779c
lea edx, [esp + 4]
push edx
call fcn.0040ec80
test ax, ax
mov word [0x41e38c], ax
jne 0x4077a8
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [0x41e38c], ax
pop esi
add esp, 0x104
ret
Function at 0x40ac40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x120
push ebx
push ebp
push esi
mov esi, dword [esp + 0x130]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x2c]
xor ebp, ebp
push esi
mov dword [esp + 0x1c], ecx
push eax
mov dword [esp + 0x1c], ebp
call edi
cmp byte [esi + 1], 0x3a
jne 0x40ac81
mov cl, byte [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
jne 0x40ac81
cmp byte [esi], 0
jne 0x40acd1
mov al, byte [esi]
cmp al, 0x2f
je 0x40ac8b
cmp al, 0x5c
jne 0x40ac96
mov al, byte [esi + 1]
cmp al, 0x2f
je 0x40acd1
cmp al, 0x5c
je 0x40acd1
lea edx, [esp + 0x2c]
push 0x104
push edx
call fcn.004048a0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov al, byte [esi]
cmp al, 0x2f
je 0x40acc9
cmp al, 0x5c
je 0x40acc9
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.0040eb10
push eax
call fcn.0040ebb0
jmp 0x40acd1
lea ecx, [esp + 0x2e]
push esi
push ecx
call edi
push 0
push 0x83
push 3
push 0
push 1
lea edx, [esp + 0x40]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ad8e
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x24]
push 0xe
push ecx
push ebx
call ebp
mov edx, dword [esp + 0x1e]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40ad76
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x1e]
mov esi, eax
lea eax, [esp + 0x10]
push 0
add ecx, 0xfffffff2
push eax
push ecx
push esi
push ebx
call ebp
test eax, eax
je 0x40ad68
mov edx, dword [esp + 0x1e]
mov eax, dword [esp + 0x10]
add edx, 0xfffffff2
cmp eax, edx
jne 0x40ad68
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x18]
push eax
push esi
call fcn.0040ab50
mov dword [esp + 0x14], eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret 8
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x120
ret 8

Function at 0x40ada0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
and ebp, 0xffff
push 2
mov esi, ecx
push ebp
call fcn.004048a0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x40adc6
pop esi
pop ebp
ret 8
push ebx
push edi
push eax
call fcn.004048a0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
push edi
mov ecx, esi
call fcn.0040ab50
mov esi, eax
test esi, esi
jne 0x40ae10
cmp word [edi + 0xc], 1
jne 0x40ae10
cmp word [edi + 0xe], 8
jae 0x40ae10
push ebp
call fcn.004048a0
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop ebx
pop esi
pop ebp
ret 8
Function at 0x40ae20
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
lea eax, [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push eax
mov ebx, ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x40af51
cmp byte [ebp], 0
je 0x40af51
push edi
push 5
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
push esi
shl edi, 1
call dword [sym.imp.USER32.dll_GetDC]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x30]
push eax
push ebp
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
sub eax, edi
sub eax, edx
cmp ecx, eax
jl 0x40aec6
mov edx, dword [ebx]
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call dword [edx + 0x3c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
sub ecx, eax
push 4
push ecx
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x3c]
lea edx, [edi + ecx]
push edx
push eax
mov eax, dword [esp + 0x30]
sub eax, edi
sub eax, ecx
add eax, ebp
push eax
jmp 0x40aef6
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x40aeff
mov edx, dword [ebx]
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call dword [edx + 0x3c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub ecx, eax
push 4
push ecx
mov ecx, dword [esp + 0x20]
sub edx, ecx
add ecx, ebp
push edx
push eax
push ecx
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x2c]
push eax
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x30]
push ecx
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edi
mov esi, eax
pop edi
sub esi, ecx
cmp edx, esi
jl 0x40af46
sub eax, edx
pop esi
sub eax, ecx
add eax, ebp
pop ebp
pop ebx
add esp, 0x18
ret 0xc
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 0xc
Function at 0x40c570
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4163aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.0040ed70
lea edi, [esi + 0x14]
mov dword [esp + 0x1c], 0
mov ecx, edi
call fcn.00401070
lea ebx, [esi + 0x20]
mov byte [esp + 0x1c], 1
mov ecx, ebx
call fcn.00401070
lea ebp, [esi + 0x2c]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.00401070
lea ecx, [esi + 0x38]
mov byte [esp + 0x1c], 3
call fcn.00401070
lea ecx, [esi + 0x44]
mov byte [esp + 0x1c], 4
call fcn.00401070
lea ecx, [esi + 0x50]
mov byte [esp + 0x1c], 5
call fcn.00401070
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x1c], 6
push ecx
mov ecx, edi
mov dword [esi], 0x4177c4
call fcn.00401220
mov edx, dword [esp + 0x2c]
mov ecx, ebx
push edx
call fcn.00401220
mov eax, dword [esp + 0x30]
mov ecx, ebp
push eax
call fcn.00401220
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [esi + 0x38]
call fcn.00401220
mov edx, dword [esp + 0x38]
lea ecx, [esi + 0x44]
push edx
call fcn.00401220
push 1
call fcn.004048a0
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x5c], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18

Function at 0x40ca60
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
mov dword [esi + 0x20], eax
test eax, eax
sete cl
mov eax, ecx
pop esi
ret 0x18

Function at 0x40caa0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
mov dword [esi + 0x20], eax
test eax, eax
sete cl
mov eax, ecx
pop esi
ret 0x18
Function at 0x412d75
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41bbd0
cmp edx, dword [eax]
je 0x412d97
add eax, 8
inc ecx
cmp eax, 0x41bc60
jl 0x412d88
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41bbd0]
jne 0x412ec5
mov eax, dword [0x41e3cc]
cmp eax, 1
je 0x412e9f
test eax, eax
jne 0x412dc8
cmp dword [0x41b8e4], 1
je 0x412e9f
cmp edx, 0xfc
je 0x412ec5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x412dff
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004120b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004121a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x412e42
lea eax, [ebp - 0x1a4]
push eax
call fcn.004121a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x417e1c
push edi
call fcn.00410870
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004120b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004120c0
lea eax, [ebp - 0xa0]
push 0x417dfc
push eax
call fcn.004120c0
push dword [esi + 0x41bbd4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004120c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00414f3f
add esp, 0x2c
pop edi
jmp 0x412ec5
lea eax, [ebp + 8]
lea esi, [esi + 0x41bbd4]
push 0
push eax
push dword [esi]
call fcn.004121a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402190
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov esi, dword [esp + 0x118]
xor ebx, ebx
cmp esi, ebx
je 0x4021a7
mov byte [esi], bl
mov eax, dword [0x41b0cc]
cmp eax, ebx
jne 0x4021d5
cmp dword [0x41d190], ebx
mov dword [0x41d1a0], ebx
je 0x4021ca
mov eax, dword [0x41d188]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret
push eax
lea ecx, [esp + 0x14]
push str.SystemCurrentControlSetServices_sParameters
push ecx
call fcn.0040963d
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 1
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40222a
cmp dword [0x41d190], ebx
mov dword [0x41d1a0], ebx
je 0x40221f
mov ecx, dword [0x41d188]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret
mov eax, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
push edx
push ebx
push ebx
push ebx
push str.Parameters
push eax
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x402274
cmp dword [0x41d190], ebx
mov dword [0x41d1a0], ebx
je 0x402268
mov ecx, dword [0x41d188]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret
cmp esi, ebx
jne 0x402295
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x120]
inc edx
mov dword [eax], edx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10c
ret
mov ecx, dword [esp + 0x120]
mov eax, dword [ecx]
cmp dword [esp + 0xc], eax
jb 0x4022a9
dec eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push esi
push ebx
push ebx
push str.Parameters
push eax
call edi
test eax, eax
je 0x402286
call fcn.00401da0
pop edi
mov byte [esi], bl
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret
Function at 0x402820
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x21c
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x224]
mov edx, dword [esp + 0x22c]
push esi
push eax
mov dword [0x41d15c], ecx
mov ecx, dword [esp + 0x230]
push 0
mov esi, 1
push 0
mov dword [esp + 0x10], esi
mov dword [0x41d154], eax
mov dword [0x41d184], edx
mov dword [0x41d150], ecx
call fcn.00403030
add esp, 0xc
cmp eax, 2
jne 0x402a18
push ebx
push ebp
push edi
push fcn.00402fd0
call fcn.004098a4
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x104
push eax
lea edx, [esp + 0x130]
push edx
call fcn.004096a0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x138]
push str.service
push ecx
mov byte [esp + 0x243], 0
call fcn.00403ab0
mov edx, dword [esp + 0x2c]
mov ebx, eax
push edx
push ebx
call fcn.00401b60
mov edi, dword [0x41b0cc]
mov ebp, dword [0x41d190]
add esp, 0x20
cmp ebx, esi
mov edx, esi
jle 0x40292f
mov esi, dword [esp + 0x14]
mov eax, dword [esi + edx*4]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x4028f6
cmp cl, 0x2f
jne 0x40291a
cmp byte [eax + 1], 0x68
jne 0x40291a
cmp byte [eax + 2], 0x76
jne 0x40291a
mov cl, byte [eax + 3]
add eax, 3
test cl, cl
mov ebp, 1
jne 0x402918
mov edi, dword [esi + edx*4 + 4]
inc edx
jmp 0x40291a
mov edi, eax
inc edx
cmp edx, ebx
jl 0x4028e7
mov esi, dword [esp + 0x10]
mov dword [0x41b0cc], edi
mov dword [0x41d190], ebp
xor eax, eax
cmp ebp, eax
je 0x4029ed
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push pe_nt_image_headers32
lea eax, [esp + 0x30]
push eax
push 0x1ae9
mov dword [esp + 0x28], str.DBSERVER
mov dword [esp + 0x2c], 0x402430
call fcn.00403690
mov al, byte [0x41b138]
add esp, 0x10
test al, 4
je 0x402988
mov ecx, dword [0x41b0cc]
push ecx
lea edx, [esp + 0x2c]
push 4
push edx
call fcn.004036b0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x4029dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x41b0cc]
push eax
push ecx
push pe_nt_image_headers32
lea edx, [esp + 0x34]
push edx
push 0x1ab4
call fcn.00403690
mov al, byte [0x41b138]
add esp, 0x14
test al, 1
je 0x4029fc
mov eax, dword [0x41b0cc]
push eax
lea ecx, [esp + 0x2c]
push 1
push ecx
call fcn.004036b0
add esp, 0xc
jmp 0x4029fc
mov edx, dword [0x41d14c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4029fc
push eax
call fcn.00401dd0
add esp, 4
mov dword [esp + 0x10], eax
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
push ebx
call fcn.004038e0
add esp, 8
pop edi
pop ebp
pop ebx
movzx eax, si
pop esi
add esp, 0x21c
ret
push eax
call fcn.00402d80
mov ecx, dword [0x41d190]
add esp, 4
test ecx, ecx
jne 0x402a50
mov ecx, dword [0x41d19c]
test ecx, ecx
jne 0x402a50
push 0
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
movzx eax, si
pop esi
add esp, 0x21c
ret
test byte [0x41b138], 1
je 0x402a6b
mov ecx, dword [0x41b0cc]
push ecx
push 1
push eax
call fcn.004036b0
add esp, 0xc
movzx eax, si
pop esi
add esp, 0x21c
ret
Function at 0x4036b0
Capabilities:
Access the windows event log

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov ecx, dword [esp + 0xc]
push 0
lea edx, [esp + 8]
push edx
push 0
push 1
push 0
push 1
mov esi, eax
mov eax, dword [esp + 0x28]
push 0
push eax
push esi
mov dword [esp + 0x28], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
pop ecx
ret

Function at 0x4037b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xd0
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
mov ebx, 0x41b320
jmp 0x4037d0
mov ecx, 0xa
mov esi, str.SoftwareSybaseAdaptive_Server_Anywhere
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4037e6
mov ax, word [0x417174]
mov word [edi], ax
mov eax, dword [esp + 0xe4]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403800
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403810
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x24]
push edx
push eax
call ebp
test eax, eax
jne 0x40388a
mov edx, dword [esp + 0xec]
lea ecx, [esp + 0xf0]
push ecx
mov ecx, dword [esp + 0xec]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40388a
mov ecx, dword [esp + 0xf4]
cmp dword [esp + 0x14], ecx
je 0x4038a6
add ebx, 4
cmp ebx, 0x41b328
jl 0x4037d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xd0
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd0
ret

Function at 0x403b00
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
mov eax, str.Unknown_error
je 0x403b10
mov eax, esi
push 0
push str.SQLAnywhere_Fatal_Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
test esi, esi
je 0x403b2d
push esi
call fcn.00409e5a
add esp, 4
push 1
call fcn.0040a1e4
pop esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x408330
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x34
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x41db34], eax
je 0x408359
push str.InitCommonControls
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408359
call eax
mov ecx, dword [0x41db58]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x24]
push eax
push ecx
call edi
mov edx, dword [0x41db58]
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x322
push edx
call ebp
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push 6
push ebx
call dword [sym.imp.GDI32.dll_GetCurrentObject]
push ebx
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [esp + 0x34]
push eax
push esi
call edi
mov ecx, dword [0x41db58]
push 0x323
push ecx
call ebp
lea edx, [esp + 0x14]
push edx
push eax
call edi
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
sub eax, ecx
cdq
push 0
sub eax, edx
mov edx, dword [esp + 0x38]
mov esi, eax
mov eax, edx
sub eax, edi
mov edi, dword [0x41db6c]
push edi
mov edi, dword [0x41db58]
push 0
push edi
mov edi, dword [esp + 0x24]
sub edi, edx
sar esi, 1
push esi
sub edi, 0xa
push edi
sub ecx, dword [esp + 0x40]
mov edi, dword [sym.imp.USER32.dll_CreateWindowExA]
lea ecx, [ecx + esi + 2]
push ecx
push eax
push 0x50000000
push 0x416329
push str.msctls_progress32
push 0x200
mov dword [0x41db3c], eax
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
mov dword [0x41db50], eax
call ebx
mov edx, dword [0x41db6c]
push 0
push edx
push 0
mov eax, dword [0x41db58]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x44]
sub ecx, eax
sub ecx, 0xa
add esi, 4
push esi
push ecx
sub edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
sub edx, 2
push edx
sub eax, ecx
push eax
push 0x50000000
push 0x416329
push str.static
push 0
call edi
mov ecx, dword [esp + 0x10]
push 0
push ecx
push 0x30
push eax
mov dword [0x41db40], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x41db40]
push 5
push edx
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret

Function at 0x408620
Capabilities:
Hide graphical window

Disassembly:
mov ecx, dword [0x41db30]
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x18]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
push ecx
call edi
test byte [esi + 0x1c], 2
je 0x408653
mov edx, dword [esi + 4]
mov eax, dword [0x41db30]
push 1
push edx
push eax
call fcn.004085a0
add esp, 0xc
cmp dword [esi + 0x18], 6
jne 0x40866a
test byte [esi + 0x1c], 2
je 0x40866a
mov ecx, dword [0x41db30]
push 0
push ecx
call edi
mov edx, dword [0x41db30]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
ret