joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001ff7
Capabilities:
Print debug messages
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0x40bc]
mov eax, 0x413c
call fcn.1000b6c0
mov eax, dword [0x100112cc]
xor eax, ebp
mov dword [ebp + 0x40b8], eax
mov eax, dword [0x10012164]
push ebx
push esi
push edi
lea ecx, [ebp - 0x54]
push ecx
push 0x8004667e
xor ebx, ebx
push eax
mov esi, eax
mov dword [ebp - 0x54], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 0x20
mov edi, eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 1
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
jne 0x100020ad
lea eax, [ebp - 0x80]
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [ebp - 0x80], 0x20
je 0x100020ad
mov dword [ebp - 0x50], ebx
push 0x3fff
lea eax, [ebp - 0x4b]
push ebx
push eax
mov byte [ebp - 0x4c], bl
call fcn.10009c10
add esp, 0xc
push ebx
push 0x4000
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
je 0x100020d5
cmp eax, 0xffffffff
je 0x100020d5
inc dword [ebp - 0x50]
cmp dword [ebp - 0x50], 0x20
jl 0x10002075
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push edi
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
xor eax, eax
mov ecx, dword [ebp + 0x40b8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000406a
add ebp, 0x40bc
leave
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push edi
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
push 0x103
lea eax, [ebp + 0x3fb5]
push ebx
push eax
mov byte [ebp + 0x3fb4], bl
call fcn.10009c10
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp + 0x3fb4]
push str.SocketLibs_PerfectClose___d
push eax
call fcn.100047a0
add esp, 0xc
lea eax, [ebp + 0x3fb4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
inc eax
jmp 0x100020bd

Function at 0x1000212b
Capabilities:
Create thread

Disassembly:
push ebx
xor ebx, ebx
push edi
cmp esi, ebx
je 0x10002161
mov edi, 0x100011ec
mov eax, edi
test eax, eax
je 0x10002161
push 1
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ebx
push ebx
push ebx
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esi + 4], eax
mov eax, ecx
jmp 0x10002163
xor eax, eax
pop edi
pop ebx
ret

Function at 0x10002166
Capabilities:
Terminate thread

Disassembly:
push edi
mov edi, eax
xor eax, eax
cmp edi, eax
jne 0x10002171
pop edi
ret
cmp dword [edi], eax
je 0x100021ba
cmp dword [edi + 4], eax
je 0x100021ba
push eax
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x2710
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100021aa
push 1
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 8
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
xor eax, eax
inc eax
pop edi
ret
Function at 0x100021bf
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x100112cc]
xor eax, ebp
mov dword [ebp + 0x84], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x7f]
push 0
push eax
mov byte [ebp - 0x80], 0
call fcn.10009c10
mov edi, dword [ebp + 0x90]
lea eax, [ebp - 0x80]
add esp, 0xc
xor ecx, ecx
sub edi, eax
mov esi, 0xcc
lea eax, [ebp + ecx - 0x80]
mov dl, byte [edi + eax]
xor dl, 0x27
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x10002205
push esi
lea eax, [ebp - 0x80]
push eax
push dword [0x10012164]
call fcn.10001f86
mov ecx, dword [ebp + 0x84]
add esp, 0xc
neg eax
sbb eax, eax
pop edi
xor ecx, ebp
neg eax
pop esi
call fcn.1000406a
add ebp, 0x88
leave
ret

Function at 0x1000227f
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x100112cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x3f
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x43]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x44], 0
call fcn.10009c10
push 0x40
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
call fcn.100025cc
lea eax, [ebp - 0x44]
push 0x40
push eax
push eax
mov eax, 0x1000ed88
call fcn.10002555
add esp, 0x24
cmp dword [ebp + 0x10], 1
jne 0x10002316
mov ebx, esi
mov dword [ebp - 0x68], 0x10
push 8
pop ecx
lea esi, [ebp - 0x24]
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp - 0x24]
call fcn.10002488
pop ecx
xor eax, eax
mov cl, byte [ebp + eax - 0x44]
xor byte [ebp + eax - 0x24], cl
inc eax
cmp eax, 0x20
jb 0x100022f3
push 8
pop ecx
lea esi, [ebp - 0x64]
lea edi, [ebp - 0x44]
add ebx, 0x30
dec dword [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
jne 0x100022dc
jmp 0x1000235f
mov dword [ebp - 0x68], 0xf
lea ebx, [esi + 0x2d0]
push 8
pop ecx
lea esi, [ebp - 0x44]
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp - 0x44]
call fcn.10002488
pop ecx
xor eax, eax
mov cl, byte [ebp + eax - 0x24]
xor byte [ebp + eax - 0x44], cl
inc eax
cmp eax, 0x20
jb 0x1000233a
dec dword [ebp - 0x68]
push 8
pop ecx
lea esi, [ebp - 0x64]
lea edi, [ebp - 0x24]
sub ebx, 0x30
cmp dword [ebp - 0x68], 0
rep movsd dword es:[edi], dword [esi]
jge 0x10002323
lea eax, [ebp - 0x44]
push 0x40
push eax
push eax
mov eax, 0x1000edc8
call fcn.10002555
mov edx, dword [ebp - 0x6c]
xor eax, eax
mov edi, edx
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
xor esi, esi
mov bl, byte [ebp + esi - 0x44]
mov ecx, esi
and ecx, 7
mov eax, esi
shl bl, cl
shr eax, 3
add eax, edx
or byte [eax], bl
inc esi
cmp esi, 0x40
jb 0x1000237e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000406a
leave
ret
Function at 0x100023fb
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x100112cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3f
lea eax, [ebp - 0x43]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x44], 0
call fcn.10009c10
push 0x40
push dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
call fcn.100025cc
lea eax, [ebp - 0x44]
push 0x38
push eax
push eax
mov eax, str.91__
call fcn.10002555
add esp, 0x24
xor esi, esi
movsx ebx, byte [esi + 0x1000eec0]
lea eax, [ebp - 0x44]
call fcn.10002598
lea eax, [ebp - 0x28]
call fcn.10002598
push 0x30
lea eax, [ebp - 0x44]
push eax
push edi
mov eax, 0x1000ee90
call fcn.10002555
add esp, 0xc
inc esi
add edi, 0x30
cmp esi, 0x10
jl 0x10002445
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000406a
leave
ret

Function at 0x10002488
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x100112cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x2f
lea eax, [ebp - 0x33]
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x34], 0
call fcn.10009c10
push 0x30
lea eax, [ebp - 0x34]
push edi
push eax
mov eax, 0x1000ee08
call fcn.10002555
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x34]
add esp, 0x18
xor ecx, ecx
sub esi, eax
lea eax, [ebp + ecx - 0x34]
mov dl, byte [esi + eax]
xor byte [eax], dl
inc ecx
cmp ecx, 0x30
jb 0x100024cf
mov ebx, edi
lea esi, [ebp - 0x32]
xor edi, edi
mov dword [ebp - 0x3c], 8
mov al, byte [esi - 1]
mov cl, byte [esi - 2]
add al, al
add al, byte [esi]
add cl, cl
add cl, byte [esi + 3]
add al, al
add al, byte [esi + 1]
movsx ecx, cl
add al, al
add al, byte [esi + 2]
add ecx, edi
movsx eax, al
shl ecx, 4
push 4
lea eax, [eax + ecx + 0x1000eed0]
push eax
push ebx
call fcn.100025cc
add esp, 0xc
add edi, 4
add esi, 6
add ebx, 4
dec dword [ebp - 0x3c]
jne 0x100024ec
push 0x20
push dword [ebp - 0x38]
mov eax, 0x1000ee38
push dword [ebp - 0x38]
call fcn.10002555
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000406a
leave
ret
Function at 0x1000406a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100112cc]
jne 0x10004074
repz ret
jmp fcn.10004f6d

Function at 0x1000ada8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10008ee3
and dword [ebp - 4], 0
cmp dword [0x10012b10], 0
mov ebx, eax
jne 0x1000ae59
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000af0a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000af0a
push eax
call fcn.10008e71
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10012b10], eax
call esi
push eax
call fcn.10008e71
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10012b14], eax
call esi
push eax
call fcn.10008e71
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10012b18], eax
call esi
push eax
call fcn.10008e71
pop ecx
mov dword [0x10012b20], eax
test eax, eax
je 0x1000ae59
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10008e71
pop ecx
mov dword [0x10012b1c], eax
mov eax, dword [0x10012b1c]
cmp eax, ebx
je 0x1000aeb1
cmp dword [0x10012b20], ebx
je 0x1000aeb1
push eax
call fcn.10008eec
push dword [0x10012b20]
mov esi, eax
call fcn.10008eec
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000aeb1
test edi, edi
je 0x1000aeb1
call esi
test eax, eax
je 0x1000aea8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000aea8
test byte [ebp - 0xc], 1
jne 0x1000aeb1
or dword [ebp + 0x10], 0x200000
jmp 0x1000aeea
mov eax, dword [0x10012b14]
cmp eax, ebx
je 0x1000aeea
push eax
call fcn.10008eec
pop ecx
test eax, eax
je 0x1000aeea
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000aeea
mov eax, dword [0x10012b18]
cmp eax, ebx
je 0x1000aeea
push eax
call fcn.10008eec
pop ecx
test eax, eax
je 0x1000aeea
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10012b10]
call fcn.10008eec
pop ecx
test eax, eax
je 0x1000af0a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000af0c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001017
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov ecx, fcn.10001017
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], 0
jmp 0x10001052
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x14], ecx
jae 0x100010e4
mov dword [ebp - 0x1c], 0x2000
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x28
add ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 0xf8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x24]
and ecx, 0x20000000
je 0x100010df
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 0xc]
jbe 0x100010ac
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x18]
add edx, dword [eax + 8]
cmp dword [ebp - 4], edx
jb 0x100010df
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0x2000
jbe 0x100010c5
mov dword [ebp - 0x20], 0x2000
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
call fcn.100010f7
add esp, 0xc
jmp 0x10001049
mov esp, ebp
pop ebp
ret

Function at 0x10001231
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10754110]
jne 0x1000123b
repz ret
jmp fcn.100014bd
Function at 0x10005021
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10754110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100015c3
and dword [ebp - 0x14], 0
cmp dword [0x107573e4], 0
mov dword [ebp - 0x18], eax
jne 0x100050d4
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000517c
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000517c
mov esi, dword [sym.imp.kernel32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x107573e4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x107573e8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x107573ec], eax
call edi
push eax
call esi
mov dword [0x107573f4], eax
test eax, eax
je 0x100050d4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x107573f0], eax
mov eax, dword [0x107573f0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, ecx
je 0x1000512d
cmp dword [0x107573f4], ecx
je 0x1000512d
push eax
call esi
push dword [0x107573f4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000512d
test ebx, ebx
je 0x1000512d
call edi
test eax, eax
je 0x10005124
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10005124
test byte [ebp - 8], 1
jne 0x1000512d
or dword [ebp + 0x10], 0x200000
jmp 0x10005160
mov eax, dword [0x107573e8]
cmp eax, dword [ebp - 0x18]
je 0x10005160
push eax
call esi
test eax, eax
je 0x10005160
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10005160
mov eax, dword [0x107573ec]
cmp eax, dword [ebp - 0x18]
je 0x10005160
push eax
call esi
test eax, eax
je 0x10005160
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x107573e4]
call esi
test eax, eax
je 0x1000517c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000517e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001231
leave
ret

Function at 0x1004f580
Capabilities:
Encode data using xor

Disassembly:
and byte [edx - 0x23b26e9f], cl
movsd dword es:[edi], dword [esi]
sbb eax, 0xa072ee93
mov ebp, dword [0xd8d0aadc]
js 0x1004f51a
jb 0x1004f528
xchg esi, eax
mov ecx, 0x1328bb44
jecxz 0x1004f599
invalid
mov dword [0xb89a1e30], eax
dec edi
mov esp, 0x967a2501
dec eax
push dword [esi - 0x55]
sub bl, dl
ljmp 0x2675
invalid
Function at 0x417d68
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [ebx + 0x56], al
and byte [eax], ah
jno 0x417d09
inc eax
xchg edi, eax
push ss
imul eax, dword [esi], 0x7bb6c9d5
and ah, byte [ebx - 0x36855f8a]
bswap ecx
ljmp 0x3547
mov esi, 0xe5a2fd6
xchg esi, eax
mov ecx, 0xc1a86f4e
leave
cmpsd dword [esi], dword es:[edi]
and dword [edx + 0x6fe1e87e], 0x3e
aaa
sbb al, 0xc5
push 0x6e
aam 0x15
aad 0xe5
pushal
in eax, 0x60
stosd dword es:[edi], eax
xchg ecx, eax
inc esp
and dh, byte [ecx + 0x37]
stosb byte es:[edi], al
pop ds
leave
jae 0x417cc5
inc ecx
sbb al, 0xc
xchg cl, dh
stc
mov bl, bh
mov dword [ecx - 0x37], ebx
das
sar dword [ebx - 0x3e9b25f8], cl
mov ebp, 0x7ef531ac
add cl, 0xab
inc edi
adc al, 0x72
stc
pop ds
mov bh, dh
push edi
xor al, 0xb1
mov cl, 0xab
add eax, 0x908334c5
dec esi
xor cl, 0xa0
rcr dword [edx], cl
loope 0x417d41
jne 0x417d56
out 0x78, eax
xchg byte [eax + ebp*8], dh
jae 0x417dc9
int3
cmp dl, byte [esi - 0x2a]
ja 0x417ceb
xchg edi, eax
int1
fsub st(4), st(0)
or ebx, dword [esi - 0x53b21270]
adc eax, 0xbca79e98
cmpsd dword [esi], dword es:[edi]
mov esp, 0x381e1e4e
adc dl, byte [eax + 0x1f]
cmpsd dword [esi], dword es:[edi]
mov esp, 0x381e1e4e
adc dl, byte [eax + 0x1f]
in al, 0x34
mov bl, 0x49
pop ds
pop ebx
mov ebp, 0x9e837d68
xchg edi, eax
stosd dword es:[edi], eax
out dx, eax
jl 0x417d09
inc ebp
lodsd eax, dword [esi]
test byte [eax - 0x76], dl
hlt
add byte [edi + 0x5e], bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bacad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c43c0
cmp edx, dword [eax]
je 0x4baccf
add eax, 8
inc ecx
cmp eax, 0x4c4450
jl 0x4bacc0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c43c0]
jne 0x4badfd
mov eax, dword [0x4c8d4c]
cmp eax, 1
je 0x4badd7
test eax, eax
jne 0x4bad00
cmp dword [0x4c42ec], 1
je 0x4badd7
cmp edx, 0xfc
je 0x4badfd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bad37
lea eax, [ebp - 0x1a4]
push 0x4bfd20
push eax
call fcn.004bb690
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbb20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bad7a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbb20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bfd1c
push edi
call fcn.004bd9f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4bfd00
push eax
call fcn.004bb690
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb6a0
lea eax, [ebp - 0xa0]
push 0x4bfcfc
push eax
call fcn.004bb6a0
push dword [esi + 0x4c43c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb6a0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4bfcd4
push eax
call fcn.004bd964
add esp, 0x2c
pop edi
jmp 0x4badfd
lea eax, [ebp + 8]
lea esi, [esi + 0x4c43c4]
push 0
push eax
push dword [esi]
call fcn.004bbb20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1000796e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100181d4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
mov eax, edx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
cmp edi, 0x10
ja 0x100079c5
mov esi, dword [0x100186ec]
lea edx, [ebp - 8]
push edx
push eax
push edi
push 1
push ecx
mov ecx, esi
call dword [0x10019344]
call esi
test eax, eax
jne 0x100079bd
mov eax, 0x8000ffff
jmp 0x10007a52
mov eax, dword [ebp - 8]
jmp 0x10007a52
push ebx
lea esi, [edi + 0xc]
push esi
push dword [0x100181dc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.10023e5c
mov ebx, eax
test ebx, ebx
jne 0x100079ea
mov eax, 0x8007000e
jmp 0x10007a51
push 1
push esi
mov esi, dword [0x100186d0]
mov ecx, esi
push ebx
call dword [0x10019344]
call esi
mov ecx, dword [ebp - 0xc]
push edi
push dword [ebp - 0x10]
mov dword [eax + edi], ecx
push eax
mov dword [eax + edi + 4], ebx
mov dword [eax + edi + 8], edi
call sub.msvcrt.dll_memcpy
mov esi, dword [0x100186e8]
lea eax, [ebx + edi]
add esp, 0xc
mov ecx, esi
push eax
push dword [0x100185ac]
call dword [0x10019344]
call esi
mov dword [ebp - 8], eax
lea eax, [edi + 0xc]
push eax
push ecx
push dword [0x100181dc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
call fcn.10011f10
mov eax, dword [ebp - 8]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100165d0
mov esp, ebp
pop ebp
ret 4
Function at 0x100167f0
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 0x1001682e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10016826
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10016830
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10016816
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10016900
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10016916
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10016931
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x1001e396
Capabilities:
Encode data using xor

Disassembly:
call 0x1001e30f
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1001e33f
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1001e35b
xor edx, 0
jmp 0x1001e366
xor edx, edx
jmp 0x1001e37d
jmp 0x1001e389
xor eax, eax
push 0x8427d7c0
call 0x1001e396
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1001e3d2
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1001e3ab
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1001e3e9
add eax, 0
jno 0x1001e3ee
add esi, 0
ret 0x10
Function at 0x1001f157
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1001f179
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1001f31b
cmp edi, dword [ebp + 0x10]
jb 0x1001f31b
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.1001ec43
inc edi
jmp 0x1001f202
jmp 0x1001f20f
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1001ec43
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1001ec43
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1001f263
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1001f247
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1001f291
add dword [eax], 0x39
jle 0x1001f26d
sub al, 0xf5
mov ch, al
call fcn.1001f2a6
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x10020f7e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x10020f94
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x10020fa5
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.10020fe6
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx