joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ac4
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.004019fc
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403b7a
mov eax, fcn.00401694
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403b7a
mov eax, fcn.00403ac4
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403b7a
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403b7a
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403b42
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403ca0
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.004019fc
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403d56
mov eax, fcn.00401694
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403d56
mov eax, fcn.00403c50
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403d56
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403d56
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403d1e
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4053f8
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x4097f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x409856
call fcn.004097a4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00405ae4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00405ae4
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4098b4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x451790], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x40998e
cmp dword [0x45178c], 0
jne 0x40998e
cmp dword [0x451980], 0
je 0x409948
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004096a4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40992e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004096a4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40992e
lea ebx, [ebp - 0x84]
jmp 0x40992f
inc ebx
call fcn.00409870
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4099c9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x451794
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00405ae4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x451797
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4099c9
cmp dword [0x45178c], 0
je 0x4099a8
cmp dword [0x45178c], 0xffffffff
je 0x4099c9
push esi
call dword [0x45178c]
pop ecx
mov eax, dword [0x451790]
test eax, eax
je 0x4099c9
cmp dword [0x451790], 0xffffffff
je 0x4099c9
cmp byte [eax], 0
je 0x4099c9
push esi
push eax
call fcn.004097f4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a20c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x453ce4], 0
jne 0x40a28d
cmp dword [0x453d04], 0
jne 0x40a23c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x453d04], eax
test eax, eax
jne 0x40a23c
push str.GetEnvironmentStrings_failed
call fcn.004099e0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x453d04]
jmp 0x40a250
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00405ae4
pop ecx
mov edi, eax
test eax, eax
jne 0x40a248
lea edi, [ebp + 1]
push edi
call fcn.004049b0
pop ecx
mov ebx, eax
mov dword [0x453ce8], ebx
test ebx, ebx
jne 0x40a27a
xor eax, eax
jmp 0x40a350
push edi
mov edx, dword [0x453d04]
push edx
push ebx
call fcn.00405994
add esp, 0xc
jmp 0x40a2ad
xor esi, esi
mov ebx, dword [0x453ce4]
jmp 0x40a2a7
push eax
call fcn.00405ae4
pop ecx
test eax, eax
jne 0x40a2a3
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40a297
lea ebx, [esi + 4]
push 4
mov dword [0x453cec], ebx
inc ebx
push ebx
call fcn.00404514
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40a2d0
xor eax, eax
jmp 0x40a350
cmp dword [0x453ce4], 0
jne 0x40a301
xor esi, esi
mov ebx, dword [0x453ce8]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40a2f2
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00405ae4
pop ecx
mov edi, eax
test eax, eax
jne 0x40a2e8
jmp 0x40a332
xor esi, esi
mov ebx, dword [0x453ce4]
mov eax, dword [esp]
mov edi, eax
jmp 0x40a32c
push eax
call fcn.00405ae4
pop ecx
test eax, eax
je 0x40a321
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40a325
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40a310
mov eax, dword [0x453ce4]
test eax, eax
je 0x40a342
push eax
call fcn.004049c0
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x453ce4], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40cad0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x4523f0
sub eax, eax
test esi, esi
je 0x40cbb0
sub eax, 1
test ecx, ecx
je 0x40cbae
test esi, 3
je 0x40cb0e
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40caf3
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x40cb95
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40cb1c
mov ecx, edx
test ecx, ecx
je 0x40cbae
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40cb9b
not eax
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x40ce94
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0040cf17
jae 0x40cea2
xor ecx, ecx
call fcn.0040cf17
jae 0x40ced1
xor eax, eax
call fcn.0040cf17
jae 0x40cee1
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0040cf17
adc al, al
jae 0x40cec3
jne 0x40cf0d
stosb byte es:[edi], al
jmp 0x40cea5
call fcn.0040cf23
sub ecx, ebx
jne 0x40ceea
call fcn.0040cf21
jmp 0x40cf09
lodsb al, byte [esi]
shr eax, 1
je 0x40cf33
adc ecx, ecx
jmp 0x40cf06
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.0040cf21
cmp eax, 0x7d00
jae 0x40cf06
cmp ah, 5
jae 0x40cf07
cmp eax, 0x7f
ja 0x40cf08
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40cea5
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x40d260
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, dword [ebx]
mov eax, dword [eax]
mov edx, dword [edx + 4]
mov dword [ebp - 4], esi
mov esi, dword [ebx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, 0x20
jmp 0x40d2cf
add ecx, 0x9e3779b9
mov esi, edx
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
add eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
add edx, esi
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x40d297
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40dbd0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
xor eax, eax
push ebx
push esi
push edi
xor esi, esi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
lea edx, [ebp - 0xc]
push eax
push 0
push 0
push 0
push edx
lea ecx, [ebp - 0x114]
push ecx
push esi
push edi
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov ebx, eax
test ebx, ebx
jne 0x40dc6f
mov dword [ebp - 0xc], 0xc8
push str.HIDVid_3689Pid_8762
call fcn.00405ae4
pop ecx
push eax
lea eax, [ebp - 0x110]
push eax
push 0x452cb2
call fcn.00405c5c
add esp, 0xc
test eax, eax
jne 0x40dc6f
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0xc]
jne 0x40dc6c
mov ecx, dword [ebp + 0x10]
mov esi, 0x452cde
mov edi, ecx
lea edx, [ebp - 0x110]
mov eax, edi
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00405aa8
add esp, 8
mov eax, 1
jmp 0x40dc7a
inc dword [ebp - 0x10]
inc esi
test ebx, ebx
je 0x40dbef
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40102a
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4171a4], 0
jne 0x401038
call entry0
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x401065
test cl, 7
je 0x401065
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4171a0]
dec esi
inc ecx
jmp 0x401046
cmp esi, 8
jb 0x4010e9
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4171a0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4171a0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4171a0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4171a0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4171a0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4171a0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4171a0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4171a0]
dec edi
jne 0x40106f
xor edx, edx
test esi, esi
jbe 0x401109
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4171a0]
inc edx
cmp edx, esi
jb 0x4010f0
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x401f4c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x4161a0]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1ac]
push ebx
mov ebx, dword [ebp + 0x1b4]
push esi
mov esi, dword [ebp + 0x1b0]
push edi
mov edi, dword [ebp + 0x1a8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1b8]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push eax
push 0x412edc
push 1
push 0
push 0x412efc
mov byte [ebp - 0x6d], 0
call dword [0x41225c]
test eax, eax
jl 0x402040
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x50]
xor edi, edi
cmp esi, edi
je 0x401fcc
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x1c]
cmp ebx, edi
je 0x401fdb
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push edi
push ebx
push eax
call dword [ecx + 0x44]
cmp dword [ebp - 0x78], edi
je 0x401fec
mov eax, dword [ebp - 0x74]
push dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
lea edx, [ebp - 0x7c]
push edx
push 0x412eec
push eax
call dword [ecx]
test eax, eax
jl 0x402037
push 0x104
lea eax, [ebp - 0x6c]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x80]
push edi
push edi
call dword [0x412044]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x6c]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x40202e
mov byte [ebp - 0x6d], 1
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0x19c]
mov al, byte [ebp - 0x6d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405fbe
add ebp, 0x1a0
leave
ret 0x14
Function at 0x4020cf
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x428
mov eax, dword [0x4161a0]
xor eax, ebp
mov dword [ebp + 0x3a4], eax
push esi
mov esi, dword [ebp + 0x3b0]
push esi
call dword [0x412144]
cmp eax, 0xffffffff
jne 0x402101
xor al, al
jmp 0x402151
push 0x400
push esi
lea eax, [ebp - 0x60]
push eax
call fcn.004048e7
lea eax, [ebp - 0x60]
push eax
call fcn.00405ea0
push 0x1e
mov byte [ebp + eax - 0x5f], 0
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.004067b0
add esp, 0x10
push 0x14
pop eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x7c], 3
call dword [0x4121d8]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0x3a4]
xor ecx, ebp
pop esi
call fcn.00405fbe
add ebp, 0x3a8
leave
ret 4
Function at 0x40376a
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4161a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push esi
call fcn.004036b4
test al, al
je 0x4037d6
lea eax, [ebp - 0x108]
push eax
push 0x20006
push 0
lea eax, [ebp - 0x104]
push eax
push esi
call dword [0x412014]
test eax, eax
jne 0x4037d6
push edi
push dword [ebp - 0x108]
call dword [0x41200c]
push dword [ebp - 0x108]
call fcn.00403697
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00405fbe
leave
ret 0xc

Function at 0x4037e6
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x2e8
mov eax, dword [0x4161a0]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x78]
push ebx
xor ebx, ebx
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x26c], eax
cmp byte [eax], bl
je 0x4038e9
lea edx, [ebp - 0x260]
push edx
push 0x20019
push ebx
push eax
push ecx
call dword [0x412014]
test eax, eax
jne 0x4038e9
push esi
mov esi, dword [0x412008]
lea eax, [ebp - 0x278]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x268], ebx
push ebx
jmp 0x4038ab
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x26c]
lea eax, [ebp - 0x25c]
push 0x412b34
push eax
call fcn.00405fcd
add esp, 0x10
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x270]
call fcn.004037e6
inc dword [ebp - 0x268]
lea eax, [ebp - 0x278]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x268]
push dword [ebp - 0x260]
mov dword [ebp - 0x264], 0xc8
call esi
test eax, eax
je 0x40385a
push dword [ebp - 0x260]
call fcn.00403697
push dword [ebp - 0x26c]
push dword [ebp - 0x270]
call dword [0x412010]
pop esi
test eax, eax
jne 0x4038e9
inc dword [0x417ff0]
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
pop ebx
call fcn.00405fbe
add ebp, 0x70
leave
ret 8
Function at 0x4045e2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4161a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp edi, esi
je 0x40460b
push dword [ebp + 0x10]
push esi
push edi
call fcn.004048e7
lea eax, [ebp - 0x808]
push eax
push 1
push 0
push str.SoftwareWinRARGeneral
push 0x80000001
call dword [0x412014]
test eax, eax
jne 0x4046dc
push esi
call fcn.00405ea0
pop ecx
mov ecx, 0x3ff
sub ecx, eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x810]
push eax
push 0
push str.LanguageFolder
push dword [ebp - 0x808]
mov dword [ebp - 0x80c], ecx
call dword [0x412018]
test eax, eax
jne 0x4046d0
mov byte [ebp - 0x404], al
push 0x400
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [0x412054]
lea eax, [ebp - 0x404]
push eax
call fcn.0040364c
push esi
call fcn.004035d9
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00405b40
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x404]
push eax
call fcn.004017c5
test al, al
je 0x4046d0
push dword [ebp + 0x10]
lea eax, [ebp - 0x404]
push eax
push edi
call fcn.004048e7
push dword [ebp - 0x808]
call dword [0x41201c]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00405fbe
leave
ret 0xc
Function at 0x40d20a
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp esi, edi
jne 0x40d233
call fcn.00409182
push edi
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
call fcn.00409e46
add esp, 0x14
jmp 0x40d32a
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x40d32a
test al, 0x40
jne 0x40d32a
test al, 2
je 0x40d255
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x40d32a
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
jne 0x40d26b
push esi
call fcn.0040e64f
pop ecx
jmp 0x40d270
mov eax, dword [esi + 8]
mov dword [esi], eax
push dword [esi + 0x18]
push dword [esi + 8]
push esi
call fcn.0040acb5
pop ecx
push eax
call fcn.0041073c
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, edi
je 0x40d31a
cmp eax, 0xffffffff
je 0x40d31a
test byte [esi + 0xc], 0x82
jne 0x40d2ef
push esi
call fcn.0040acb5
pop ecx
cmp eax, 0xffffffff
je 0x40d2da
push esi
call fcn.0040acb5
pop ecx
cmp eax, 0xfffffffe
je 0x40d2da
push esi
call fcn.0040acb5
sar eax, 5
push esi
lea edi, [eax*4 + 0x41b420]
call fcn.0040acb5
and eax, 0x1f
pop ecx
shl eax, 6
add eax, dword [edi]
pop ecx
jmp 0x40d2df
mov eax, 0x416520
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x40d2ef
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x40d30d
mov eax, dword [esi + 0xc]
test al, 8
je 0x40d30d
test eax, 0x400
jne 0x40d30d
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x40d32d
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], edi
or eax, 0xffffffff
pop edi
pop esi
ret

Function at 0x40de30
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x40de41
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40de3e
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
ret

Function at 0x40de60
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x40de9a
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40de92
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40de9c
inc edx
add eax, 0x28
cmp edx, esi
jb 0x40de82
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x509370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x50938e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x532074
push ecx
mov edi, eax
call fcn.0051d198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5093cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0051d02e
push esi
call fcn.0051cfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret