joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006b80
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [0x10033d40]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10006bb8
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.10010273
add esp, 0x110
ret
push ebx
push ebp
xor ebp, ebp
push ebp
push 0x80
push 4
push ebp
push 1
push 0x80000000
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10006be6
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push edi
lea edi, [ebx + 1]
push edi
call fcn.100074c1
add esp, 4
push ebp
lea ecx, [esp + 0x18]
push ecx
push edi
push eax
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xe
mov esi, str.identifierBegin:abcdefghijklmnopqrstuvwxyz:identifierEnd
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
push 0xcb
lea edx, [esp + 0x55]
push ebp
push edx
movsb byte es:[edi], byte [esi]
call fcn.10013d00
lea eax, [esp + 0x24]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10006c40
sub eax, edx
test ebx, ebx
jle 0x10006c8e
nop
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx + ebp]
cmp dl, byte [esp + 0x18]
lea edi, [ecx + ebp]
jne 0x10006c87
xor esi, esi
xor ecx, ecx
test eax, eax
jle 0x10006c87
jmp 0x10006c70
mov dl, byte [edi + ecx]
cmp dl, byte [esp + ecx + 0x18]
jne 0x10006c87
add esi, 1
cmp esi, eax
je 0x10006ca9
add ecx, 1
cmp ecx, eax
jl 0x10006c70
add ebp, 1
cmp ebp, ebx
jl 0x10006c50
xor eax, eax
mov ecx, dword [esp + 0x11c]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.10010273
add esp, 0x110
ret
mov eax, 1
jmp 0x10006c90

Function at 0x10007360
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x34
push esi
push edi
push 0
push 0x10007300
push 0
push 0
mov dword [0x10039e04], 0
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x18]
push ecx
push eax
call edi
lea edx, [esp + 0x28]
push edx
push esi
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [0x10039e04]
sub eax, dword [esp + 8]
cmp ecx, 1
jle 0x100073f2
test ecx, ecx
jle 0x100073f2
mov edx, 0x10039d68
mov esi, ecx
mov ecx, dword [edx]
cmp ecx, eax
jle 0x100073ea
mov eax, ecx
add edx, 0x10
sub esi, 1
jne 0x100073e2
pop edi
pop esi
add esp, 0x34
ret

Function at 0x10010273
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10033d40]
jne 0x1001027d
repz ret
jmp fcn.10016715
Function at 0x1001bfc6
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10034920]
je 0x1001bfe1
inc edi
cmp edi, 0x17
jb 0x1001bfd2
cmp edi, 0x17
jae 0x1001c161
push ebp
push 3
call fcn.10020109
cmp eax, 1
pop ecx
je 0x1001c12d
push 3
call fcn.10020109
test eax, eax
pop ecx
jne 0x1001c015
cmp dword [0x10039228], 1
je 0x1001c12d
cmp ebx, 0xfc
je 0x1001c160
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10039938
push ebp
call fcn.10016b85
add esp, 0xc
test eax, eax
je 0x1001c04b
push esi
push esi
push esi
push esi
push esi
call fcn.100100e8
add esp, 0x14
push 0x104
mov esi, 0x10039951
push esi
push 0
mov byte [0x10039a55], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001c08f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10016b85
add esp, 0xc
test eax, eax
je 0x1001c08f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.100100e8
add esp, 0x14
push esi
call fcn.10016bf0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1001c0d4
push esi
call fcn.10016bf0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10039c4c
push 0x1002b6b4
sub ecx, eax
push ecx
push eax
call fcn.1001a696
add esp, 0x14
test eax, eax
je 0x1001c0d4
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.100100e8
add esp, 0x14
jmp 0x1001c0d6
xor esi, esi
push 0x1002b6b0
push ebx
push ebp
call fcn.1001a5da
add esp, 0xc
test eax, eax
je 0x1001c0f6
push esi
push esi
push esi
push esi
push esi
call fcn.100100e8
add esp, 0x14
push dword [edi*8 + 0x10034924]
push ebx
push ebp
call fcn.1001a5da
add esp, 0xc
test eax, eax
je 0x1001c118
push esi
push esi
push esi
push esi
push esi
call fcn.100100e8
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1001ff4c
add esp, 0xc
jmp 0x1001c160
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1001c160
cmp ebp, 0xffffffff
je 0x1001c160
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10034924]
push dword [esi]
call fcn.10016bf0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1001ff4c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1001596f
xor ebx, ebx
cmp dword [0x10039cc0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10020022
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10020102
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10020102
push eax
call fcn.10015901
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10039cc0], eax
call esi
push eax
call fcn.10015901
mov dword [esp], 0x1002bf30
push edi
mov dword [0x10039cc4], eax
call esi
push eax
call fcn.10015901
mov dword [0x10039cc8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10014392
test eax, eax
pop ecx
pop ecx
je 0x1001fff0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100100e8
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10020022
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10015901
cmp eax, ebx
pop ecx
mov dword [0x10039cd0], eax
je 0x10020022
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10015901
pop ecx
mov dword [0x10039ccc], eax
mov eax, dword [0x10039ccc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100200a7
cmp dword [0x10039cd0], ecx
je 0x100200a7
push eax
call fcn.10015978
push dword [0x10039cd0]
mov esi, eax
call fcn.10015978
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100200a7
cmp edi, ebx
je 0x100200a7
call esi
cmp eax, ebx
je 0x10020074
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10020074
test byte [ebp - 0x18], 1
jne 0x100200a7
lea eax, [ebp - 0x10]
push eax
call fcn.100143c9
test eax, eax
pop ecx
je 0x1002008f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100100e8
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1002009e
or dword [ebp + 0x10], 0x200000
jmp 0x100200e2
or dword [ebp + 0x10], 0x40000
jmp 0x100200e2
mov eax, dword [0x10039cc4]
cmp eax, dword [ebp - 8]
je 0x100200e2
push eax
call fcn.10015978
cmp eax, ebx
pop ecx
je 0x100200e2
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100200e2
mov eax, dword [0x10039cc8]
cmp eax, dword [ebp - 8]
je 0x100200e2
push eax
call fcn.10015978
cmp eax, ebx
pop ecx
je 0x100200e2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10039cc0]
call fcn.10015978
cmp eax, ebx
pop ecx
je 0x10020102
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10020104
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x486fc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2a000]
push edi
or ebp, 0xffffffff
jmp 0x486fe2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x486fe9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x486fd8
mov eax, 1
add ebx, ebx
jne 0x486ffb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x486ff0
jne 0x48700c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x486ff0
xor ecx, ecx
sub eax, 3
jb 0x487020
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x487092
mov ebp, eax
add ebx, ebx
jne 0x48702b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x487038
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x48705c
inc ecx
add ebx, ebx
jne 0x487048
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48703d
jne 0x487059
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48703d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48707c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48706d
jmp 0x486fde
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48707c
add edi, ecx
jmp 0x486fde
pop esi
mov edi, esi
mov ecx, 0xeb8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48709a
cmp byte [edi], 0x11
jne 0x48709a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x48709f
lea edi, [esi + 0x83000]
mov eax, dword [edi]
or eax, eax
je 0x487117
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d2e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8d3d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4870cc
mov ecx, edi
jns 0x4870fb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8d3e0]
or eax, eax
je 0x487111
mov dword [ebx], eax
add ebx, 4
jmp 0x4870e9
call dword [esi + 0x8d3dc]
mov ebp, dword [esi + 0x8d3e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x48714b
sub esp, 0xffffff80
jmp 0x416520
Function at 0x10002cef
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, dword [esi + 0x3c]
add ebx, esi
push 0x40
lea eax, [ebx + 0x18]
push 0x3000
push dword [eax + 0x38]
mov dword [ebp - 4], ecx
push 0
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], eax
call dword [0x116605c]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x10002e59
push 0x40
mov edx, esi
mov ecx, edi
call fcn.10003ba0
mov esi, dword [edi + 0x3c]
movzx eax, word [ebx + 0x14]
add esi, edi
push eax
mov edx, ebx
mov ecx, esi
call fcn.10003ba0
mov eax, dword [ebp - 8]
lea ebx, [esi + 0x18]
movzx ecx, word [eax + 0x14]
movzx esi, word [esi + 0x14]
lea edx, [eax + 0x18]
movzx eax, word [eax + 6]
add ecx, edx
add esi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x10002db7
mov ebx, ecx
sub ebx, esi
mov edi, eax
push 0x28
lea edx, [ebx + esi]
mov ecx, esi
call fcn.10003ba0
add esi, 0x28
dec edi
jne 0x10002d75
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x10002db7
lea esi, [ecx + 0x14]
mov ebx, eax
mov edx, dword [esi]
mov ecx, dword [esi - 8]
push dword [esi - 4]
add edx, dword [ebp + 8]
add ecx, edi
call fcn.10003ba0
lea esi, [esi + 0x28]
dec ebx
jne 0x10002d9c
mov ebx, dword [ebp - 0xc]
push ebx
mov edx, edi
mov ecx, edi
call fcn.10004350
push dword [ebp - 0x18]
mov ecx, dword [0x1167004]
mov edx, edi
call fcn.10004430
mov edx, dword [ebx + 0x60]
test edx, edx
je 0x10002e56
cmp dword [ebx + 0x64], 0
je 0x10002e56
xor eax, eax
lea ecx, [edx + edi]
inc eax
sub eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0x14]
jae 0x10002dfe
push eax
push ecx
push dword [ebx + 0x64]
mov ecx, edi
call fcn.100043f0
mov ecx, eax
xor eax, eax
jmp 0x10002e02
xor eax, eax
mov ecx, eax
mov edx, dword [ebp - 4]
push 2
mov dword [edx + 4], ecx
mov edx, dword [ebx + 0x60]
pop ecx
lea esi, [edx + edi]
sub ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0x14]
jae 0x10002e2b
push ecx
push esi
push dword [ebx + 0x64]
mov ecx, edi
call fcn.100043f0
mov ecx, eax
xor eax, eax
jmp 0x10002e2d
mov ecx, eax
mov edx, dword [ebp - 4]
push 3
mov dword [edx + 8], ecx
mov edx, dword [ebx + 0x60]
pop ecx
lea esi, [edx + edi]
sub ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0x14]
jae 0x10002e50
push ecx
push esi
push dword [ebx + 0x64]
mov ecx, edi
call fcn.100043f0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10002ea4
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, dword [esi + 0x3c]
push 0x40
add ebx, esi
push 0x3000
lea eax, [ebx + 0x18]
mov dword [ebp - 0x1c], ecx
push dword [eax + 0x38]
mov dword [ebp - 0x18], eax
push 0
call dword [0x116605c]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x10002fad
push 0x40
mov edx, esi
mov ecx, edi
call fcn.10003ba0
mov esi, dword [edi + 0x3c]
movzx eax, word [ebx + 0x14]
add esi, edi
push eax
mov edx, ebx
mov ecx, esi
call fcn.10003ba0
movzx ecx, word [ebx + 0x14]
lea eax, [esi + 0x18]
movzx esi, word [esi + 0x14]
lea edx, [ebx + 0x18]
movzx ebx, word [ebx + 6]
add ecx, edx
add esi, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x10002f5c
mov edi, ecx
sub edi, esi
push 0x28
lea edx, [edi + esi]
mov ecx, esi
call fcn.10003ba0
add esi, 0x28
dec ebx
jne 0x10002f22
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ebx, ebx
je 0x10002f5c
lea esi, [ecx + 0x14]
mov edx, dword [esi]
mov ecx, dword [esi - 8]
push dword [esi - 4]
add edx, dword [ebp + 8]
add ecx, edi
call fcn.10003ba0
lea esi, [esi + 0x28]
dec ebx
jne 0x10002f44
mov ebx, dword [ebp - 0x14]
push ebx
mov edx, edi
mov ecx, edi
call fcn.10004350
push dword [ebp - 0x18]
mov ecx, dword [0x1167004]
mov edx, edi
call fcn.10004430
mov edx, dword [ebx + 0x60]
test edx, edx
je 0x10002faa
cmp dword [ebx + 0x64], 0
je 0x10002faa
xor eax, eax
lea ecx, [edx + edi]
inc eax
sub eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0x14]
jae 0x10002fa2
push eax
push ecx
push dword [ebx + 0x64]
mov ecx, edi
call fcn.100043f0
jmp 0x10002fa4
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10004250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
push edi
push 0
push dword [0x1167000]
mov dword [ebp - 8], edi
mov esi, ecx
call dword [0x116607c]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
test ebx, ebx
je 0x10004294
mov edi, esi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x10004283
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x100042af
mov edx, edi
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x100042a4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
mov ebx, esi
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x100042f1
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x100042d4
test esi, esi
je 0x100042fd
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x100042f5
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x1167000]
call dword [0x116607c]
mov ebx, dword [ebp - 4]
mov esi, eax
mov edx, esi
mov ecx, ebx
call fcn.10001d1b
push ebx
push 0
push dword [0x1167000]
call dword [0x1166080]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x403b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
movzx eax, word [esp + 0x40]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov dword [esp + 4], 6
mov dword [esp + 0xc], eax
mov eax, edi
mov dword [esp], ebp
shr eax, 4
add eax, 1
movzx eax, ax
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
sub esp, 0x10
test eax, eax
je 0x403cf0
mov dword [esp + 4], eax
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
sub esp, 8
test eax, eax
je 0x403cf0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
sub esp, 4
test eax, eax
je 0x403cf0
and edi, 0xf
je 0x403cab
movzx ecx, word [eax]
cmp edi, 1
lea eax, [eax + ecx*2 + 2]
je 0x403cab
movzx ecx, word [eax]
cmp edi, 2
lea eax, [eax + ecx*2 + 2]
je 0x403cab
movzx ecx, word [eax]
cmp edi, 3
lea eax, [eax + ecx*2 + 2]
je 0x403cab
movzx ecx, word [eax]
cmp edi, 4
lea eax, [eax + ecx*2 + 2]
je 0x403cab
movzx ecx, word [eax]
cmp edi, 5
lea eax, [eax + ecx*2 + 2]
je 0x403cab
movzx ecx, word [eax]
cmp edi, 6
lea eax, [eax + ecx*2 + 2]
je 0x403cab
movzx ecx, word [eax]
cmp edi, 7
lea eax, [eax + ecx*2 + 2]
je 0x403cab
movzx ecx, word [eax]
cmp edi, 8
lea eax, [eax + ecx*2 + 2]
je 0x403cab
movzx ecx, word [eax]
cmp edi, 9
lea eax, [eax + ecx*2 + 2]
je 0x403cab
movzx ecx, word [eax]
cmp edi, 0xa
lea eax, [eax + ecx*2 + 2]
je 0x403cab
movzx ecx, word [eax]
cmp edi, 0xb
lea eax, [eax + ecx*2 + 2]
je 0x403cab
movzx ecx, word [eax]
cmp edi, 0xc
lea eax, [eax + ecx*2 + 2]
je 0x403cab
movzx ecx, word [eax]
cmp edi, 0xd
lea eax, [eax + ecx*2 + 2]
je 0x403cab
movzx ecx, word [eax]
cmp edi, 0xf
lea eax, [eax + ecx*2 + 2]
jne 0x403cab
movzx edx, word [eax]
lea eax, [eax + edx*2 + 2]
movzx edi, word [eax]
add eax, 2
mov edx, eax
je 0x403cf0
test ebx, ebx
je 0x403ce4
lea eax, [esi - 1]
cmp esi, edi
mov dword [esp], ebx
mov dword [esp + 4], edx
cmovle edi, eax
lea eax, [edi + edi]
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
xor eax, eax
mov word [ebx + edi*2], ax
add esp, 0x1c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x1c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x410db0
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
xor eax, eax
sub esp, 0x14
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx + 8]
test dl, 1
jne 0x410e30
mov eax, edx
and eax, 4
je 0x410e30
and edx, 2
je 0x410e36
mov eax, dword [ebx + 4]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll__lseek
mov esi, dword [ebx + 0x38]
xor edx, edx
lea ecx, [esi + 0x1fc]
mov eax, esi
mov esi, esi
lea edi, [edi]
xor edx, dword [eax]
add eax, 4
cmp eax, ecx
jne 0x410e00
mov eax, dword [ebx + 0x24]
mov dword [esi + 0x1fc], edx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.msvcrt.dll__write
cmp dword [ebx + 0x24], eax
jne 0x410e58
and dword [ebx + 8], 0xfffffffb
xor eax, eax
add esp, 0x14
pop ebx
pop esi
ret
mov dword [esp + 4], 0x8002
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll__open
test eax, eax
mov dword [ebx + 4], eax
je 0x410e95
or dword [ebx + 8], 2
jmp 0x410dd2
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp + 4], str.writeHive:_write_of__s_failed:__s._n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00412a20
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp + 4], str.writeHive:_open__s__failed:__s__FILE_NOT_WRITTEN__n
mov dword [esp + 8], eax
jmp 0x410e7a
Function at 0x4133e0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
push edi
xor ecx, ecx
push esi
push ebx
sub esp, 0xf8
mov dword [esp + 4], edx
movzx edx, byte [ecx + str.80_]
mov ebx, edx
shr edx, 3
and ebx, 7
movzx edx, byte [eax + edx]
mov ebx, dword [ebx*4 + 0x427ea0]
and edx, ebx
cmp ebx, edx
sete byte [esp + ecx + 8]
add ecx, 1
cmp ecx, 0x38
jne 0x4133f0
mov dword [esp], 0
mov eax, dword [esp]
mov esi, 0xf
movzx ebp, byte [eax + 0x427df0]
lea ebx, [esp + 0x40]
sub esi, eax
add esi, esi
lea edi, [esi + 1]
lea edx, [ebp + 0x1c]
mov eax, ebp
sub ebx, ebp
mov dword [esp + edi*4 + 0x78], 0
mov dword [esp + esi*4 + 0x78], 0
jmp 0x413464
movzx ecx, byte [esp + eax + 8]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, edx
je 0x413478
cmp eax, 0x1b
jbe 0x413455
movzx ecx, byte [esp + eax - 0x14]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, edx
jne 0x413464
add ebp, 0x38
jmp 0x41348f
movzx eax, byte [esp + edx + 8]
mov byte [ebx + edx], al
add edx, 1
cmp edx, ebp
je 0x4134a3
cmp edx, 0x37
jbe 0x413480
movzx eax, byte [esp + edx - 0x14]
mov byte [ebx + edx], al
add edx, 1
cmp edx, ebp
jne 0x41348f
xor eax, eax
movzx edx, byte [eax + 0x427dc0]
cmp byte [esp + edx + 0x40], 0
je 0x4134be
mov edx, dword [eax*4 + 0x427e40]
or dword [esp + esi*4 + 0x78], edx
movzx edx, byte [eax + 0x427dd8]
cmp byte [esp + edx + 0x40], 0
je 0x4134d7
mov edx, dword [eax*4 + 0x427e40]
or dword [esp + edi*4 + 0x78], edx
add eax, 1
cmp eax, 0x18
jne 0x4134a5
add dword [esp], 1
mov eax, dword [esp]
cmp eax, 0x10
jne 0x413425
mov edx, dword [esp + 4]
lea eax, [esp + 0x78]
call fcn.00413310
add esp, 0xf8
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x413510
Capabilities:
Encrypt data using des

Disassembly:
push ebp
push edi
xor ecx, ecx
push esi
push ebx
sub esp, 0xf8
mov dword [esp + 4], edx
movzx edx, byte [ecx + str.80_]
mov ebx, edx
shr edx, 3
and ebx, 7
movzx edx, byte [eax + edx]
mov ebx, dword [ebx*4 + 0x427ea0]
and edx, ebx
cmp ebx, edx
sete byte [esp + ecx + 8]
add ecx, 1
cmp ecx, 0x38
jne 0x413520
mov dword [esp], 0
mov eax, dword [esp]
lea esi, [eax + eax]
movzx ebp, byte [eax + 0x427df0]
lea ebx, [esp + 0x40]
lea edi, [esi + 1]
lea edx, [ebp + 0x1c]
mov dword [esp + edi*4 + 0x78], 0
mov eax, ebp
mov dword [esp + esi*4 + 0x78], 0
sub ebx, ebp
jmp 0x41358f
movzx ecx, byte [esp + eax + 8]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, edx
je 0x4135a3
cmp eax, 0x1b
jbe 0x413580
movzx ecx, byte [esp + eax - 0x14]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, edx
jne 0x41358f
add ebp, 0x38
jmp 0x4135bf
movzx eax, byte [esp + edx + 8]
mov byte [ebx + edx], al
add edx, 1
cmp edx, ebp
je 0x4135d3
cmp edx, 0x37
jbe 0x4135b0
movzx eax, byte [esp + edx - 0x14]
mov byte [ebx + edx], al
add edx, 1
cmp edx, ebp
jne 0x4135bf
xor eax, eax
movzx edx, byte [eax + 0x427dc0]
cmp byte [esp + edx + 0x40], 0
je 0x4135ee
mov edx, dword [eax*4 + 0x427e40]
or dword [esp + esi*4 + 0x78], edx
movzx edx, byte [eax + 0x427dd8]
cmp byte [esp + edx + 0x40], 0
je 0x413607
mov edx, dword [eax*4 + 0x427e40]
or dword [esp + edi*4 + 0x78], edx
add eax, 1
cmp eax, 0x18
jne 0x4135d5
add dword [esp], 1
mov eax, dword [esp]
cmp eax, 0x10
jne 0x413555
mov edx, dword [esp + 4]
lea eax, [esp + 0x78]
call fcn.00413310
add esp, 0xf8
pop ebx
pop esi
pop edi
pop ebp
ret