joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452c70
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x20], 8
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x452ca0
xor eax, eax
jmp 0x452d59
push 0x14
push 0
lea ecx, [ebp - 0x1c]
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov byte [ebp - 0x1c], 8
mov byte [ebp - 0x1b], 2
mov dword [ebp - 0x18], 0x6601
mov dword [ebp - 0x14], 8
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00452d60
add esp, 8
push 8
lea ecx, [ebp - 0x10]
push ecx
call fcn.0045a370
add esp, 8
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0x14
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x452d10
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x452d59
push 8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452f40
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR100.dll_strlen
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shl ecx, 1
push ecx
call dword [0x46c030]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x452f7a
mov eax, 0x1b
jmp 0x453042
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00453050
add esp, 0xc
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x452fa3
mov eax, dword [ebp - 0xc]
jmp 0x453042
push 0xf0000000
push 1
push 0
push 0
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x453020
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x8002
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x453014
mov dword [ebp - 0x18], 0x10
push 0
mov edx, dword [ebp - 4]
shl edx, 1
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 2
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 5
push 0
mov ecx, dword [ebp + 0x10]
add ecx, 0x10
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call dword [0x46c034]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457600
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
xor edx, edx
cmp dword [ecx + 4], 3
sete dl
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x457651
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x457630
xor eax, eax
jmp 0x4576da
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
call dword [eax + 0xc]
add esp, 0x10
mov dword [ebp - 4], eax
jmp 0x4576a2
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
jne 0x457685
push 0x45d734
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jne 0x457685
or eax, 0xffffffff
jmp 0x4576da
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4576d7
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0
je 0x4576cb
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404974
Capabilities:
Connect network resource
Enumerate network shares
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x404b7a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x404b5c
xor edx, edx
push ebp
push 0x404b55
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 8], 0x760
mov eax, dword [ebp - 8]
call fcn.00402478
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x404b37
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0xea
jne 0x404a15
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.004024b8
jmp 0x4049d9
test eax, eax
je 0x404a28
call fcn.00402e20
call fcn.00402e20
jmp 0x404b5c
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x4049d9
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
shl eax, 2
mov edx, dword [ebp - 0x10]
lea ebx, [edx + eax*8]
mov edx, dword [ebx + 0xc]
and edx, 2
cmp edx, 2
jne 0x404a5d
mov edx, dword [ebp - 0x10]
lea eax, [edx + eax*8]
call fcn.00404974
cmp dword [ebx + 8], 3
jne 0x404b0d
xor eax, eax
push ebp
push 0x404b06
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
mov edx, dword [ebx + 0x14]
call fcn.00403474
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.004036c8
push eax
call sub.mpr.dll_WNetAddConnectionA
lea eax, [ebp - 0x24]
mov ecx, 0x404b90
mov edx, dword [ebp - 0x1c]
call fcn.00403514
mov eax, dword [ebp - 0x24]
call fcn.004036c8
push eax
call sub.kernel32.dll_SetCurrentDirectoryA_1
call fcn.00404578
cmp word [0x4104c0], 0x7d9
jne 0x404ad4
cmp word [0x4104be], 0xc
jne 0x404adf
cmp word [0x4104bc], 0x1c
jbe 0x404adf
xor edx, edx
mov al, 1
call fcn.004045a8
jmp 0x404ae8
xor edx, edx
xor eax, eax
call fcn.004045a8
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
call fcn.004036c8
push eax
call sub.mpr.dll_WNetCancelConnectionA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404b0d
ret
inc dword [ebp - 0x18]
dec dword [ebp - 0x20]
jne 0x404a3b
jmp 0x4049d9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404b81
lea eax, [ebp - 0x24]
call fcn.00403344
lea eax, [ebp - 0x1c]
call fcn.00403344
ret
Function at 0x404b94
Capabilities:
Get disk information
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 3], cl
mov byte [ebp - 2], dl
mov byte [ebp - 1], al
mov edi, 0x4104b8
xor eax, eax
push ebp
push 0x404caa
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x5a
lea eax, [ebp - 8]
mov ebx, esi
mov edx, ebx
call fcn.00403464
mov edx, dword [ebp - 8]
mov eax, 0x41049c
mov ecx, 0x404cc0
call fcn.00403514
mov byte [0x4104c4], bl
mov eax, dword [0x41049c]
call fcn.004036c8
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [edi], eax
cmp dword [edi], 2
sete al
and al, byte [ebp - 1]
jne 0x404c1a
cmp dword [edi], 4
sete al
and al, byte [ebp - 2]
jne 0x404c1a
cmp dword [edi], 3
sete al
and al, byte [ebp - 3]
je 0x404c8a
mov al, byte [0x4104c4]
call fcn.00403e7c
test al, al
je 0x404c8a
cmp dword [edi], 2
jne 0x404c31
mov bl, 1
jmp 0x404c33
xor ebx, ebx
mov eax, dword [0x41049c]
call fcn.004036c8
push eax
call sub.kernel32.dll_SetCurrentDirectoryA_1
call fcn.00404578
cmp word [0x4104c0], 0x7d9
jne 0x404c67
cmp word [0x4104be], 0xc
jne 0x404c72
cmp word [0x4104bc], 0x1c
jbe 0x404c72
mov edx, ebx
mov al, 1
call fcn.004045a8
jmp 0x404c7b
mov edx, ebx
xor eax, eax
call fcn.004045a8
cmp dword [edi], 2
jne 0x404c8a
push 0x927c0
call sub.kernel32.dll_Sleep
dec esi
cmp esi, 0x42
jne 0x404bc3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404cb1
lea eax, [ebp - 8]
call fcn.00403344
ret
Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x14024b74
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4310d2
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x22d65ae2
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x41f4a3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f4e2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f4e2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f4e2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f4e2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f4e2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4316c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4316ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4316ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x682c7786
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x34b574a3
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x42d460
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42d48d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42d48d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x15c64887
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..rsrc
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x29354855
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x403720
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
test eax, eax
je 0x403787
mov cx, word [0x42252c]
mov dl, byte [0x42252e]
push 0x40
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 6], 0
push eax
mov word [ebp - 0x48], cx
mov byte [ebp - 0x46], dl
call fcn.0040c210
mov edx, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [ebp + 0xc]
lea eax, [ebp - 0x48]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
test eax, eax
je 0x403787
mov edx, dword [ebp + 0x14]
test edx, edx
jbe 0x403838
mov ecx, dword [ebp + 0x18]
add ecx, 0x10
mov dword [ecx], eax
add ecx, 0x14
dec edx
jne 0x40377b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edi
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x40381c
mov eax, dword [ebp + 0x14]
test eax, eax
jbe 0x403810
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
lea esi, [edx + 0x10]
mov dword [ebp + 0x14], eax
mov ecx, dword [esi - 0xc]
lea eax, [esi - 8]
push eax
mov eax, dword [esi - 0x10]
lea edx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push edx
push 0
push eax
push ecx
call ebx
test eax, eax
mov dword [esi], eax
je 0x4037e1
mov edi, eax
jmp 0x403802
mov eax, dword [ebp - 4]
mov ecx, dword [esi - 4]
cmp eax, ecx
je 0x4037fc
test eax, eax
je 0x4037fc
mov dword [esi], 0xb
mov edi, 0xb
jmp 0x403802
mov dword [esi], 0
mov eax, dword [ebp + 0x14]
add esi, 0x14
dec eax
mov dword [ebp + 0x14], eax
jne 0x4037bf
pop esi
pop ebx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403831
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jbe 0x403831
mov eax, dword [ebp + 0x18]
add eax, 0x10
mov dword [eax], edi
add eax, 0x14
dec ecx
jne 0x403829
test edi, edi
jne 0x403835
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403840
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
push edi
test eax, eax
je 0x4038a9
mov cx, word [0x42252c]
mov dl, byte [0x42252e]
push 0x40
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 6], 0
push eax
mov word [ebp - 0x48], cx
mov byte [ebp - 0x46], dl
call fcn.0040c210
mov edx, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [ebp + 0xc]
lea eax, [ebp - 0x48]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
test eax, eax
je 0x4038a9
mov edx, dword [ebp + 0x14]
test edx, edx
jbe 0x40396c
mov ecx, dword [ebp + 0x18]
add ecx, 0x10
mov dword [ecx], eax
add ecx, 0x14
dec edx
jne 0x40389c
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x1c]
lea edx, [ebp - 4]
lea eax, [ebp + 8]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push 0xf003f
push 0
push str.SAP_DBTech
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
test edi, edi
jne 0x403955
mov eax, dword [ebp + 0x14]
test eax, eax
jbe 0x403940
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
lea esi, [ecx + 4]
mov dword [ebp + 0x14], eax
mov eax, dword [esi + 8]
cmp eax, 1
je 0x4038fc
cmp eax, 2
jne 0x403909
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [esi + 8]
push eax
mov eax, dword [esi - 4]
push ecx
mov ecx, dword [ebp + 8]
push edx
push 0
push eax
push ecx
call ebx
test eax, eax
mov dword [esi + 0xc], eax
je 0x40392b
mov edi, eax
jmp 0x403932
mov dword [esi + 0xc], 0
mov eax, dword [ebp + 0x14]
add esi, 0x14
dec eax
mov dword [ebp + 0x14], eax
jne 0x4038ef
pop esi
pop ebx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x40396a
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jbe 0x40396a
mov eax, dword [ebp + 0x18]
add eax, 0x10
mov dword [eax], edi
add eax, 0x14
dec ecx
jne 0x403962
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x404270
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x1c]
push edi
xor edi, edi
cmp eax, 3
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
ja case.0x404294.3
jmp dword [eax*4 + 0x40434c]
mov edx, 1
jmp 0x4042ae
mov edx, 2
jmp 0x4042ae
mov edx, 4
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x404342
mov eax, dword [ebp + 0x14]
test eax, eax
jge 0x4042c2
neg eax
mov ecx, dword [0x42683c]
or eax, 0x40000000
test ecx, ecx
je 0x4042d3
mov ecx, dword [ecx]
push ebx
lea ebx, [ebp - 0xc]
push 0
push ebx
push 0
push 3
push ecx
push eax
push 2
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
pop ebx
jne 0x404338
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x5de
jne 0x404334
mov eax, dword [0x426858]
test eax, eax
jne 0x40432c
push edi
push str.Event_log_is_full__rc___d
push str.MESSAGES
push 1
push 0x4800
mov dword [0x426858], 1
call fcn.00403a30
add esp, 0x14
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x404342
mov dword [0x426858], 0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
lea edx, [ebp - 0x104]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xfd
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x104]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
push ecx
push edx
call fcn.0040c210
mov edi, 0x422d98
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x104]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
mov byte [ebp - 6], bl
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [0x422bb4]
and ecx, 3
cmp edx, 0xffffffff
rep movsb byte es:[edi], byte [esi]
jne 0x404402
push 0x422bb4
call fcn.00404460
mov edx, dword [0x422bb4]
add esp, 4
cmp edx, 0xffffffff
je 0x40444f
lea eax, [ebp + 8]
push 0
push eax
lea edi, [ebp - 0x104]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [ebp - 0x104]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404434
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x404451
pop edi
pop esi
mov dword [0x422bb4], 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4048a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
lea edx, [ebp - 0x104]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xfd
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x104]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
push ecx
push edx
call fcn.0040c210
mov edi, 0x422d98
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x104]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
mov byte [ebp - 6], bl
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp + 0x10]
and ecx, 3
cmp edx, 0xffffffff
rep movsb byte es:[edi], byte [esi]
je 0x404965
push eax
lea eax, [ebp + 8]
push eax
lea edi, [ebp - 0x104]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [ebp - 0x104]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404958
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407a40
Capabilities:
Terminate process

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push str.Component_aborting__PID:__d
push str.XUSER
push 1
push 0x4870
mov edi, eax
call fcn.00403ab0
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40b3f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040c820
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40b4bb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40b4bb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40b46e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40b479
or bh, 8
and edi, 0x8000000
je 0x40b494
mov eax, dword [0x428e5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40b4bb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret