joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102773f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1033348]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x41c]
push eax
xor esi, esi
push 0x104
mov dword [ebp - 0x420], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10277a2
call ebx
push eax
call fcn.01025e08
mov esi, eax
test esi, esi
jl 0x102784a
lea eax, [ebp - 0x210]
push eax
push 0
push edi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x10277c7
call ebx
push eax
call fcn.01025e08
mov esi, eax
xor edi, edi
cmp esi, edi
jl 0x102784a
mov ecx, dword [ebp - 0x428]
lea eax, [ebp - 0x210]
push eax
call fcn.0100c71d
push edi
push 0x2100
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x1027809
call fcn.0100995c
mov esi, eax
jmp 0x1027811
mov dword [ebp - 0x420], eax
xor esi, esi
cmp esi, edi
jl 0x1027837
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x420]
push dword [ebp - 0x424]
call fcn.01027256
lea ecx, [ebp - 0x420]
mov esi, eax
call fcn.0102723a
cmp dword [ebp - 0x420], edi
je 0x102784a
lea ecx, [ebp - 0x420]
call fcn.0102723a
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01008aac
leave
ret 0x10
Function at 0x1027862
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x1033348]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
xor ebx, ebx
push 1
push ebx
mov dword [ebp - 0x84], eax
push ebx
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x74], 0x80004005
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
call dword [sym.imp.CRYPTSP.dll_CryptAcquireContextW]
test eax, eax
je 0x10279ad
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x7c]
call dword [sym.imp.CRYPTSP.dll_CryptCreateHash]
test eax, eax
je 0x10279a3
push edi
mov byte [ebp - 0x18], bl
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x80], ebx
mov ecx, dword [eax - 0xc]
push ebx
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x78]
call dword [sym.imp.CRYPTSP.dll_CryptHashData]
test eax, eax
je 0x1027999
mov edi, dword [sym.imp.CRYPTSP.dll_CryptGetHashParam]
push 4
pop eax
push ebx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x80], eax
call edi
test eax, eax
je 0x1027999
push 0x14
pop esi
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x18]
push eax
push 2
push dword [ebp - 0x78]
mov dword [ebp - 0x70], esi
call edi
test eax, eax
je 0x1027999
cmp dword [ebp - 0x70], esi
jbe 0x102793d
mov dword [ebp - 0x70], esi
xor eax, eax
push 0x50
mov word [ebp - 0x6c], ax
lea eax, [ebp - 0x6a]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor edi, edi
cmp dword [ebp - 0x70], ebx
jbe 0x1027987
mov dword [ebp - 0x74], ebx
lea esi, [ebp - 0x6c]
movzx eax, byte [ebp + edi - 0x18]
push eax
push 0x10059c8
push 0x29
pop eax
sub eax, dword [ebp - 0x74]
push eax
push esi
call sub.msvcrt.dll_swprintf_s
add dword [ebp - 0x74], 2
add esp, 0x10
inc edi
add esi, 4
cmp edi, dword [ebp - 0x70]
jb 0x102795f
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0x6c]
push eax
call fcn.0100c71d
mov dword [ebp - 0x74], ebx
push dword [ebp - 0x78]
call dword [sym.imp.CRYPTSP.dll_CryptDestroyHash]
pop edi
push ebx
push dword [ebp - 0x7c]
call dword [sym.imp.CRYPTSP.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x74]
pop esi
xor ecx, ebp
pop ebx
call fcn.01008aac
leave
ret 8
Function at 0x1027bb3
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
push esi
lea eax, [ebp + 0xc]
push eax
push esi
push 0x20106
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x1027c08
push edi
push 4
push dword [ebp + 0x14]
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
push dword [ebp + 0xc]
mov edi, eax
cmp edi, esi
je 0x1027c01
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, edi
jmp 0x1027c07
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x1027c12
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], 4
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1027c7c
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x1027c70
cmp dword [ebp + 0xc], 4
jne 0x1027c70
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x1027c7b
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret 0x10

Function at 0x1027c85
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 4], 4
test esi, esi
jne 0x1027c9f
push 6
pop eax
jmp 0x1027cfe
push edi
mov edi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [esi]
call edi
test eax, eax
jne 0x1027cc4
cmp dword [ebp + 0x18], 4
je 0x1027cfd
push dword [esi]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
push esi
push 0x20119
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x1027ce9
and dword [esi], 0
jmp 0x1027cfd
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [esi]
call edi
pop edi
pop esi
leave
ret 0x14
Function at 0x10298df
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1033348]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01029820
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1029952
cmp dword [ebp - 0x94], 5
jb 0x1029973
jmp 0x102996f
cmp dword [ebp - 0x88], 1
jne 0x1029973
cmp dword [ebp - 0x94], 4
ja 0x102996f
jne 0x1029973
cmp dword [ebp - 0x90], 0
jbe 0x1029973
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x10061a8
call fcn.01007bb9
test eax, eax
jge 0x1029994
mov byte [0x1033fa8], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01008aac
leave
ret
Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x185f1163
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x431024
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x541c7da4
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x100b1d50
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100b1f34
pushal
mov esi, section.UPX1
lea edi, [esi - 0x80000]
push edi
jmp 0x100b1d7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100b1d81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100b1d70
mov eax, 1
add ebx, ebx
jne 0x100b1d93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100b1da4
jne 0x100b1dc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100b1dc3
dec eax
add ebx, ebx
jne 0x100b1db0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x100b1d88
add ebx, ebx
jne 0x100b1dbf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x100b1e15
xor ecx, ecx
sub eax, 3
jb 0x100b1ddb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100b1e4a
sar eax, 1
mov ebp, eax
jmp 0x100b1de6
add ebx, ebx
jne 0x100b1de6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100b1db4
inc ecx
add ebx, ebx
jne 0x100b1df4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100b1db4
add ebx, ebx
jne 0x100b1e01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100b1df6
jne 0x100b1e12
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100b1df6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100b1e34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100b1e26
jmp 0x100b1d76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100b1e34
add edi, ecx
jmp 0x100b1d76
pop esi
mov edi, esi
mov ecx, 0x22f3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100b1e52
cmp byte [edi], 0x13
jne 0x100b1e52
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x100b1e57
lea edi, [esi + 0xac000]
mov eax, dword [edi]
or eax, eax
je 0x100b1ec6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb1538]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb159c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100b1e84
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb15a0]
or eax, eax
je 0x100b1ec0
mov dword [ebx], eax
add ebx, 4
jmp 0x100b1ea1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x100b1ef7
cmp al, 0xef
ja 0x100b1eea
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x100b1ecc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100b1ed9
mov ebp, dword [esi + 0xb15a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x100b1f2b
sub esp, 0xffffff80
jmp 0x1003af98
Function at 0x1001238
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
push dword [ebp + 8]
push 7
call fcn.010011f5
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1001288
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xea
je 0x1001288
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call ebx
jmp 0x10012d5
mov eax, dword [ebp - 4]
add eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, esi
push esi
jne 0x10012ad
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
push 8
jmp 0x10012d6
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10012f0
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea eax, [ebp - 0x20c]
push eax
call fcn.01001170
jmp 0x1001330
cmp word [ebx], si
jne 0x1001306
push 9
call fcn.010011f5
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1001330
mov edi, ebx
push edi
push 6
call fcn.010011f5
pop ecx
pop ecx
mov ax, word [edi]
inc edi
inc edi
test ax, ax
jne 0x1001312
cmp word [edi], si
jne 0x1001308
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 8
call fcn.010011f5
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1001337
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x100110c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1001363
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10013a2
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x208
push 0
push 0
push 0x10010ec
push dword [ebp - 4]
call dword [entry0]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x100139e
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10013a1
xor eax, eax
inc eax
pop edi
leave
ret 4

Function at 0x10013a6
Capabilities:
Enumerate disk volumes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10013f8
xor edi, edi
push edi
push esi
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea eax, [ebp - 0x410]
push eax
call fcn.01001170
jmp 0x100141e
lea eax, [ebp - 0x208]
push eax
call fcn.01001238
push esi
lea eax, [ebp - 0x208]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x10013f8
push edi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
pop edi
pop esi
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7e584965
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x61665b1d
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x485c1f
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
push 0
push 0
push getpeername
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_FoldersCookies
push 0x80000301
push 0
push 3
push 3
mov ebx, 0x58e190
call fcn.00589842
add esp, 0x28
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x485c86
push ebx
call fcn.00589836
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
push 0x653dcb
mov ebx, dword [ebp + 0x10]
push dword [ebx]
mov ecx, 2
call fcn.00401360
add esp, 8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push eax
push 1
push 0
push dword [ebp - 0xc]
mov eax, 0
call fcn.00589830
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x485cd4
push ebx
call fcn.00589836
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x485ce8
push ebx
call fcn.00589836
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x64a594
push dword [ebp - 4]
call fcn.00401491
add esp, 8
cmp eax, 0
je 0x485e33
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0x80000301
push 0
push 1
push getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x485d32
mov eax, 0x64a594
push eax
push getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x485d46
mov eax, 0x64a594
push eax
push 4
mov ebx, 0x58a7e0
call fcn.00589842
add esp, 0x34
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x485d85
push 0x64a594
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.00401491
add esp, 8
cmp eax, 0
je 0x485d85
xor eax, eax
jmp 0x485d8a
mov eax, 1
test eax, eax
je 0x485df9
push dword [ebp - 4]
push 0x64a5c3
mov ebx, dword [ebp + 0x10]
push dword [ebx]
mov ecx, 3
call fcn.00401360
add esp, 0xc
mov dword [ebp - 0xc], eax
push getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x485dc2
mov eax, 0x64a594
push eax
push 1
mov ebx, 0x58c780
call fcn.00589842
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x485de8
push ebx
call fcn.00589836
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x485df9
mov dword [ebp - 8], 1
lea eax, [ebp - 0x20]
push eax
push 1
push 0
push 0
mov eax, 0
call fcn.00589830
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x485e2a
push ebx
call fcn.00589836
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x485cec
mov eax, dword [ebp - 8]
jmp 0x485e3b
push eax
push dword [ebp - 0x20]
mov eax, 1
call fcn.00589830
add esp, 4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x485e5c
push ebx
call fcn.00589836
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x59b180
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x63e95b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.006322b2
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x59b202
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0062ef37
mov eax, dword [eax]
push 0x95fe9c
push eax
call fcn.00620394
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0063253d
test bl, bl
je 0x59b202
push 0x95fe9c
lea ecx, [esp + 0xc]
call fcn.006328cd
push 0x95fea8
lea ecx, [esp + 0xc]
call fcn.006328cd
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x59b23e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0063253d
jmp 0x59b309
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x59b2c2
lea edx, [esp + 0x7c]
push 0x95fea4
push edx
call fcn.00620394
add esp, 8
test eax, eax
je 0x59b2c2
lea eax, [esp + 0x7c]
push 0x95fea0
push eax
call fcn.00620394
add esp, 8
test eax, eax
je 0x59b2c2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x59b252
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0063253d
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x59bb30
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x59bb92
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x59bba0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x63e9db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x96a950]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x59bcd8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x59bc06
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0063253d
xor eax, eax
jmp 0x59bd4f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0063267a
push esi
lea ecx, [esp + 0xc]
call fcn.00632909
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x95fedc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x59bd2d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0059bb30
test eax, eax
jne 0x59bd2d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0059bb30
test eax, eax
jne 0x59bd2d
lea eax, [esp + 0x14]
push 0x95feb8
push eax
call fcn.006214e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x59bd0c
lea ecx, [esp + 0x14]
push 0x95feb4
push ecx
call fcn.00621460
mov esi, eax
add esp, 8
test esi, esi
jne 0x59bd0c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x59bd0f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0063262a
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x59bc1e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0063253d
xor eax, eax
jmp 0x59bd4f
mov byte [esi], 0
push 0x95feb0
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0063253d
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4

Function at 0x5a7a26
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3ac]
test eax, eax
jne 0x5a7a4e
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3ac], eax
pop esi
add esp, 0x190
ret