joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9a9250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9bd808
push 0x9ad288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x9a9329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x9a9329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.009ac1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x9a9329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x9a9329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x9a932c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.009a9351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9a9d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x9a9d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x9a9d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x9a9d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x9a9d94
push eax
push esi
call fcn.009ac20b
add esp, 8
pop esi
ret 0x10

Function at 0x9a9da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x9a9e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x9a9e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x9c2320
push ecx
mov dword [esp + 0x1c], 4
call fcn.009abdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x9a9dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x9a9e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x9a9ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x9a9eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x9c2320
push ecx
mov dword [esp + 0x1c], 4
call fcn.009abdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x9a9eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x9a9e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x9aa000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x9aa131
push esi
call fcn.009ad145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0099c080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x9aa131
push 0
push ebp
call fcn.0099c3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0099c260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x9aa08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0099c2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x9aa121
push 0x9c2918
push edi
call fcn.009ab3f0
push eax
push ebx
push esi
call fcn.009a9f60
push 0x9c28f8
push edi
call fcn.009ab3f0
push eax
push ebx
push esi
call fcn.009a9f60
push 0x9c28d8
push edi
call fcn.009ab3f0
push eax
push ebx
push esi
call fcn.009a9f60
push 0x9c28c0
push edi
call fcn.009ab3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.009a9f60
push 0x9c28a0
push edi
call fcn.009ab3f0
push eax
push ebx
push esi
call fcn.009a9f60
push 0x9c2888
push edi
call fcn.009ab3f0
push eax
push ebx
push esi
call fcn.009a9f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x9ab1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.009ab140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.009ab140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.009ab140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.009ab140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x9abbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x9abc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x9bd87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x9abc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x9abc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40d7b6
Capabilities:
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.004c9691
test al, al
je 0x40d820
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp + 8]
push eax
mov ebx, 0x746184
push ebx
push 4
push 0
mov edi, 0x7461c4
push edi
call esi
test eax, eax
jns 0x40d801
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp + 8]
push eax
push ebx
push 4
push 0
push edi
call esi
test eax, eax
js 0x40d80a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040dadb
jmp 0x40d837
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040d83f
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18

Function at 0x40dadb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x960
push edi
lea eax, [ebp - 8]
push eax
push 0xf01ff
mov edi, 0x80004005
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40dbad
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push esi
push 0x2000000
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x40dbac
push 0x1000
push dword [ebp - 4]
call fcn.004ca18e
pop ecx
pop ecx
test eax, eax
je 0x40dbac
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x104
lea eax, [ebp - 0x160]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push dword [ebp + 0x18]
lea eax, [ebp - 0x960]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x90
push dword [ebp + 8]
push str.__surl:_s__sflg:_d__sht:_d__swd:_d__smn:_d__sslp:_d
push eax
call fcn.004d02c8
add esp, 0x20
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x960]
push eax
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x40dbac
xor edi, edi
pop esi
mov eax, edi
pop edi
leave
ret 0x14
Function at 0x40ee3b
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, 0x100
lea ebx, [ebp - 8]
mov eax, esi
lea edi, [ebp - 0x10c]
call fcn.0040e8c7
pop ecx
mov ecx, dword [ebp - 8]
mov al, byte [ebp + ecx - 0x10d]
cmp al, 0x3a
je 0x40ee7e
cmp al, 0x5c
je 0x40ee7e
mov byte [ebp + ecx - 0x10c], 0x5c
inc ecx
mov dword [ebp - 8], ecx
mov eax, esi
sub eax, ecx
push 0x7c411c
lea edi, [ebp + ecx - 0x10c]
lea ebx, [ebp - 8]
call fcn.0040e8c7
pop ecx
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x40eebe
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40efa2
cmp byte [ebp - 0x220], 0x2e
jne 0x40eeea
cmp byte [ebp - 0x21f], 0
je 0x40ef7f
cmp byte [ebp - 0x21f], 0x2e
jne 0x40eeea
cmp byte [ebp - 0x21e], 0
je 0x40ef7f
push dword [ebp + 8]
lea ebx, [ebp - 8]
mov eax, esi
lea edi, [ebp - 0x10c]
call fcn.0040e8c7
pop ecx
mov ecx, dword [ebp - 8]
mov al, byte [ebp + ecx - 0x10d]
cmp al, 0x3a
je 0x40ef1c
cmp al, 0x5c
je 0x40ef1c
mov byte [ebp + ecx - 0x10c], 0x5c
inc ecx
mov dword [ebp - 8], ecx
lea edx, [ebp - 0x220]
mov eax, esi
sub eax, ecx
push edx
lea edi, [ebp + ecx - 0x10c]
lea ebx, [ebp - 8]
call fcn.0040e8c7
test byte [ebp - 0x24c], 0x10
pop ecx
lea eax, [ebp - 0x10c]
je 0x40ef65
push 1
push 0x7c411c
push eax
call fcn.0040ee3b
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40ef6c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40ef7f
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004ccb86
pop ecx
pop ecx
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40eebe
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f282
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x410d87
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x24]
push esi
mov esi, dword [edi + 0x34]
sub esi, dword [edi + 0x6c]
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x24]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x410e0e
mov eax, dword [edi + 0x30]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.004d3550
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x3c]
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
add esp, 0xc
sub dword [edi + 0x54], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x410dcf
mov eax, dword [edi + 0x38]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x410df2
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x410e66
mov ecx, dword [edi + 0x6c]
add ecx, dword [edi + 0x64]
push esi
add ecx, dword [edi + 0x30]
mov esi, eax
push ecx
call fcn.00410ad5
add dword [edi + 0x6c], eax
mov esi, dword [edi + 0x6c]
pop ecx
pop ecx
cmp esi, 3
jb 0x410e52
mov edx, dword [edi + 0x64]
add edx, dword [edi + 0x30]
mov ecx, dword [edi + 0x50]
movzx eax, byte [edx]
mov dword [edi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x4c]
mov dword [edi + 0x40], eax
cmp esi, 0x106
jae 0x410e66
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x410d90
pop esi
pop ebx
leave
ret

Function at 0x412e70
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x41d260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, eax
lea eax, [esp + 0x10]
push eax
call fcn.0044c690
mov esi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov ebp, dword [eax]
add esp, 4
cmp dword [edi + 0x78], 0
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ecx
je 0x41d2a0
push 2
push 5
push edi
call fcn.00426bc0
add esp, 0xc
mov eax, dword [edi + 0x9b0]
mov edx, dword [eax + 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 0x24]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x3c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
call fcn.0044c730
add esp, 0x20
cmp dword [edi + 0x78], 0
mov ebx, eax
mov esi, edx
je 0x41d2f3
push 5
push edi
call fcn.00426c00
add esp, 8
test esi, esi
jl 0x41d3ff
jg 0x41d309
cmp ebx, 0x3e8
jb 0x41d3ff
mov eax, dword [edi + 0x9b0]
push 0x41a890
lea edx, [esp + 0x14]
push edx
push eax
push edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0
call fcn.00430490
add esp, 0x10
test eax, eax
je 0x41d3bd
mov ecx, dword [esp + 0x14]
push 1
push ecx
push edi
call fcn.00430410
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x44]
add esp, 0xc
test eax, eax
je 0x41d363
push eax
push edi
call fcn.0044ed90
add esp, 8
mov dword [esi + 0x44], 0
push esi
call fcn.00450500
push esi
push edi
call fcn.00428a10
mov edx, dword [esi + 0x308]
mov eax, dword [edx + 0x30]
add esp, 0xc
test eax, eax
je 0x41d389
push 1
push esi
push edi
call eax
add esp, 0xc
call fcn.0041a4f0
push edi
call fcn.004289d0
mov eax, esi
call fcn.0041d030
mov ecx, dword [edi + 0x9b0]
push 0x41a890
lea eax, [esp + 0x18]
push eax
push ecx
push edi
call fcn.00430490
add esp, 0x14
test eax, eax
jne 0x41d337
cmp dword [edi + 0x78], 0
je 0x41d3d0
push 2
push 5
push edi
call fcn.00426bc0
add esp, 0xc
mov eax, dword [edi + 0x9b0]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x20], ebp
mov dword [eax + 0x24], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edx
cmp dword [edi + 0x78], 0
je 0x41d3ff
push 5
push edi
call fcn.00426c00
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x4247a0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ecx
push esi
mov esi, eax
test esi, esi
je 0x4247d1
push esi
call fcn.0044e450
add esp, 4
test eax, eax
jne 0x4247d1
lea eax, [esp + 4]
push eax
call fcn.00424700
add esp, 4
mov ecx, eax
mov eax, dword [esp + 4]
pop esi
add esp, 4
jmp fcn.00424760
xor eax, eax
pop esi
pop ecx
ret

Function at 0x428450
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push str.kernel32
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x42846a
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push 0x730620
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x73061c
push ebx
mov dword [esp + 0x18], edi
call fcn.004d61f0
add esp, 8
test eax, eax
je 0x4284b6
test edi, edi
je 0x4284a7
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x4284dc
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4284dc
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x428590
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4284f5
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x7d0020]
mov esi, eax
add esp, 4
test esi, esi
je 0x428586
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x428586
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428523
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428540
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x428550
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42857d
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x7d0024]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x7d0024]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x4285a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x7d3574]
xor eax, esp
mov dword [esp + 0x190], eax
test byte [esp + 0x198], 2
je 0x4285ff
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x4285e5
mov eax, dword [esp]
cmp al, 2
jne 0x4285df
shr eax, 8
cmp al, 2
je 0x4285ff
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004d482d
add esp, 0x194
ret
push str.iphlpapi.dll
call fcn.00428450
add esp, 4
mov dword [0x7d6a9c], eax
test eax, eax
je 0x42862a
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42862a
mov dword [0x7d6aa0], eax
push 3
push 2
push 0
push 0
push 6
call fcn.0045a890
add esp, 0x14
neg eax
sbb eax, eax
neg eax
push 0x7dd508
mov dword [0x7dd510], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [esp + 0x190]
xor ecx, esp
xor eax, eax
call fcn.004d482d
add esp, 0x194
ret
Function at 0x42c9b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
jne 0x42c9f3
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 0x2733
sete cl
mov dword [edx], 0
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0x38
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x42ca70
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x7a0], 0
je 0x42cb08
cmp dword [esi + 0x1c8], 0
je 0x42cac8
push edi
push esi
call fcn.00429f70
push 1
push esi
mov edi, eax
call fcn.00429f40
mov eax, dword [esi + 0x16c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x1c8]
push edx
push eax
push esi
call ecx
push edi
push esi
call fcn.00429f40
add esp, 0x28
pop edi
pop esi
ret
mov eax, dword [esp + 0xc]
test eax, eax
js 0x42cb08
cmp eax, 2
jg 0x42cb08
mov edx, dword [esi + 0x168]
push edx
push 1
lea eax, [eax + eax*2 + 0x7308b8]
push 2
push eax
call fcn.004d4351
mov ecx, dword [esi + 0x168]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ecx
push 1
push edx
push eax
call fcn.004d4351
add esp, 0x20
pop esi
ret

Function at 0x42cb90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x7d3574]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
cmp dword [esi + 0x7a0], 0
jne 0x42cbc2
cmp dword [esi + 0x170], 0
je 0x42ccad
mov ecx, dword [esp + 0x114]
push edi
lea eax, [esp + 0x11c]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.00431360
mov edx, dword [esi + 0x170]
add esp, 0x10
mov edi, eax
test edx, edx
je 0x42cc14
cmp dword [esi + 0xe70], 0
jne 0x42cc14
lea ecx, [esp + 8]
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x42cc00
mov dword [esi + 0xe70], 1
mov byte [esp + edi + 8], 0xa
inc edi
cmp dword [esi + 0x7a0], 0
mov byte [esp + edi + 8], 0
je 0x42ccac
cmp dword [esi + 0x1c8], 0
je 0x42cc80
push ebx
push esi
call fcn.00429f70
push 1
push esi
mov ebx, eax
call fcn.00429f40
mov eax, dword [esi + 0x16c]
mov edx, dword [esi + 0x1c8]
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
call edx
push ebx
push esi
call fcn.00429f40
add esp, 0x28
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004d482d
add esp, 0x108
ret
mov eax, dword [esi + 0x168]
push eax
push 1
push 2
push 0x7308b8
call fcn.004d4351
mov ecx, dword [esi + 0x168]
push ecx
push 1
lea edx, [esp + 0x20]
push edi
push edx
call fcn.004d4351
add esp, 0x20
pop edi
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004d482d
add esp, 0x108
ret