joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467cb0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
sub esp, 0x2c
mov dword [esp + 0x1c], 0x458600
call fcn.004018c0
call fcn.00402110
call fcn.00411170
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esp + 4], 0x498480
mov dword [0x49c308], eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.0040be80
call fcn.00411030
call fcn.0041de20
call fcn.0041f510
call fcn.00425190
call fcn.00425220
call fcn.00426bf0
call fcn.00426d90
call fcn.00427a00
call fcn.00427e80
call fcn.004280c0
call fcn.004281a0
call fcn.00428410
call fcn.004289c0
call fcn.00429700
call fcn.0042be10
call fcn.0042e480
call fcn.00430c90
call fcn.00439a30
call fcn.00439e50
call fcn.00439ec0
call fcn.0043a6b0
call fcn.0043aa20
call fcn.0043ae20
call fcn.0043ca60
call fcn.00444040
call fcn.00446260
call fcn.00447a70
call fcn.004486a0
call fcn.004498c0
call fcn.00449e20
call fcn.0044ab60
call fcn.0044b2a0
call fcn.0044bf60
call fcn.0044d620
call fcn.0044da80
call fcn.0044db80
call fcn.0044dbd0
call fcn.0044ea00
call fcn.00458170
mov eax, dword [esp + 0x1c]
mov dword [0x4d4f20], 4
mov dword [0x4d4f24], 4
mov byte [0x4d4f28], 0x18
mov dword [0x4d4f2c], 0x49dce0
mov dword [0x4d4f38], 0x4585e0
mov dword [0x49fa34], 0x430a20
mov dword [0x4a0534], 0x430090
call eax
add esp, 0x2c
ret

Function at 0x46a284
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.00470cec
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.00470cec
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x46add4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x46adf3
mov eax, 0
jmp 0x46ae37
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x46ae16
mov eax, 0
jmp 0x46ae37
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x46ae32
mov eax, 0
jmp 0x46ae37
mov eax, 1
leave
ret
Function at 0x46ae39
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x46ae98
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x46ae90
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x46ae90
mov eax, dword [ebp - 4]
jmp 0x46aeac
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x46ae6d
mov eax, 0
leave
ret
Function at 0x593faa70
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SetFocus]
mov esi, ecx
push dword [esi + 8]
call edi
push dword [esi + 0xc]
call edi
push 5
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x18]
call edi
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x70]
push 0
mov dword [esi], 1
push dword [ecx + eax*4 + 0x24]
push 0x186
push dword [esi + 0x18]
call dword [sym.imp.vsansi.dll_SendMessageW]
and dword [esi], 0
pop edi
xor eax, eax
pop esi
ret

Function at 0x593fbcd7
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
cmp edi, dword [esi + 8]
je 0x593fbd16
call fcn.59401fce
push 0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, dword [esi + 0x14]
je 0x593fbd06
mov eax, dword [esi + 0x3c]
test eax, eax
jle 0x593fbd0f
dec eax
mov dword [esi + 0x3c], eax
jmp 0x593fbd0f
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, esi
call fcn.593fb8d4
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x593fc691
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
ret 8

Function at 0x593fc6ab
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.vsansi.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
pop esi
ret 0xc

Function at 0x593fc6d7
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.vsansi.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x593fc6e2
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x59404d9b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push esi
mov esi, ecx
call fcn.59404d84
and byte [esi + 0xc], 0
mov eax, 0x593f0000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push 0
push eax
mov dword [esi], 0x3c
call sub.MSVCR70.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
jne 0x59404df5
cmp dword [ebp - 0x18], 5
jb 0x59404e0d
jmp 0x59404e09
cmp dword [ebp - 0xc], 1
jne 0x59404e0d
cmp dword [ebp - 0x18], 4
ja 0x59404e09
jne 0x59404e0d
cmp dword [ebp - 0x14], 0
jbe 0x59404e0d
mov byte [esi + 0xc], 1
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x10], 0x700
mov dword [esi + 0x14], 0x59407090
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
add ebp, 0x78
leave
ret
Function at 0x404837
Capabilities:
Get disk information

Disassembly:
mov eax, 0x429b10
call fcn.00428650
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.00401f1f
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], ebx
je 0x40490d
mov eax, SysReAllocString
cmp ebx, eax
ja 0x404873
mov eax, ebx
add eax, eax
push eax
call fcn.00405733
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x14], ebx
je 0x404906
cmp ebx, dword [ebp - 0x18]
ja 0x404906
lea ecx, [ebp - 0x2c]
call fcn.00402679
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
jbe 0x4048ee
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4048e3
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.00405733
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 1]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
call fcn.00405733
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401d25
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x14]
jb 0x4048b1
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.00402153
push esi
call fcn.00402153
cmp dword [ebp - 0x18], ebx
pop ecx
pop ecx
sete al
jmp 0x40490f
push esi
call fcn.00402153
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x2e014b3c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x2e0302bf
call fcn.2e00153c
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x2e014b76
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e014bdc
lea eax, [ebp - 0x14]
mov edi, 0x2e032941
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e014bd3
mov eax, dword [ebp - 0x14]
test eax, eax
js 0x2e014bd3
inc eax
push eax
call fcn.2e019f2b
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e014bc5
mov ecx, dword [ebp + 0xc]
push esi
call fcn.2e010c49
mov bl, 1
or dword [ebp - 4], 0xffffffff
push 1
push esi
call fcn.2e019f2b
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call fcn.2e001586
ret 8

Function at 0x2e019f2b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x2e019f3a
pop dword [ebp - 0x28]
mov eax, 0x2e019f3a
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x6385ce67
sub dword [ebp - 0x38], 0x1533891c
mov dword [ebp - 0x34], 0x86927130
add dword [ebp - 0x34], 0xaba0db15
mov dword [ebp - 0x30], 0xfc28feec
sub dword [ebp - 0x30], 0xafdcbabe
mov dword [ebp - 0x2c], 0x25e8a691
add dword [ebp - 0x2c], 0xda17596f
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x54a710a8
sub dword [ebp - 0x38], 0xe034a752
mov dword [ebp - 0x34], 0x9d3e7fb8
add dword [ebp - 0x34], 0xa42de1bd
mov dword [ebp - 0x30], 0x6c3c2e1
add dword [ebp - 0x30], 0x5caba98b
mov dword [ebp - 0x2c], 0xb4cc3248
add dword [ebp - 0x2c], 0x4b33cdb8
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x331fa76f
add eax, 0xfae3794d
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x45f10
push 0
call eax
mov ecx, 0x7c8c4f9
sub ecx, 0x7c86a3b
xor edx, edx
add edx, eax
mov ebx, 0xc045e7a0
add ebx, 0x6dbf8660
add ebx, dword [ebp - 0x28]
mov edi, 0x5312127b
add dword [ebp - 0x20], edx
mov esi, dword [ebx]
sub dword [ebp - 0x18], edi
xor esi, edi
add dword [ebp - 4], 0x5beb1e00
mov dword [edx], esi
add dword [ebp - 0x14], 0xcce9da6e
add edx, 0xa9eec32
sub edx, 0xa9eec2e
add ebx, 0x8623c4ff
sub ebx, 0x8623c4fb
loop 0x2e01a04e
add eax, 0x15dcb
mov ebx, eax
add eax, 0x1dc332b2
sub eax, 0x1dc332ad
mov ecx, 0xfca402d3
sub ecx, 0xcea402d3
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x1000ede0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1000edef
pop dword [ebp - 0x14]
mov eax, 0x62f02635
add eax, 0xad10c7ba
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xee301a0f
sub dword [ebp - 0x24], 0x9fddd4c4
mov dword [ebp - 0x20], 0x48088608
add dword [ebp - 0x20], 0xea2ac63d
mov dword [ebp - 0x1c], 0x90bb3894
add dword [ebp - 0x1c], 0xbb910b9a
mov dword [ebp - 0x18], 0xec6bad86
add dword [ebp - 0x18], 0x1394527a
lea eax, [ebp - 0x24]
push eax
mov eax, 0xb886636b
sub eax, 0xa884131b
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x7d94fc95
sub dword [ebp - 0x24], 0x922933f
mov dword [ebp - 0x20], 0x8c69a9f9
sub dword [ebp - 0x20], 0x4afd4884
mov dword [ebp - 0x1c], 0x35c5cba0
sub dword [ebp - 0x1c], 0xd2565f34
mov dword [ebp - 0x18], 0xb4ef25b
sub dword [ebp - 0x18], 0xb4ef25b
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x9e78e51e
add eax, 0x71896b36
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3c750
push 0
call eax
mov ecx, 0xc2685b0
sub ecx, 0xc264354
xor edx, edx
add edx, eax
mov esi, 0x1a2dc716
add esi, 0xf5d592ea
add esi, dword [ebp - 0x14]
mov ebx, 0x569a194e
sub ebx, 0x6a4e6fdc
xor dword [ebp - 8], 0x331ff64b
mov edi, dword [esi]
add dword [ebp - 0x10], ecx
sub edi, ebx
sub dword [ebp - 0x10], 0xe6d21d0d
mov dword [edx], edi
add dword [ebp - 0xc], 0x20f17ceb
add edx, 4
add esi, 0xf564438c
add esi, 0xa9bbc78
loop 0x1000ef13
add eax, 0x1c7b7c9a
sub eax, 0x1c7a8057
mov ebx, eax
add eax, 0xb8c83991
add eax, 0x4737c674
mov ecx, 0xdf1cd657
add ecx, 0x30e329a9
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x401c66
pop dword [ebp - 0xc]
mov eax, 0x88cba34b
sub eax, 0x888b86e5
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xf177a103
sub dword [ebp - 0x1c], 0xa3255bb8
mov dword [ebp - 0x18], 0xf4ea6791
sub dword [ebp - 0x18], 0xc2b71b4c
mov dword [ebp - 0x14], 0xdfb9f8a4
add dword [ebp - 0x14], 0x6c924b8a
mov dword [ebp - 0x10], 0xda8df80
add dword [ebp - 0x10], 0xf2572080
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x1342e097
add eax, 0xecfd4fbd
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x6d6a82a7
sub dword [ebp - 0x1c], 0xf8f81951
mov dword [ebp - 0x18], 0xd973db2c
add dword [ebp - 0x18], 0x67f88649
mov dword [ebp - 0x14], 0xc557ded4
sub dword [ebp - 0x14], 0x61e87268
mov dword [ebp - 0x10], 0x7e027c5f
add dword [ebp - 0x10], 0x81fd83a1
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xc9c5aa14
sub eax, 0xc98579e8
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x35ade
push 0
call eax
mov ecx, 0xad9ffd49
sub ecx, 0xad9fb87e
mov edi, eax
mov esi, 0x407000
add esi, dword [ebp - 0xc]
mov ebx, 0x7e8f3762
sub ebx, 0x61e35f0
add dword [ebp - 8], 0x4d1306ce
mov edx, dword [esi]
sub dword [ebp - 8], 0x34072c0e
xor edx, ebx
sub dword [ebp - 8], 0x133de99f
mov dword [edi], edx
sub dword [ebp - 8], 0xd51c51c0
add edi, 0x5238707a
sub edi, 0x52387076
add esi, 4
loop 0x401d82
add eax, 0xd00e1678
add eax, 0x2ff2ef87
mov ebx, eax
add eax, 0x8bd319be
sub eax, 0x8bd319b9
mov ecx, 0x1b71704c
sub ecx, 0x1b31704c
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x401996
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x40c010]
test eax, eax
je 0x4019d5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4019d5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4019d5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4019d5
cmp dword [ecx + 0x74], 0xe
jbe 0x4019d5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x406251
Capabilities:
Encode data using xor

Disassembly:
pop esi
add al, 0xe9
or al, 0xb0
mov dh, 0x3c
ja 0x4062a1
test eax, 0xa662c9f7
shr ah, 1
invalid
jo 0x40621b
aam 0x75
jp 0x4062ba
outsd dx, dword [esi]
xchg esi, eax
stosd dword es:[edi], eax
dec eax
jmp 0x40621a
sub dword [ecx + esi*4 + 0x4d2f3c60], ebx
adc eax, 0x45f07628
adc byte [esi - 0x566d1fa8], dl
invalid
invalid
and ecx, dword [ebp - 0x46]
sahf
jge 0x4062cd
inc ebp
sbb al, bh
lea edx, [esi + 0x4c]
mov eax, 0xa21d8ac5
xchg edi, eax
jp 0x4062ee
and ah, ah
push es
in al, 6
pushal
jle 0x4062e7
lodsd eax, dword [esi]
lodsd eax, dword [esi]
pop ebx
mov bl, 0xea
sti
mov cl, 0xcd
xor bl, ah
xchg edx, eax
jmp 0x4062d7
ljmp 0x92e3:0x30cdb1fb
rcl byte ds:[ebx + esi*8 - 0x3c3a5c78]
jns 0x406297
ret
jle 0x4062d7
ljmp 0x2bbb:0x72ee97d2

Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov bl, byte [eax]
cmp bl, 0xd8
je 0x40102e
cmp bl, 0xd7
je 0x40102e
mov esi, dword [ebp + 0x10]
lea ecx, [eax + 1]
test esi, esi
jle 0x40104f
mov eax, dword [ebp + 0xc]
sub ecx, eax
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec esi
jne 0x401023
jmp 0x40104f
mov esi, dword [ebp + 0xc]
inc eax
push esi
push eax
call fcn.00401ac0
cmp bl, 0xd8
jne 0x40104f
xor eax, eax
cmp dword [ebp + 0x10], eax
jle 0x40104f
xor byte [eax + esi], 0xf0
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x401045
pop esi
pop ebx
pop ebp
ret

Function at 0x4010c1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
xor esi, esi
push edi
push esi
push dword [esp + 0x14]
push esi
push 0x8000040
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x4010fc
push esi
push esi
push esi
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
jne 0x40112a
push 0x40
push 0x101000
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40112a
push esi
mov eax, 0x401130
push esi
push eax
push eax
push 0x80030008
call fcn.00401057
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401039
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401074
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401070
lea ebx, [ebx]
cmp esi, eax
jae 0x401074
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401060
cmp esi, eax
jb 0x40107a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407c10
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0xa8], 0
je 0x407c22
xor eax, eax
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x407bd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xa8], eax
je 0x407c1d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
pop esi
pop ecx
ret
Function at 0x407d80
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a66db
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x4e3e9c]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e3e9c]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
mov edi, dword [esp + 0x4c8]
mov ebx, ecx
cmp dword [ebx + 0xec], 0
jne 0x407f58
push 0xffffffffffffffff
call fcn.00437ad0
mov ecx, eax
call fcn.004368b0
test eax, eax
je 0x407f58
mov al, 0x30
mov byte [esp + 0x48f], al
mov dl, 0x34
mov cl, 0x37
mov byte [esp + 0x496], al
mov byte [esp + 0x497], al
mov byte [esp + 0x49b], al
mov eax, dword [ebx + 0x108]
mov byte [esp + 0x48c], 0x31
mov byte [esp + 0x48d], 0x62
mov byte [esp + 0x48e], 0x33
mov byte [esp + 0x490], dl
mov byte [esp + 0x491], 0x63
mov byte [esp + 0x492], cl
mov byte [esp + 0x493], 0x61
mov byte [esp + 0x494], 0x32
mov byte [esp + 0x495], 0x64
mov byte [esp + 0x498], dl
mov byte [esp + 0x499], cl
mov byte [esp + 0x49a], 0x31
mov byte [esp + 0x49c], 0
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407e76
sub eax, esi
lea esi, [eax + 0x10]
lea ecx, [esp + 0x18]
and esi, 0xfffffff0
call fcn.00416de0
mov eax, dword [0x4d8334]
push 0x10
push 0x10
push eax
lea ecx, [esp + 0x498]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x4d0], 0
call fcn.00416e00
mov eax, dword [ebx + 0x108]
push 0
push esi
push eax
push eax
lea ecx, [esp + 0x28]
call fcn.004178b0
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x407f38
xor edi, edi
test esi, esi
jle 0x407f31
mov edx, dword [ebx + 0x108]
movzx eax, byte [edx + edi]
push eax
push str._02x
lea ecx, [esp + 0x4b4]
push 8
push ecx
call fcn.0048f305
add esp, 0x10
push 0
lea edx, [esp + 0x18]
push edx
push 2
lea eax, [esp + 0x4b8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, 1
cmp edi, esi
jl 0x407ef0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00437ad0
mov ecx, eax
call fcn.00436440
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c0], 0xffffffff
call fcn.00416df0
mov ecx, dword [esp + 0x4b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4a0]
xor ecx, esp
call fcn.0048e5ae
add esp, 0x4b0
ret 4
Function at 0x40e5e1
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0xa4], 0
je 0x40e5f2
xor eax, eax
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x40e5c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xa4], eax
je 0x40e5ed
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x40fc30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4e3e9c]
xor eax, esp
mov dword [esp + 0x10c], eax
mov ecx, dword [esp + 0x118]
mov eax, dword [esp + 0x114]
push esi
push edi
mov edi, dword [esp + 0x124]
lea edx, [esp + 8]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40fca9
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
call fcn.0048e5ae
add esp, 0x110
ret 0xc

Function at 0x40fe20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4e3e9c]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push eax
push 0
push 0
push ebp
push str.open
push 0
mov edi, ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40ff1c
lea ecx, [esp + 0xc]
push ecx
push str..htm
push SysReAllocString
mov ecx, edi
call fcn.0040fc30
test eax, eax
jne 0x40ff3a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
lea edx, [esp + 0x14]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
mov ecx, eax
push ecx
push SysReAllocString
mov ecx, edi
call fcn.0040fc30
test eax, eax
jne 0x40ff36
lea edx, [esp + 0x10]
push str.__1_
push edx
call fcn.0048f7b1
mov esi, eax
add esp, 8
test esi, esi
jne 0x40fef3
lea eax, [esp + 0x10]
push 0x4b0538
push eax
call fcn.0048f7b1
mov esi, eax
add esp, 8
test esi, esi
jne 0x40fef3
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x40fef6
mov byte [esi], 0
push 0x4ae33c
push esi
call ebx
push ebp
push esi
call ebx
call dword [0x4e53c0]
mov edx, dword [esp + 0x224]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0048e5ae
add esp, 0x20c
ret 8
mov eax, esi
jmp 0x40ff1b
mov eax, esi
jmp 0x40ff1c