joyce8/EMBER2024-capa huggingface dataset:
Function at 0x537f3e
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x546a7d
call fcn.00531350
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov ebx, 0x8007000e
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], esi
je 0x538046
push 1
call fcn.0053227c
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x53803c
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005313e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x537fcd
push dword [ebp - 0x18]
inc edi
push edi
push eax
call fcn.005321cb
mov ebx, eax
test ebx, ebx
jl 0x538024
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call fcn.00532436
mov ebx, eax
test ebx, ebx
jl 0x538024
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x538024
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x537ff6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x53f33c
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x538024
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x44], eax
cmp eax, 0xffffffff
je 0x53f353
cmp dword [ebp - 0x14], 0
je 0x538033
push dword [ebp - 0x14]
call fcn.005313c0
pop ecx
push dword [ebp - 0x18]
call fcn.005313c0
pop ecx
mov eax, ebx
call fcn.00531390
ret 4
mov ebx, 0x80070057
jmp 0x53803c

Function at 0x5385f1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x54b004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
test eax, eax
je 0x538684
cmp eax, 0xffffffff
je 0x538684
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x538684
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
and dword [ebp - 0xc], 0
push ebx
call esi
push ebx
mov dword [ebp - 0x10], eax
call esi
lea esi, [eax + eax + 2]
mov eax, esi
call fcn.005385b5
mov eax, esp
push esi
push ebx
push eax
call fcn.00538692
mov esi, dword [ebp - 0x10]
mov edi, dword [edi + 0x44]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x53f2da
cmp esi, dword [ebp - 0xc]
jne 0x53f2f6
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005320d4
leave
ret 4
mov dword [ebp - 8], 0x80070057
jmp 0x53866d
Function at 0x5388ef
Capabilities:
Get geographical location

Disassembly:
push 0x210
mov eax, 0x546be9
call fcn.005320e6
xor eax, eax
push 0x1fe
mov word [ebp - 0x214], ax
xor ebx, ebx
lea eax, [ebp - 0x212]
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push 0x100
lea eax, [ebp - 0x214]
push eax
push 0x1001
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x214]
and esi, 0x3ff
push eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 7
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005313e0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x538999
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x21c]
push 0x5389a4
push esi
push edi
call fcn.00531451
add esp, 0x14
mov eax, edi
call fcn.00532126
ret 4
Function at 0x540d7d
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [ecx + eax + 0x18]
test esi, esi
jbe 0x540dba
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x540db2
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x540dbc
inc edx
add eax, 0x28
cmp edx, esi
jb 0x540da2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4011a0
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push 0x40
push eax
push 0x404804
call fcn.004014e0
push 0x40
push 0x403108
push 0x404804
push 0x404804
call fcn.00401400
mov al, byte [esp + 0x3c]
add esp, 0x1c
test al, al
jne 0x40122b
mov ebx, dword [esp + 0x1c]
mov ebp, 0x10
mov eax, dword [0x404014]
mov ecx, 8
mov esi, eax
mov edi, 0x4047e4
push ebx
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00401340
mov ecx, dword [0x404010]
mov edx, dword [0x404014]
push 0x20
push ecx
push edx
call fcn.00401450
mov edi, dword [0x404010]
add esp, 0x14
mov ecx, 8
mov esi, 0x4047e4
add ebx, 0x30
dec ebp
rep movsd dword es:[edi], dword [esi]
jne 0x4011df
jmp 0x401284
mov eax, dword [esp + 0x1c]
mov ebp, 0x10
lea ebx, [eax + 0x2d0]
mov eax, dword [0x404010]
mov ecx, 8
mov esi, eax
mov edi, 0x4047e4
push ebx
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00401340
mov ecx, dword [0x404014]
mov edx, dword [0x404010]
push 0x20
push ecx
push edx
call fcn.00401450
mov edi, dword [0x404014]
add esp, 0x14
mov ecx, 8
mov esi, 0x4047e4
sub ebx, 0x30
dec ebp
rep movsd dword es:[edi], dword [esi]
jne 0x40123a
push 0x40
push 0x403148
push 0x404804
push 0x404804
call fcn.00401400
mov eax, dword [esp + 0x24]
push 0x40
push 0x404804
push eax
call fcn.00401520
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4012c0
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0x40
push eax
push 0x4047a4
call fcn.004014e0
push 0x38
push str.91__
push 0x4047a4
push 0x4047a4
call fcn.00401400
mov edi, dword [esp + 0x28]
add esp, 0x1c
xor esi, esi
movsx ecx, byte [esi + 0x403240]
mov edx, dword [0x404018]
push ecx
push 0x1c
push edx
call fcn.00401480
movsx eax, byte [esi + 0x403240]
mov ecx, dword [0x40401c]
push eax
push 0x1c
push ecx
call fcn.00401480
push 0x30
push 0x403210
push 0x4047a4
push edi
call fcn.00401400
add esp, 0x28
inc esi
add edi, 0x30
cmp esi, 0x10
jl 0x4012f2
pop edi
pop esi
ret

Function at 0x401340
Capabilities:
Encrypt data using des

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x30
push 0x403188
push esi
push 0x404774
call fcn.00401400
mov eax, dword [esp + 0x1c]
push 0x30
push eax
push 0x404774
call fcn.00401450
push 0x404774
push esi
call fcn.00401390
push 0x20
push 0x4031b8
push esi
push esi
call fcn.00401400
add esp, 0x34
pop esi
ret

Function at 0x401450
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x401472
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
sub ecx, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x401464
pop ebx
pop esi
ret
Function at 0x401a30
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x208
push ebx
push 0x4046f8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401b95
push ebp
push esi
push edi
push 0
push 0xd20
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push 0xbb8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
push ebx
mov ecx, 0x2ee
xor eax, eax
mov edi, esi
push 0xbb8
push 1
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll_fread]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov edi, str.K_zM
or ecx, 0xffffffff
xor eax, eax
add esp, 0x24
xor ebx, ebx
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401ac7
movsx ecx, byte [edx + str.K_zM]
add ebx, ecx
mov edi, str.K_zM
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x401aaa
xor eax, eax
mov cl, byte [eax + esi]
sub cl, bl
mov byte [eax + esi], cl
inc eax
cmp eax, 0xbb8
jb 0x401ac9
push str.ISEND
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
mov byte [eax], 0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
add esp, 8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401b89
mov al, byte [ebx + esi]
cmp al, 0xd
je 0x401b20
mov byte [esp + ebp + 0x10], al
inc ebp
jmp 0x401b78
lea edx, [esp + 0x114]
push 0x4046ec
xor ebp, ebp
push edx
inc ebx
call fcn.00401890
lea eax, [esp + 0x11c]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00401570
lea edx, [esp + 0x124]
push edx
call fcn.00401900
add esp, 0x14
test eax, eax
je 0x401b6b
lea eax, [esp + 0x114]
push eax
call fcn.004019c0
add esp, 4
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
inc ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebx, ecx
jb 0x401b12
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret

Function at 0x401c30
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403468
push 0x402a20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401cd0
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
jge 0x401cf4
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x401ced
pop esi
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop esi
ret
Function at 0x401d00
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
push esi
lea eax, [ebp - 0x1a0]
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov cx, word [0x404540]
mov esi, eax
push ecx
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0x40443c
mov word [ebp - 0xe], ax
call fcn.00401cd0
add esp, 4
mov dword [ebp - 0xc], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, dword [sym.imp.WS2_32.dll_connect]
lea edx, [ebp - 0x10]
push 0x10
push edx
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, 0xffffffff
jne 0x401d8c
push 0x1f4
call edi
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call ebx
cmp eax, 0xffffffff
je 0x401d77
mov ebx, dword [sym.imp.WS2_32.dll_send]
push 0
push 6
push str.123456
push esi
call ebx
push 0xc350
call edi
jmp 0x401d92

Function at 0x401db0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.MyTemp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0xf], 0
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0xc]
and ecx, 3
push 0x404704
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x401e43
mov ecx, dword [esp + 0x114]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll_fputs]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
pop edi
pop esi
pop ebp
add esp, 0x104
ret

Function at 0x402050
Capabilities:
Get common file path

Disassembly:
push esi
push edi
push 0x104
push 0x404f58
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.Debugs.inf
or ecx, 0xffffffff
xor eax, eax
push 0x4046e8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x404f58
mov esi, edi
mov edx, ecx
mov edi, 0x404f58
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
call esi
add esp, 8
test eax, eax
jne 0x4020ca
push 0x404704
push 0x404f58
call esi
add esp, 8
test eax, eax
jne 0x4020c5
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
xor eax, eax
pop esi
ret
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
ret
Function at 0x4020e0
Capabilities:
Contain obfuscated stackstrings
Enumerate processes

Disassembly:
sub esp, 0x24c
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x138]
mov dword [esp + 0x134], 0
push eax
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x28], esi
je 0x40229e
lea eax, [esp + 0x134]
mov dword [esp + 0x134], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402297
mov ebp, dword [sym.imp.MSVCRT.dll__stricmp]
mov bl, 0x65
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x13c], eax
jne 0x402270
mov ecx, dword [esp + 0x14c]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x40229e
lea edx, [esp + 0x30]
push 0x104
push edx
push 0
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x40229e
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x18], bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x18]
mov esi, ecx
or ecx, 0xffffffff
mov byte [esp + 0x19], 0x78
mov byte [esp + 0x1a], 0x70
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x1c], 0x6f
mov byte [esp + 0x1d], 0x72
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], 0x72
mov byte [esp + 0x20], 0x2e
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], 0x78
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, esi
sub eax, ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x10], 0x63
mov byte [esp + 0x11], 0x6d
lea eax, [esp + eax + 0x30]
mov byte [esp + 0x12], 0x64
push eax
push ecx
mov byte [esp + 0x1b], 0x2e
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x78
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], 0
call ebp
add esp, 8
test eax, eax
je 0x402287
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub esi, ecx
lea esi, [esp + esi + 0x30]
push esi
push edx
call ebp
add esp, 8
test eax, eax
je 0x402287
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x134]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x402297
jmp 0x40215a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24c
ret
Function at 0x4022b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.Mation.inf
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x104]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x404704
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x104]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov esi, eax
nop
nop
nop
test esi, esi
je 0x40234e
nop
nop
nop
push esi
push str.___r_____
call dword [sym.imp.MSVCRT.dll_fputs]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x137]
mov byte [ebp - 0x138], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x138]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.Mation.inf
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x138]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4046e8
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x138]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov esi, eax
nop
nop
nop
nop
nop
nop
test esi, esi
je 0x40242d
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0x33]
mov byte [ebp - 0x34], 0
rep stosd dword es:[edi], eax
push esi
lea ecx, [ebp - 0x34]
push 0x31
push ecx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fgets]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
lea edx, [ebp - 0x34]
push str.___r_____
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 0x18
test eax, eax
jne 0x40242d
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402920
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
xor eax, eax
mov ecx, 0x4a
lea edi, [esp + 0x10]
push eax
rep stosd dword es:[edi], eax
push 2
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40295f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402999
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x34]
push str.explorer.exe
push ecx
call edi
test eax, eax
je 0x402991
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
jmp 0x402974
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
cmp ebx, ebp
pop esi
pop ebp
pop ebx
setne al
add esp, 0x128
ret
Function at 0x4071f7
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], edi
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
call fcn.0040713b
mov ebx, dword [ebp - 0x14]
mov eax, dword [esi + 8]
add ebx, 0x23f
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
push 0x20
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], eax
pop edi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov esi, dword [ebp - 8]
mov eax, esi
mov ecx, dword [0x70fd14]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x407282
push 0x401130
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0x70fd14]
mov edx, dword [ebp - 0x1c]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x70fd58]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0x70fd58], eax
mov eax, dword [0x70fd60]
cmove eax, dword [ebp - 0x24]
mov dword [0x70fd60], eax
lea eax, [ebx + esi]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x70fd5c], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x1c]
sub edx, eax
mov dword [ebp - 0x10], eax
mov eax, edx
mov dword [ebp - 0x1c], edx
shl eax, 4
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add ebx, 0x61c88647
mov dword [ebp - 0x14], ebx
dec edi
jne 0x407247
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407361
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
shr esi, 3
push edi
mov edi, ecx
test esi, esi
je 0x40739f
cmp dword [0x70fd14], 0x959
jne 0x40738f
push 0
call dword [sym.imp.KERNEL32.dll_AttachConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.004071f7
add edi, 8
dec esi
jne 0x407371
pop edi
pop esi
pop ebp
ret 4