joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012cb0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x10076098]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, dword [esp + 0x148]
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.10034760
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10012df7
cmp dword [esi + 4], 6
push edi
ja 0x10012d0b
jne 0x10012d93
cmp dword [esi + 8], 2
jb 0x10012d93
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x10012d93
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10012d93
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10012d93
movups xmm0, xmmword [0x1006c790]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x1006c7a0]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10012d93
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10012d93
cmp word [edi + 2], ax
jbe 0x10012d93
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10012dde
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.10034760
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x10012dde
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.100325c7
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.100325c7
add esp, 0x140
ret
Function at 0x10013670
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x10076098]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.100325e6
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.10034760
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x100136cc
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.100325c7
add esp, 0x120
ret
Function at 0x10017780
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [esp + 4]
jmp 0x10017780
sub esp, 0x214
mov eax, dword [0x10076098]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x20c
lea eax, [esp + 0xc]
mov edi, ecx
push 0
push eax
call fcn.10034760
add esp, 0xc
lea eax, [esp + 8]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x10017922
push ebx
xor eax, eax
push ebp
mov word [esp + 0x21a], ax
lea eax, [esp + 0x10]
push esi
push eax
call fcn.1003d469
mov ecx, dword [edi + 0x14]
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ecx
cmp ebp, ecx
ja 0x1001781b
mov ebx, edi
cmp ecx, 8
jb 0x100177f7
mov ebx, dword [edi]
lea esi, [ebp*2]
mov dword [edi + 0x10], ebp
push esi
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.100341b0
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x10017907
cmp ebp, 0x7ffffffe
ja 0x1001793a
mov esi, ebp
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x1001783b
mov esi, SysReAllocString
jmp 0x10017859
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x10017851
mov esi, SysReAllocString
jmp 0x10017859
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1001786b
or ecx, 0xffffffff
jmp 0x10017873
cmp ecx, 0x1000
jb 0x1001789a
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.100325e6
add esp, 4
test eax, eax
je 0x1001793f
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x100178ad
test ecx, ecx
je 0x100178ab
push ecx
call fcn.100325e6
add esp, 4
mov ebx, eax
jmp 0x100178ad
xor ebx, ebx
mov dword [edi + 0x14], esi
lea eax, [esp + 0x14]
lea esi, [ebp*2]
mov dword [edi + 0x10], ebp
push esi
push eax
push ebx
call fcn.10033c30
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
mov eax, dword [esp + 0x10]
cmp eax, 8
jb 0x10017905
lea ecx, [eax*2 + 2]
mov eax, dword [edi]
cmp ecx, 0x1000
jb 0x100178fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001793f
mov eax, edx
push ecx
push eax
call fcn.100325d8
add esp, 8
mov dword [edi], ebx
pop esi
pop ebp
pop ebx
mov al, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.100325c7
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
xor al, al
pop edi
xor ecx, esp
call fcn.100325c7
add esp, 0x214
ret
call fcn.10001ab0
call fcn.1003d419
int3
Function at 0x10017950
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055478
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10076098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
and edi, 0xffffb1af
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1001798f
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push eax
call ebx
test eax, eax
je 0x100179a4
mov al, 1
jmp 0x10017a43
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100183c0
test al, al
je 0x100179ee
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x100179ee
mov bl, 1
jmp 0x100179f0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10017a2d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10017a23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017a5f
push edx
push ecx
call fcn.100325d8
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov al, bl
mov dword [ebp - 0x14], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100325c7
mov esp, ebp
pop ebp
ret
call fcn.1003d419
int3

Function at 0x10017a70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055478
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10076098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10017aa6
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10017b50
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100183c0
test al, al
je 0x10017aff
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10017b3c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10017b32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017b6d
push edx
push ecx
call fcn.100325d8
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100325c7
mov esp, ebp
pop ebp
ret
call fcn.1003d419
int3
Function at 0x1001ede0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056df8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10076098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x38]
mov edi, dword [ebp + 0xc]
push esi
push eax
call fcn.1001fa30
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.100059d0
xorps xmm0, xmm0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x1c], 0
test eax, eax
jne 0x1001ee64
xor bl, bl
jmp 0x1001ee82
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1001ee7c
cmp eax, 0x80
je 0x1001ee7c
xor bl, bl
jmp 0x1001ee82
mov byte [ebp - 0x14], 1
mov bl, 1
mov byte [ebp - 0x1c], bl
mov byte [ebp - 4], 2
lea eax, [ebp - 0x39]
push eax
push edi
push esi
mov byte [ebp - 0x39], 0
call fcn.1001ef70
test al, al
jne 0x1001eeb0
cmp byte [ebp - 0x39], al
je 0x1001eeb0
cmp dword [esi + 0x14], 8
jb 0x1001eea9
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
test bl, bl
je 0x1001eeca
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001eec6
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001eeea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x1001ef2d
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001ef23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ef5f
push edx
push ecx
call fcn.100325d8
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100325c7
mov esp, ebp
pop ebp
ret 8
call fcn.1003d419
int3
Function at 0x10020ee0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x10076098]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.10034760
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x10020f77
cmp dword [esp + 8], 6
jb 0x10020f77
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.100325c7
add esp, 0x118
ret
Function at 0x10023450
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
nop dword [eax]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x10078a90], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x10078790], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x10078990], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x10078890], al
inc esi
cmp esi, 0x100
jl 0x10023560
pop esi
add esp, 0x80
ret
Function at 0x1002d020
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057ed8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10076098]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
je 0x1002d08e
lea eax, [esi + 0x68]
mov dword [esi], 0x1005a448
mov dword [esi + 0x10], 0x1005a450
mov dword [ebp + 0xc], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [ebp - 4], 0
mov dword [eax], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 1
push 0
push 0
lea edi, [esi + 0x18]
mov ecx, esi
push edi
call fcn.10027db0
mov dword [ebp - 4], 4
lea edx, [esi + 0x10]
mov dword [ebp + 0xc], edx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov dword [ebp - 4], 7
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + esi - 4], eax
mov dword [ebp - 4], 8
mov eax, dword [esi]
push 8
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp + 0xc], edi
lea eax, [ecx - 0x68]
mov dword [ecx + esi - 4], eax
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100325e6
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1002d128
push 1
call fcn.100307c6
add esp, 4
mov dword [ebx + 4], eax
jmp 0x1002d12a
xor ebx, ebx
lea eax, [edi + 4]
mov dword [edi + 0x34], ebx
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov byte [ebp - 4], 9
mov ebx, dword [ebp + 8]
mov ecx, ebx
not ecx
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
and ecx, 1
mov dword [edi + 0x38], 0
shl ecx, 2
mov eax, ebx
mov edx, ecx
or edx, 2
and al, 2
mov eax, ebx
cmovne edx, ecx
mov ecx, edx
or ecx, 8
and al, 8
cmove ecx, edx
mov eax, ecx
or eax, 0x10
and bl, 4
cmove eax, ecx
mov dword [edi + 0x3c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1004bfc7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004bc87
Function at 0x481de4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf8
mov eax, dword [0xbcbae0]
xor eax, ebp
mov dword [esp + 0xf0], eax
call fcn.004aeaf2
cmp eax, 2
jne 0x481f06
lea eax, [esp + 0x70]
push pe_nt_image_headers32
push eax
call fcn.006295c9
add esp, 8
push eax
push 2
push 0
call fcn.006c2df0
add esp, 0xc
test eax, eax
mov ebx, 0
mov dword [esp], 0
je 0x481ed2
mov esi, eax
push str.SELECT_value_FROM_configuration_WHERE_entry___cookie_
push eax
call fcn.006c3985
add esp, 8
test eax, eax
jne 0x481e5a
xor ebx, ebx
jmp 0x481ec9
mov edi, eax
xor ebx, ebx
push eax
call fcn.006c468d
add esp, 4
cmp eax, 0x3e9
je 0x481ec0
cmp eax, 0x3e8
jne 0x481ea9
push 0
push edi
call fcn.006c5bae
add esp, 8
lea ebx, [esp + 0x30]
mov dword [esp + 4], eax
push 0x40
push ebx
call fcn.0049c266
add esp, 8
push ebx
push dword [esp + 8]
call fcn.009803a0
add esp, 8
xor ebx, ebx
test eax, eax
setne bl
jmp 0x481ec0
push esi
call fcn.006c3230
add esp, 4
push eax
push str.Failed_to_get_the_cookie_in_the_configuration_table.__s_n
call fcn.0044a156
add esp, 8
push edi
call fcn.006c39c7
add esp, 4
push esi
call fcn.006c30db
add esp, 4
call fcn.0047d814
lea ecx, [esp + 8]
push ecx
push eax
call fcn.00977c60
add esp, 8
test eax, eax
jne 0x481f3c
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
call fcn.0049c1c4
xor edx, edi
xor eax, esi
xor ecx, ecx
or eax, edx
setne cl
mov dword [esp], ecx
jmp 0x481f3c
call fcn.0047d814
lea ecx, [esp + 8]
push ecx
push eax
call fcn.00977c60
add esp, 8
test eax, eax
jne 0x481f5a
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
call fcn.0049c1c4
xor edx, edi
xor eax, esi
xor ebx, ebx
mov dword [esp], 0
or eax, edx
setne bl
test ebx, ebx
je 0x481f4f
call fcn.004803c1
call fcn.00480a42
call fcn.004ae2c0
cmp dword [esp], 0
je 0x481f5a
call fcn.00480a49
mov ecx, dword [esp + 0xf0]
xor ecx, ebp
call fcn.00980459
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x483946
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x404
mov eax, dword [0xbcbae0]
lea edi, [ebp - 0x410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x400
push edi
call fcn.004af360
add esp, 8
mov bl, byte [edi]
xor esi, esi
mov eax, edi
test bl, bl
cmove eax, esi
push eax
call fcn.0083b700
add esp, 4
test eax, eax
je 0x4839d0
test bl, bl
mov eax, 0xb71f85
cmove edi, eax
call fcn.00977880
cmp eax, 2
jne 0x4839af
push edi
push str.MySQL_library__s_not_found_n
call fcn.0044a28d
add esp, 8
call fcn.00483cf7
call fcn.00977870
mov esi, eax
call fcn.00977460
push esi
push eax
push edi
push str.Failed_to_load_the_MySQL_library__s__syserr__d__s__n
call fcn.0044a28d
add esp, 0x10
call fcn.00483cf7
push esi
push esi
push esi
call dword [0xc24c6c]
test eax, eax
je 0x4839ef
push str.Failed_to_initialize_the_client_library_in_the_MySQL_database_n
call fcn.0044a28d
add esp, 4
call fcn.00483cf7
call dword [0xc24c64]
test eax, eax
jne 0x483a00
push str.Failed_to_initialize_threads_in_the_MySQL_database_n
jmp 0x4839e2
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00980459
add esp, 0x404
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x764d10
Capabilities:
Hash data with crc32

Disassembly:
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0xb409ec]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0xb409ec]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0xb409ec]
mov eax, ecx
movzx edx, cl
shr eax, 8
xor eax, dword [edx*4 + 0xb409ec]
ret
Function at 0x770c70
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push edi
push esi
sub esp, 0x24
mov edi, ecx
mov ecx, dword [0xbcbae0]
mov eax, dword [esp + 0x34]
mov esi, edx
xor ecx, esp
mov dword [esp + 0x20], ecx
movzx ecx, word [eax]
lea edx, [ecx + ecx]
mov word [esp + 2], dx
movzx edx, word [eax + 2]
lea ecx, [edx + ecx*2]
lea edx, [ecx + ecx]
mov word [esp + 4], dx
movzx edx, word [eax + 4]
lea ecx, [edx + ecx*2]
lea edx, [ecx + ecx]
mov word [esp + 6], dx
movzx edx, word [eax + 6]
lea ecx, [edx + ecx*2]
lea edx, [ecx + ecx]
mov word [esp + 8], dx
movzx edx, word [eax + 8]
lea ecx, [edx + ecx*2]
lea edx, [ecx + ecx]
mov word [esp + 0xa], dx
movzx edx, word [eax + 0xa]
lea ecx, [edx + ecx*2]
lea edx, [ecx + ecx]
mov word [esp + 0xc], dx
movzx edx, word [eax + 0xc]
lea ecx, [edx + ecx*2]
lea edx, [ecx + ecx]
mov word [esp + 0xe], dx
movzx edx, word [eax + 0xe]
lea ecx, [edx + ecx*2]
lea edx, [ecx + ecx]
mov word [esp + 0x10], dx
movzx edx, word [eax + 0x10]
lea ecx, [edx + ecx*2]
lea edx, [ecx + ecx]
mov word [esp + 0x12], dx
movzx edx, word [eax + 0x12]
lea ecx, [edx + ecx*2]
lea edx, [ecx + ecx]
mov word [esp + 0x14], dx
movzx edx, word [eax + 0x14]
lea ecx, [edx + ecx*2]
lea edx, [ecx + ecx]
mov word [esp + 0x16], dx
movzx edx, word [eax + 0x16]
lea ecx, [edx + ecx*2]
lea edx, [ecx + ecx]
mov word [esp + 0x18], dx
movzx edx, word [eax + 0x18]
lea ecx, [edx + ecx*2]
lea edx, [ecx + ecx]
mov word [esp + 0x1a], dx
movzx edx, word [eax + 0x1a]
lea ecx, [edx + ecx*2]
add ecx, ecx
mov word [esp + 0x1c], cx
add cx, word [eax + 0x1c]
add ecx, ecx
test esi, esi
mov word [esp + 0x1e], cx
js 0x770d8c
xor ebx, ebx
movzx edx, word [edi + ebx*4 + 2]
test edx, edx
je 0x770d85
movzx ecx, word [esp + edx*2]
lea eax, [ecx + 1]
mov word [esp + edx*2], ax
call fcn.00770da0
mov word [edi + ebx*4], ax
cmp ebx, esi
lea ebx, [ebx + 1]
jne 0x770d68
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00980459
add esp, 0x24
pop esi
pop edi
pop ebx
ret
Function at 0x774740
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov esi, fcn.007e8830
xor eax, eax
mov edi, ecx
movzx edx, byte [0xbb66b7]
imul esi, esi
and esi, 3
cmp esi, 2
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt edx, eax
jb 0x774889
mov al, byte [0xbb66b7]
xor ecx, ecx
cmp esi, 2
mov ah, 1
sete cl
mov ebx, ecx
not ebx
lea ecx, [ecx + ebx*2]
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb66b7], ah
jne 0x774779
mov ecx, fcn.007e8830
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
mov ebx, edx
not ebx
lea edx, [edx + ebx*2]
and dl, 3
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7747ee
xor eax, eax
cmp ecx, 2
movzx esi, byte [0xbb66b7]
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2]
and al, 3
movzx eax, al
bt esi, eax
jae 0x7747c9
jmp 0x774889
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbb66b7]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt edx, eax
jb 0x77485f
mov ecx, fcn.007e8830
xor eax, eax
mov esi, dword [0xbb66ac]
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete al
mov ecx, eax
not ecx
and ecx, 0x85
lea ecx, [eax + ecx*2 - 0x30cd04b8]
mov edx, ecx
xor esi, ecx
shr edx, 0x1f
mov dword [0xbb66ac], esi
not esi
or edx, ecx
and cl, 7
imul edx, esi
xor dword [0xbb66b0], edx
mov dl, 1
shl dl, cl
or byte [0xbb66b7], dl
mov eax, fcn.007e8830
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
not eax
lea ecx, [ecx + eax*2]
mov al, 0xfe
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbb66b7], al
mov ecx, 0x15
mov edx, edi
push 0xbb66ac
call fcn.007951c0
add esp, 4
pop esi
pop edi
pop ebx
ret