joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10020b1
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1e4
mov eax, dword [0x10060f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1d4], eax
xor eax, eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x1e0], ecx
mov dword [ebp - 0x1dc], eax
cmp ecx, eax
jne 0x10020f5
push 0x7a
pop eax
jmp 0x10022b8
xor edx, edx
mov word [ecx], dx
cmp dword [ebp + 0xc], eax
je 0x1002102
push 0xa
pop ebx
cmp dword [ebp + 0x18], eax
je 0x100210a
or ebx, 1
cmp dword [ebp + 0x14], eax
je 0x1002112
or ebx, 0x10
push esi
mov esi, dword [sym.imp.WS2_32.dll_getnameinfo]
push edi
mov edi, 0x104
cmp dword [ebp + 0x10], eax
je 0x100217b
cmp dword [ebp + 0xc], eax
jne 0x100217b
cmp dword [0x1006b54], eax
je 0x1002140
mov dword [ebp - 0x1d8], 0x1006a50
jmp 0x10021cd
push edi
push 0x1006a50
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x1002179
push 0x2e
mov edi, 0x1006a50
push edi
mov dword [0x1006b54], 1
call dword [sym.imp.msvcrt.dll_strchr]
pop ecx
pop ecx
test eax, eax
je 0x1002171
mov byte [eax], 0
mov dword [ebp - 0x1d8], edi
jmp 0x10021cb
xor eax, eax
push ebx
push eax
push eax
push edi
lea eax, [ebp - 0x1d0]
push eax
push dword [ebp + 0x20]
push dword [ebp - 0x1d4]
call esi
xor ecx, ecx
cmp eax, ecx
je 0x10021bf
cmp dword [ebp + 0xc], ecx
jne 0x10021b7
mov eax, ebx
or eax, 2
push eax
push ecx
push ecx
push edi
lea eax, [ebp - 0x1d0]
push eax
push dword [ebp + 0x20]
push dword [ebp - 0x1d4]
call esi
test eax, eax
jne 0x10022b6
lea eax, [ebp - 0x1d0]
mov dword [ebp - 0x1d8], eax
xor eax, eax
push ebx
mov edi, 0xc8
push edi
lea ecx, [ebp - 0xcc]
push ecx
push eax
push eax
push dword [ebp + 0x20]
push dword [ebp - 0x1d4]
call esi
cmp eax, 0x2afc
jne 0x1002213
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x10022b6
or ebx, 8
push ebx
push edi
lea eax, [ebp - 0xcc]
push eax
push ecx
push ecx
push dword [ebp + 0x20]
push dword [ebp - 0x1d4]
call esi
test eax, eax
jne 0x10022b6
mov ebx, dword [ebp - 0x1d8]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002226
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0xcc]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100223a
sub eax, esi
mov esi, dword [ebp - 0x1e4]
lea edi, [eax + ecx + 4]
cmp dword [esi], edi
jge 0x100225d
mov dword [ebp - 0x1dc], 0x7a
jmp 0x10022ae
mov eax, dword [ebp - 0x1d4]
cmp word [eax], 0x17
jne 0x1002287
push 0x3a
push ebx
call dword [sym.imp.msvcrt.dll_strchr]
pop ecx
pop ecx
test eax, eax
je 0x1002287
lea eax, [ebp - 0xcc]
push eax
push ebx
push 0x1001260
jmp 0x1002294
lea eax, [ebp - 0xcc]
push eax
push ebx
push 0x1001254
push dword [esi]
mov ebx, dword [ebp - 0x1e0]
push ebx
call fcn.01001ceb
add esp, 0x14
test eax, eax
jge 0x10022ae
xor eax, eax
mov word [ebx], ax
mov eax, dword [ebp - 0x1dc]
mov dword [esi], edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01003816
leave
ret 0x1c
Function at 0x1003807
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1005008
call fcn.010039b4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1006ec0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100361c
cmp eax, esi
jne 0x100360f
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x100361f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10035f6
xor esi, esi
inc esi
mov eax, dword [0x1006ebc]
cmp eax, esi
jne 0x1003632
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100366d
mov eax, dword [0x1006ebc]
test eax, eax
jne 0x1003667
mov dword [0x1006ebc], esi
push 0x100119c
push 0x1001190
call fcn.01003573
pop ecx
pop ecx
test eax, eax
je 0x100366d
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1003737
mov dword [0x1006b74], esi
mov eax, dword [0x1006ebc]
cmp eax, esi
jne 0x1003691
push 0x100118c
push 0x1001184
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1006ebc], 2
cmp dword [ebp - 0x1c], ebx
jne 0x100369e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1006ec4], ebx
je 0x10036bf
push 0x1006ec4
call fcn.01003929
pop ecx
test eax, eax
je 0x10036bf
push ebx
push 2
push ebx
call dword [0x1006ec4]
push dword [0x1006b5c]
push dword [0x1006b60]
push dword [0x1006b58]
call fcn.0100301d
add esp, 0xc
mov dword [0x1006b70], eax
cmp dword [0x1006b64], ebx
jne 0x100371d
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1006b74], ebx
jne 0x100372b
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1006b70]
call fcn.010039f9
ret
call fcn.01003b01
jmp 0x10035d4
Function at 0x100477a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x10060f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.msvcrt.dll_time]
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x118]
mov dword [esp], 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x10047c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100488e
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10047c9
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub eax, edx
cmp dword [0x1006ea8], 0
push edi
lea edi, [ebp + eax - 0x118]
je 0x1004820
push 0x100130c
lea eax, [ebp - 4]
sub eax, edi
push eax
push edi
call fcn.01004712
test eax, eax
jl 0x1004835
lea eax, [ebp - 0x118]
push eax
call ebx
test eax, eax
je 0x1004820
push 0x10012fc
push eax
call esi
mov dword [0x1006ed0], eax
push 0x10012ec
lea eax, [ebp - 4]
sub eax, edi
push eax
push edi
call fcn.01004712
test eax, eax
jge 0x1004839
push 8
jmp 0x100486c
lea eax, [ebp - 0x118]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x100486a
push 0x10012d8
push edi
call esi
mov dword [0x1006ec8], eax
test eax, eax
je 0x100486a
push 0x10012c4
push edi
call esi
mov dword [0x1006ecc], eax
test eax, eax
jne 0x100486f
push 2
pop eax
jmp 0x100488b
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
call dword [0x1006ec8]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01003816
leave
ret

Function at 0x1004ef9
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10060f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x1004f6a
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1004f58
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x10], ebx
je 0x1004f6a
mov al, 1
jmp 0x1004f6c
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01003816
leave
ret 4
Function at 0x4ae160
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x55000]
push edi
or ebp, 0xffffffff
jmp 0x4ae182
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ae189
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ae178
mov eax, 1
add ebx, ebx
jne 0x4ae19b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ae1ac
jne 0x4ae1cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ae1cb
dec eax
add ebx, ebx
jne 0x4ae1b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ae190
add ebx, ebx
jne 0x4ae1c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ae21d
xor ecx, ecx
sub eax, 3
jb 0x4ae1e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ae252
sar eax, 1
mov ebp, eax
jmp 0x4ae1ee
add ebx, ebx
jne 0x4ae1ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ae1bc
inc ecx
add ebx, ebx
jne 0x4ae1fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ae1bc
add ebx, ebx
jne 0x4ae209
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ae1fe
jne 0x4ae21a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ae1fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ae23c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ae22e
jmp 0x4ae17e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ae23c
add edi, ecx
jmp 0x4ae17e
pop esi
mov edi, esi
mov ecx, 0xddd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ae25a
cmp byte [edi], 1
jne 0x4ae25a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4ae25f
lea edi, [esi + 0xab000]
mov eax, dword [edi]
or eax, eax
je 0x4ae2d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xae000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xae0e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ae28c
mov ecx, edi
jns 0x4ae2bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xae0e8]
or eax, eax
je 0x4ae2d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4ae2a9
call dword [esi + 0xae0e4]
mov ebp, dword [esi + 0xae0ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4ae30b
sub esp, 0xffffff80
jmp 0x413bb2
Function at 0x402a7c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423f30]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x407010]
cmp eax, ebx
jne 0x402af7
mov esi, dword [0x407008]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402afe
cmp dword [ebp + 0x10], ebx
jne 0x402aeb
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a7c
test eax, eax
jne 0x402afe
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402abe
push dword [ebp - 4]
call dword [0x40701c]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [0x40701c]
push 2
call fcn.00405f8e
cmp eax, ebx
je 0x402b23
push ebx
push dword [0x423f30]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402af7
cmp dword [0x423f30], ebx
jne 0x402af4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x407014]
test eax, eax
jne 0x402af4
jmp 0x402af7

Function at 0x405b28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x407010]
test eax, eax
jne 0x405b99
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [section..rdata]
test eax, eax
jne 0x405b88
cmp dword [ebp + 0x14], 1
je 0x405b8a
cmp dword [ebp + 0x14], 2
je 0x405b8a
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [0x40701c]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x10001280
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
add esp, 0x24
ret

Function at 0x10004d10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10053938
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1007fa04]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esi + 0x50]
lea ecx, [esi + 0x30]
cmp eax, ecx
mov dword [esp + 0x14], 0
je 0x10004d57
test eax, eax
je 0x10004d57
mov ecx, dword [eax - 4]
push eax
call fcn.10004590
mov eax, dword [esi + 0x24]
add esi, 4
cmp eax, esi
mov dword [esp + 0x14], 0xffffffff
je 0x10004d76
test eax, eax
je 0x10004d76
mov ecx, dword [eax - 4]
push eax
call fcn.10004590
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x100063f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x1007fa04]
xor eax, esp
mov dword [esp + 0x110], eax
push edi
mov edi, dword [esp + 0x11c]
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SOFTWAREFirebird_ProjectFirebird_ServerInstances
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100064aa
push esi
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.DefaultInstance
push ecx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x100064aa
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10006470
sub eax, edx
push eax
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call fcn.10045a00
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov al, 1
pop edi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.10052756
add esp, 0x114
ret
mov ecx, dword [esp + 0x114]
pop edi
xor ecx, esp
xor al, al
call fcn.10052756
add esp, 0x114
ret
Function at 0x10006730
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10053b90
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1007fa04]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x1007fa04]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov edi, ecx
call fcn.10001490
mov dword [esp + 0x3c], eax
xor ebx, ebx
lea eax, [esp + 0x40]
mov dword [esp + 0x60], eax
mov word [esp + 0x64], bx
mov word [esp + 0x66], 0x20
mov byte [esp + 0x40], bl
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x78], ebx
call fcn.10006340
add esp, 4
test al, al
jne 0x100067e9
lea edx, [esp + 0x10]
push edx
call fcn.10047110
add esp, 4
movzx ecx, word [eax + 0x28]
mov eax, dword [eax + 0x24]
push ecx
push eax
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x80], 1
call fcn.10045a00
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x20]
add esp, 0xc
cmp eax, ecx
mov byte [esp + 0x74], bl
je 0x100067e9
cmp eax, ebx
je 0x100067e9
mov ecx, dword [eax - 4]
push eax
call fcn.10004590
cmp word [esp + 0x64], bx
je 0x100068d2
mov edx, dword [0x10071c0c]
movzx eax, byte [0x10071c7d]
push edx
push eax
lea ecx, [esp + 0x44]
call fcn.10045470
push eax
push ebx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x48]
call fcn.100051c0
movzx ecx, word [eax + 0x28]
mov eax, dword [eax + 0x24]
push ecx
push eax
lea esi, [edi + 0x60]
push ecx
mov ecx, esi
mov byte [esp + 0x80], 2
call fcn.10045a00
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x20]
add esp, 0xc
cmp eax, edx
mov byte [esp + 0x74], bl
je 0x1000685e
cmp eax, ebx
je 0x1000685e
mov ecx, dword [eax - 4]
push eax
call fcn.10004590
movzx eax, word [edi + 0x88]
push eax
movzx eax, byte [0x10071c7d]
push eax
mov ecx, esi
call fcn.10045470
cmp eax, ebx
je 0x100068c6
push eax
push ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.100051c0
movzx ecx, word [eax + 0x28]
mov eax, dword [eax + 0x24]
push ecx
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x80], 3
call fcn.10045a00
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x20]
add esp, 0xc
cmp eax, edx
mov byte [esp + 0x74], bl
je 0x100068c6
cmp eax, ebx
je 0x100068c6
mov ecx, dword [eax - 4]
push eax
call fcn.10004590
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x40]
cmp eax, ecx
jmp 0x100068f6
push 0x1a
push str.c:Program_FilesFirebird_
lea ecx, [edi + 0x60]
push 0x1a
call fcn.10045a00
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x4c]
add esp, 0xc
cmp eax, edx
mov dword [esp + 0x74], 0xffffffff
je 0x1000690d
cmp eax, ebx
je 0x1000690d
mov ecx, dword [eax - 4]
push eax
call fcn.10004590
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.10052756
add esp, 0x68
ret
Function at 0x10009a60
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10053cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1007fa04]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007fa04]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x60]
test esi, esi
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
jne 0x10009ab2
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10009aa5
sub eax, edx
mov esi, eax
mov eax, dword [0x100834c4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x1007f070]
cmp eax, 0xffffffff
jne 0x10009b3f
push str.firebird.log
lea ecx, [esp + 0x20]
push 0xe
push ecx
call fcn.100473b0
add esp, 0xc
mov edx, dword [esp + 0x40]
push 0
push 0x80
push 4
push 0
push 7
push 0x40000000
push edx
mov dword [esp + 0x70], 0
call edi
or ecx, 0xffffffff
cmp eax, ecx
mov dword [0x1007f070], eax
mov dword [esp + 0x54], ecx
je 0x10009b7d
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x20]
cmp ecx, edx
je 0x10009b3f
test ecx, ecx
je 0x10009b3f
push ecx
mov ecx, dword [ecx - 4]
call fcn.10004590
mov eax, dword [0x1007f070]
push 2
push 0
push 0
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov edx, dword [0x1007f070]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edx
call ebx
cmp dword [esp + 0x14], esi
je 0x10009b96
mov eax, dword [0x1007f070]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov dword [0x1007f070], eax
jmp 0x10009ad7
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x10009b96
test eax, eax
je 0x10009b96
mov ecx, dword [eax - 4]
push eax
call fcn.10004590
mov edx, dword [0x100834c4]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.10052756
add esp, 0x44
ret 8
Function at 0x1000b0a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
push esi
push 0
push 0x8000
push eax
call dword [sym.imp.MSVCR80.dll__open]
mov esi, eax
add esp, 0xc
test esi, esi
jge 0x1000b0cb
mov eax, 0xfffffffe
pop esi
add esp, 0x10
ret 8
push 0x10
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.MSVCR80.dll__read]
add esp, 0xc
test eax, eax
jge 0x1000b0f6
push esi
call dword [sym.imp.MSVCR80.dll__close]
add esp, 4
mov eax, 0xfffffffd
pop esi
add esp, 0x10
ret 8
mov al, 1
cmp byte [esp + 4], al
jne 0x1000b156
cmp byte [esp + 5], al
jb 0x1000b156
movzx edx, word [esp + 6]
add edx, 0xf
push edx
call sym.fbclient.dll_gds__alloc
test eax, eax
jne 0x1000b12c
push esi
call dword [sym.imp.MSVCR80.dll__close]
add esp, 4
mov eax, 0xfffffffb
pop esi
add esp, 0x10
ret 8
mov dword [eax + 4], esi
mov cx, word [esp + 6]
mov word [eax + 8], cx
mov dx, word [esp + 0x10]
mov word [eax + 0xa], dx
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [edx], eax
xor eax, eax
pop esi
add esp, 0x10
ret 8
push esi
call dword [sym.imp.MSVCR80.dll__close]
add esp, 4
mov eax, 0xfffffffc
pop esi
add esp, 0x10
ret 8

Function at 0x1000ba10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000ba38
xor al, al
add esp, 0xc
ret
mov eax, dword [esp]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 8]
push ecx
push 0
lea edx, [esp + 0x14]
push edx
push 0
push str.ProgramFilesDir
push eax
mov dword [esp + 0x20], 0
call edi
test eax, eax
jne 0x1000bac2
cmp dword [esp + 0xc], 1
jne 0x1000bac2
mov eax, dword [esp + 8]
test eax, eax
je 0x1000bac2
push eax
mov ecx, esi
call fcn.10045ad0
mov eax, dword [esi + 0x24]
lea ecx, [esp + 8]
push ecx
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 0
push str.ProgramFilesDir
push eax
call edi
mov ecx, dword [esp + 4]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x1000bacd
mov ecx, esi
call fcn.100062d0
push str.Firebird_
mov ecx, esi
call fcn.1000a8f0
mov al, 1
pop edi
add esp, 0xc
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
add esp, 0xc
ret
Function at 0x1000de20
Capabilities:
Get hostname

Disassembly:
movzx eax, word [esp + 8]
push esi
mov esi, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x1000de4a
mov edx, dword [esp + 0xc]
mov byte [edx + esi], 0
mov eax, esi
pop esi
ret
mov eax, dword [str.local]
mov dword [esi], eax
mov cx, word [0x1006df0c]
mov word [esi + 4], cx
mov eax, esi
pop esi
ret