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

Disassembly:
mov eax, 0x2a44
call fcn.0046a620
mov eax, dword [0x4beb20]
xor eax, esp
mov dword [esp + 0x2a40], eax
push ebx
push esi
xor ebx, ebx
push 0x27ff
lea eax, [esp + 0x24d]
push ebx
push eax
mov byte [esp + 0x254], bl
call fcn.00468830
mov edx, dword [esp + 0x2a5c]
lea ecx, [esp + 0x2a60]
push ecx
push edx
lea eax, [esp + 0x25c]
push 0x2800
push eax
call fcn.0046c47b
push 0x1ff
lea ecx, [esp + 0x69]
push ebx
push ecx
mov byte [esp + 0x70], bl
call fcn.00468830
add esp, 0x28
push 0x200
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x491c84
lea eax, [esp + 0x4c]
push eax
call esi
push str.CDGODMGuard.LOG
lea ecx, [esp + 0x4c]
push ecx
call esi
lea edx, [esp + 0x48]
push 0x492880
push edx
call fcn.0046ba13
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x42dae5
xor eax, eax
mov dword [esp + 9], eax
mov dword [esp + 0xd], eax
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov word [esp + 0x45], ax
mov byte [esp + 0x47], al
lea eax, [esp + 0x248]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x10], bl
mov byte [esp + 0x30], bl
call fcn.0046c3ac
add esp, 4
push eax
lea edx, [esp + 0x10]
push edx
call fcn.0046c2ed
add esp, 4
push eax
push str._s__s____s_n
push esi
call fcn.0046c125
push esi
call fcn.0046b694
add esp, 0x18
mov ecx, dword [esp + 0x2a48]
pop esi
pop ebx
xor ecx, esp
call fcn.004694b0
add esp, 0x2a44
ret
Function at 0x42ee40
Capabilities:
Create udp socket

Disassembly:
push esi
push 0
push 2
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
pop esi
mov eax, ecx
ret

Function at 0x42ee60
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
neg eax
sbb eax, eax
inc eax
ret 8

Function at 0x42eef0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x118]
mov eax, 0x10624dd3
mul esi
mov eax, dword [ecx]
shr edx, 6
mov dword [esp + 4], edx
imul edx, edx, 0x3e8
lea ecx, [esp + 4]
push ecx
push 0
sub esi, edx
push 0
lea edx, [esp + 0x18]
push edx
push 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_select]
pop esi
cmp eax, 0xffffffff
jne 0x42ef4d
xor eax, eax
add esp, 0x10c
ret 8
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov eax, 1
mov dword [edx], ecx
add esp, 0x10c
ret 8

Function at 0x42f210
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4beb20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test edi, edi
jne 0x42f230
xor esi, esi
jmp 0x42f25b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42f243
xor esi, esi
jmp 0x42f25b
lea esi, [eax + eax]
mov eax, esi
call fcn.004694c0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.004185d0
mov esi, eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x42f2a4
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x42f2c7
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
push 0x10
lea edx, [ebp - 0x14]
push edx
mov ecx, ebx
call fcn.0042ee60
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004694b0
mov esp, ebp
pop ebp
ret 8
xor eax, eax
jmp 0x42f2b1
Function at 0x430110
Capabilities:
Get common file path
Get disk size

Disassembly:
sub esp, 0x418
mov eax, dword [0x4beb20]
xor eax, esp
mov dword [esp + 0x414], eax
mov ecx, 0x3a
mov word [esp + 0xa], cx
mov edx, 0x5c
xor ecx, ecx
push 0x400
mov word [esp + 0x10], dx
xor eax, eax
push ecx
lea edx, [esp + 0x1a]
push edx
mov word [esp + 0x14], ax
mov word [esp + 0x1a], ax
mov word [esp + 0x1c], cx
call fcn.00468830
add esp, 0xc
push 0x200
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov cx, word [esp + 0x10]
push 4
lea edx, [esp + 0x14]
push 0x4a3890
push edx
mov word [esp + 0x14], cx
call fcn.0046ccec
add esp, 0xc
test eax, eax
jne 0x43019a
mov ax, word [esp + 0x18]
mov word [esp + 8], ax
push 0
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4301de
cmp dword [esp + 4], 0
ja 0x4301de
jb 0x4301c4
cmp dword [esp], 0x6400000
ja 0x4301de
mov eax, 1
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004694b0
add esp, 0x418
ret
mov ecx, dword [esp + 0x414]
xor ecx, esp
xor eax, eax
call fcn.004694b0
add esp, 0x418
ret
Function at 0x430240
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x1258
call fcn.0046a620
mov eax, dword [0x4beb20]
xor eax, esp
mov dword [esp + 0x1254], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1268]
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x26e]
push ecx
mov word [esp + 0x270], ax
call fcn.00468830
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0xa7a]
push eax
mov word [esp + 0xa7c], dx
call fcn.00468830
mov eax, esi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4302a5
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x4302ca
push 0x4a38a0
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea ecx, [esp + 0xa68]
push ecx
call ebp
push 0x491ca4
lea edx, [esp + 0xa68]
push edx
call edi
push 0x250
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00468830
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xa68]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
je 0x43043e
test ebx, ebx
je 0x43043e
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x4927b0
lea eax, [esp + 0x40]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x430366
test dx, dx
je 0x430362
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x430366
add eax, 4
add ecx, 4
test dx, dx
jne 0x430340
xor eax, eax
jmp 0x43036b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x43040d
mov ecx, 0x491c88
lea eax, [esp + 0x40]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4303a6
test dx, dx
je 0x4303a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4303a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x430380
xor eax, eax
jmp 0x4303ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x43040d
push esi
lea eax, [esp + 0x268]
push eax
call ebp
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x268]
push edx
call edi
lea eax, [esp + 0x264]
push eax
call ebx
test al, 0x10
je 0x4303e9
lea ecx, [esp + 0x264]
push ecx
call fcn.00430240
add esp, 4
jmp 0x43040d
test al, 1
je 0x4303ff
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x430334
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
jmp 0x430440
xor eax, eax
mov ecx, dword [esp + 0x1264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004694b0
add esp, 0x1258
ret
Function at 0x430490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xb8c]
sub esp, 0xc0c
mov eax, dword [0x4beb20]
xor eax, ebp
mov dword [ebp + 0xb88], eax
push ebx
push esi
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x76]
push ecx
mov word [ebp - 0x78], ax
call fcn.00468830
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x80]
push ecx
push 0
push str..docx
push closesocket
mov dword [ebp - 0x7c], 0x800
mov dword [ebp - 0x80], 1
call ebx
test eax, eax
je 0x4304ff
xor eax, eax
jmp 0x4305d7
push 0x494fec
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x78]
push eax
call edi
inc eax
cmp eax, 0x3fffffff
jle 0x430526
xor eax, eax
jmp 0x43053f
lea esi, [eax + eax]
mov eax, esi
call fcn.004694c0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x78]
push ecx
push eax
call fcn.004185d0
push eax
push 0x4ac100
call fcn.0042d9a0
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp + 0x78a]
push eax
mov word [ebp + 0x788], dx
call fcn.00468830
add esp, 0x14
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp + 0x788]
push edx
lea eax, [ebp - 0x80]
push eax
push 0
lea ecx, [ebp - 0x78]
push ecx
push closesocket
mov dword [ebp - 0x7c], 0x400
call ebx
test eax, eax
jne 0x4304f8
lea edx, [ebp + 0x788]
push edx
call edi
inc eax
cmp eax, 0x3fffffff
jle 0x4305a8
xor eax, eax
jmp 0x4305c4
lea esi, [eax + eax]
mov eax, esi
call fcn.004694c0
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0x788]
push ecx
push eax
call fcn.004185d0
push eax
push 0x4ac100
call fcn.0042d9a0
add esp, 8
mov eax, 1
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xb88]
xor ecx, ebp
call fcn.004694b0
add ebp, 0xb8c
mov esp, ebp
pop ebp
ret

Function at 0x432e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48de68
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4beb20]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0041a0c0
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
sub eax, 0x10
push eax
mov dword [esp + 0x1c], 0
call fcn.0041a0c0
mov dl, byte [esp + 0x30]
add esp, 8
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0xc], eax
mov byte [esi + 8], dl
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10
Function at 0x434250
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], vtable.CEncryptMd5.0
call fcn.00468830
add esp, 0xc
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
pop esi
ret
Function at 0x436130
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
or eax, 0xffffffff
test ecx, ecx
je 0x43615c
mov edx, dword [esp + 4]
push esi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4bcda8]
dec ecx
inc edx
test ecx, ecx
jne 0x436140
pop esi
not eax
ret

Function at 0x436160
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x436186
or eax, eax
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x4361a0
Capabilities:
Get disk information

Disassembly:
push 4
call fcn.00445d29
mov ecx, dword [esp + 8]
mov dl, byte [ecx]
add esp, 4
xor ecx, ecx
push eax
mov byte [eax], dl
mov word [eax + 2], cx
call dword [sym.imp.USER32.dll_CharUpperW]
mov edx, 0xffbf
add word [eax], dx
mov cl, byte [eax]
mov dword [esp + 4], 0
push eax
mov byte [esp + 8], cl
call fcn.00445d1e
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [esp + 4]
mov edx, 1
shl edx, cl
test edx, eax
setne al
ret
Function at 0x436200
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x1258
call fcn.0046a620
mov eax, dword [0x4beb20]
xor eax, esp
mov dword [esp + 0x1254], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1268]
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x26e]
push ecx
mov word [esp + 0x270], ax
call fcn.00468830
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0xa7a]
push eax
mov word [esp + 0xa7c], dx
call fcn.00468830
mov eax, esi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x436265
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x43628a
push 0x4a38a0
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea ecx, [esp + 0xa68]
push ecx
call ebp
push 0x491ca4
lea edx, [esp + 0xa68]
push edx
call edi
push 0x250
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00468830
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xa68]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
je 0x4363fb
test ebx, ebx
je 0x4363fb
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x4927b0
lea eax, [esp + 0x40]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x436326
test dx, dx
je 0x436322
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x436326
add eax, 4
add ecx, 4
test dx, dx
jne 0x436300
xor eax, eax
jmp 0x43632b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4363cd
mov ecx, 0x491c88
lea eax, [esp + 0x40]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x436366
test dx, dx
je 0x436362
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x436366
add eax, 4
add ecx, 4
test dx, dx
jne 0x436340
xor eax, eax
jmp 0x43636b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4363cd
push esi
lea eax, [esp + 0x268]
push eax
call ebp
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x268]
push edx
call edi
lea eax, [esp + 0x264]
push eax
call ebx
test al, 0x10
je 0x4363a9
lea ecx, [esp + 0x264]
push ecx
call fcn.00436200
add esp, 4
jmp 0x4363cd
test al, 1
je 0x4363bf
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4362f4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov al, 1
jmp 0x4363fd
xor al, al
mov ecx, dword [esp + 0x1264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004694b0
add esp, 0x1258
ret
Function at 0x436460
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x436486
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push edi
push ecx
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov edi, ecx
test edi, edi
je 0x4364c2
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x436520
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x436535
xor eax, eax
pop esi
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret

Function at 0x436900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4beb20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
setne al
push 0
push 0
mov dword [ebp - 8], 1
add eax, 2
push eax
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x436962
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004694b0
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x436973
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0xc]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x436994
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0xc]
je 0x43699b
mov dword [ebp - 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jne 0x4369e2
test ebx, ebx
jne 0x4369e2
test edi, edi
je 0x4369bf
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4369c3
xor eax, eax
jmp 0x4369d9
lea esi, [eax + eax]
mov eax, esi
call fcn.004694c0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.004185d0
push eax
call fcn.0046ce53
add esp, 4
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004694b0
mov esp, ebp
pop ebp
ret
Function at 0x436ae0
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov ebx, 3
mov dword [esp + 0x14], edi
cmp edi, ebx
jbe 0x436b8c
cmp word [ebp + ebx*2], 0x5c
jne 0x436b83
call fcn.0044e87c
push eax
push ebx
push ebp
lea ecx, [esp + 0x1c]
call fcn.00419f80
mov esi, dword [esp + 0x10]
push esi
call fcn.00436790
add esp, 4
test eax, eax
jne 0x436b67
push ecx
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], esp
mov edi, esp
push eax
call fcn.0041a0c0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00436a20
add esp, 4
test eax, eax
jne 0x436bee
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x436bc8
mov edi, dword [esp + 0x14]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436b83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebx
cmp ebx, edi
jb 0x436b05
push ebp
call fcn.00436790
add esp, 4
test eax, eax
jne 0x436c0a
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ebp
call fcn.0041afb0
call fcn.00436a20
add esp, 4
test eax, eax
jne 0x436c0a
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x436c0c
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436be4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436c0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x43b970
Capabilities:
Get mac address on windows

Disassembly:
mov eax, 0x28c8
call fcn.0046a620
mov eax, dword [0x4beb20]
xor eax, esp
mov dword [esp + 0x28c4], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x28d8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x14], 0x2880
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.Not_found
lea edx, [esp + 0x2894]
push edx
lea esi, [esp + 0x18]
call ebx
movzx eax, byte [esp + 0x1a4]
cmp eax, 0xffffffff
jne 0x43ba28
lea ecx, [eax + 7]
movzx edx, byte [esi + 0x195]
cmp edx, 0xffffffff
jne 0x43ba28
movzx edx, byte [esi + 0x196]
cmp edx, 0xffffffff
jne 0x43ba28
movzx edx, byte [esi + 0x197]
cmp edx, 0xffffffff
jne 0x43ba28
movzx edx, byte [esi + 0x198]
cmp edx, 0xffffffff
jne 0x43ba28
movzx edx, byte [esi + 0x199]
cmp edx, 0xffffffff
jne 0x43ba28
cmp dword [esi + 0x1a0], ecx
je 0x43ba28
mov esi, dword [esi]
test esi, esi
je 0x43ba28
movzx edx, byte [esi + 0x194]
cmp edx, 0xffffffff
je 0x43b9d2
movzx ecx, byte [esp + 0x1a9]
movzx edx, byte [esp + 0x1a8]
push ecx
movzx ecx, byte [esp + 0x1ab]
push edx
movzx edx, byte [esp + 0x1ae]
push ecx
movzx ecx, byte [esp + 0x1b1]
push edx
push ecx
push eax
lea edx, [esp + 0x28a8]
push 0x49b66c
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x28b0]
push 0x20
push eax
call fcn.0046b36f
add esp, 0x28
lea ecx, [esp + 0x2890]
push ecx
push edi
call ebx
mov ecx, dword [esp + 0x28d0]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004694b0
add esp, 0x28c8
ret

Function at 0x43baf0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [0x4beb20]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [0x49b6cc]
mov edx, dword [0x49b6d0]
xor eax, eax
mov dword [0x4c5480], eax
mov dword [0x4c5484], eax
mov dword [0x4c5488], eax
mov dword [0x4c548c], eax
mov dword [0x4c5490], eax
mov dword [0x4c5494], eax
mov dword [0x4c5498], eax
mov dword [0x4c549c], eax
mov eax, dword [str.Beijing_E_SafeNet]
mov dword [0x4c5480], eax
mov eax, dword [0x49b6d4]
mov dword [0x4c5484], ecx
mov cx, word [0x49b6d8]
mov dword [0x4c5488], edx
mov edx, dword [str.CDGCobra_DocGuard]
mov dword [0x4c548c], eax
mov eax, dword [0x49b6b8]
mov word [0x4c5490], cx
mov ecx, dword [0x49b6bc]
mov dword [esp], edx
mov edx, dword [0x49b6c0]
mov dword [esp + 4], eax
mov ax, word [0x49b6c4]
push 0x4c5480
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov word [esp + 0x14], ax
call fcn.0043bab0
lea ecx, [esp + 4]
push ecx
call fcn.0043bab0
add esp, 8
xor edx, edx
lea esp, [esp]
mov al, byte [edx + 0x4c5480]
xor ecx, ecx
jmp 0x43bbc0
xor al, byte [esp + ecx]
add ecx, 6
xor al, byte [esp + ecx - 5]
xor al, byte [esp + ecx - 4]
xor al, byte [esp + ecx - 3]
xor al, byte [esp + ecx - 2]
xor al, byte [esp + ecx - 1]
cmp ecx, 0x12
jl 0x43bbc0
mov byte [edx + 0x4c5480], al
inc edx
cmp edx, 0x20
jl 0x43bbb0
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004694b0
add esp, 0x18
ret
Function at 0x43cd00
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x43cd57
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push edi
lea esp, [esp]
inc cl
movzx edi, cl
mov bl, byte [eax + edi + 8]
add dl, bl
movzx edx, dl
mov cl, byte [eax + edx + 8]
mov byte [eax + edi + 8], cl
add cl, bl
movzx ecx, cl
mov byte [eax + edx + 8], bl
movzx ecx, byte [ecx + eax + 8]
xor byte [esi + ebp], cl
inc esi
cmp esi, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
mov ecx, edi
jl 0x43cd20
pop edi
pop ebp
pop ebx
mov dword [eax + 4], edx
mov dword [eax], ecx
pop esi
ret