joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a064
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, eax
add esi, 4
mov eax, dword [esi]
push edi
xor edi, edi
cmp eax, edi
je 0x43a082
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [esi], edi
push 0x20
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00442500
add esp, 0xc
push esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x20], edi
push dword [ebp + 8]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
pop edi
pop esi
leave
ret 8

Function at 0x43a206
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
cmp byte [esi + 0x44], bl
je 0x43a218
mov al, 1
jmp 0x43a28a
mov eax, dword [esi + 0x40]
mov byte [ebp - 1], 1
cmp eax, 0xffffffff
jne 0x43a228
xor al, al
jmp 0x43a28a
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x43a284
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x43a27e
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x43a281
push 0x2c
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00442500
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x43a284
mov dword [esi + 0x48], eax
mov byte [ebp - 1], bl
mov al, byte [ebp - 1]
mov byte [esi + 0x44], al
pop ebx
leave
ret 8

Function at 0x43a28f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
push dword [esi + 0x4c]
mov edi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [esi + 0xc]
call edi
test eax, eax
je 0x43a2b6
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x43a35d
push ebx
xor ebx, ebx
push ebx
push dword [esi + 8]
call edi
cmp eax, 0x102
jne 0x43a2d4
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x43a35c
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
lea eax, [esi + 0x28]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 8]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x43a31c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x43a34e
push dword [esi + 0x4c]
push dword [esi + 8]
call edi
test eax, eax
jne 0x43a351
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x40]
mov dword [ebp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x43a348
mov bl, 1
jmp 0x43a351
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x48], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov al, bl
pop ebx
pop edi
leave
ret 0xc
Function at 0x43a362
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x43a386
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x43a44e
push ebx
xor ebx, ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x80
jne 0x43a3a8
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x43a44d
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [edi]
push 0x14
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [edi], ebx
mov dword [ebp - 4], ebx
call fcn.00442500
lea eax, [esi + 0x10]
add esp, 0xc
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 1
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x43a40b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x43a43f
push dword [esi + 0x4c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x43a442
lea eax, [ebp - 4]
push eax
push ebx
push edi
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x40]
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x43a439
mov bl, 1
jmp 0x43a442
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x48], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov al, bl
pop ebx
leave
ret 4
Function at 0x43d93e
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push edi
lea edx, [esi + 0x10]
push 6
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, edx
call fcn.0040bfb0
xor ebx, ebx
cmp eax, ebx
jge 0x43d95f
push eax
call fcn.00401000
lea edx, [esi + 0x28]
push 6
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, edx
call fcn.0040bfb0
cmp eax, ebx
jl 0x43d959
or dword [esi + 0x40], 0xffffffff
mov dword [esi], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov byte [esi + 0x44], bl
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x2710
cmp dword [0x471800], ebx
je 0x43d9b0
push 0x471670
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x471800], eax
pop edi
mov eax, esi
pop ebx
ret

Function at 0x43df69
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
xor edi, edi
mov ebx, ecx
cmp dword [ebp + 0x10], edi
je 0x43df82
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0043de5c
cmp dword [ebp + 0xc], edi
jle 0x43df9e
push esi
mov eax, dword [ebp + 8]
mov ecx, ebx
lea esi, [edi + eax]
call fcn.0043df0d
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x43df88
pop esi
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x43dfbd
Capabilities:
Encode data using xor

Disassembly:
push 4
mov eax, 0x454a10
call fcn.00444333
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x10], esi
push 0x45e58a
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 1
call fcn.00409d90
test eax, eax
je 0x43dff6
mov eax, dword [ebp + 0x10]
push dword [eax - 0xc]
mov ecx, edi
push eax
call fcn.0043de5c
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], esi
jle 0x43e028
push esi
lea ecx, [ebp + 0xc]
call fcn.00428290
mov ecx, edi
mov bl, al
call fcn.0043df0d
xor bl, al
movzx eax, bl
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.0043b635
mov eax, dword [ebp + 0xc]
inc esi
cmp esi, dword [eax - 0xc]
jl 0x43dffe
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00402810
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401160
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00401160
mov eax, dword [ebp + 8]
call fcn.004443d2
ret 0xc
Function at 0x43e994
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4718a8], 0
push esi
jne 0x43e907
call fcn.0043e82d
test eax, eax
je 0x43e94a
mov eax, dword [0x4718a8]
cmp eax, 1
jne 0x43e928
push 0xd
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x43e94a
pop esi
ret
push eax
call dword [0x4718b0]
test eax, eax
jne 0x43e992
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x43e94e
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4718a8]
call dword [0x4718b0]
mov edi, eax
test edi, edi
je 0x43e973
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
jmp 0x43e98f
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4718a8]
call dword [0x4718ac]
add edi, 0x10
cmp edi, esi
jb 0x43e97b
mov eax, edi
pop edi
pop esi
ret
jmp 0x43e8f4

Function at 0x43eaba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46f1b0]
jne 0x43eac4
repz ret
jmp fcn.00444b2c

Function at 0x44f24e
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.004456ac
and dword [ebp - 4], 0
cmp dword [0x472344], 0
mov ebx, eax
jne 0x44f2ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44f3b0
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x45db90
push edi
call esi
test eax, eax
je 0x44f3b0
push eax
call fcn.0044563a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x472344], eax
call esi
push eax
call fcn.0044563a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x472348], eax
call esi
push eax
call fcn.0044563a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47234c], eax
call esi
push eax
call fcn.0044563a
pop ecx
mov dword [0x472354], eax
test eax, eax
je 0x44f2ff
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044563a
pop ecx
mov dword [0x472350], eax
mov eax, dword [0x472350]
cmp eax, ebx
je 0x44f357
cmp dword [0x472354], ebx
je 0x44f357
push eax
call fcn.004456b5
push dword [0x472354]
mov esi, eax
call fcn.004456b5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44f357
test edi, edi
je 0x44f357
call esi
test eax, eax
je 0x44f34e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44f34e
test byte [ebp - 0xc], 1
jne 0x44f357
or dword [ebp + 0x10], 0x200000
jmp 0x44f390
mov eax, dword [0x472348]
cmp eax, ebx
je 0x44f390
push eax
call fcn.004456b5
pop ecx
test eax, eax
je 0x44f390
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44f390
mov eax, dword [0x47234c]
cmp eax, ebx
je 0x44f390
push eax
call fcn.004456b5
pop ecx
test eax, eax
je 0x44f390
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x472344]
call fcn.004456b5
pop ecx
test eax, eax
je 0x44f3b0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44f3b2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f35
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [0x486358]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x401f99
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00402630
lea ecx, [esp + 0x14]
call fcn.00401d65
cmp eax, 0x8aafdc01
je 0x401fb1
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402ef5
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x401f68
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004069ff
add esp, 0x24
ret
mov edx, str.QwruxAA
call fcn.00403895
push eax
call fcn.00403863
mov eax, dword [ebx + 0x24]
pop ecx
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402ef5
jmp 0x401f9b
Function at 0x41834a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407940
mov eax, dword [0x42c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00414745
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41838c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4184e8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421760
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x485f50]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418770
mov ecx, dword [esi*4 + 0x485f50]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4184e1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4184e1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4184e1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418770
add esp, 0x14
test edx, edx
jl 0x4184e1
jg 0x418457
test eax, eax
jb 0x4184e1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4184e1
jl 0x418471
cmp dword [ebp - 0x1008], eax
ja 0x4184e1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41848f
test ebx, ebx
je 0x4184c8
cmp ecx, edi
jae 0x4184c8
mov al, byte [ecx]
cmp al, 0xd
jne 0x4184a9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4184b5
cmp byte [ecx + 1], 0xa
jne 0x4184b5
inc ecx
jmp 0x4184b5
movzx eax, al
movsx eax, byte [eax + 0x42c9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41848f
cmp edx, ebx
jne 0x41848f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4184e6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004069ff
leave
ret
Function at 0x41eada
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x485f50]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41eb1a
cmp byte [ebx], 0xa
jne 0x41eb1a
or byte [eax + edi + 0x28], 4
jmp 0x41eb1f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ec1d
mov al, byte [edx]
cmp al, 0x1a
je 0x41ebff
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41eb4e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41eb73
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41eb7d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41eb30
jmp 0x41ec1d
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ebfa
cmp dword [ebp - 0xc], 0
je 0x41ebfa
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x485f50]
test byte [eax + edi + 0x28], 0x48
je 0x41ebd4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ebbf
mov byte [esi], dl
jmp 0x41ebd0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x485f50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ec1d
cmp byte [ebp - 1], 0xa
jne 0x41ebe3
cmp esi, ebx
jne 0x41ebe3
mov byte [esi], 0xa
jmp 0x41ec1c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041878e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ec1d
mov byte [esi], 0xd
jmp 0x41ec1c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x485f50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ec19
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ec1d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ec26
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x485f50]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ec69
cmp word [esi], dx
jne 0x41ec69
or byte [edi + eax + 0x28], 4
jmp 0x41ec6e
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41edc1
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41eda1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ecb0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ece6
cmp eax, edx
jae 0x41ecf2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ec88
jmp 0x41edc1
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ed9d
cmp dword [ebp - 0x14], 0
je 0x41ed9d
mov eax, dword [ebx*4 + 0x485f50]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ed75
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ed3e
mov word [esi], cx
jmp 0x41ed71
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x485f50]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x485f50]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x485f50]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41edc1
pop ebx
cmp word [ebp - 4], bx
jne 0x41ed86
cmp esi, dword [ebp + 0xc]
jne 0x41ed86
mov word [esi], bx
jmp 0x41edbe
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041878e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41edc1
push 0xd
jmp 0x41edba
mov ecx, dword [ebx*4 + 0x485f50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41edb8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41edc1
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41cab5
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x436e70
call fcn.0041cb60
push 1
call fcn.0041c4a6
pop ecx
test al, al
jne 0x41c95e
push 7
call fcn.0041cd6c
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0041c471
mov byte [ebp - 0x24], al
mov eax, dword [0x457e84]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x41c957
test eax, eax
jne 0x41c9c8
mov dword [0x457e84], ecx
push 0x42f270
push 0x42f254
call fcn.00424f77
pop ecx
pop ecx
test eax, eax
je 0x41c9ab
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41caaf
push 0x42f250
push 0x42f220
call fcn.00424f1b
pop ecx
pop ecx
mov dword [0x457e84], 2
jmp 0x41c9cd
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0041c603
pop ecx
call fcn.0041d055
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x41c9fd
push esi
call fcn.0041c576
pop ecx
test al, al
je 0x41c9fd
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0041cb5a
call esi
call fcn.0041d05b
mov esi, eax
cmp dword [esi], edi
je 0x41ca1b
push esi
call fcn.0041c576
pop ecx
test al, al
je 0x41ca1b
push dword [esi]
call fcn.00424387
pop ecx
push edi
call fcn.0041ff16
pop ecx
call fcn.0041ce87
movzx eax, ax
push eax
call fcn.00424ec8
push eax
push edi
push 0x400000
call fcn.0041b52f
mov esi, eax
push edi
call fcn.0041ffb2
pop ecx
call fcn.0041ceba
test al, al
jne 0x41ca54
push esi
call fcn.004243bf
test bl, bl
jne 0x41ca5d
call fcn.00424362
push edi
push 1
call fcn.0041c620
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x41caaf
call fcn.0041cba6
ret
mov edi, edi
push ebp
mov ebp, esp
jmp 0x41c93f
Function at 0x41a480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41a4c2
call fcn.0041efdc
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x41a4c2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41a4b9
xor eax, eax
jmp 0x41a4ca
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041a4d0
pop edi
pop esi
pop ebx
ret 4

Function at 0x41c0c9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x421f30
call fcn.00409204
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0041efdc
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41c108
call fcn.0041efdc
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41c116
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41c124
or eax, 0xffffffff
jmp 0x41c20c
mov ecx, esi
call fcn.0041c03f
mov dword [ebp - 0x14], eax
call fcn.00418ac5
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41c15b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41c15b
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00418a79
push dword [ebp - 0x14]
call fcn.004185fd
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041bdd7
cmp eax, edi
je 0x41c1ce
test byte [esi + 0x24], 0x10
je 0x41c19c
push 4
mov ecx, esi
pop ebx
call fcn.00417e51
test ah, 1
je 0x41c194
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041a61b
cmp dword [esi + 0x1c], edi
je 0x41c1ce
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00417f37
jmp 0x41c1ce
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41c1e2
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41c1fb
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41c1fb
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0041c079
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41eb55
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41eb83
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41eba1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041eabb
jmp 0x41eba1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41eba1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041eabb
test edi, edi
mov eax, edi
jne 0x41eb8b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8