joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4baed0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.004c1350
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push 0x1205e20
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x4bafc9
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, esi
call fcn.004bafe0
test eax, eax
jne 0x4bafc9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, esi
call fcn.004bafe0
test eax, eax
jne 0x4bafc9
lea edx, [esp + 0x10]
push 0x1205dfc
push edx
call fcn.00501320
mov esi, eax
add esp, 8
test esi, esi
jne 0x4baf9a
lea eax, [esp + 0x10]
push 0x1205df8
push eax
call fcn.00501320
mov esi, eax
add esp, 8
test esi, esi
jne 0x4baf9a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4baf9d
mov byte [esi], 0
push 0x12055c0
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x4bafe0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4bb042
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4c1290
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5244d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x4c1340
mov eax, dword [0x124e338]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0051514c
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0051519b
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.005150f8
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4c1327
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4c1327
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00514d68
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4c4440
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x524960
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4c45e7
mov ecx, dword [0x124e338]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x4c453c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004c3160
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.00514e55
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00514d68
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x12055c0
call fcn.00514dd6
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.004c3520
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.00514e55
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.00514d68
lea ecx, [esp + 0xc]
call fcn.00515230
mov ecx, dword [esp + 0xc]
push 0x1205ffc
push ecx
call fcn.005001d4
add esp, 8
test eax, eax
je 0x4c4564
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x4c449d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00514d68
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00514d68
jmp 0x4c45eb
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004c41e0
test eax, eax
push 0
je 0x4c45cf
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.004c2880
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4c45b5
cmp eax, 0x64
jg 0x4c45a3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4c4540
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4c4540
cmp eax, 0x64
jge 0x4c453c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4c4540
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.004c2880
mov esi, eax
jmp 0x4c4540
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x4c45f5
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x4d7820
Capabilities:
Get common file path

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
xor esi, esi
push eax
push 0x400
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 0x420]
lea edi, [esp + 0x18]
push ecx
or ecx, 0xffffffff
xor eax, eax
push 0x12466d4
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0x20]
push edx
call fcn.00501eac
mov ebp, dword [esp + 0x428]
mov al, byte [esp + 0x1f]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
mov byte [ebp], al
xor eax, eax
add esp, 0xc
mov dword [ebp + 4], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp + 8], esi
mov ebx, ecx
mov dword [ebp + 0xc], esi
cmp ebx, 0xfffffffd
jbe 0x4d78ae
call fcn.0050fad5
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x4d78e0
mov al, byte [ecx - 1]
test al, al
je 0x4d78e0
cmp al, 0xff
je 0x4d78e0
cmp ebx, esi
jne 0x4d7911
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebp
call fcn.004d73f0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x408
ret 8
cmp ebx, esi
jne 0x4d78fc
push 1
mov ecx, ebp
call fcn.004d73f0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x408
ret 8
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x4d7908
cmp eax, ebx
jae 0x4d7919
push 1
mov ecx, ebp
call fcn.004d73f0
push ebx
mov ecx, ebp
call fcn.004d8560
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
pop edi
pop esi
mov byte [eax + ebx], 0
mov eax, ebp
pop ebp
pop ebx
add esp, 0x408
ret 8
Function at 0x4d7ce0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x524b78
push eax
mov dword fs:[0], esp
sub esp, 0x10
xor al, al
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esi + 0xc]
test cl, cl
je 0x4d7e04
mov ecx, dword [esi + 4]
xor ebp, ebp
sub ecx, ebp
je 0x4d7e16
dec ecx
je 0x4d7d5c
dec ecx
jne 0x4d7e04
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x4d7e2b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x4d7e2b
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x4d7d55
mov eax, dword [0x11e2088]
lea ecx, [esi + 0x10]
push eax
push ebp
call fcn.004d8220
mov bl, 1
jmp 0x4d7df7
mov edx, dword [0x11e2088]
mov cl, byte [esi + 0x10]
push edi
lea edi, [esi + 0x10]
push edx
mov byte [esp + 0x14], cl
push ebp
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.004d8020
mov eax, dword [esi + 8]
mov dword [esp + 0x28], ebp
cmp eax, ebp
je 0x4d7de5
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x4d7de5
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x4d7db4
mov eax, dword [0x11e2088]
mov ecx, edi
push eax
push ebp
call fcn.004d8220
mov eax, dword [esp + 0x14]
mov bl, 1
cmp eax, ebp
jne 0x4d7dc3
mov eax, 0x11e2084
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x14]
pop edi
cmp ecx, ebp
je 0x4d7df3
mov al, byte [ecx - 1]
test al, al
je 0x4d7de9
cmp al, 0xff
je 0x4d7de9
dec al
mov byte [ecx - 1], al
jmp 0x4d7df3
xor bl, bl
jmp 0x4d7dca
dec ecx
push ecx
call fcn.00514ad2
add esp, 4
test bl, bl
je 0x4d7e02
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
mov al, bl
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov eax, dword [esi]
cmp eax, ebp
je 0x4d7e2b
push eax
call fcn.004d8da0
add esp, 4
mov dword [esi], ebp
mov bl, 1
jmp 0x4d7df7
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4d86f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push ebp
push esi
push edi
xor edi, edi
push 0x12466f4
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4d873f
call fcn.0051e8b2
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x4d8724
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push 0x12466f4
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4d873f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x4d8755
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4d8769
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x4d8782
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x18]
push edi
push ebx
push ebp
call fcn.004d8ea0
add esp, 0xc
test al, al
jne 0x4d8821
mov eax, dword [edi + 8]
cmp eax, ebx
jb 0x4d8829
mov esi, dword [0x11e2090]
jae 0x4d87b1
call fcn.0050fcd8
mov ecx, edi
call fcn.004d8a30
mov eax, dword [edi + 8]
mov ecx, eax
sub ecx, ebx
cmp ecx, esi
jae 0x4d87c5
mov esi, ecx
test esi, esi
jbe 0x4d8803
mov ecx, dword [edi + 4]
sub eax, esi
sub eax, ebx
push eax
lea eax, [ecx + esi]
add eax, ebx
add ecx, ebx
push eax
push ecx
call fcn.00500590
mov ebp, dword [edi + 8]
add esp, 0xc
sub ebp, esi
mov ecx, edi
push 0
push ebp
call fcn.004d8910
test al, al
je 0x4d87ff
mov ecx, dword [edi + 4]
mov dword [edi + 8], ebp
mov byte [ecx + ebp], 0
mov ebp, dword [esp + 0x10]
mov edi, dword [edi + 4]
test edi, edi
jne 0x4d880f
mov edi, 0x11e208c
mov ecx, ebx
mov esi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
mov edx, ebx
push 0
sub edx, eax
mov ecx, edi
push edx
call fcn.004d8840
jmp 0x4d8803
Function at 0x4df830
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + 0x124697c]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x124690c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4df843
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4df884
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x12469b4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4df8b6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4df8ba
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4df8ab
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4df8d8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4df8dc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4df8cd
xor ecx, ecx
mov eax, 0x124691c
xor ebx, ebx
mov bl, byte [ecx + 0x12469c4]
cmp byte [esp + ebx + 0x14], 0
je 0x4df907
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x12469dc]
cmp byte [esp + ebx + 0x14], 0
je 0x4df91e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, 0x124697c
jl 0x4df8ee
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4df877
lea edx, [esp + 0x84]
push edx
call fcn.004df960
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4e3910
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 0x4e39b3
test eax, eax
jbe 0x4e39b3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4e39b3
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 0x4e395e
xor esi, esi
jmp 0x4e3964
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4e398f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0044f7f0
add esi, eax
push esi
mov ebx, esi
call fcn.0044f7f0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4e3970
pop ebp
test edi, edi
pop edi
jne 0x4e39b3
test ebx, ebx
je 0x4e39b3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00500b10
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4e3ad5
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 0x4e3bed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4e3bed
mov eax, dword [esi + 0x3c]
push eax
call fcn.005167cf
mov esi, eax
test esi, esi
je 0x4e3bed
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 0x4e3bed
mov ecx, esi
call fcn.004e3a60
cmp edi, eax
jge 0x4e3bed
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 0x4e3b73
mov dword [esp + 0x34], 1
jmp 0x4e3bce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4e3bed
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.004e3050
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 0x4e58d0
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 0x4e5936
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 0x4e5936
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4e5917
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4e5cc0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4e5cf8
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 0x4e6990
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 0x4e69d9
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 0x4e6e50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x525010
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.004e6a00
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004e6a80
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004e6a80
lea ecx, [esi + 0xc]
call fcn.00514cf3
lea ecx, [esi + 0x10]
call fcn.00514cf3
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004e8010
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004e8010
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004e8010
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00514d68
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00514d68
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4eb050
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x129b7f8]
xor edx, edx
cmp eax, edx
jne 0x4eb076
xor eax, eax
mov byte [eax + 0x129b6f8], al
inc eax
cmp eax, 0x100
jl 0x4eb05e
mov dword [0x129b7f8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x129b6f8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4eb107
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4eb0da
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4eb0a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4eb180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4eb1d3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4eb1ba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f1b80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52540e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004f24a0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x11e6ad4
call fcn.00514aa9
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4f1c13
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00514aa9
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4f1c0c
push 0
mov ecx, eax
call fcn.004e8c80
mov dword [esi + 0xc], eax
jmp 0x4f1c15
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4f1c15
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x503087
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5030a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0050174a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5030ca
test byte [esp + 8], 2
je 0x5030ca
call fcn.005017bd
mov dword [eax], 0xd
call fcn.005017c6
mov dword [eax], 5
jmp 0x5030a3
xor eax, eax
ret

Function at 0x517173
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5171ab
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.005151c3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0051519b
jmp 0x5171b7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x518868
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 0x5188aa
call fcn.0051e8b2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5188aa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5188a1
xor eax, eax
jmp 0x5188b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005188b8
pop edi
pop esi
pop ebx
ret 4

Function at 0x51ede2
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 0x51ee10
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x51ee2e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0051ed48
jmp 0x51ee2e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x51ee2e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0051ed48
test edi, edi
mov eax, edi
jne 0x51ee18
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x408958
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
call fcn.00408989
sub esp, 4
mov dword [esp], ebx
pop ebx
xor dword [esi], eax
sub edx, 0x1ed49dd5
add esi, 1
dec ebx
sub ebx, 0x5073a833
cmp esi, edi
jne fcn.00408958
add edx, ebx
and ebx, ebx
ret