joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431250
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x431294
cld
mov edi, str.default
mov ecx, 8
mov esi, dword [ebp - 0x14]
repe cmpsb byte [esi], byte es:[edi]
jne 0x4312b9
mov eax, dword [0x4ee9ac]
test eax, eax
je 0x4312b0
test ebx, ebx
je 0x43128c
or byte [ebx + 0x2b], 4
mov dword [ebx + 4], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push str.GNUTARGET
call sub.msvcrt.dll_getenv
add esp, 0x10
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x431266
jmp 0x431278
mov eax, dword [0x4ee9a8]
mov eax, dword [eax]
jmp 0x431281
test ebx, ebx
je 0x4312c1
and byte [ebx + 0x2b], 0xfb
mov eax, dword [ebp - 0x14]
call fcn.004311a0
test eax, eax
je 0x43128c
test ebx, ebx
je 0x43128c
mov dword [ebx + 4], eax
jmp 0x43128c

Function at 0x431970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, 0x10
mov dword [eax + 0x10], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], edx
add eax, 0x48
mov dword [ebp + 8], eax
pop ebp
jmp 0x4321e0
push ebp
xor edx, edx
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 8]
div edi
mov eax, dword [ebp - 0x10]
lea edx, [eax + edx*4]
mov eax, dword [edx]
test eax, eax
jne 0x432218
jmp 0x432281
mov edx, eax
mov eax, dword [eax]
test eax, eax
je 0x432281
cmp esi, eax
jne 0x432210
mov eax, dword [esi]
xor ebx, ebx
mov dword [edx], eax
mov edx, dword [ebp + 0xc]
mov dword [esi + 4], edx
mov ecx, edx
mov al, byte [edx]
inc ecx
test al, al
je 0x43224f
xor edx, edx
mov dl, al
lea eax, [edx + ebx]
shl edx, 0x11
add eax, edx
xor edx, edx
mov ebx, eax
shr ebx, 2
xor ebx, eax
mov al, byte [ecx]
mov dl, al
inc ecx
test al, al
jne 0x432235
mov eax, dword [ebp + 0xc]
sub ecx, eax
lea eax, [ecx - 1]
lea edx, [eax + ebx]
shl eax, 0x11
add edx, eax
mov eax, edx
shr eax, 2
xor eax, edx
xor edx, edx
mov dword [esi + 8], eax
div edi
mov eax, dword [ebp - 0x10]
lea edx, [eax + edx*4]
mov eax, dword [edx]
mov dword [esi], eax
mov dword [edx], esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
push str.bfd_hash_rename
push 0x243
push str._usr_local_google_buildbot_src_android_gcc_toolchain_build_.._binutils_binutils_2.27_bfd_hash.c
call fcn.00430620
lea esi, [esi]
lea edi, [edi]
Function at 0x432640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
xor ebx, ebx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
lea edx, [edi + 1]
mov al, byte [edi]
test al, al
je 0x43268a
xor ecx, ecx
mov cl, al
lea esi, [esi]
lea eax, [ecx + ebx]
shl ecx, 0x11
add eax, ecx
xor ecx, ecx
mov ebx, eax
shr ebx, 2
xor ebx, eax
mov al, byte [edx]
mov cl, al
inc edx
test al, al
jne 0x432670
sub edx, edi
mov ecx, dword [ebp - 0x18]
dec edx
mov eax, edx
mov dword [ebp - 0x14], edx
shl edx, 0x11
add eax, ebx
add eax, edx
xor edx, edx
mov esi, eax
shr esi, 2
xor esi, eax
mov eax, esi
div dword [ecx + 0xc]
mov eax, dword [ecx]
mov ebx, dword [eax + edx*4]
test ebx, ebx
jne 0x4326bb
jmp 0x4326dd
mov ebx, dword [ebx]
test ebx, ebx
je 0x4326dd
cmp esi, dword [ebx + 8]
jne 0x4326b5
push eax
push eax
push edi
mov eax, dword [ebx + 4]
push eax
call sub.msvcrt.dll_strcmp
add esp, 0x10
test eax, eax
jne 0x4326b5
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
test eax, eax
je 0x4326d3
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x432729
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x10], eax
jne 0x432741
mov eax, 8
cmp dword [ecx + 4], eax
jae 0x432751
push ebx
push ebx
push eax
push ecx
call fcn.004d9c70
add esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x432765
push edx
mov eax, dword [ebp - 0x10]
push eax
push edi
push ebx
mov edi, ebx
call sub.msvcrt.dll_memcpy
add esp, 0x10
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0x10], esi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004322a0
mov eax, dword [ebp - 0x14]
add eax, 8
and eax, 0xfffffff8
je 0x432706
cmp dword [ecx + 4], eax
jb 0x432706
mov ebx, dword [ecx]
mov edx, dword [ecx + 4]
add ebx, eax
sub edx, eax
mov dword [ecx], ebx
mov dword [ecx + 4], edx
mov ebx, dword [ecx]
sub ebx, eax
jmp 0x432714
sub esp, 0xc
push 6
call fcn.00430870
add esp, 0x10
jmp 0x4326d3

Function at 0x4339c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, ecx
mov edx, dword [ebp + 8]
add ebx, eax
xor edx, 0xffffffff
cmp ecx, ebx
jae 0x4339f0
mov al, byte [ecx]
inc ecx
xor eax, edx
shr edx, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x5a5420]
cmp ecx, ebx
jne 0x4339d8
xor edx, 0xffffffff
pop ebx
mov eax, edx
pop ebp
ret

Function at 0x4415e0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 0x1505
mov eax, dword [ebp + 8]
mov dl, byte [eax]
test dl, dl
je 0x44160b
mov ecx, eax
mov eax, ebx
and edx, 0xff
shl eax, 5
add eax, edx
mov dl, byte [ecx + 1]
add ebx, eax
inc ecx
test dl, dl
jne 0x4415f4
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x48e2e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x44], eax
mov eax, edx
mov dword [ebp - 0x48], edx
shr eax, 4
mov ebx, dword [ebp + 8]
and eax, 0xf
mov byte [ebp - 0x39], 0x3a
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x38], al
mov eax, edx
and eax, 0xf
mov edx, ecx
shr edx, 8
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x37], al
movzx eax, dl
shr eax, 4
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x36], al
mov eax, edx
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x35], al
movzx eax, cl
shr eax, 4
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x34], al
mov eax, ecx
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x33], al
mov eax, ebx
shr eax, 4
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x32], al
mov eax, ebx
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x31], al
mov eax, dword [ebp - 0x48]
add ecx, eax
mov eax, dword [ebp - 0x48]
add ecx, edx
test eax, eax
lea esi, [ecx + ebx]
je 0x48e422
mov ebx, dword [ebp + 0xc]
lea edi, [ebp - 0x30]
inc ebx
xor ecx, ecx
mov al, byte [ebx - 1]
xor edx, edx
shr al, 4
inc ecx
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [edi], al
mov dl, byte [ebx - 1]
inc ebx
mov eax, edx
add esi, edx
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [edi + 1], al
add edi, 2
cmp ecx, dword [ebp - 0x48]
jne 0x48e391
lea edx, [edi + 1]
lea ebx, [edi + 2]
mov dword [ebp - 0x40], edx
lea ecx, [edi + 3]
mov edx, esi
xor esi, esi
neg edx
movzx eax, dl
shr eax, 4
and edx, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [edi], al
mov al, byte [edx + str.0123456789ABCDEF]
mov edx, dword [ebp - 0x40]
mov byte [edx], al
mov byte [ebx], 0xd
mov byte [ecx], 0xa
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
push edi
push esi
lea ebx, [eax + eax + 0xd]
lea eax, [ebp - 0x39]
push ebx
push eax
call fcn.00469b10
add esp, 0x10
xor ebx, eax
or ebx, edx
sete al
and eax, 0xff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x2f]
lea edi, [ebp - 0x30]
lea ebx, [ebp - 0x2e]
lea ecx, [ebp - 0x2d]
mov dword [ebp - 0x40], eax
jmp 0x48e3cd
Function at 0x4d9ae0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 8], 1
pop ebp
jmp fcn.004d96a0

Function at 0x4d9dc0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x18], 0
pop ebp
ret

Function at 0x4da9f0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x1c], 0
pop ebp
ret
Function at 0x4e8380
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [sym.imp.msvcrt.dll__osver]
cmp word [eax], 0
jns 0x4e839b
mov eax, dword [0x5d9800]
test eax, eax
jne 0x4e83c0
mov ebx, dword [esp + 0x4c]
push ebx
mov ecx, dword [esp + 0x4c]
push ecx
mov edx, dword [esp + 0x4c]
push edx
mov eax, dword [esp + 0x4c]
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
sub esp, 0xc
mov dword [0x5d9800], 0
mov eax, dword [esp + 0x58]
push eax
call sub.msvcrt.dll_fflush
pop ebp
mov eax, dword [esp + 0x58]
mov edi, dword [eax + 0x10]
push edi
call sub.msvcrt.dll__get_osfhandle
pop ebx
pop esi
lea edx, [esp + 0x24]
push edx
push eax
call sub.KERNEL32.dll_GetFileSize
mov dword [esp + 0x20], eax
pop edx
inc eax
pop ecx
jne 0x4e8418
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4e8525
mov ebx, dword [esp + 0x10]
sub esp, 0xc
mov edx, dword [esp + 0x58]
mov eax, dword [edx + 0x10]
push eax
call sub.msvcrt.dll__get_osfhandle
push 1
lea edx, [esp + 0x28]
push edx
push ebx
push eax
call sub.KERNEL32.dll_SetFilePointer
mov dword [esp + 0x20], eax
add esp, 0x10
inc eax
jne 0x4e8451
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4e8525
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, dword [esp + 0x1c]
jb 0x4e839b
jbe 0x4e8530
sub esp, 0xc
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x10]
push eax
call sub.msvcrt.dll__get_osfhandle
push 2
push 0
push 0
push eax
call sub.KERNEL32.dll_SetFilePointer
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
sub edi, dword [esp + 0x28]
sbb ebp, dword [esp + 0x2c]
add esp, 0x10
cmp ebp, 0
jl 0x4e8505
jle 0x4e8500
nop
mov ebx, edi
cmp ebp, 0
jl 0x4e84b2
jle 0x4e853f
mov ebx, 0x200
mov dword [esp + 4], ebx
sub esp, 0xc
mov edx, dword [esp + 0x58]
mov eax, dword [edx + 0x10]
push eax
call sub.msvcrt.dll__get_osfhandle
lea edx, [esp + 0x34]
mov dword [esp], 0
push edx
push ebx
push 0x5d9600
push eax
call sub.KERNEL32.dll_WriteFile
add esp, 0xc
test eax, eax
je 0x4e8550
mov eax, dword [esp + 0x24]
cmp dword [esp + 4], eax
ja 0x4e8577
xor edx, edx
sub edi, eax
sbb ebp, edx
cmp ebp, 0
jg 0x4e84a0
jl 0x4e8505
cmp edi, 0
ja 0x4e84a0
sub esp, 0xc
mov eax, dword [esp + 0x58]
mov esi, dword [eax + 0x10]
push esi
call sub.msvcrt.dll__get_osfhandle
mov dword [esp], eax
call sub.KERNEL32.dll_FlushFileBuffers
add esp, 0xc
jmp 0x4e839b
add esp, 0x2c
or eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, dword [esp + 0x18]
jbe 0x4e839b
jmp 0x4e8469
cmp edi, 0x200
jbe 0x4e84b2
jmp 0x4e84ad
sub esp, 0xc
mov eax, dword [esp + 0x58]
mov ebp, dword [eax + 0x10]
push ebp
call sub.msvcrt.dll__get_osfhandle
push 0
push 0
push 0
push eax
call sub.KERNEL32.dll_SetFilePointer
or eax, 0xffffffff
add esp, 0x10
jmp 0x4e83b7
sub esp, 0xc
mov edx, dword [esp + 0x58]
mov edi, dword [edx + 0x10]
push edi
jmp 0x4e855b
Function at 0x4e8870
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x11c
mov ebx, dword [esp + 0x130]
call sub.msvcrt.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x4e8a2e
cmp byte [ebx], 0
je 0x4e89f0
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
je 0x4e8a1c
test al, 0x10
je 0x4e89f0
push eax
push 0x104
push ebx
lea edi, [esp + 0x24]
push edi
call sub.msvcrt.dll__fullpath
pop eax
mov ecx, edi
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x4e88ce
test edx, 0x8080
je 0x4e89e2
add dl, dl
sbb ecx, 3
sub ecx, edi
lea eax, [ecx + 0x233]
push eax
call sub.msvcrt.dll_malloc
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x4e8a0a
lea esi, [eax + 0x22c]
mov ebp, eax
push eax
push eax
push edi
push esi
call sub.msvcrt.dll_strcpy
add esp, 0x10
cmp byte [ebx + 0x22c], 0
jne 0x4e8994
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
add esp, 0xc
mov word [eax + esi], 0x2a
lea eax, [ebx + 0x120]
mov dword [ebx + 0x224], 0xffffffff
mov dword [ebx + 0x228], 0
mov dword [ebx + 0x118], 0
mov word [ebx + 0x11c], 0
mov word [ebx + 0x11e], 0
push 0x104
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x10
add esp, 0x11c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
pop edx
pop ecx
push 0x2f
lea edi, [esi + eax - 1]
push esi
call sub.msvcrt.dll_strrchr
add esp, 0x10
cmp eax, edi
je 0x4e892f
push eax
push eax
push 0x5c
push esi
call sub.msvcrt.dll_strrchr
add esp, 0x10
cmp edi, eax
je 0x4e892f
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
add esp, 0x10
mov word [eax + esi], 0x5c
jmp 0x4e892f
shr edx, 0x10
add ecx, 2
jmp 0x4e88f2
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0x14
add esp, 0x11c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0xc
jmp 0x4e8987
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 2
jmp 0x4e8987
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0xe
jmp 0x4e8987
Function at 0x401810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40182b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401862
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40185e
jmp 0x401850
cmp esi, eax
jae 0x401862
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401850
cmp esi, eax
jb 0x401869
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402510
Capabilities:
Accept command line arguments

Disassembly:
push edi
call fcn.0041ad40
push str._____________Log_Start______________n
push 0x40000
call fcn.0041abf0
add esp, 8
mov edi, 1
call fcn.0042a760
test eax, eax
jne 0x40254c
push str._error__SNMP
push 0x80000
call fcn.0041abf0
add esp, 8
xor eax, eax
pop edi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x402577
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0
push esi
call fcn.00433085
test eax, eax
jne 0x40258b
push 0x57ea88
jmp 0x40257c
push str._error_
push 0x80000
call fcn.0041abf0
add esp, 8
xor edi, edi
call fcn.00401070
call fcn.0041ba70
pop esi
mov eax, edi
pop edi
ret

Function at 0x405a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareBrotherBrUtilities
push reloc.WS2_32.dll_bind
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x405a6e
mov edx, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
push esi
push str.BrLogAPI
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x405ad0
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi + 4], 0
jne 0x405b92
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
je 0x405b8f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenA
push eax
call edi
mov ecx, dword [esi + 4]
push str.CloseA
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 4]
push str.TraceWriteA
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
push str.DumpWriteA
push eax
call edi
mov ecx, dword [esi + 4]
push str.OpenW
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 4]
push str.CloseW
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
push str.TraceWriteW
push eax
call edi
mov ecx, dword [esi + 4]
push str.DumpWriteW
push ecx
mov dword [esi + 0x20], eax
call edi
cmp dword [esi + 8], 0
mov dword [esi + 0x24], eax
pop edi
je 0x405b8f
cmp dword [esi + 0xc], 0
je 0x405b8f
cmp dword [esi + 0x10], 0
je 0x405b8f
cmp dword [esi + 0x14], 0
je 0x405b8f
cmp dword [esi + 0x18], 0
je 0x405b8f
cmp dword [esi + 0x1c], 0
je 0x405b8f
cmp dword [esi + 0x20], 0
je 0x405b8f
test eax, eax
jne 0x405b92
xor eax, eax
ret
mov eax, 1
ret

Function at 0x405c30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5a5784]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
xor eax, eax
test ecx, ecx
je 0x405d12
cmp dword [ecx + 4], eax
setne al
test eax, eax
jne 0x405d12
mov ecx, 0x208
lea eax, [ebp - 0x20c]
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x405c70
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00405a10
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
mov esi, eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
test esi, esi
jne 0x405cae
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405d03
mov ecx, 0x208
lea eax, [ebp - 0x20c]
lea esp, [esp]
mov byte [eax], 0
inc eax
dec ecx
jne 0x405cc0
mov edx, 0x82
lea eax, [ebp - 0x20c]
cmp word [eax], 0
je 0x405ce0
add eax, 2
dec edx
jne 0x405cd2
jmp 0x405d03
test edx, edx
je 0x405d03
mov ecx, 0x82
sub ecx, edx
mov eax, 0x82
sub eax, ecx
lea ecx, [ebp + ecx*2 - 0x20c]
mov edx, str.BrLogAPI.dll
call fcn.00404dc0
mov esi, dword [edi + 4]
lea eax, [ebp - 0x20c]
call fcn.00405ad0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0052442d
mov esp, ebp
pop ebp
ret
Function at 0x4067c0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f575
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5a5784]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CBaseOperation.0
call fcn.00431a74
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40680b
push 0x80004005
call fcn.00401cd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 4], eax
mov dword [ebp - 4], edi
mov dword [esi], vtable.CDeviceSearchOperation.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
lea ebx, [esi + 0x70]
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
push edi
push 0x57e928
lea ecx, [esi + 4]
mov byte [ebp - 4], 7
call fcn.00401d20
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push eax
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
call fcn.00404510
mov dword [esi + 0x80], 1
mov dword [esi + 0x84], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4069d0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f4fd
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5a5784]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.CBaseOperation.0
call fcn.00431a74
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x406a1d
push 0x80004005
call fcn.00401cd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 4], eax
mov dword [esi], vtable.CDeviceSearchOperation.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
lea ecx, [esi + 0x70]
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 8
call fcn.004041f0
lea ebx, [ebp + 0xc]
mov dword [esi + 0x80], 1
call fcn.00402d80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x407560
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x5a5784]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x94]
push ecx
push 0x57fdb0
xor esi, esi
push ebx
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x8c], 2
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
je 0x4075eb
push esi
push str._SEARCH__error__ResolveNodeName___failed_in_GetAddrInfo._return_value:__d._n
push 0x80000
call fcn.0041abf0
add esp, 0xc
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052442d
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x6c], esi
mov esi, dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x2e
test esi, esi
je 0x407666
lea esp, [esp]
cmp dword [esi + 4], 2
jne 0x40765c
mov eax, dword [esi + 0x18]
lea edx, [ebp - 0x74]
push edx
mov edx, dword [esi + 0x10]
lea ecx, [ebp - 0x68]
push ecx
push 0
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAAddressToStringW]
test eax, eax
jne 0x40765c
lea eax, [ebp - 0x68]
push 0x3a
push eax
call fcn.005252fb
add esp, 8
test eax, eax
je 0x40765c
lea edx, [ebp - 0x68]
push edx
xor ecx, ecx
push 0x28
push edi
mov word [eax], cx
call fcn.0052443c
push edi
push ebx
push str._SEARCH_Get_ip_from_node_name___s_._ip___s._n
push 0x80000
call fcn.0041abf0
add esp, 0x1c
inc dword [ebp - 0x6c]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x407600
mov esi, dword [ebp - 0x70]
push esi
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
cmp dword [ebp - 0x6c], 1
je 0x407696
push str._SEARCH__error__ResolveNodeName___failed__becouse_of_no_IP._n
push 0x40000
call fcn.0041abf0
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052442d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0052442d
mov esp, ebp
pop ebp
ret