joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a5b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b3070
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov eax, esi
mov ebp, ecx
push edi
xor edi, edi
mov ecx, dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 0x4eb00c
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], edi
call fcn.00405970
test eax, eax
je 0x40a60e
push 0xf
jmp 0x40a610
push 4
mov ebx, dword [fcn.004bc638]
call ebx
cmp dword [esp + 0x40], edi
jne 0x40a631
push 0x3fe33333
push 0x33333333
push eax
call fcn.00406880
add esp, 0xc
push eax
call dword [sym.imp.gdi32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call fcn.004a82cf
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [fcn.004bc630]
lea ecx, [esp + 0x10]
call fcn.004a8326
call fcn.00405960
test eax, eax
je 0x40a689
mov eax, dword [edi + 4]
push 0xf
lea edx, [esp + 0x1c]
push 2
push edx
push eax
call dword [0x4bc62c]
mov eax, dword [esp + 0x44]
push 7
test eax, eax
jne 0x40a6ad
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add ecx, 4
push eax
add edx, 4
push ecx
push edx
push edi
mov ecx, ebp
call fcn.00409520
jmp 0x40a6c5
call ebx
mov ecx, dword [esi]
push eax
mov eax, dword [esi + 4]
add ecx, 5
add eax, 4
push eax
push ecx
push edi
mov ecx, ebp
call fcn.00409400
mov dword [esp + 0x10], 0x4ea884
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call fcn.004a8326
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10

Function at 0x40ac20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.004af34c
mov edi, dword [esp + 0x14]
mov ebx, dword [eax + 0xc]
mov ebp, dword [sym.imp.kernel32.dll_FindResourceA]
and edi, 0xffff
push 2
push edi
push ebx
call ebp
mov esi, eax
test esi, esi
jne 0x40ac5b
xor ebx, ebx
push 2
push edi
push ebx
call ebp
mov esi, eax
test esi, esi
jne 0x40ac5b
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
jne 0x40ac6c
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
test eax, eax
jne 0x40ac7c
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call fcn.0040abe0
add esp, 4
cmp ax, 0x10
je 0x40ac92
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push esi
push ebx
call fcn.004a979f
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40ae10
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x536148]
sub esp, 0x134
test eax, eax
jne 0x40aee5
lea eax, [esp]
mov dword [0x536148], 1
push eax
push 0x20019
push 0
push 0x4fed2c
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40aee5
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x40aed8
mov ecx, 5
mov esi, 0x4fed14
lea edi, [esp + 0x14]
lea edx, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.kernel32.dll_lstrlen]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x40aed8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi + 0x30]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpi]
test eax, eax
jne 0x40aed8
mov dword [0x536144], 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [0x536144]
add esp, 0x134
ret

Function at 0x40b3d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.004af34c
mov ebp, dword [esp + 0x14]
mov esi, dword [eax + 0xc]
mov ebx, dword [sym.imp.kernel32.dll_FindResourceA]
push 0xf1
push ebp
push esi
call ebx
test eax, eax
jne 0x40b40b
xor esi, esi
push 0xf1
push ebp
push esi
call ebx
test eax, eax
jne 0x40b40b
pop edi
pop esi
pop ebp
pop ebx
ret 4
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
jne 0x40b41e
pop edi
pop esi
pop ebp
pop ebx
ret 4
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov esi, eax
test esi, esi
jne 0x40b432
pop edi
pop esi
pop ebp
pop ebx
ret 4
xor eax, eax
mov ax, word [esi + 6]
shl eax, 2
push eax
call fcn.004a5592
xor edx, edx
add esp, 4
cmp word [esi + 6], dx
mov ebp, eax
jbe 0x40b46b
mov ecx, ebp
lea eax, [esi + 8]
xor ebx, ebx
inc edx
mov bx, word [eax]
add eax, 2
mov dword [ecx], ebx
xor ebx, ebx
mov bx, word [esi + 6]
add ecx, 4
cmp edx, ebx
jl 0x40b453
xor ecx, ecx
mov cx, word [esi + 6]
push ecx
push ebp
mov ecx, edi
call fcn.004aee42
push ebp
mov ebx, eax
call fcn.004a55bb
add esp, 4
test ebx, ebx
je 0x40b4cc
xor ecx, ecx
xor eax, eax
mov cx, word [esi + 4]
mov ax, word [esi + 2]
push ecx
push eax
lea ebx, [ecx + 7]
lea edx, [eax + 7]
push ebx
push edx
mov ecx, edi
call fcn.004aec0b
mov ecx, dword [esp + 0x14]
xor edx, edx
mov dx, word [esi + 2]
xor eax, eax
mov dword [edi + 0x9c], edx
mov ax, word [esi + 4]
push ecx
mov ecx, edi
mov dword [edi + 0xa0], eax
call fcn.0040b4e0
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret 4
Function at 0x40c1a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b3248
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
mov esi, ecx
or eax, 0xffffffff
push edi
cmp dword [esi + 4], eax
je 0x40c2d9
mov edi, dword [esp + 0x20]
cmp dword [esi + edi*4 + 0x230], eax
je 0x40c2d9
mov eax, dword [esi + 0x294]
push eax
call dword [sym.imp.kernel32.dll_ResetEvent]
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esi + edi*4 + 0x230]
lea ebx, [esi + 0x284]
push ebx
push ecx
push ebp
push edx
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x40c2d7
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40c226
or eax, 0xffffffff
jmp 0x40c2d9
mov ecx, dword [esi + 0x294]
push 0x3e8
push ecx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x40c2b8
cmp eax, 0x102
je 0x40c24b
or eax, 0xffffffff
jmp 0x40c2d9
mov edx, dword [esp + 0x24]
push 0
push ebp
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.0041e400
add esp, 0x10
push 0x4fece0
push 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0
call fcn.0049de3b
push 0x4feca0
lea ecx, [esp + 0x28]
call fcn.004a5365
mov ecx, dword [esp + 0x24]
push 0
push 0
push ecx
call fcn.004a9666
mov edx, dword [esi + edi*4 + 0x230]
push edx
call dword [sym.imp.kernel32.dll_CancelIo]
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.004a4f89
or eax, 0xffffffff
jmp 0x40c2d9
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + edi*4 + 0x230]
push 1
push eax
push ebx
push ecx
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
jne 0x40c2d7
or eax, 0xffffffff
jmp 0x40c2d9
xor eax, eax
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x10

Function at 0x40c2f0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
or eax, 0xffffffff
push edi
cmp dword [esi + 4], eax
je 0x40c3b6
mov edi, dword [esp + 0x14]
cmp dword [esi + edi*4 + 0x230], eax
je 0x40c3b6
mov eax, dword [esi + 0x294]
push eax
call dword [sym.imp.kernel32.dll_ResetEvent]
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esi + edi*4 + 0x230]
lea ebx, [esi + 0x284]
push ebx
push ebp
push ecx
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x40c3b4
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40c35f
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 0x14
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x294]
push ecx
push edx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x40c394
cmp eax, 0x102
jne 0x40c38a
mov eax, dword [esi + edi*4 + 0x230]
push eax
call dword [sym.imp.kernel32.dll_CancelIo]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 0x14
mov ecx, dword [esi + edi*4 + 0x230]
push 1
push ebp
push ebx
push ecx
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
jne 0x40c3b4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
Function at 0x4126e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b3467
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov eax, dword [0x533e00]
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], eax
mov ecx, dword [0x533e00]
mov dword [esp + 0x90], 0
mov dword [esi + 0x14], ecx
mov edx, dword [0x533e00]
mov dword [esi + 0x18], edx
mov eax, dword [0x533e00]
mov dword [esi + 0x24], eax
mov ecx, dword [0x533e00]
mov dword [esi + 0x28], ecx
mov edx, dword [0x533e00]
mov dword [esi + 0x2c], edx
mov eax, dword [0x533e00]
mov dword [esi + 0x30], eax
mov ecx, dword [0x533e00]
mov dword [esi + 0x34], ecx
mov edx, dword [0x533e00]
mov dword [esi + 0x38], edx
mov eax, dword [0x533e00]
mov dword [esi + 0x1c0], eax
mov ecx, dword [0x533e00]
mov dword [esi + 0x1c4], ecx
mov edx, dword [0x533e00]
mov dword [esi + 0x1c8], edx
mov eax, dword [0x533e00]
mov dword [esi + 0x1cc], eax
mov ecx, dword [0x533e00]
mov dword [esi + 0x1d0], ecx
lea edx, [esp + 8]
mov byte [esp + 0x90], 2
push edx
push 0x80
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
lea eax, [esp + 8]
push eax
push 0x4fe6d4
push esi
call fcn.0049e5b4
add esp, 0xc
mov ecx, esi
push 1
call fcn.004128e0
mov ecx, dword [esp + 0x88]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x90
ret
mov ecx, 0x56f838
jmp 0x4126c0
Function at 0x413710
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b3718
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [0x533e00]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
mov ecx, dword [esi]
lea edx, [esp + 8]
push ecx
xor ebx, ebx
push 0x4ffd6c
push edx
mov dword [esp + 0x50], ebx
call fcn.0049e5b4
mov eax, dword [esp + 0x14]
add esp, 0xc
push ebx
push 0x60000080
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x4137a3
push 0x10
push ebx
push 0x4ffd50
call fcn.004a9666
lea ecx, [esp + 8]
mov dword [esp + 0x44], 0xffffffff
call fcn.004a4f89
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
push edi
mov edi, dword [sym.imp.kernel32.dll_PurgeComm]
push 0xf
push eax
call edi
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x2c], 0x1c
call dword [sym.imp.kernel32.dll_GetCommState]
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x45], 0x7e
mov dword [esp + 0x30], 0x1c200
mov byte [esp + 0x3e], 8
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], bl
call dword [sym.imp.kernel32.dll_SetCommState]
mov edx, dword [esi + 0xc]
push 0x4096
push 0x4096
push edx
call dword [sym.imp.kernel32.dll_SetupComm]
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetCommTimeouts]
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.kernel32.dll_SetCommTimeouts]
mov ecx, dword [esi + 0xc]
push 0xc
push ecx
call edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x48], 0xffffffff
call fcn.004a4f89
mov ecx, dword [esp + 0x40]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x4138c0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x40b8
call fcn.0048d3b0
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x1025
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
push 2
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_SetCommMask]
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ecx
push ebx
mov dword [esp + 0x24], ecx
push ebx
mov dword [esp + 0x2c], ecx
push 1
push ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], ecx
call dword [sym.imp.kernel32.dll_CreateEventA]
cmp eax, ebx
mov dword [esp + 0x28], eax
jne 0x41393d
push ebx
push ebx
push 0x4ffd78
call fcn.004a9666
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40b8
ret 8
mov dword [esp + 0x14], 0x13
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x18]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.kernel32.dll_WaitCommEvent]
mov esi, dword [esp + 0x40d0]
mov edx, dword [esp + 0x28]
mov edi, dword [sym.imp.kernel32.dll_WaitForSingleObject]
push esi
push edx
call edi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0x38]
push 0x4096
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x4139ca
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x413a6a
mov ecx, dword [esp + 0x28]
push esi
push ecx
call edi
test eax, eax
jne 0x4139ca
mov ecx, dword [ebp + 0xc]
push eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
je 0x413a6a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x413a09
cmp byte [esp + eax + 0x2f], 0x7e
je 0x413a19
test eax, eax
jbe 0x4139f8
mov edi, dword [esp + 0x40cc]
mov ecx, eax
mov edx, ecx
lea esi, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add ebx, eax
mov ecx, 0x1025
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
je 0x413a6a
jmp 0x413945
lea edx, [ebx + eax]
mov ecx, ebx
cmp ebx, edx
jae 0x413a41
mov eax, ecx
sub eax, ebx
inc ecx
mov dl, byte [esp + eax + 0x30]
mov eax, dword [esp + 0x40cc]
mov byte [ecx + eax - 1], dl
mov eax, dword [esp + 0x10]
lea edx, [ebx + eax]
cmp ecx, edx
jb 0x413a22
lea esi, [ebx + eax]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
push 0xf
push ecx
call dword [sym.imp.kernel32.dll_PurgeComm]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40b8
ret 8
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
push 0xf
push eax
call dword [sym.imp.kernel32.dll_PurgeComm]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40b8
ret 8
Function at 0x413a90
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x40b0
call fcn.0048d3b0
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x1025
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [esp + 0x40c8]
xor esi, esi
cmp eax, 1
mov dword [esp + 0xc], ebx
jne 0x413ace
mov byte [esp + 0x24], 0x7e
mov esi, 1
push ebp
mov ebp, dword [esp + 0x40c8]
xor edx, edx
test ebp, ebp
jbe 0x413b1f
mov edi, dword [esp + 0x40c4]
mov ebx, 0x7d
mov cl, byte [edx + edi]
mov eax, ecx
and eax, 0xff
sub eax, ebx
je 0x413b0b
dec eax
je 0x413aff
mov byte [esp + esi + 0x28], cl
jmp 0x413b15
mov byte [esp + esi + 0x28], bl
inc esi
mov byte [esp + esi + 0x28], 0x5e
jmp 0x413b15
mov byte [esp + esi + 0x28], bl
inc esi
mov byte [esp + esi + 0x28], 0x5d
inc esi
inc edx
cmp edx, ebp
jb 0x413ae8
mov ebx, dword [esp + 0x10]
xor eax, eax
mov byte [esp + esi + 0x28], 0x7e
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push eax
push eax
push 1
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.kernel32.dll_CreateEventA]
test eax, eax
mov dword [esp + 0x24], eax
pop ebp
jne 0x413b60
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x40b0
ret 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [ebx + 0xc]
inc esi
push edx
lea eax, [esp + 0x2c]
push esi
push eax
push ecx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x413bc7
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x413b9b
mov edx, dword [esp + 0x20]
push 0xffffffffffffffff
push edx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
jmp 0x413b9f
mov eax, dword [esp + 0xc]
test eax, eax
je 0x413ba7
xor esi, esi
jmp 0x413bcc
mov edx, dword [ebx + 0xc]
lea eax, [esp + 0xc]
push 0
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
mov esi, eax
neg esi
sbb esi, esi
neg esi
jmp 0x413bcc
mov esi, 1
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
setne al
add esp, 0x40b0
ret 0xc
Function at 0x413bf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
xor eax, eax
push esi
mov dword [esp + 0xc], eax
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
push eax
push eax
push 1
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.kernel32.dll_CreateEventA]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x413c2c
xor al, al
pop esi
add esp, 0x18
ret 8
mov eax, dword [esp + 0x24]
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esi + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x413c96
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x413c6a
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
jmp 0x413c6e
mov eax, dword [esp + 0x24]
test eax, eax
je 0x413c76
xor esi, esi
jmp 0x413c9b
mov eax, dword [esi + 0xc]
lea ecx, [esp + 4]
push 0
lea edx, [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
mov esi, eax
neg esi
sbb esi, esi
neg esi
jmp 0x413c9b
mov esi, 1
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
test esi, esi
setne al
pop esi
add esp, 0x18
ret 8
Function at 0x417c30
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b3fe3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
push esi
push edi
mov eax, dword [0x533e00]
xor ebx, ebx
mov dword [esp + 0x230], ebx
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x230], 1
push ecx
push 0x20019
push ebx
push 0x4ffd30
push 0x80000002
mov dword [esp + 0x28], ebx
xor esi, esi
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x417d5d
mov edi, dword [sym.imp.advapi32.dll_RegEnumValueA]
mov ebp, 0xff
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x128]
push edx
lea edx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x2c]
push ebx
lea edx, [esp + 0x38]
mov eax, esi
push ecx
push edx
push eax
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x48], bl
mov byte [esp + 0x148], bl
inc esi
call edi
cmp eax, ebx
jne 0x417d52
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.004a5112
mov edx, dword [esp + 0x238]
push ebx
push edx
lea ecx, [esp + 0x18]
call fcn.0049e281
cmp eax, 0xffffffff
je 0x417c9d
lea eax, [esp + 0x14]
lea ecx, [esp + 0x128]
push eax
push 0x51e7a0
push ecx
call fcn.0048dcbd
add esp, 0xc
cmp eax, ebx
je 0x417c9d
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], bl
call fcn.004a4f89
lea ecx, [esp + 0x238]
mov dword [esp + 0x230], 0xffffffff
call fcn.004a4f89
mov eax, esi
jmp 0x417d86
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], bl
call fcn.004a4f89
lea ecx, [esp + 0x238]
mov dword [esp + 0x230], 0xffffffff
call fcn.004a4f89
xor eax, eax
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret
Function at 0x417da0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b4003
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push esi
mov ecx, dword [esp + 0x234]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x234], ebx
call fcn.004a002c
mov eax, dword [0x533e00]
mov dword [esp + 8], eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x22c], 1
push ecx
push 0x20019
push ebx
push 0x4ffd30
push 0x80000002
xor esi, esi
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x417f25
push ebp
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumValueA]
mov ebp, 0xff
lea edx, [esp + 0x20]
lea ecx, [esp + 0x2c]
push edx
lea edx, [esp + 0x2c]
push ecx
push edx
lea ecx, [esp + 0x30]
push ebx
lea edx, [esp + 0x13c]
mov eax, esi
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebp
mov byte [esp + 0x14c], bl
mov byte [esp + 0x4c], bl
inc esi
call edi
cmp eax, ebx
jne 0x417f18
lea ecx, [esp + 0x12c]
lea edx, [esp + 0x10]
push ecx
push 0x4fe6d4
push edx
call fcn.0049e5b4
mov eax, dword [esp + 0x24c]
push 0x536030
push eax
call fcn.0048d5d9
add esp, 0x14
test eax, eax
jne 0x417ec4
lea ecx, [esp + 0x18]
lea edx, [esp + 0x2c]
push ecx
push 0x51e7a0
push edx
call fcn.0048dcbd
add esp, 0xc
test eax, eax
je 0x417e18
mov ecx, dword [esp + 0x23c]
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [ecx + 8]
push edx
call fcn.004a0161
jmp 0x417e18
mov eax, dword [esp + 0x240]
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.0049e281
cmp eax, 0
je 0x417e18
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x2c]
push ecx
push 0x51e7a0
push edx
call fcn.0048dcbd
add esp, 0xc
test eax, eax
je 0x417e18
mov ecx, dword [esp + 0x23c]
mov eax, dword [esp + 0x1c]
push eax
mov edx, dword [ecx + 8]
push edx
call fcn.004a0161
jmp 0x417e18
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop ebp
lea ecx, [esp + 8]
mov byte [esp + 0x22c], bl
call fcn.004a4f89
lea ecx, [esp + 0x238]
mov dword [esp + 0x22c], 0xffffffff
call fcn.004a4f89
mov ecx, dword [esp + 0x224]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret

Function at 0x418520
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x41853d
jne 0x418531
xor eax, eax
jmp 0x418534
mov eax, dword [eax + 0x28]
push 0xffffffffffffffff
push eax
call dword [sym.imp.kernel32.dll_TerminateThread]
lea ecx, [esi + 4]
call fcn.004a0123
mov eax, dword [esi + 0x18]
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
push eax
mov byte [esi], 0
call edi
mov ecx, dword [esi + 0x44]
push ecx
call edi
mov edx, dword [esi + 0x40]
push edx
call edi
mov eax, dword [esi + 0x2c]
push eax
call edi
pop edi
pop esi
ret