joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10052283
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10099bf8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10048203
and dword [ebp - 0x14], 0
cmp dword [0x1009cdcc], 0
mov dword [ebp - 0x18], eax
jne 0x10052336
push 0x10012204
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100523de
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100121f8
push ebx
call edi
test eax, eax
je 0x100523de
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x100121e8
push ebx
mov dword [0x1009cdcc], eax
call edi
push eax
call esi
push 0x100121d4
push ebx
mov dword [0x1009cdd0], eax
call edi
push eax
call esi
push 0x100121b8
push ebx
mov dword [0x1009cdd4], eax
call edi
push eax
call esi
mov dword [0x1009cddc], eax
test eax, eax
je 0x10052336
push 0x100121a0
push ebx
call edi
push eax
call esi
mov dword [0x1009cdd8], eax
mov eax, dword [0x1009cdd8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1005238f
cmp dword [0x1009cddc], ecx
je 0x1005238f
push eax
call esi
push dword [0x1009cddc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1005238f
test ebx, ebx
je 0x1005238f
call edi
test eax, eax
je 0x10052386
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10052386
test byte [ebp - 8], 1
jne 0x1005238f
or dword [ebp + 0x10], 0x200000
jmp 0x100523c2
mov eax, dword [0x1009cdd0]
cmp eax, dword [ebp - 0x18]
je 0x100523c2
push eax
call esi
test eax, eax
je 0x100523c2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100523c2
mov eax, dword [0x1009cdd4]
cmp eax, dword [ebp - 0x18]
je 0x100523c2
push eax
call esi
test eax, eax
je 0x100523c2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1009cdcc]
call esi
test eax, eax
je 0x100523de
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100523e0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10044d52
leave
ret

Function at 0x10056ccb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x10056d13
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x10056d13
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10056d13
cmp word [eax + 2], 0
je 0x10056d13
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x10056d13
add eax, 0x30
jmp 0x10056d18
mov eax, 0x10012960
pop esi
pop ebp
ret
Function at 0x10058240
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10099bf8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
test ebx, ebx
jne 0x10058285
push 0x15b3c8
call fcn.1003f982
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x1005827e
and dword [ebp - 0x4c], ebx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x100583e9
cmp dword [0x1009d454], eax
je 0x1005829c
mov eax, dword [0x1009b2f8]
mov dword [ebx], eax
xor eax, eax
inc eax
jmp 0x100583e9
push edi
mov dword [ebx], eax
lea eax, [ebp - 0x4c]
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100582ca
push 0x15b3c9
call fcn.1003f982
xor edi, edi
jmp 0x100583d4
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 2
push dword [ebp - 0x4c]
call edi
test eax, eax
je 0x100582ea
push 0x15b3ca
jmp 0x100582be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x100582fc
push 0x15b3cb
jmp 0x100582be
push esi
push dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
call fcn.10058bd0
mov esi, dword [ebp - 0x50]
test al, al
jne 0x10058320
push 0x15b3cc
call fcn.1003f982
xor edi, edi
jmp 0x100583c8
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
push esi
push 2
push dword [ebp - 0x4c]
call edi
test eax, eax
jne 0x1005833a
push 0x15b3cd
jmp 0x10058314
push 0x43
lea eax, [ebp - 0x47]
push 0
push eax
mov byte [ebp - 0x48], 0
call fcn.1004562d
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0xb
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x10058372
push 0x15b3ce
jmp 0x10058314
and dword [ebp - 0x58], 0
xor edi, edi
inc edi
cmp dword [esi], 0
jbe 0x100583bb
lea eax, [esi + 4]
mov dword [ebp - 0x50], eax
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x100583a3
mov eax, dword [ebp - 0x50]
push dword [eax]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x100583b9
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x50]
inc ecx
add eax, 8
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], eax
cmp ecx, dword [esi]
jb 0x10058384
jmp 0x100583bb
mov dword [ebx], edi
mov dword [0x1009d454], edi
mov eax, dword [ebx]
mov dword [0x1009b2f8], eax
test esi, esi
je 0x100583d3
push esi
call fcn.1003f979
pop ecx
pop esi
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x100583e6
and dword [ebp - 0x4c], 0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10044d52
leave
ret 4
Function at 0x10059ae1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x904
mov eax, dword [0x10099bf8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x100
lea eax, [ebp - 0x904]
push 0
push eax
call fcn.1004562d
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
xor edi, edi
call fcn.10043e1a
push 0x5c
pop esi
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.1005dfd8
pop ecx
pop ecx
test eax, eax
je 0x10059b46
xor ecx, ecx
mov dword [ebp + edi*4 - 0x904], eax
mov word [eax], cx
inc edi
cmp edi, 0x40
jge 0x10059b89
test eax, eax
je 0x10059b7f
lea eax, [ebp - 0x804]
push eax
call fcn.1005e2bb
test eax, eax
js 0x10059b26
jmp 0x10059b7f
mov eax, dword [ebp + edi*4 - 0x908]
dec edi
mov word [eax], si
push 0
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10059b89
cmp edi, 1
jg 0x10059b61
xor eax, eax
inc eax
jmp 0x10059b8b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10044d52
leave
ret 4

Function at 0x10059c7f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10099bf8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor bl, bl
call fcn.1005e272
test eax, eax
je 0x10059da0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor edi, edi
push edi
push 0x100129c8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], edi
call esi
test eax, eax
jne 0x10059d72
lea eax, [ebp - 0x218]
push eax
push 0x20119
push edi
push 0x100129c8
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x10059d72
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x10012a2c
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 0x20a
call esi
test eax, eax
jne 0x10059d72
cmp dword [ebp - 0x220], 1
jne 0x10059d72
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x10012a2c
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x20a
call esi
test eax, eax
jne 0x10059d72
cmp dword [ebp - 0x220], 1
jne 0x10059d72
inc bl
mov eax, dword [ebp - 0x218]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10059d8b
push eax
mov dword [ebp - 0x218], edi
call esi
mov ecx, dword [ebp - 0x214]
test ecx, ecx
je 0x10059d9e
push ecx
mov dword [ebp - 0x214], edi
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.10044d52
leave
ret
Function at 0x1006018d
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x100601c8
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x100601af
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x100601c0
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x100601ca
inc edi
add eax, 0x28
cmp edi, esi
jb 0x100601a5
xor eax, eax
pop edi
pop esi
ret
Function at 0x1000567b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1001ae0c
call fcn.1001a6e0
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x100056f8
push 2
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x100056f8
call fcn.10003dca
mov esi, eax
jmp 0x100057fe
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x1000571b
call fcn.10003dca
jmp 0x100057f1
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x10005711
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x1000574e
mov esi, 0x8007000e
jmp 0x100057f3
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x1000582c
jb 0x10005769
cmp eax, 0xffffffff
ja 0x1000582c
cmp eax, 0x400
jbe 0x1000577e
push eax
lea ecx, [ebp - 0x418]
call fcn.100072a1
jmp 0x100057a0
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x100057a0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x10005744
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x10005711
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.100072a1
mov esi, eax
test edi, edi
je 0x100057fe
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10005817
lea ecx, [ebp - 0x418]
call fcn.10003d92
lea ecx, [ebp - 0x428]
call fcn.10004436
mov eax, esi
call fcn.1001a631
ret 0x10
push 0x80070216
call fcn.100072a1
int3
Function at 0x10005e6b
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1001aed0
call fcn.1001a63e
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x20
call fcn.100072a1
mov esi, eax
pop ecx
test esi, esi
je 0x10005eab
and dword [esi + 4], 0
lea ecx, [esi + 8]
mov edi, ecx
xor eax, eax
push ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
and dword [esi + 0x18], 0
mov edi, dword [ebp - 0x10]
jmp 0x10005ead
xor esi, esi
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
test esi, esi
jne 0x10005ec2
mov ebx, 0x8007000e
jmp 0x10005fa1
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov dword [esi], edi
test edi, edi
je 0x10005f1b
test ebx, ebx
je 0x10005f9c
cmp dword [ebp + 8], 0
jne 0x10005f9c
push ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
call ebx
mov edi, eax
mov eax, dword [esi + 4]
cmp edi, eax
je 0x10005f15
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
je 0x10005f0f
push edi
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x10005fe5
jmp 0x10005f37
and dword [esi + 4], 0
xor eax, eax
test eax, eax
jne 0x10005f37
jmp 0x10005eb8
test ebx, ebx
jne 0x10005f9c
cmp dword [ebp + 8], ebx
je 0x10005f9c
push dword [ebp + 8]
lea eax, [esi + 8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantChangeType]
mov ebx, eax
test ebx, ebx
js 0x10005fa1
lea ecx, [esi + 0x18]
call fcn.100072a1
mov ebx, eax
test ebx, ebx
js 0x10005fa1
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10005fef
mov eax, dword [ecx]
push ecx
call dword [eax + 0xbc]
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x10006064
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x10005f8b
call dword [sym.imp.kernel32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x10005f8f
xor esi, esi
xor ebx, ebx
test edi, edi
je 0x10005fa1
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x10005fa1
mov ebx, 0x80070057
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10005fdb
mov dword [ebp - 4], 8
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10005fc1
and dword [esi + 0x18], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push dword [esi + 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call fcn.100072a1
pop ecx
mov eax, ebx
call fcn.1001a60f
ret 4
push 0x8007000e
call fcn.100072a1
push 0
push 0x152139a
call fcn.100072a1
int3
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x1d690624
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x173c01b2
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40a930
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, 0x44b104
jmp 0x40a950
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 0x40a966
mov ax, word [0x43cb70]
mov word [edi], ax
mov eax, dword [esp + 0xe4]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a980
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40a990
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 0x40aa0a
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 0x40aa0a
mov ecx, dword [esp + 0xf4]
cmp dword [esp + 0x14], ecx
je 0x40aa26
add ebx, 4
cmp ebx, 0x44b10c
jl 0x40a950
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 0x40aa60
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x40aa7e
mov eax, esi
pop esi
ret
mov byte [esi], 0
xor eax, eax
pop esi
ret

Function at 0x40aed0
Capabilities:
Check os version
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
mov eax, str.Unknown_error
je 0x40aee0
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 0x40aefd
push esi
call fcn.0042ecdd
add esp, 4
push 1
call fcn.0042be8a
pop esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x414190
Capabilities:
Hash data using sha1

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
xor ebp, ebp
push esi
push edi
test ebx, ebx
jne 0x4141a8
pop edi
pop esi
pop ebp
mov eax, 0xe105
pop ebx
ret
mov eax, dword [esp + 0x14]
mov dword [ebx], 0
cmp eax, 0x14
je 0x4141c1
pop edi
pop esi
pop ebp
mov eax, 0xe901
pop ebx
ret
mov edi, dword [esp + 0x20]
push edi
push 0x64
call fcn.0040fd90
mov esi, eax
add esp, 8
test esi, esi
jne 0x4141e0
pop edi
pop esi
pop ebp
mov eax, 0xf001
pop ebx
ret
push edi
push 0x64
push 0
push esi
call fcn.0040fe30
push esi
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
mov dword [esi + 0x14], 0xc3d2e1f0
mov dword [esi], 0x4001
call fcn.00419ac0
push edi
push esi
call fcn.0040fd80
add esp, 0x1c
mov dword [ebx], eax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x417ad0
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
xor ebp, ebp
push esi
push edi
test ebx, ebx
jne 0x417ae8
pop edi
pop esi
pop ebp
mov eax, 0xe105
pop ebx
ret
mov eax, dword [esp + 0x14]
mov dword [ebx], 0
cmp eax, 0x10
je 0x417b01
pop edi
pop esi
pop ebp
mov eax, 0xe901
pop ebx
ret
mov edi, dword [esp + 0x20]
push edi
push 0x60
call fcn.0040fd90
mov esi, eax
add esp, 8
test esi, esi
jne 0x417b20
pop edi
pop esi
pop ebp
mov eax, 0xf001
pop ebx
ret
push edi
push 0x60
push 0
push esi
call fcn.0040fe30
push esi
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
mov dword [esi], 0x4101
call fcn.0041e380
push edi
push esi
call fcn.0040fd80
add esp, 0x1c
mov dword [ebx], eax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41db63
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor eax, eax
mov ebx, edx
sub ebx, 0x20
jb 0x41db73
shl ax, 8
sahf
jmp 0x41db97
mov ebx, eax
mov eax, 0x20
sub eax, edx
lea edx, [eax*4 + 0x41db97]
lea edx, [edx + eax*2]
shl eax, 2
sub esi, eax
sub edi, eax
mov ah, bl
sahf
mov ebx, 0
jmp edx
nop
nop
mov eax, dword [esi]
sbb dword [edi], eax
mov eax, dword [esi + 4]
sbb dword [edi + 4], eax
mov eax, dword [esi + 8]
sbb dword [edi + 8], eax
mov eax, dword [esi + 0xc]
sbb dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
sbb dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
sbb dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
sbb dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
sbb dword [edi + 0x1c], eax
mov eax, dword [esi + 0x20]
sbb dword [edi + 0x20], eax
mov eax, dword [esi + 0x24]
sbb dword [edi + 0x24], eax
mov eax, dword [esi + 0x28]
sbb dword [edi + 0x28], eax
mov eax, dword [esi + 0x2c]
sbb dword [edi + 0x2c], eax
mov eax, dword [esi + 0x30]
sbb dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
sbb dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
sbb dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
sbb dword [edi + 0x3c], eax
mov eax, dword [esi + 0x40]
sbb dword [edi + 0x40], eax
mov eax, dword [esi + 0x44]
sbb dword [edi + 0x44], eax
mov eax, dword [esi + 0x48]
sbb dword [edi + 0x48], eax
mov eax, dword [esi + 0x4c]
sbb dword [edi + 0x4c], eax
mov eax, dword [esi + 0x50]
sbb dword [edi + 0x50], eax
mov eax, dword [esi + 0x54]
sbb dword [edi + 0x54], eax
mov eax, dword [esi + 0x58]
sbb dword [edi + 0x58], eax
mov eax, dword [esi + 0x5c]
sbb dword [edi + 0x5c], eax
mov eax, dword [esi + 0x60]
sbb dword [edi + 0x60], eax
mov eax, dword [esi + 0x64]
sbb dword [edi + 0x64], eax
mov eax, dword [esi + 0x68]
sbb dword [edi + 0x68], eax
mov eax, dword [esi + 0x6c]
sbb dword [edi + 0x6c], eax
mov eax, dword [esi + 0x70]
sbb dword [edi + 0x70], eax
mov eax, dword [esi + 0x74]
sbb dword [edi + 0x74], eax
mov eax, dword [esi + 0x78]
sbb dword [edi + 0x78], eax
mov eax, dword [esi + 0x7c]
sbb dword [edi + 0x7c], eax
mov eax, 0
setb al
cmp ebx, 0
je 0x41dc77
add esi, 0x80
add edi, 0x80
mov edx, ebx
jmp 0x41db67
ret
Function at 0x41dd13
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor eax, eax
mov ebx, edx
sub ebx, 0x20
jb 0x41dd23
shl ax, 8
sahf
jmp 0x41dd47
mov ebx, eax
mov eax, 0x20
sub eax, edx
lea edx, [eax*4 + 0x41dd47]
lea edx, [edx + eax*2]
shl eax, 2
sub esi, eax
sub edi, eax
mov ah, bl
sahf
mov ebx, 0
jmp edx
nop
nop
mov eax, dword [esi]
adc dword [edi], eax
mov eax, dword [esi + 4]
adc dword [edi + 4], eax
mov eax, dword [esi + 8]
adc dword [edi + 8], eax
mov eax, dword [esi + 0xc]
adc dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
adc dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
adc dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
adc dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
adc dword [edi + 0x1c], eax
mov eax, dword [esi + 0x20]
adc dword [edi + 0x20], eax
mov eax, dword [esi + 0x24]
adc dword [edi + 0x24], eax
mov eax, dword [esi + 0x28]
adc dword [edi + 0x28], eax
mov eax, dword [esi + 0x2c]
adc dword [edi + 0x2c], eax
mov eax, dword [esi + 0x30]
adc dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
adc dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
adc dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
adc dword [edi + 0x3c], eax
mov eax, dword [esi + 0x40]
adc dword [edi + 0x40], eax
mov eax, dword [esi + 0x44]
adc dword [edi + 0x44], eax
mov eax, dword [esi + 0x48]
adc dword [edi + 0x48], eax
mov eax, dword [esi + 0x4c]
adc dword [edi + 0x4c], eax
mov eax, dword [esi + 0x50]
adc dword [edi + 0x50], eax
mov eax, dword [esi + 0x54]
adc dword [edi + 0x54], eax
mov eax, dword [esi + 0x58]
adc dword [edi + 0x58], eax
mov eax, dword [esi + 0x5c]
adc dword [edi + 0x5c], eax
mov eax, dword [esi + 0x60]
adc dword [edi + 0x60], eax
mov eax, dword [esi + 0x64]
adc dword [edi + 0x64], eax
mov eax, dword [esi + 0x68]
adc dword [edi + 0x68], eax
mov eax, dword [esi + 0x6c]
adc dword [edi + 0x6c], eax
mov eax, dword [esi + 0x70]
adc dword [edi + 0x70], eax
mov eax, dword [esi + 0x74]
adc dword [edi + 0x74], eax
mov eax, dword [esi + 0x78]
adc dword [edi + 0x78], eax
mov eax, dword [esi + 0x7c]
adc dword [edi + 0x7c], eax
mov eax, 0
setb al
cmp ebx, 0
je 0x41de27
add esi, 0x80
add edi, 0x80
mov edx, ebx
jmp 0x41dd17
ret