joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405bc7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43c538
push esi
call fcn.00406141
push esi
call fcn.00405b72
mov edi, eax
test edi, edi
jne 0x405be8
xor eax, eax
jmp 0x405c3a
push edi
call fcn.004063ab
test byte [0x44773c], 0x80
je 0x405c01
mov al, byte [edi]
test al, al
je 0x405be4
cmp al, 0x5c
je 0x405be4
sub edi, esi
jmp 0x405c19
call fcn.00406444
test eax, eax
je 0x405c13
test byte [eax], 0x10
je 0x405be4
push esi
call fcn.00405b20
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405c05
call fcn.00405ad9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405cb5
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405cd4
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405cda
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405d09
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a3cc]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405d4e
test edi, edi
jne 0x405d14
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405d48
Function at 0x405db0
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x43eac0], 0x4c554e
mov edi, 0x400
mov ebp, 0x43eac0
je 0x405dfc
push 1
push 0
push esi
call fcn.00405cda
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405f1b
cmp eax, edi
jg 0x405f1b
mov esi, 0x43eec0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405f1b
cmp eax, edi
jg 0x405f1b
push esi
push ebp
push str._s_s_r_n
push 0x43e6c0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x447734]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406163
push 4
push 0xc0000000
push esi
call fcn.00405cda
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405f1b
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405f14
push edi
push esi
push ebp
call fcn.00405d52
test eax, eax
je 0x405f14
push str._Rename__r_n
push esi
call fcn.00405c3f
test eax, eax
jne 0x405eb2
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405ee7
add eax, 0xa
push 0x40a3d0
push eax
call fcn.00405c3f
mov ebp, eax
test ebp, ebp
je 0x405ee3
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405ed4
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405ece
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405ee9
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x43e6c0
push eax
call fcn.00405c95
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405d81
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405f20
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405f43
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405db0
pop ecx
pop ecx
inc dword [0x4477d0]
ret 8

Function at 0x406028
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x2000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405fc7
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406097
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x1fff], 0
test edi, edi
pop edi
jne 0x406097
cmp dword [ebp + 0xc], 1
je 0x40609a
cmp dword [ebp + 0xc], 2
je 0x40609a
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x40646b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40648f
xor eax, eax
test eax, eax
je 0x4064a1
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4064a1
xor ecx, ecx
jmp 0x4064a4
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x43f2c4], 0
push esi
jne 0x4065c7
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4065a1
mov dword [ecx*4 + 0x43f2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x40659c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065f8
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43f2c0]
xor eax, esi
inc ecx
dec edx
jne 0x4065da
pop edi
not eax
pop esi
ret 0xc
Function at 0x1000ba2f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1000ba3e
pop dword [ebp - 0x40]
mov eax, 0xd85a0b46
sub eax, 0xc8595108
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x773e01b0
add dword [ebp - 0x50], 0xd714439b
mov dword [ebp - 0x4c], 0x35e48802
add dword [ebp - 0x4c], 0xfc4ec443
mov dword [ebp - 0x48], 0xe559bab0
add dword [ebp - 0x48], 0x66f2897e
mov dword [ebp - 0x44], 0xb5402112
add dword [ebp - 0x44], 0x4abfdeee
lea eax, [ebp - 0x50]
push eax
mov eax, 0xb4315e30
sub eax, 0xa42f0dac
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x3f5552aa
sub dword [ebp - 0x50], 0xcae2e954
mov dword [ebp - 0x4c], 0xad0e28ca
add dword [ebp - 0x4c], 0x945e38ab
mov dword [ebp - 0x48], 0x80ea1afc
add dword [ebp - 0x48], 0xe2855170
mov dword [ebp - 0x44], 0xbd3edfac
add dword [ebp - 0x44], 0x42c12054
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xfc254ac3
sub eax, 0xec22fa47
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3a6e5
push 0
call eax
mov ecx, 0x4c531b46
sub ecx, 0x4c52d824
xor edx, edx
add edx, eax
mov edi, 0x8cb7fb5d
add edi, 0x834b10a3
add edi, dword [ebp - 0x40]
mov esi, 0x219e55da
sub esi, 0x1c037930
xor dword [ebp - 0x2c], 0xf3282215
mov ebx, dword [edi]
xor dword [ebp - 0x18], 0x99a336a4
sub ebx, esi
sub dword [ebp - 0x3c], 0xbaa9dd66
mov dword [edx], ebx
add dword [ebp - 0x1c], 0xe32db09e
add edx, 4
add edi, 0xa21a7689
add edi, 0x5de5897b
loop 0x1000bb62
add eax, 0xc915b8e9
sub eax, 0xc914b98e
mov ebx, eax
add eax, 0x9348f5d6
sub eax, 0x9348f5d1
mov ecx, 0x446a1482
sub ecx, 0x346a1482
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x1001c940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001c9db
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001c992
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001c992
cmp esi, ebx
jge 0x1001c992
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001c9d5
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001c9d5
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e4]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e4]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001c9ed
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc
Function at 0x1001cc10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
mov eax, dword [ebp + 8]
je 0x1001cc38
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001cc52
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.1000ba2f
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10022930
leave
ret 4

Function at 0x1001ce20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001ce56
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001ceb5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.1000ba2f
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1000ba2f
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.1000ba2f
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022930
leave
ret 0x10

Function at 0x1001ced0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001cefc
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001cf2d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001cf2b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1000ba2f
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001cf2d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10022930
leave
ret 8
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40a60b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40a61a
pop dword [ebp - 0x28]
mov eax, 0xd7931ac7
sub eax, 0xd75274ad
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x13c3135b
add dword [ebp - 0x38], 0x3a8f31f0
mov dword [ebp - 0x34], 0xf9ecb6bc
sub dword [ebp - 0x34], 0xc7b96a77
mov dword [ebp - 0x30], 0x77b9e9c7
add dword [ebp - 0x30], 0xd4925a67
mov dword [ebp - 0x2c], 0xfdcc1a55
sub dword [ebp - 0x2c], 0xfdcc1a55
lea eax, [ebp - 0x38]
push eax
mov eax, 0xd4c544c6
sub eax, 0xd4847472
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x5aaac5d5
add dword [ebp - 0x38], 0x19c7a381
mov dword [ebp - 0x34], 0xf8cf2395
add dword [ebp - 0x34], 0x489d3de0
mov dword [ebp - 0x30], 0xa819e081
add dword [ebp - 0x30], 0xbb558beb
mov dword [ebp - 0x2c], 0x4f118f86
sub dword [ebp - 0x2c], 0x4f118f86
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x9503a0d7
sub eax, 0x94c2d08b
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x386e8
push 0
call eax
mov ecx, 0x423f
mov edx, eax
mov edi, 0x41b000
add edi, dword [ebp - 0x28]
mov esi, 0xe20b4aa2
sub esi, 0xe447cc03
sub dword [ebp - 0xc], 0xe375ff3c
mov ebx, dword [edi]
xor dword [ebp - 4], eax
add ebx, esi
add dword [ebp - 0x1c], 0xe889d0bb
mov dword [edx], ebx
add edx, 0xa14fe50d
sub edx, 0xa14fe509
add edi, 0x635579a4
add edi, 0x9caa8660
loop 0x40a730
add eax, 0xfbcf
mov ebx, eax
add eax, 0x8dba3f7a
add eax, 0x7245c08b
mov ecx, 0xbb951a9c
sub ecx, 0xbb551a9c
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x4290bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x4290cb
pop dword [ebp - 0x4c]
mov eax, 0x8a163ef5
sub eax, 0x89d3ae2a
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x54e0e
push 0
mov eax, 0x3bbe12f2
add eax, 0xc4869fbe
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x79bff765
sub ecx, 0x79bf9c4a
xor edx, edx
add edx, eax
mov ebx, 0x596b3f23
add ebx, 0xa6dd4edd
add ebx, dword [ebp - 0x4c]
mov esi, 0x436172a6
xor dword [ebp - 4], 0x570af4da
mov edi, dword [ebx]
sub dword [ebp - 4], 0x4433b071
add edi, esi
xor dword [ebp - 0x24], edi
mov dword [edx], edi
sub dword [ebp - 0x24], 0x71ce4989
add edx, 0x53f7d569
sub edx, 0x53f7d565
add ebx, 0xa67487f3
add ebx, 0x598b7811
loop 0x429126
add eax, 0x6b704188
add eax, 0x94911db7
xor ebx, ebx
add ebx, eax
add eax, 0x75e75be8
sub eax, 0x75e75be3
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x401037
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [0x468618]
mov dword [ebp - 0x28], eax
mov eax, dword [0x46861c]
xor ebx, ebx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
call fcn.00401030
mov eax, dword [0x468620]
add dword [ebp - 0x14], 0x23f
mov dword [ebp - 0x30], eax
mov eax, dword [0x468624]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x1a591c4], 0xc
mov dword [ebp - 4], eax
jne 0x4010b9
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x43c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov eax, dword [0x1a591c4]
cmp eax, 0xfa9
jne 0x4010d5
mov dword [0x1a591c0], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010ed
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x1a59114], ebx
mov eax, dword [ebp - 0x14]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1a591bc], 0xf4ea3dee
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 8], eax
sub esi, dword [ebp - 8]
cmp dword [0x1a591c4], 0xc
mov dword [ebp - 4], eax
jne 0x40114f
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x1c], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x14], 0x61c88647
sub edi, eax
dec dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
jne 0x401089
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
leave
ret 4
Function at 0x404b17
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46733c]
jne 0x404b21
repz ret
jmp fcn.0040acf6

Function at 0x40bd24
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404c1c
and dword [ebp - 4], 0
cmp dword [0x4719f4], 0
mov ebx, eax
jne 0x40bdd5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40be86
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40be86
push eax
call fcn.00404baa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4719f4], eax
call esi
push eax
call fcn.00404baa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4719f8], eax
call esi
push eax
call fcn.00404baa
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4719fc], eax
call esi
push eax
call fcn.00404baa
pop ecx
mov dword [0x471a04], eax
test eax, eax
je 0x40bdd5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404baa
pop ecx
mov dword [0x471a00], eax
mov eax, dword [0x471a00]
cmp eax, ebx
je 0x40be2d
cmp dword [0x471a04], ebx
je 0x40be2d
push eax
call fcn.00404c25
push dword [0x471a04]
mov esi, eax
call fcn.00404c25
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40be2d
test edi, edi
je 0x40be2d
call esi
test eax, eax
je 0x40be24
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40be24
test byte [ebp - 0xc], 1
jne 0x40be2d
or dword [ebp + 0x10], 0x200000
jmp 0x40be66
mov eax, dword [0x4719f8]
cmp eax, ebx
je 0x40be66
push eax
call fcn.00404c25
pop ecx
test eax, eax
je 0x40be66
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40be66
mov eax, dword [0x4719fc]
cmp eax, ebx
je 0x40be66
push eax
call fcn.00404c25
pop ecx
test eax, eax
je 0x40be66
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4719f4]
call fcn.00404c25
pop ecx
test eax, eax
je 0x40be86
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40be88
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403567
Capabilities:
Set socket configuration

Disassembly:
push 4
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0xffff
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x404371
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x40439a
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00471386
cmp dword [ebp + 8], edi
je 0x4043ab
push dword [esi + 0xc]
push 0xffffffffffffffff
push 0xd
call fcn.00471340
pop ebp
ret 4
Function at 0x40740a
Capabilities:
Create process on windows

Disassembly:
push 0x18
mov eax, 0x4a10a0
call fcn.0048e1d2
call fcn.0046e7df
push eax
lea ecx, [ebp - 0x10]
call fcn.00401764
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0046e7df
push eax
lea ecx, [ebp - 0x14]
call fcn.00401764
push edi
push str..htm
mov esi, SysReAllocStringLen
lea eax, [ebp - 0x18]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.0045daa0
add esp, 0x10
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004018c1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040174a
push str._shellopencommand
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040145d
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004018c1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040174a
mov ebx, dword [ebp - 0x14]
push edi
push ebx
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0045daa0
add esp, 0x10
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004018c1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040174a
lea ecx, [ebp - 0x10]
call fcn.00461052
test eax, eax
je 0x4074ed
lea ecx, [ebx - 0x10]
call fcn.0040174a
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
jmp 0x4075da
push 0x4b6068
lea esi, [ebp - 0x10]
call fcn.0040326a
mov esi, eax
cmp esi, 0xffffffff
je 0x40757a
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.004013ad
mov edi, eax
push esi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.004013d0
push dword [ebp + 8]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004032e0
push edi
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 7
call fcn.004032e0
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.004018c1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040174a
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040174a
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040174a
mov ecx, dword [ebp - 0x24]
jmp 0x4075bb
push 0x4b606c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040145d
push dword [ebp + 8]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004032e0
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.004018c1
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0040174a
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040174a
mov esi, dword [ebp - 0x10]
push 1
push esi
call dword [sym.imp.KERNEL32.DLL_WinExec]
lea ecx, [ebx - 0x10]
call fcn.0040174a
lea ecx, [esi - 0x10]
call fcn.0040174a
call fcn.0048e2aa
ret