joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411e6e
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
mov dword [esi + 4], eax
pop esi
pop ebp
ret 4

Function at 0x411f42
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
xor ecx, ecx
xor edx, edx
xor esi, esi
push edi
cmp dword [ebp + 0xc], ecx
jle 0x412023
mov edi, dword [ebp + 8]
mov al, byte [esi + edi]
cmp al, 0x3d
jne 0x411f66
inc edx
cmp edx, 2
jg 0x411fa4
cmp al, 0x7f
ja 0x411fa4
movzx eax, al
mov al, byte [eax + 0x53fc60]
cmp al, 0x7f
je 0x411fa4
cmp al, 0x40
jae 0x411f7f
test edx, edx
jne 0x411fa4
inc ecx
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x411f59
test ecx, ecx
je 0x412023
mov edi, dword [ebp + 0x14]
imul eax, ecx, 6
add eax, 7
sar eax, 3
cmp dword [edi], eax
jge 0x411fa9
mov dword [edi], eax
push 0xfffffffffffffff0
jmp 0x411fa6
push 0xffffffffffffffee
pop eax
jmp 0x412025
mov edx, dword [ebp + 0x10]
xor eax, eax
push ebx
xor ebx, ebx
mov dword [ebp + 0xc], eax
test esi, esi
jle 0x41201d
mov eax, dword [ebp + 8]
push 3
pop edi
movzx eax, byte [eax]
mov cl, byte [eax + 0x53fc60]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub edi, eax
movzx eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 0x3f
or ebx, eax
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, 4
jne 0x41200e
xor eax, eax
mov dword [ebp + 0xc], eax
test edi, edi
jle 0x411ff9
mov eax, ebx
shr eax, 0x10
mov byte [edx], al
inc edx
cmp edi, 1
jle 0x412006
mov eax, ebx
shr eax, 8
mov byte [edx], al
inc edx
cmp edi, 2
jle 0x41200e
mov byte [edx], bl
inc edx
mov eax, dword [ebp + 8]
dec esi
inc eax
mov dword [ebp + 8], eax
test esi, esi
jg 0x411fbe
mov edi, dword [ebp + 0x14]
sub edx, dword [ebp + 0x10]
mov dword [edi], edx
pop ebx
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x412029
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x41203d
xor eax, eax
jmp 0x41217b
mov eax, ebx
shl eax, 3
push 6
pop ecx
cdq
idiv ecx
mov edx, ebx
imul ecx, eax, 6
shl edx, 3
push 3
sub edx, ecx
dec edx
pop ecx
sub edx, 1
je 0x412066
dec edx
sub edx, 1
jne 0x412068
add eax, 2
jmp 0x412068
add eax, ecx
push esi
mov esi, dword [ebp + 0x14]
inc eax
cmp dword [esi], eax
jge 0x41207b
push 0xfffffffffffffff0
mov dword [esi], eax
pop eax
jmp 0x41217a
mov eax, ebx
cdq
idiv ecx
xor ecx, ecx
imul eax, eax, 3
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x412111
dec eax
mov ebx, dword [ebp + 8]
xor edx, edx
push 3
pop ecx
div ecx
inc eax
imul ecx, eax, 3
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
mov eax, ecx
movzx esi, byte [ebx + 2]
add ebx, 3
shr eax, 2
shl ecx, 4
mov al, byte [eax + 0x53fc20]
mov byte [edi], al
mov eax, edx
shr eax, 4
add eax, ecx
and eax, 0x3f
mov al, byte [eax + 0x53fc20]
mov byte [edi + 1], al
mov eax, esi
shr eax, 6
and esi, 0x3f
lea eax, [eax + edx*4]
and eax, 0x3f
mov al, byte [eax + 0x53fc20]
mov byte [edi + 2], al
mov al, byte [esi + 0x53fc20]
mov byte [edi + 3], al
add edi, 4
sub dword [ebp - 4], 1
jne 0x4120a6
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
jmp 0x412114
mov eax, dword [ebp + 8]
cmp ecx, ebx
jge 0x41216d
movzx edx, byte [eax]
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, ebx
jge 0x412129
movzx ecx, byte [eax + 1]
jmp 0x41212b
xor ecx, ecx
mov eax, edx
shl edx, 4
shr eax, 2
mov al, byte [eax + 0x53fc20]
mov byte [edi], al
mov eax, ecx
shr eax, 4
add eax, edx
and eax, 0x3f
mov al, byte [eax + 0x53fc20]
mov byte [edi + 1], al
cmp dword [ebp + 0xc], ebx
jge 0x412162
and ecx, 0xf
mov al, byte [ecx*4 + 0x53fc20]
mov byte [edi + 2], al
jmp 0x412166
mov byte [edi + 2], 0x3d
mov byte [edi + 3], 0x3d
add edi, 4
mov eax, edi
sub eax, dword [ebp + 0x10]
mov dword [esi], eax
xor eax, eax
mov byte [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41351f
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x413d43
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xc8
mov eax, 0x53ba3d
call fcn.0040c217
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
xor eax, eax
mov dword [ebp - 0xd0], ebx
push 0x5959d0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.004014e0
lea ecx, [ebp - 0xc4]
mov dword [ebp - 4], ebx
call fcn.0041333d
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413e92
push ebx
push 1
push 4
push ebx
push 1
push accept
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413dc7
push 0x5959d0
mov ecx, esi
call fcn.004013b0
jmp 0x413e9d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc8], eax
inc eax
push eax
mov dword [ebp - 0xcc], eax
call fcn.0040abc5
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x413dfb
push 0x5959d0
mov ecx, esi
call fcn.004013b0
push ebx
jmp 0x413e9e
push dword [ebp - 0xcc]
push 0
push ebx
call fcn.004177a0
add esp, 0xc
lea eax, [ebp - 0xd4]
push 0
push eax
push dword [ebp - 0xc8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
push ebx
call fcn.00413cf8
push ebx
call fcn.0040ac19
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00413546
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00410799
pop ecx
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00402ca2
cmp dword [ebp - 0x30], ebx
jbe 0x413e87
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401700
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00401420
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00402110
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00401420
mov eax, esi
call fcn.0040c1c1
ret
Function at 0x413eb0
Capabilities:
Create process on windows

Disassembly:
push 0x88
mov eax, 0x53ba75
call fcn.0040c217
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x94]
mov edi, dword [ebp + 0xc]
push 0x44
pop ebx
push ebx
push 0
push eax
call fcn.004177a0
push 0x10
lea eax, [ebp - 0x50]
mov dword [ebp - 0x94], ebx
push 0
push eax
call fcn.004177a0
add esp, 0x18
xor edx, edx
xor eax, eax
mov dword [ebp - 0x18], edx
mov word [ebp - 0x28], ax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov word [ebp - 0x40], ax
or ebx, 0xffffffff
mov byte [ebp - 4], 1
test edi, edi
je 0x413f8e
cmp word [edi], dx
jne 0x413f1f
mov eax, edx
jmp 0x413f26
push edi
call fcn.0041af11
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.004014e0
cmp dword [ebp - 0x30], 0
je 0x413f8e
mov edi, 0x53faa0
push edi
call fcn.0041af11
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004014e0
xor edi, edi
cmp word [esi], di
jne 0x413f57
mov eax, edi
jmp 0x413f5e
push esi
call fcn.0041af11
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00401dd0
mov esi, 0x53faa4
push esi
call fcn.0041af11
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00401dd0
push ebx
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401f10
jmp 0x413faa
xor edi, edi
cmp word [esi], di
jne 0x413f99
mov eax, edi
jmp 0x413fa0
push esi
call fcn.0041af11
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004014e0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push edi
push edi
push edi
push 1
push edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x413fd7
mov esi, edi
jmp 0x414002
cmp byte [ebp + 0x10], 0
je 0x413fef
cmp dword [ebp + 0x14], 0
cmovg ebx, dword [ebp + 0x14]
push ebx
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x4c]
call esi
xor esi, esi
inc esi
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.00401420
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00401420
mov eax, esi
call fcn.0040c1c1
ret

Function at 0x414020
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0041af11
pop ecx
test eax, eax
je 0x414083
push ebx
push edi
push 0x3c
xor edi, edi
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.004177a0
add esp, 0xc
mov dword [ebp - 0x38], 0x200
xor ebx, ebx
mov dword [ebp - 0x28], esi
inc ebx
mov eax, str.open
mov dword [ebp - 0x30], eax
push ebx
push edi
push edi
push esi
push eax
push edi
mov dword [ebp - 0x20], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x41407f
push edi
push edi
push edi
push esi
call fcn.00413eb0
add esp, 0x10
jmp 0x414081
mov eax, ebx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414088
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1604
call fcn.0040c2f0
mov eax, dword [0x59c024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
push 0
push eax
call fcn.004177a0
push esi
lea eax, [ebp - 0x20c]
push 0x595a00
push eax
call fcn.00410e16
lea eax, [ebp - 0x20c]
push eax
call fcn.0041af11
add esp, 0x1c
lea ecx, [eax - 1]
test ecx, ecx
jle 0x4140f4
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x20e], cx
je 0x4140f4
mov word [ebp + eax*2 - 0x20c], cx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xbe4]
push str._s.
push eax
call fcn.00410e16
add esp, 0xc
lea eax, [ebp - 0x1604]
push eax
lea eax, [ebp - 0xbe4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4141ed
push ebx
push 0x2e
pop ebx
lea eax, [ebp - 0x1604]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4141ec
cmp word [ebp - 0x15d8], bx
je 0x414132
cmp word [ebp - 0x15d6], 0
je 0x414132
cmp word [ebp - 0x15d6], bx
jne 0x41416e
cmp word [ebp - 0x15d4], 0
je 0x414132
test byte [ebp - 0x1604], 0x10
je 0x4141b8
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004177a0
lea eax, [ebp - 0x15d8]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x53c6dc
push eax
call fcn.00410e16
lea eax, [ebp - 0x414]
push eax
call fcn.00414088
add esp, 0x20
lea eax, [ebp - 0x15d8]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x13b4]
push 0x53c65c
push eax
call fcn.00410e16
add esp, 0x10
lea eax, [ebp - 0x13b4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x414132
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c19b
mov esp, ebp
pop ebp
ret

Function at 0x4147dc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x59c024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x15c], ebx
jne 0x414872
lea eax, [edi + 0x2c]
cmp dword [eax + 0x14], 8
jb 0x414808
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x20c]
push str._sSkin_
push eax
call fcn.00402b60
add esp, 0xc
cmp word [ebp - 0x20c], bx
je 0x414835
lea eax, [ebp - 0x20c]
push eax
call fcn.0041af11
pop ecx
mov ebx, eax
push esi
push ebx
lea eax, [ebp - 0x20c]
lea esi, [edi + 0x14c]
push eax
mov ecx, esi
call fcn.004014e0
cmp dword [esi + 0x14], 8
jb 0x414855
mov eax, dword [esi]
jmp 0x414857
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414871
cmp dword [esi + 0x14], 8
jb 0x41486a
mov esi, dword [esi]
push esi
call fcn.0040edef
pop ecx
pop esi
lea eax, [edi + 0x14c]
cmp dword [eax + 0x14], 8
pop edi
pop ebx
jb 0x414882
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c19b
mov esp, ebp
pop ebp
ret
Function at 0x414ebd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x5a839c], 0
mov dword [ebp - 8], ecx
je 0x415010
add ecx, 8
cmp dword [ecx + 0x14], 8
jb 0x414ede
mov ecx, dword [ecx]
push esi
push 0x5401dc
push ecx
push dword [0x59c134]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41500f
push ebx
push edi
push esi
push dword [0x59c134]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [0x59c134]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push eax
call fcn.004165e0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor esi, esi
push esi
push dword [ebp - 4]
call fcn.004156cd
pop ecx
pop ecx
test eax, eax
je 0x41500d
mov ebx, dword [ebp - 8]
mov ecx, 0x5a83a0
mov dword [ebx + 4], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00414cb1
mov eax, dword [ebp - 0xc]
push esi
mov dword [eax + 0x14], ebx
push dword [0x59c134]
push esi
push dword [ebp + 8]
push esi
push esi
push esi
push accept
push 0x80880000
push esi
push dword [0x59c130]
push 0x80020
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [ebp + 8]
mov dword [ebx + 0x20], eax
call esi
test eax, 0x10000000
jne 0x414fcd
mov byte [ebx + 0x28], 1
jmp 0x414ff3
test eax, 0x21000000
je 0x414fda
mov byte [ebx + 0x28], 5
jmp 0x414ff3
push 8
push dword [ebx + 0x20]
mov byte [ebx + 0x28], 7
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, ebx
call fcn.004159db
push 0xfffffffffffffffc
push dword [ebp + 8]
call esi
push 0x4157ea
push 0xfffffffffffffffc
push dword [ebp + 8]
mov dword [ebx + 0x24], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4163b6
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe64
mov eax, dword [0x59c024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov word [ebp - 0xe10], ax
lea edi, [ebp - 0xe0e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xe10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ebx, 0x208
lea eax, [ebp - 0x630]
push ebx
xor edi, edi
push edi
push eax
call fcn.004177a0
push str.UseVestige.ini
push str.Config
push 0x5a8b00
lea eax, [ebp - 0x630]
push 0x53c758
push eax
call fcn.00402b60
add esp, 0x20
lea eax, [ebp - 0x630]
push eax
push 0xffffffffffffffff
push str.UpDmpLastDay
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
movzx ecx, word [ebp - 0xe0a]
cmp eax, ecx
je 0x4165c7
push ebx
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.004177a0
push ebx
lea eax, [ebp - 0x428]
push edi
push eax
call fcn.004177a0
lea eax, [ebp - 0x428]
push 0x5a88f8
push eax
call fcn.0041dfc6
lea eax, [ebp - 0x428]
push str.LanShanMutual.exe
push eax
call fcn.00423cea
lea eax, [ebp - 0x220]
push 0x53faa0
push eax
call fcn.0041dfc6
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00423cea
lea eax, [ebp - 0x220]
push str.__UpDmpInfo
push eax
call fcn.00423cea
add esp, 0x40
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.00423cea
mov esi, 0x5a8d08
push esi
call fcn.0041af11
add esp, 0xc
test eax, eax
je 0x416506
lea eax, [ebp - 0x220]
push 0x53fb68
push eax
call fcn.00423cea
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.00423cea
add esp, 0x10
push 0x44
pop esi
push esi
lea eax, [ebp - 0xe64]
push edi
push eax
call fcn.004177a0
push 0x10
lea eax, [ebp - 0xe20]
mov dword [ebp - 0xe64], esi
push edi
push eax
call fcn.004177a0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xe00]
push 0x595a00
push eax
call fcn.00402b60
add esp, 0x24
lea eax, [ebp - 0xe20]
push eax
lea eax, [ebp - 0xe64]
push eax
push edi
push edi
push edi
push 1
push edi
push edi
lea eax, [ebp - 0xe00]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x416584
push dword [ebp - 0xe20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xe1c]
call esi
xor eax, eax
lea edi, [ebp - 0x16]
mov word [ebp - 0x18], ax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [ebp - 0xe0a]
push eax
lea eax, [ebp - 0x18]
push 0x53f93c
push eax
call fcn.00402b60
add esp, 0xc
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x18]
push eax
push str.UpDmpLastDay
push str.Setting
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c19b
mov esp, ebp
pop ebp
ret

Function at 0x42d779
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042d439

Function at 0x42f8c2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042f741
Function at 0x43d860
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x43d8a9
mov al, byte [esi]
push eax
call fcn.00444c00
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x43d887
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x43eb30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x43eb51
cmp dword [esi + 0x8c], 0
je 0x43eb51
push 2
push 3
push esi
call fcn.00444ff0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00446b00
add esp, 4
test esi, esi
je 0x43eb74
cmp dword [esi + 0x8c], 0
je 0x43eb74
push 3
push esi
call fcn.00445030
add esp, 8
pop esi
pop ebp
ret

Function at 0x43f2f0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2b0], 2
jne 0x43f305
pop ebp
jmp fcn.0043f2a0
mov al, 1
pop ebp
ret
Function at 0x4421f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x608], 0
je 0x442234
push esi
push 1
push edi
call fcn.0043b500
push dword [edi + 0x59c]
mov eax, dword [edi + 0x608]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.0043b500
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x44226a
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x547160
push 2
push eax
call fcn.00429483
push dword [edi + 0x598]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00429483
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x59c024]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ecx + eax*4 + 0x1a8]
push edi
mov edi, dword [ebp + 0x10]
push eax
push ecx
mov dword [ebp - 0x88], ecx
call fcn.00442bf0
add esp, 8
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x44276a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x44272c
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c19b
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00467b90
push eax
mov eax, dword [ebp - 0x88]
push str.Send_failure:__s
push dword [eax]
call fcn.00442270
mov eax, dword [ebp - 0x88]
add esp, 0x18
mov eax, dword [eax]
mov dword [eax + 0xcac], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c19b
mov esp, ebp
pop ebp
ret
Function at 0x442bf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
mov edx, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
add esi, eax
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x2a8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x442cad
cmp dword [ebx + ecx*4 + 0x1bc], 0x4425c0
jne 0x442cad
cmp dword [esi], 0
je 0x442c3f
test edi, edi
je 0x442cad
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.00441da0
add esp, 0x14
cmp eax, 0xffffffff
je 0x442cad
test al, 1
je 0x442cad
cmp dword [esi], 0
jne 0x442c94
mov eax, dword [ebx]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x59cac0]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x442c94
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x442cad
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x442da0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test byte [eax + 0x1f8], 1
je 0x442dc0
push eax
call fcn.0043fcc0
add esp, 4
test eax, eax
jne 0x442de2
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x442dbc
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x442de2
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x443550
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5a9b40]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x4435a1
push 3
push 2
push eax
push 6
call fcn.00444aa0
add esp, 0x10
test al, al
je 0x443595
mov dword [0x5a9b40], 2
mov esp, ebp
pop ebp
ret
mov dword [0x5a9b40], 1
jmp 0x4435a6
cmp eax, 2
je 0x4435e6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4435cd
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4435e6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret