joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ac98
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x434b84
call fcn.0041dca0
mov edi, ecx
cmp dword [edi + 0x3c], 0
mov dword [ebp - 0x38], edi
je 0x40ada8
cmp byte [edi + 0x41], 0
je 0x40ada8
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x40acd0
xor al, al
jmp 0x40adaa
lea esi, [ebp - 0x30]
call fcn.0040a99d
and dword [ebp - 4], 0
lea eax, [edi + 0x44]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x30]
call fcn.0040aa19
mov esi, eax
call fcn.0040b23e
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x30]
call fcn.0040aa19
mov esi, eax
call fcn.0040b23e
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
lea esi, [ebp - 0x34]
push esi
mov esi, dword [ebp - 0x40]
add ebx, esi
push ebx
push eax
push dword [ebp - 0x3c]
call dword [edx + 0x18]
sub eax, 0
je 0x40ad40
dec eax
je 0x40ad44
dec eax
dec eax
je 0x40ada4
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004021c6
mov al, bl
jmp 0x40adaa
mov byte [edi + 0x41], 0
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x30]
call fcn.0040aa19
mov esi, eax
call fcn.0040b23e
mov ebx, dword [ebp - 0x34]
sub ebx, eax
je 0x40ad82
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x30]
call fcn.0040aa19
mov esi, eax
call fcn.0040b23e
push dword [edi + 0x4c]
push ebx
push 1
push eax
call fcn.0041a408
add esp, 0x10
cmp ebx, eax
jne 0x40ad2e
cmp byte [edi + 0x41], 0
je 0x40ada4
test ebx, ebx
jne 0x40ace2
push ebx
push 8
pop ebx
lea edi, [ebp - 0x30]
call fcn.0040a9d5
mov edi, dword [ebp - 0x38]
jmp 0x40ace2
mov bl, 1
jmp 0x40ad30
mov al, 1
call fcn.0041dd23
ret

Function at 0x40ced5
Capabilities:
Create thread
Resume thread

Disassembly:
push 4
mov eax, 0x434a0a
call fcn.0041dc37
mov esi, ecx
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
jne 0x40cef3
xor al, al
jmp 0x40cf86
lea edi, [eax + 0x20]
cmp edi, ebx
mov dword [ebp - 0x10], edi
je 0x40cf04
mov eax, edi
call fcn.0040bfae
mov dword [ebp - 4], ebx
mov eax, dword [esi + 8]
cmp dword [eax + 4], ebx
jne 0x40cf1c
cmp edi, ebx
je 0x40ceec
mov eax, edi
call fcn.0040bfbc
jmp 0x40ceec
mov eax, esi
call fcn.0040cecb
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x40cc9e
push ebx
push ebx
call fcn.00419a3f
mov ecx, dword [esi + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
add esp, 0x18
cmp dword [eax + 0x10], ebx
jne 0x40cf59
call fcn.0040ced0
mov esi, dword [esi + 8]
call fcn.0040cd84
jmp 0x40cf0f
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
add eax, 0x24
call fcn.0040eb0d
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x40cf4a
cmp edi, ebx
je 0x40cf84
mov eax, edi
call fcn.0040bfbc
mov al, 1
call fcn.0041dd0f
ret
Function at 0x40d73f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40d76c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40d76c
xor al, al
jmp 0x40d787
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00429810
xor ecx, ecx
add eax, edi
adc edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
mov al, 1
pop edi
leave
ret 4

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

Disassembly:
push 0x4c
mov eax, 0x436aac
call fcn.0041dca0
push 0x43a9fc
mov esi, ecx
call fcn.004194fb
pop ecx
push eax
mov eax, esi
call fcn.0040da47
cmp eax, 0xffffffff
jne 0x40d9c8
cmp dword [esi + 0x18], 8
jb 0x40d9b2
mov esi, dword [esi + 4]
jmp 0x40d9b5
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x40d9e9
lea eax, [ebp - 0x58]
call fcn.0040f17e
and dword [ebp - 4], 0
push eax
push esi
call fcn.0040f3ae
pop ecx
mov bl, al
pop ecx
lea eax, [ebp - 0x58]
call fcn.0040f1ac
mov al, bl
call fcn.0041dd23
ret

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

Disassembly:
push 0x20
mov eax, 0x4357a5
call fcn.0041dca0
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.00401ab3
and dword [ebp - 4], 0
mov eax, esi
push 0x24
push eax
call fcn.0040d3f6
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x40db37
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40db59
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.004011b7
mov al, bl
call fcn.0041dd23
ret
xor bl, bl
jmp 0x40db45

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

Disassembly:
push 0x20
mov eax, 0x4357a5
call fcn.0041dca0
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.00401ab3
and dword [ebp - 4], 0
mov eax, esi
push 0x24
push eax
call fcn.0040d3f6
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x40db90
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40dbb6
test al, 0x10
jne 0x40dbb6
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.004011b7
mov al, bl
call fcn.0041dd23
ret
xor bl, bl
jmp 0x40dba2

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

Disassembly:
push 0x20
mov eax, 0x4357a5
call fcn.0041dca0
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.00401ab3
and dword [ebp - 4], 0
mov eax, esi
push 0x24
push eax
call fcn.0040d3f6
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x40dbed
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40dc13
test al, 0x10
je 0x40dc13
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.004011b7
mov al, bl
call fcn.0041dd23
ret
xor bl, bl
jmp 0x40dbff
Function at 0x40e409
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 0x100000
cmp dword [ebp + 0xc], eax
push ebx
push esi
jbe 0x40e41e
mov dword [ebp + 0xc], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x20], ebx
je 0x40e4e2
jmp 0x40e4da
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 4], ecx
jae 0x40e4e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea esi, [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040d73f
test al, al
jne 0x40e480
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push ebx
push dword [ebp - 0xc]
mov eax, edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0040d7ed
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xc], esp
call fcn.00401ab3
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, ebx
jne 0x40e4e2
mov ecx, dword [ebp + 8]
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
add eax, ecx
push eax
push dword [edi]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
add dword [ebp - 4], ecx
cmp eax, ebx
jne 0x40e452
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
pop esi
mov dword [ecx], edx
pop ebx
leave
ret 0xc

Function at 0x40e7fb
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
mov esi, ecx
mov edi, eax
call fcn.0040e867
cmp dword [edi + 0x14], 0
je 0x40e81c
cmp dword [edi + 0x18], 8
jb 0x40e817
mov edi, dword [edi + 4]
jmp 0x40e81e
add edi, 4
jmp 0x40e81e
xor edi, edi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 4], eax
je 0x40e848
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
and eax, 0xfffffffe
inc eax
inc eax
mov dword [esi], eax
jmp 0x40e84e
mov dword [esi], 1
pop edi
mov eax, esi
pop esi
jmp 0x40e857
cmp dword [eax + 4], 0
setne al
ret

Function at 0x40eb66
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4422c4]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x210], 0
push esi
push 0x20a
lea eax, [ebp - 0x20e]
push 0
push eax
mov esi, ecx
call fcn.00419f90
add esp, 0xc
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x40ebc8
and word [ebp - 6], 0
lea eax, [ebp - 0x210]
call fcn.004010d5
mov al, 1
jmp 0x40ebca
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00419556
leave
ret

Function at 0x40ebd7
Capabilities:
Set file attributes

Disassembly:
cmp dword [esp + 4], 0xffffffff
jne 0x40ebe1
xor al, al
ret
and dword [esp + 4], 0xffffb1af
cmp dword [eax + 0x18], 8
jb 0x40ebf4
mov eax, dword [eax + 4]
jmp 0x40ebf7
add eax, 4
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret
Function at 0x40ec08
Capabilities:
Move file

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40ec13
mov eax, dword [eax + 4]
jmp 0x40ec16
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x40ec21
mov ecx, dword [ecx + 4]
jmp 0x40ec24
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

Function at 0x40ece1
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
push edi
lea edi, [esi + 4]
jb 0x40ecf9
mov eax, dword [edi]
jmp 0x40ecfb
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40ed0d
mov al, 1
jmp 0x40eda9
cmp dword [esi + 0x18], 8
jb 0x40ed17
mov eax, dword [edi]
jmp 0x40ed19
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40eda7
cmp dword [esi + 0x18], 8
jb 0x40ed32
mov eax, dword [edi]
jmp 0x40ed34
mov eax, edi
push ebx
lea ecx, [ebp - 0x20]
call fcn.0040102d
push 0
lea eax, [ebp - 0x20]
call fcn.0040ebd7
pop ecx
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x20]
inc bl
call fcn.004011b7
test bl, bl
pop ebx
jne 0x40eda7
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
jb 0x40ed6e
mov eax, dword [edi]
jmp 0x40ed70
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40ed06
cmp dword [esi + 0x18], 8
jb 0x40ed85
mov eax, dword [edi]
jmp 0x40ed87
mov eax, edi
lea ecx, [ebp - 0x20]
call fcn.0040102d
push dword [ebp - 4]
lea eax, [ebp - 0x20]
call fcn.0040ebd7
pop ecx
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.004011b7
xor al, al
pop edi
pop esi
leave
ret

Function at 0x40edad
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x4422c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x4435fc], ebx
push esi
mov esi, ecx
je 0x40ede2
push 0xffffffffffffffff
push esi
mov eax, 0x4435e8
call fcn.00401296
mov al, 1
jmp 0x40ee7e
push 0x20a
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.00419f90
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x40ee7c
push edi
push 0x410
lea eax, [ebp - 0x622]
push ebx
push eax
mov word [ebp - 6], bx
mov word [ebp - 0x624], bx
call fcn.00419f90
add esp, 0xc
mov edi, 0x208
push edi
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, edi
pop edi
ja 0x40ee6c
cmp eax, ebx
je 0x40ee6c
mov word [ebp + eax*2 - 0x624], bx
lea eax, [ebp - 0x624]
jmp 0x40ee72
lea eax, [ebp - 0x210]
call fcn.004010d5
jmp 0x40eddb
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00419556
leave
ret
Function at 0x40ee8c
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4422c4]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
push ebx
push esi
push edi
xor esi, esi
push 0x20a
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7a]
push esi
push eax
mov ebx, ecx
mov edi, edx
mov word [ebp - 0x7c], si
call fcn.00419f90
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x40eeda
mov edi, dword [edi + 4]
jmp 0x40eedd
add edi, 4
cmp dword [ebx + 0x18], 8
jb 0x40eee8
mov ebx, dword [ebx + 4]
jmp 0x40eeeb
add ebx, 4
lea eax, [ebp - 0x7c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x40ef12
mov word [ebp + 0x18e], si
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
call fcn.004010d5
mov al, 1
jmp 0x40ef14
xor al, al
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419556
add ebp, 0x194
leave
ret

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

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40f00d
mov eax, dword [eax + 4]
jmp 0x40f010
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
Function at 0x40f97c
Capabilities:
Get session user name

Disassembly:
push ebp
sub esp, 0x244
lea ebp, [esp - 4]
mov eax, dword [0x4422c4]
xor eax, ebp
mov dword [ebp + 0x244], eax
push 0xc
mov eax, 0x435680
call fcn.0041dc37
mov esi, ecx
lea ebx, [esi + 0x84]
xor edi, edi
mov dword [ebx + 0x18], 7
mov dword [ebx + 0x14], edi
mov dword [ebp - 0x10], esi
mov word [ebx + 4], di
mov dword [ebp - 4], edi
call fcn.0040fb70
call fcn.0041079f
cmp byte [eax + 0x134], 0
je 0x40faea
call fcn.0041079f
lea esi, [ebp + 0x1c]
call fcn.00401ab3
mov byte [ebp - 4], 1
call fcn.0041079f
cmp dword [ebp + 0x30], edi
mov dword [ebp - 0x18], eax
jne 0x40f9ff
mov ecx, esi
call fcn.0040d97c
cmp dword [ebp + 0x30], edi
je 0x40fa21
mov edi, dword [ebp + 0x30]
dec edi
lea eax, [ebp + 0x1c]
call fcn.00401071
cmp word [eax], 0x5c
je 0x40fa1f
push 0x439a68
lea eax, [ebp + 0x1c]
push eax
call fcn.00401053
xor edi, edi
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], edi
mov word [ebp + 4], di
push 0x208
lea eax, [ebp + 0x3a]
push edi
mov byte [ebp - 4], 2
push eax
mov word [ebp + 0x38], di
call fcn.00419f90
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x38]
push eax
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp + 0x38]
lea esi, [ebp]
mov word [ebp + 0x23e], di
call fcn.004010d5
mov eax, esi
push eax
call fcn.0040c45c
pop ecx
push 0xffffffffffffffff
mov eax, esi
push edi
lea esi, [ebp + 0x1c]
call fcn.00401335
push 0x439a6c
mov eax, esi
push eax
call fcn.00401053
mov eax, dword [ebp - 0x18]
push 0xffffffffffffffff
push edi
add eax, 0x70
call fcn.00401335
push str..RCStat.data
mov eax, esi
push eax
call fcn.00401053
cmp byte [ebp + 0x250], 0
je 0x40fac4
push str..pending
mov eax, esi
push eax
call fcn.00401053
push 0xffffffffffffffff
push ebx
xor ebx, ebx
lea eax, [ebp + 0x1c]
call fcn.00401296
push ebx
push 1
lea esi, [ebp]
call fcn.004011b7
push ebx
push 1
lea esi, [ebp + 0x1c]
call fcn.004011b7
mov esi, dword [ebp - 0x10]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x244]
xor ecx, ebp
call fcn.00419556
add ebp, 0x248
leave
ret 4
Function at 0x41101a
Capabilities:
Get session user name

Disassembly:
push ebp
sub esp, 0x228
lea ebp, [esp - 4]
mov eax, dword [0x4422c4]
xor eax, ebp
mov dword [ebp + 0x228], eax
push 0x24
mov eax, 0x436313
call fcn.0041dc37
mov eax, dword [ebp + 0x234]
push 7
mov dword [ebp - 0x10], ecx
xor ecx, ecx
pop esi
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ecx
mov dword [ebp - 0x14], edi
mov word [edi + 4], cx
mov dword [ebp - 4], ecx
mov dword [edi + 0x34], esi
mov dword [edi + 0x30], ecx
mov word [edi + 0x20], cx
mov dword [edi + 0x50], esi
mov dword [edi + 0x4c], ecx
mov word [edi + 0x3c], cx
mov dword [edi + 0x74], esi
mov dword [edi + 0x70], ecx
mov word [edi + 0x60], cx
lea edx, [edi + 0x78]
mov dword [edx + 0x18], esi
mov dword [edx + 0x14], ecx
mov word [edx + 4], cx
lea edx, [edi + 0x94]
mov dword [edx + 0x18], esi
mov dword [edx + 0x14], ecx
mov word [edx + 4], cx
lea edx, [edi + 0xb0]
mov dword [edx + 0x18], esi
mov dword [edx + 0x14], ecx
mov word [edx + 4], cx
lea edx, [edi + 0xcc]
mov dword [edx + 0x18], esi
mov dword [edx + 0x14], ecx
mov word [edx + 4], cx
lea edx, [edi + 0xe8]
mov dword [edx + 0x18], esi
mov dword [edx + 0x14], ecx
mov word [edx + 4], cx
lea ebx, [edi + 0x104]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x14], ecx
mov word [ebx + 4], cx
lea ebx, [edi + 0x120]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x14], ecx
mov word [ebx + 4], cx
push 0xffffffffffffffff
push edx
xor ebx, ebx
mov byte [ebp - 4], 0xa
call fcn.00401296
push 0xffffffffffffffff
lea eax, [edi + 0x104]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00401296
call fcn.0041079f
push 0xffffffffffffffff
lea ecx, [edi + 0x120]
add eax, 0x70
push ecx
call fcn.00401296
push str..tmp
lea eax, [edi + 0x120]
push eax
call fcn.00401053
push ebx
call fcn.004197a4
push eax
call fcn.00419565
pop ecx
pop ecx
mov dword [edi + 0x54], ebx
mov dword [edi + 0x58], ebx
mov byte [edi + 0x13c], bl
call fcn.0041079f
cmp byte [eax + 0x134], bl
je 0x411209
lea ecx, [edi + 0xcc]
call fcn.0040d97c
cmp dword [edi + 0xe0], ebx
je 0x411209
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], bx
push 0x208
lea eax, [ebp + 0x1e]
push ebx
mov byte [ebp - 4], 0xb
push eax
mov word [ebp + 0x1c], bx
call fcn.00419f90
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x1c]
push eax
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp + 0x1c]
lea esi, [ebp]
mov word [ebp + 0x222], bx
call fcn.004010d5
mov eax, esi
push eax
call fcn.0040c45c
pop ecx
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0x120]
call fcn.00401335
mov eax, esi
push eax
lea esi, [edi + 0xcc]
push esi
lea ebx, [ebp - 0x30]
call fcn.0040d4dc
pop ecx
pop ecx
push 0xffffffffffffffff
push esi
xor ebx, ebx
mov byte [ebp - 4], 0xc
call fcn.00401296
push ebx
push 1
lea esi, [ebp - 0x30]
call fcn.004011b7
push ebx
push 1
lea esi, [ebp]
call fcn.004011b7
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x228]
xor ecx, ebp
call fcn.00419556
add ebp, 0x22c
leave
ret 4
Function at 0x417332
Capabilities:
Connect to http server

Disassembly:
push ebx
push edi
xor edi, edi
cmp dword [esi], edi
mov ebx, eax
mov dword [esi + 8], edi
jne 0x417343
xor al, al
jmp 0x417381
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebx + 0x18], 8
jb 0x417355
mov ebx, dword [ebx + 4]
jmp 0x417358
add ebx, 4
push edi
push edi
push 3
push edi
push edi
push 0x50
push ebx
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x417379
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 8], eax
xor eax, eax
cmp dword [esi + 4], edi
setne al
pop edi
pop ebx
ret
Function at 0x418894
Capabilities:
Encode data using base64

Disassembly:
push 0x1c
mov eax, 0x434c5a
call fcn.0041dc37
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], edi
call fcn.00409c19
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], ebx
je 0x4189f2
mov eax, dword [ebp + 8]
dec dword [ebp + 0xc]
mov al, byte [eax]
inc edi
inc dword [ebp + 8]
cmp edi, 3
mov byte [ebp + edi - 0x11], al
mov dword [ebp - 0x18], edi
jne 0x418941
mov al, byte [ebp - 0x10]
mov cl, byte [ebp - 0xf]
shr al, 2
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x10]
and al, 3
shl al, 4
shr cl, 4
add al, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0xf]
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0xe]
and al, 0x3f
and dword [ebp - 0x18], 0
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x18]
movzx esi, byte [ebp + eax - 0x14]
call fcn.0040e78d
mov al, byte [eax]
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 0x20], al
push dword [ebp - 0x20]
call fcn.0040a9d5
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 4
jl 0x418914
and dword [ebp - 0x18], 0
mov edi, dword [ebp - 0x18]
cmp dword [ebp + 0xc], 0
jne 0x4188c1
test edi, edi
je 0x4189f2
cmp edi, 3
jge 0x41896d
push 3
pop ecx
sub ecx, edi
push ecx
lea eax, [ebp + edi - 0x10]
push 0
push eax
call fcn.00419f90
add esp, 0xc
mov cl, byte [ebp - 0x10]
mov al, cl
shr al, 2
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0xf]
and cl, 3
mov dl, al
shl cl, 4
shr dl, 4
add cl, dl
mov byte [ebp - 0x13], cl
mov cl, byte [ebp - 0xe]
and dword [ebp - 0x10], 0
and al, 0xf
mov dl, cl
shl al, 2
shr dl, 6
add al, dl
mov byte [ebp - 0x12], al
lea eax, [edi + 1]
and cl, 0x3f
test eax, eax
mov byte [ebp - 0x11], cl
mov dword [ebp - 0x28], eax
jle 0x4189dc
mov eax, dword [ebp - 0x10]
movzx esi, byte [ebp + eax - 0x14]
call fcn.0040e78d
mov al, byte [eax]
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 0x20], al
push dword [ebp - 0x20]
call fcn.0040a9d5
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x28]
jl 0x4189b1
mov edi, dword [ebp - 0x18]
push 3
pop esi
cmp edi, esi
jge 0x4189f2
sub esi, edi
mov edi, dword [ebp - 0x1c]
push 0x3d
call fcn.0040a9d5
dec esi
jne 0x4189e5
mov eax, dword [ebp - 0x1c]
call fcn.0041dd0f
ret

Function at 0x419556
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4422c4]
jne 0x419560
repz ret
jmp fcn.00420f11
Function at 0x421976
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4422e0]
je 0x421991
inc edi
cmp edi, 0x17
jb 0x421982
cmp edi, 0x17
jae 0x421b11
push ebp
push 3
call fcn.0042934e
cmp eax, 1
pop ecx
je 0x421add
push 3
call fcn.0042934e
test eax, eax
pop ecx
jne 0x4219c5
cmp dword [0x442110], 1
je 0x421add
cmp ebx, 0xfc
je 0x421b10
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x444398
push ebp
call fcn.00420cfe
add esp, 0xc
test eax, eax
je 0x4219fb
push esi
push esi
push esi
push esi
push esi
call fcn.004195f9
add esp, 0x14
push 0x104
mov esi, 0x4443b1
push esi
push 0
mov byte [0x4444b5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x421a3f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00420cfe
add esp, 0xc
test eax, eax
je 0x421a3f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004195f9
add esp, 0x14
push esi
call fcn.00419890
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x421a84
push esi
call fcn.00419890
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4446ac
push 0x438514
sub ecx, eax
push ecx
push eax
call fcn.00427da6
add esp, 0x14
test eax, eax
je 0x421a84
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004195f9
add esp, 0x14
jmp 0x421a86
xor esi, esi
push 0x438510
push ebx
push ebp
call fcn.00427ce8
add esp, 0xc
test eax, eax
je 0x421aa6
push esi
push esi
push esi
push esi
push esi
call fcn.004195f9
add esp, 0x14
push dword [edi*8 + 0x4422e4]
push ebx
push ebp
call fcn.00427ce8
add esp, 0xc
test eax, eax
je 0x421ac8
push esi
push esi
push esi
push esi
push esi
call fcn.004195f9
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00429191
add esp, 0xc
jmp 0x421b10
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x421b10
cmp ebp, 0xffffffff
je 0x421b10
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4422e4]
push dword [esi]
call fcn.00419890
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret