joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d4f30
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x39c
mov eax, dword [esp + 0x3a0]
push esi
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x378
je 0x4d509c
mov ecx, dword [esp + 0x3ac]
test ecx, ecx
je 0x4d509c
mov edx, dword [esp + 0x3b0]
test edx, edx
je 0x4d509c
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
push ecx
push eax
call esi
test eax, eax
jne 0x4d509c
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push 0
push str.PackedCatalogItem
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d5080
cmp dword [esp + 0x10], 0x378
jne 0x4d5080
cmp dword [esp + 0x158], 1
jne 0x4d50a9
cmp dword [esp + 0x17c], 2
jne 0x4d50a9
mov eax, dword [esp + 0x154]
lea ecx, [esp + 0x14]
push eax
push 0xe09410
push ecx
call fcn.004f23bf
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4d5080
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.004d50e0
test eax, eax
je 0x4d5080
mov edx, dword [esp + 0x10]
push 3
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push reloc.WS2_32.dll_bind
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, edi
call fcn.004d4be0
test eax, eax
je 0x4d5080
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 8]
lea eax, [esp + 0x2c]
push edx
push eax
push 3
push 0
push str.PackedCatalogItem
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4d50a9
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4d5091
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x4d509c
push eax
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x39c
ret 0xc
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4d50ba
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x4d50c5
push eax
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x39c
ret 0xc
Function at 0x4d50e0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x480
mov ecx, dword [esp + 0x484]
mov dword [esp], 0x378
test ecx, ecx
je 0x4d51a1
mov eax, dword [esp + 0x488]
test eax, eax
je 0x4d51a1
lea edx, [esp]
push edx
lea edx, [esp + 0x10c]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d51a1
cmp dword [esp], 0x378
jne 0x4d51a1
lea eax, [esp + 4]
push 0x104
lea ecx, [esp + 0x10c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4d51a1
lea edx, [esp + 4]
push edx
call fcn.004d4b70
add esp, 4
test eax, eax
je 0x4d51a1
cmp dword [esp + 0x234], 1
jne 0x4d5193
cmp dword [esp + 0x258], 2
jne 0x4d5193
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4d51a1
push str.WSPStartup
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d51a1
mov eax, 1
add esp, 0x480
ret 8
xor eax, eax
add esp, 0x480
ret 8

Function at 0x4d51b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
je 0x4d520f
push esi
call fcn.004d4b70
add esp, 4
test eax, eax
je 0x4d520f
lea eax, [esp + 4]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4d520f
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4d520f
push 0xe09434
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x104
ret 4
xor eax, eax
pop esi
add esp, 0x104
ret 4
Function at 0x4d52a0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov ebx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
jne 0x4d52d4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.004d51b0
test eax, eax
jne 0x4d52ed
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.004d5220
cmp eax, 1
je 0x4d547a
lea eax, [esp + 0x10]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4d5326
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x4d53a2
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4d5422
mov eax, dword [esp + 0x14]
push str.PackedCatalogItem
push eax
mov ecx, ebx
call fcn.004d50e0
mov ecx, dword [esp + 0x14]
test eax, eax
push ecx
je 0x4d5439
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
inc esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x4d5342
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
xor esi, esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x4d53f0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push ebp
push edx
push eax
mov ecx, ebx
call fcn.004d4d90
test eax, eax
je 0x4d5422
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
inc esi
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
je 0x4d53be
cmp dword [esp + 0x18], 1
jb 0x4d5422
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
dec ecx
push reloc.WS2_32.dll_bind
push ecx
push ebp
push str.FileName
mov ecx, ebx
call fcn.004d4c70
cmp eax, 1
je 0x4d546b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4d5449
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
jmp 0x4d5422
push ebp
mov ecx, ebx
call fcn.004d5490
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4d547a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret 4
Function at 0x4d5490
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x114]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov edi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 1
jne 0x4d54c2
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
push esi
mov ecx, edi
call fcn.004d5220
test eax, eax
jne 0x4d54df
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x10c
ret 4
lea eax, [esp + 0xc]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4d5506
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x4d5554
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push ebp
push eax
push ecx
mov ecx, edi
call fcn.004d4f30
test eax, eax
jne 0x4d553d
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
inc esi
push 0x104
push edx
push esi
push eax
call ebx
test eax, eax
je 0x4d5523
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push reloc.WS2_32.dll_bind
mov ecx, edi
call fcn.004d4d00
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x4d5577
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret 4

Function at 0x4db700
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xe7dba0]
xor edx, edx
cmp eax, edx
jne 0x4db726
xor eax, eax
mov byte [eax + 0xe7daa0], al
inc eax
cmp eax, 0x100
jl 0x4db70e
mov dword [0xe7dba0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xe7daa0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4db7b7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4db78a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4db758
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4db7c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4db813
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4db7fa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e21d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52f85e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004e2af0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xd064cc
call fcn.0051f018
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4e2263
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0051f018
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4e225c
push 0
mov ecx, eax
call fcn.004d9340
mov dword [esi + 0xc], eax
jmp 0x4e2265
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4e2265
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x502ca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x502dc1
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x502da5
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x502cf7
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x502cd5
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x503809
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x503860
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x503860
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x503860
xor eax, eax
inc eax
jmp 0x503862
xor eax, eax
leave
ret 0x10
Function at 0x50388b
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x5038f9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0xd0d6d4
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5038f0
cmp dword [ebp - 0xc], 4
jne 0x5038f0
cmp dword [ebp - 0x10], edi
je 0x5038f0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0xe153b8], edi
xor eax, eax
jmp 0x503938
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0xe153b8], edi
jge 0x503933
lea eax, [ebp - 0x34]
push eax
mov dword [0xe153b8], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x503933
cmp word [ebp - 0x14], 5
jb 0x503933
call fcn.00503866
test eax, eax
je 0x503933
emms
mov dword [0xe153b8], 1
mov eax, dword [0xe153b8]
pop edi
leave
ret

Function at 0x5216a8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5216e0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0051f732
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0051f70a
jmp 0x5216ec
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x522d96
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x522dd8
call fcn.00528c9b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x522dd8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x522dcf
xor eax, eax
jmp 0x522de0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00522de6
pop edi
pop esi
pop ebx
ret 4

Function at 0x5291cb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5291f9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x529217
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00529131
jmp 0x529217
mov eax, dword [esi + 0x14]
test eax, eax
je 0x529217
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00529131
test edi, edi
mov eax, edi
jne 0x529201
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [0x41fd50]
push edi
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x401086
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebp
push 2
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4010b7
pop edi
pop esi
pop ebp
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x4010ff
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x20]
push 0
push ecx
call fcn.00401920
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x20]
push edx
push esi
push eax
push ecx
call fcn.004012b0
add esp, 0x18
test esi, esi
je 0x401131
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x402090
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x228
lea eax, [esp + 0x20]
push 0
push 0
push str.DreyeLan.ini
push eax
call fcn.0040e920
test eax, eax
jne 0x4020b4
add esp, 0x228
ret
mov edx, dword [esp + 0x22c]
lea ecx, [esp]
push ecx
push edx
call fcn.0040ebb0
test eax, eax
jne 0x4020d1
add esp, 0x228
ret
mov ecx, dword [esp + 0x230]
lea eax, [esp + 0x20]
push eax
push 0x100
push ecx
lea edx, [esp + 0xc]
push 0
push edx
push 0x41c170
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 1
add esp, 0x228
ret
Function at 0x4047e0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x428
cmp eax, 4
ja case.default.0x4047f3
jmp dword [eax*4 + 0x404ac8]
mov eax, dword [0x41fd54]
lea ecx, [esp + 0x80]
push ecx
push 2
mov dword [esp + 0x90], 0x3e8
mov dword [esp + 0x94], 0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], 0x3a8
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
add esp, 0x428
ret
mov edx, dword [0x41fd54]
lea eax, [esp + 0x80]
push eax
push 2
mov dword [esp + 0x90], 0x3e8
mov dword [esp + 0x94], 0
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], 0x3a8
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
call fcn.00405840
mov ecx, dword [0x41fd54]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4048a1
mov edx, dword [0x41fd54]
push 4
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x41fd90], 0
add esp, 0x428
ret
mov eax, dword [0x41ff94]
mov ecx, dword [0x41fd54]
mov edx, dword [0x41ff98]
mov dword [esp + 0x94], eax
lea eax, [esp]
mov dword [esp + 0x84], ecx
mov ecx, dword [0x41fed4]
push 0x40
push eax
push 8
push ecx
mov dword [esp + 0x98], 0x3e8
mov dword [esp + 0x90], 0x3a8
mov dword [esp + 0x9c], 7
mov dword [esp + 0xa0], edx
call dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [esp]
push 0x80
push edx
push 2
call fcn.00405d10
add esp, 8
push eax
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [esp + 0x80]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
call fcn.00405890
mov edx, dword [0x41fd54]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x404966
mov eax, dword [0x41fd54]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 4
call fcn.004047e0
add esp, 4
mov dword [0x41fd90], 1
add esp, 0x428
ret
mov eax, dword [0x41fed4]
mov ecx, dword [0x41fd54]
lea edx, [esp]
push 0x40
push edx
push 8
push eax
mov dword [esp + 0x98], 0x3e8
mov dword [esp + 0x94], ecx
mov dword [esp + 0x90], 0x3a8
mov dword [esp + 0x9c], 4
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [esp]
push 0x80
push ecx
push 2
call fcn.00405d10
add esp, 8
lea edx, [esp + 0x9c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [esp + 0x80]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
add esp, 0x428
ret
mov eax, dword [0x41fed4]
mov ecx, dword [0x41fd54]
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
lea edx, [esp + 8]
push 0x40
push edx
push 5
push eax
mov dword [esp + 0xa0], 0x3e8
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x98], 0x3a8
mov dword [esp + 0xa4], 0x10
call esi
lea ecx, [esp + 8]
push 0x40
push ecx
push 2
call fcn.00405d10
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
add esp, 8
lea edx, [esp + 0x3b0]
push eax
push edx
call edi
mov ecx, dword [0x41fed4]
lea eax, [esp + 8]
push 0x40
push eax
push 6
push ecx
call esi
lea edx, [esp + 8]
push 0x100
push edx
push 2
call fcn.00405d10
add esp, 8
push eax
lea eax, [esp + 0x1b0]
push eax
call edi
lea ecx, [esp + 0x88]
mov dword [esp + 0x3a8], 0xbb8
push ecx
push 1
mov dword [esp + 0x434], 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
pop edi
pop esi
add esp, 0x428
ret