joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x4590d2
cmp dword [ebx + 4], 0xffffffff
jne 0x4590d2
lea esi, [ebx + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x459068
mov ax, word [0x49bbd8]
mov edi, esi
mov word [edi], ax
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x45909d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, edi
je 0x45909d
mov eax, 0x2000000
pop edi
pop esi
pop ecx
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp + 8]
push edx
push eax
push ecx
call fcn.00457ec0
add esp, 0xc
test eax, eax
jne 0x4590bf
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ecx
pop ebp
ret 0xc
call fcn.00458400
mov dword [ebx], eax
mov eax, dword [0x4b60f4]
pop edi
pop esi
pop ecx
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
pop ecx
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov dword [ecx], 1
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jne 0x45a872
mov dword [esi], 1
jmp 0x45a877
cmp eax, 1
jne 0x45a8c1
mov eax, dword [ebp + 8]
push ecx
push eax
mov ecx, esi
call fcn.0045a960
test al, al
je 0x45a8c1
cmp dword [esi + 8], 0
mov dword [esi], 2
jne 0x45a898
call edi
mov dword [esi + 8], eax
call edi
mov ecx, eax
sub ecx, dword [esi + 8]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
cmp edx, dword [esi + 0xb4]
jb 0x45a8c1
call fcn.0045a900
mov dword [ebx], eax
mov al, 1
pop edi
pop esi
pop ecx
pop ebp
ret 4
cmp dword [esi], 2
jne 0x45a8ea
cmp dword [esi + 8], 0
jne 0x45a8d1
call edi
mov dword [esi + 8], eax
call edi
mov edx, eax
sub edx, dword [esi + 8]
mov eax, 0x10624dd3
mul edx
shr edx, 6
cmp edx, dword [esi + 0xb4]
jae 0x45a8b1
pop edi
xor al, al
pop esi
pop ecx
pop ebp
ret 4
Function at 0x45b410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor ecx, ecx
xor esi, esi
xor edi, edi
cmp dword [ebp + 0xc], ecx
jbe 0x45b47e
push ebx
inc ecx
and ecx, 0x800000ff
jns 0x45b432
dec ecx
or ecx, 0xffffff00
inc ecx
mov dl, byte [ecx + eax]
movzx ebx, dl
add esi, ebx
and esi, 0x800000ff
jns 0x45b44a
dec esi
or esi, 0xffffff00
inc esi
movzx ebx, byte [esi + eax]
mov byte [ecx + eax], bl
mov byte [esi + eax], dl
movzx ebx, byte [ecx + eax]
movzx edx, dl
add ebx, edx
and ebx, 0x800000ff
jns 0x45b46d
dec ebx
or ebx, 0xffffff00
inc ebx
movzx ebx, byte [ebx + eax]
mov edx, dword [ebp + 8]
xor byte [edi + edx], bl
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x45b421
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x460b20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490abb
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4b04dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
mov ebx, ecx
call fcn.00480950
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x218]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x460b95
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x460b88
sub eax, edx
push eax
push esi
jmp 0x460bb1
lea eax, [ebp - 0x218]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x460ba0
sub eax, edx
push eax
lea edx, [ebp - 0x218]
push edx
mov ecx, edi
call fcn.00401a00
mov esi, 0x10
cmp dword [edi + 0x14], esi
jb 0x460bc6
mov eax, dword [edi]
jmp 0x460bc8
mov eax, edi
push 9
push str.AppPath
push eax
call fcn.0047a356
add esp, 0xc
test eax, eax
jne 0x460c33
mov eax, dword [ebx]
mov edx, dword [eax]
lea ecx, [ebp - 0x234]
push ecx
mov ecx, ebx
call edx
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], esi
jb 0x460bfb
mov edx, dword [eax]
jmp 0x460bfd
mov edx, eax
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x460c02
sub eax, esi
push eax
push edx
push 0
mov eax, 9
mov ecx, edi
call fcn.004152d0
cmp dword [ebp - 0x220], 0x10
jb 0x460c33
mov eax, dword [ebp - 0x234]
push eax
call fcn.0047659a
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret 8
Function at 0x460c60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4917b0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4b04dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x4c], edi
call fcn.00460f90
cmp al, 1
je 0x460da7
xor ebx, ebx
mov eax, edi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x460cb3
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.00401a00
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, 0x10
cmp dword [ebp - 0x18], ebx
jae 0x460cd9
lea eax, [ebp - 0x2c]
cmp byte [eax], 0x22
je 0x460d1d
lea eax, [ebp - 0x48]
push 0x49b26c
push eax
lea ebx, [ebp - 0x2c]
call fcn.0040e2b0
add esp, 8
mov edi, eax
mov esi, ebx
mov byte [ebp - 4], 1
call fcn.00405790
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], 0x10
jb 0x460d15
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0047659a
add esp, 4
mov edi, dword [ebp - 0x4c]
mov ebx, 0x10
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x460d28
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
cmp byte [eax + edx - 1], 0x22
je 0x460d41
push 1
mov eax, 0x49b26c
lea ecx, [ebp - 0x2c]
call fcn.004058f0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x460d4c
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 1
push 0
push eax
push str.explorer.exe
push str.open
push 0
call esi
cmp eax, 0x20
ja 0x460d96
push 1
push 0
push 0
push edi
push str.open
push 0
call esi
cmp eax, 0x20
seta bl
cmp dword [ebp - 0x18], 0x10
jb 0x460d92
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0047659a
add esp, 4
mov al, bl
jmp 0x460da9
cmp dword [ebp - 0x18], ebx
jb 0x460da7
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0047659a
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret 4
Function at 0x460dd0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x15c
mov eax, dword [0x4b04dc]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebx, dword [sym.imp.USER32.dll_WindowFromPoint]
sub esi, dword [esp + 0x18]
sub edi, dword [esp + 0x1c]
mov eax, 3
mov ecx, eax
push ecx
push eax
call ebx
mov dword [esp + 0x14], eax
mov eax, 3
push eax
add esi, 0xfffffffd
push esi
call ebx
mov dword [esp + 0x10], eax
add edi, 0xfffffffd
mov eax, 3
push edi
push eax
call ebx
push edi
push esi
mov dword [esp + 0x14], eax
call ebx
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ebx, eax
cmp ecx, edi
jne 0x460e79
mov eax, dword [esp + 0xc]
cmp edi, eax
jne 0x460e79
cmp eax, ebx
jne 0x460e79
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xor eax, eax
lea edx, [esp + 0x154]
push edx
push ecx
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], eax
call esi
lea eax, [esp + 0x158]
push eax
push edi
call esi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x15c]
push ecx
push edx
call esi
lea eax, [esp + 0x160]
push eax
push ebx
call esi
mov eax, dword [esp + 0x158]
cmp dword [esp + 0x154], eax
jne 0x460f6a
mov ecx, dword [esp + 0x15c]
cmp eax, ecx
jne 0x460f6a
cmp ecx, dword [esp + 0x160]
jne 0x460f6a
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [esp + 0x28]
mov esi, eax
push ecx
push esi
mov dword [esp + 0x30], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x460f6a
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea edx, [esp + 0x28]
push edx
push esi
call edi
test eax, eax
je 0x460f49
jmp 0x460f30
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x154]
je 0x460f49
lea ecx, [esp + 0x28]
push ecx
push esi
call edi
test eax, eax
jne 0x460f30
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x4c]
push str.explorer.exe
push edx
call fcn.004799b3
add esp, 8
test eax, eax
jne 0x460e62
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.00475dcc
mov esp, ebp
pop ebp
ret
Function at 0x460f90
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490a7b
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4b04dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x248], eax
mov eax, 0x104
xor esi, esi
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], esi
mov byte [ebp - 0x234], 0
lea ecx, [ebp - 0x250]
push ecx
push esi
push SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x46119f
mov ecx, dword [ebp - 0x250]
lea eax, [ebp - 0x240]
push eax
push 0xf003f
push esi
push str.http_shellopencommand
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46119f
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x254]
push edx
mov edx, dword [ebp - 0x240]
push esi
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x218]
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x461070
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x234]
call fcn.00401a00
push 1
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x234]
push edx
xor eax, eax
mov byte [ebp - 0x238], 0x25
call fcn.004151d0
mov edi, eax
push 1
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x234]
lea esi, [edi + 1]
push ecx
mov eax, esi
mov byte [ebp - 0x23c], 0x31
call fcn.004151d0
cmp eax, esi
je 0x461120
mov byte [ebp - 0x238], 0x25
mov byte [ebp - 0x23c], 0x31
nop
cmp edi, 0xffffffff
je 0x46119f
push 1
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.004151d0
mov edi, eax
push 1
lea ecx, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x234]
lea esi, [edi + 1]
push edx
mov eax, esi
call fcn.004151d0
cmp eax, esi
jne 0x4610e0
mov esi, dword [ebp - 0x248]
mov eax, esi
lea edx, [eax + 1]
jmp 0x461130
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x461130
sub eax, edx
push eax
push esi
push edi
mov eax, 2
lea ecx, [ebp - 0x234]
call fcn.004152d0
mov eax, dword [ebp - 0x234]
mov esi, 0x10
cmp dword [ebp - 0x220], esi
jae 0x461165
lea eax, [ebp - 0x234]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
jbe 0x46118e
cmp dword [ebp - 0x220], esi
jb 0x46118a
mov eax, dword [ebp - 0x234]
push eax
call fcn.0047659a
add esp, 4
mov al, 1
jmp 0x4611b9
cmp dword [ebp - 0x220], esi
jb 0x4611b7
mov ecx, dword [ebp - 0x234]
push ecx
jmp 0x4611af
cmp dword [ebp - 0x220], 0x10
jb 0x4611b7
mov edx, dword [ebp - 0x234]
push edx
call fcn.0047659a
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret 4
Function at 0x461280
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4a9078
push 0x4800f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4b04dc]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.00479b0c
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x4613e6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x46133c
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x46133c
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x461313
cmp al, 0x5c
je 0x461313
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x4612fb
cmp byte [esi], 0
je 0x461320
inc esi
mov dword [ebp - 0x1c], esi
lea esp, [esp]
mov al, byte [esi]
test al, al
je 0x461335
cmp al, 0x5c
je 0x461335
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x461319
cmp byte [esi], 0
je 0x46135b
jmp 0x461357
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x46135b
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x46135b
cmp al, 0x5c
jne 0x46135b
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x4613a8
cmp al, 0x5c
jne 0x46139a
mov byte [esi], 0
push edi
call ebx
cmp eax, 0xffffffff
jne 0x461393
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x461397
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x461397
push edi
jmp 0x4613de
test al, 0x10
je 0x461390
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x461361
mov dword [ebp - 4], 0xfffffffe
push edi
call fcn.00476c90
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00476c90
add esp, 4
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x461410
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x364
mov eax, dword [0x4b04dc]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x46143a
mov byte [edi], 0x20
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [esp + 0xc], ebx
cmp ebx, 0xffffffff
jne 0x461468
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x360]
xor ecx, esp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret 0xc
push 0x128
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00480950
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push ebx
mov dword [esp + 0x20], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x46144f
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, dword [sym.imp.KERNEL32.dll_Process32Next]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x20], eax
je 0x4614c1
lea eax, [esp + 0x18]
push eax
push ebx
call esi
test eax, eax
jne 0x4614a6
jmp 0x46155a
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x46155a
push 0x224
lea ecx, [esp + 0x144]
push 0
push ecx
call fcn.00480950
add esp, 0xc
lea edx, [esp + 0x140]
push edx
push esi
mov dword [esp + 0x148], 0x224
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x46155a
mov ebx, dword [ebp + 0x10]
lea ecx, [ecx]
lea eax, [esp + 0x14]
push eax
push edi
push ebx
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x46154f
lea ecx, [esp + 0x140]
push ecx
push esi
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x461510
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x36c]
xor eax, eax
cmp byte [edi], al
pop edi
pop esi
setne al
pop ebx
xor ecx, esp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x461fc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4b04dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call fcn.00480950
add esp, 0xc
push 0x105
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xff
lea eax, [ebp - 0x30b]
xor edx, edx
push ebx
push eax
mov byte [ebp - 0x410], bl
mov word [ebp - 0x40f], dx
mov byte [ebp - 0x30c], bl
call fcn.00480950
push 0xff
lea ecx, [ebp - 0x20b]
push ebx
push ecx
mov byte [ebp - 0x20c], bl
call fcn.00480950
push 0xff
lea edx, [ebp - 0x40b]
push ebx
push edx
mov byte [ebp - 0x40c], bl
call fcn.00480950
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x30c]
push edx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.0047aaa0
push 2
lea edx, [ebp - 0x410]
push esi
push edx
call fcn.0047a356
mov ecx, dword [ebp - 4]
add esp, 0x44
test eax, eax
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.00475dcc
mov esp, ebp
pop ebp
ret 4
Function at 0x462840
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
mov edi, eax
mov esi, edx
cmp edi, 3
jl 0x4628c6
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
lea eax, [edx*4]
sub eax, edx
neg eax
add edi, eax
push ebx
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + 0x4983a8]
mov byte [ecx], al
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and eax, 3
shl eax, 4
shr ebx, 4
or eax, ebx
movzx eax, byte [eax + 0x4983a8]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 2]
and eax, 0xf
add eax, eax
add eax, eax
shr ebx, 6
or eax, ebx
movzx eax, byte [eax + 0x4983a8]
mov byte [ecx + 2], al
movzx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + 0x4983a8]
mov byte [ecx + 3], al
add ecx, 4
add esi, 3
dec edx
jne 0x462862
pop ebx
test edi, edi
jle 0x462926
movzx edx, byte [esi]
shr edx, 2
movzx eax, byte [edx + 0x4983a8]
mov byte [ecx], al
mov al, byte [esi]
and al, 3
shl al, 4
cmp edi, 1
jle 0x4628ed
mov dl, byte [esi + 1]
shr dl, 4
or al, dl
movzx eax, al
mov dl, byte [eax + 0x4983a8]
mov byte [ecx + 1], dl
cmp edi, 2
jge 0x46290c
mov al, 0x3d
pop edi
mov byte [ecx + 2], al
mov word [ecx + 3], 0x3d
pop esi
ret
movzx eax, byte [esi + 1]
and eax, 0xf
mov al, byte [eax*4 + 0x4983a8]
pop edi
mov byte [ecx + 2], al
mov word [ecx + 3], 0x3d
pop esi
ret
pop edi
mov byte [ecx], 0
pop esi
ret

Function at 0x462ba0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491778
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4b04dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor ecx, ecx
push eax
mov eax, dword [ebp + 0x10]
lea esi, [ebp - 0x98]
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x98], 0x67452301
mov dword [ebp - 0x94], 0xefcdab89
mov dword [ebp - 0x90], 0x98badcfe
mov dword [ebp - 0x8c], 0x10325476
call fcn.00463bb0
lea edi, [ebp - 0x2c]
mov eax, esi
call fcn.00464640
mov edi, eax
mov esi, ebx
mov dword [ebp - 4], 0
call fcn.00405790
cmp dword [ebp - 0x18], 0x10
jb 0x462c49
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0047659a
add esp, 4
cmp dword [ebx + 0x10], 0
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x465680
Capabilities:
Create raw socket
Get socket status
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov eax, dword [0x4b04dc]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
push 1
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4656ca
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret
push str.www.baidu.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
xor esi, esi
cmp eax, esi
jne 0x4656f3
lea eax, [esi + 2]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], 2
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], esi
jmp 0x465718
xor esi, esi
lea edx, [esp + 0x20]
push edx
push edi
call fcn.004657b0
add esp, 8
lea eax, [esp + 0x18]
push eax
push esi
push esi
lea ecx, [esp + 0x4c]
push ecx
push 1
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], edi
mov dword [esp + 0x2c], 5
mov dword [esp + 0x30], esi
call ebx
cmp eax, 0xffffffff
je 0x465786
cmp eax, esi
je 0x465786
lea edx, [esp + 0x30]
push edx
push edi
lea esi, [esp + 0x1b]
call fcn.00465860
add esp, 8
cmp eax, 0xffffffff
je 0x465778
inc dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 3
jl 0x465716
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x14c]
xor eax, eax
cmp dword [esp + 0xc], 2
pop edi
pop esi
setl al
pop ebx
xor ecx, esp
call fcn.00475dcc
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4b48c0]
mov word [0x4b6404], ax
inc eax
mov dword [0x4b48c0], eax
mov eax, dword [0x4b48c4]
mov word [0x4b6406], ax
inc eax
mov dword [0x4b48c4], eax
mov dword [0x4b6400], 8
xor eax, eax
lea ecx, [eax + 0x20]
mov byte [eax + 0x4b640d], cl
inc eax
cmp eax, 0x20
jl 0x4657e2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4b6409], eax
xor eax, eax
mov ecx, 0x4b6400
lea edx, [eax + 0x16]
push esi
movzx esi, word [ecx]
add eax, esi
add ecx, 2
dec edx
jne 0x465807
mov dword [ebp - 4], edx
mov dl, byte [ecx]
mov byte [ebp - 4], dl
movzx ecx, word [ebp - 4]
add eax, ecx
mov ecx, eax
sar ecx, 0x10
and eax, 0xffff
add ecx, eax
mov eax, dword [ebp + 0xc]
push 0x10
push eax
mov edx, ecx
push 0
sar edx, 0x10
push 0x2d
add edx, ecx
mov ecx, dword [ebp + 8]
push 0x4b6400
not edx
push ecx
mov word [0x4b6402], dx
call dword [sym.imp.WS2_32.dll_sendto]
pop esi
mov esp, ebp
pop ebp
ret