joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427ad0
Capabilities:
Create thread
Create udp socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x48
push 1
mov esi, eax
call dword [0x45a1b8]
mov edi, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x14], 0xc
mov dword [ebp + 0x2cc], edi
cmp edi, eax
je 0x427bab
mov dword [ebp + 0x2bc], esi
mov byte [ebp + 0x2c4], al
mov dword [ebp + 0x2c8], eax
mov dword [ebp + 0x2c0], eax
mov dword [edi], eax
mov eax, dword [esp + 0x18]
push esi
lea ebx, [edi + 0x10]
push eax
mov esi, ebx
mov dword [edi + 4], 0xffffffff
call fcn.004278a0
add esp, 8
test eax, eax
je 0x427bab
mov eax, dword [ebp + 0x2b8]
test eax, eax
je 0x427b4d
push eax
call dword [0x45a1ac]
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x45a1b4]
add esp, 4
mov dword [ebp + 0x2b8], eax
test eax, eax
je 0x427bab
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x427bab
push 0
push 0
push ebx
push 0x427990
push 0
push 0
call fcn.004301be
add esp, 0x18
test eax, eax
je 0x427b98
cmp eax, 0xffffffff
jne 0x427b9a
xor eax, eax
mov dword [edi], eax
test eax, eax
jne 0x427bc8
call fcn.0042fb0f
mov edx, dword [eax]
mov dword [esp + 0x14], edx
lea edi, [ebp + 0x2b8]
call fcn.00427a20
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret

Function at 0x427ff0
Capabilities:
Set socket configuration

Disassembly:
push ecx
lea ecx, [esp]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0xc], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop ecx
ret
Function at 0x4288f0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x1c], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 8], eax
cmp eax, ebx
jne 0x428a3c
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x428a31
push esi
push 0x20
call dword [0x45a1a8]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4289d3
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x42899b
cmp dword [edi + 0x18], ebx
je 0x42899b
push eax
mov dword [esi + 0x10], eax
call dword [0x45a1a8]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x4289dd
mov ecx, dword [esi + 0x10]
mov edx, dword [edi + 0x18]
push ecx
push edx
push eax
call fcn.004315f0
add esp, 0xc
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x4289b3
push eax
call dword [0x45a1b4]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x4289e7
cmp dword [esp + 0x14], ebx
jne 0x4289bd
mov dword [esp + 0x14], esi
cmp ebp, ebx
je 0x4289c4
mov dword [ebp + 0x1c], esi
mov edi, dword [edi + 0x1c]
mov ebp, esi
cmp edi, ebx
jne 0x428933
jmp 0x428a0a
mov dword [esp + 0x10], 8
jmp 0x428a0a
mov dword [esp + 0x10], 8
jmp 0x428a00
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], 8
cmp eax, ebx
je 0x428a00
push eax
call dword [0x45a1ac]
add esp, 4
push esi
call dword [0x45a1ac]
add esp, 4
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x428a1a
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], ebx
je 0x428a2d
mov eax, dword [esp + 0x10]
call fcn.004288b0
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x429ce0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x4594d4]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, ecx
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 8], 0x67452301
mov dword [esp + 0xc], 0xefcdab89
mov dword [esp + 0x10], 0x98badcfe
mov dword [esp + 0x14], 0x10325476
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x429d24
push ecx
sub eax, esi
lea ecx, [esp + 0xc]
call fcn.00429480
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.00429520
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.0042bbc1
add esp, 0x68
ret
Function at 0x42a500
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x41c
mov eax, dword [0x4594d4]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
push ebx
mov ebx, dword [edi + 0x2c]
mov edx, dword [ebx]
push ebp
push esi
push ecx
push eax
mov dword [esp + 0x28], edx
lea eax, [esp + 0x1c]
lea edx, [esp + 0x2c]
push 0x41f350
xor esi, esi
push eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0x3fd
call fcn.0041e990
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp eax, esi
je 0x42a570
cmp eax, dword [esp + 0x18]
jne 0x42a569
mov ecx, dword [esp + 0x14]
mov byte [ecx - 1], 0
jmp 0x42a570
mov edx, dword [esp + 0x14]
mov byte [edx], 0
lea eax, [esp + 0x24]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x42a575
mov cx, word [0x450da8]
mov dl, byte [0x450daa]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [esp + 0x24]
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42a597
sub eax, ebp
mov ebp, eax
mov eax, dword [edi + 0x2c]
mov dword [edi + 8], esi
mov ecx, dword [eax]
add ecx, 0x48c
mov dword [edi + 0xc], ecx
mov byte [edi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], ecx
mov ecx, dword [ebx + 0xc8]
xor eax, eax
cmp ecx, dword [ebx + 0xcc]
sete al
cmp dword [ebx + eax*8 + 0xd4], 2
jne 0x42a603
or esi, 0xffffffff
mov dword [esp + 0xc], esi
jmp 0x42a62c
cmp dword [ebx + 0x164], esi
je 0x42a615
mov dword [esp + 0xc], 0xffffffff
jmp 0x42a628
lea edx, [esp + 0x24]
push edx
mov ecx, ebp
call fcn.004190c0
add esp, 4
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0xc]
xor eax, eax
cmp esi, 0xffffffff
setne al
dec eax
and eax, 0x37
mov dword [esp + 0x10], eax
jne 0x42a6dc
mov eax, dword [ebx]
cmp byte [eax + 0x278], 0
je 0x42a667
push ebx
push esi
lea ecx, [esp + 0x2c]
push ecx
mov ebx, 2
mov esi, eax
call fcn.004194c0
mov esi, dword [esp + 0x18]
add esp, 0xc
cmp esi, ebp
je 0x42a6b0
sub ebp, esi
push ebp
call dword [0x45a1a8]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x42a695
push ebp
lea edx, [esp + esi + 0x28]
push edx
push eax
call fcn.004315f0
add esp, 0xc
mov dword [edi + 0x18], ebp
mov dword [edi + 0x1c], ebp
jmp 0x42a6d8
mov eax, dword [esp + 0x20]
push str.out_of_memory
call fcn.00418ff0
add esp, 4
mov dword [esp + 0x10], 0x1b
jmp 0x42a6d8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x424]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042bbc1
add esp, 0x41c
ret
Function at 0x42b500
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
sete bl
test bl, bl
je 0x42b525
mov eax, dword [eax + 8]
mov ecx, dword [esi + 0xc]
push eax
push ebp
push 1
push edi
call ecx
jmp 0x42b557
cmp dword [esi + 8], 0
jne 0x42b54a
mov edx, dword [eax + 8]
push 0x453fd8
push edx
call fcn.0042f31a
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x42b54a
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esi + 8]
push eax
push ebp
push 1
push edi
call fcn.0042d538
mov edi, eax
add esp, 0x10
test edi, edi
je 0x42b564
cmp edi, ebp
jbe 0x42b581
test bl, bl
jne 0x42b57b
mov ecx, dword [esi + 8]
push ecx
call fcn.0042c900
add esp, 4
mov dword [esi + 8], 0
mov edx, dword [esi]
mov eax, dword [edx]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebp
pop ebx
ret

Function at 0x42b902
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x45ab20], 0
push esi
jne 0x42b875
call fcn.0042b79b
test eax, eax
je 0x42b8b8
mov eax, dword [0x45ab20]
cmp eax, 1
jne 0x42b896
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42b8b8
pop esi
ret
push eax
call dword [0x45ab28]
test eax, eax
jne 0x42b900
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42b8bc
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x45ab20]
call dword [0x45ab28]
mov edi, eax
test edi, edi
je 0x42b8e1
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x42b8fd
mov edi, esi
add esi, 0xff0
push edi
push dword [0x45ab20]
call dword [0x45ab24]
add edi, 0x10
cmp edi, esi
jb 0x42b8e9
mov eax, edi
pop edi
pop esi
ret
jmp 0x42b862

Function at 0x42bbc1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4594d4]
jne 0x42bbcb
repz ret
jmp fcn.004308f7
Function at 0x43d5fc
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.00430b04
and dword [ebp - 4], 0
cmp dword [0x45b690], 0
mov ebx, eax
jne 0x43d6ad
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43d75e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x43d75e
push eax
call fcn.00430a92
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45b690], eax
call esi
push eax
call fcn.00430a92
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45b694], eax
call esi
push eax
call fcn.00430a92
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45b698], eax
call esi
push eax
call fcn.00430a92
pop ecx
mov dword [0x45b6a0], eax
test eax, eax
je 0x43d6ad
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00430a92
pop ecx
mov dword [0x45b69c], eax
mov eax, dword [0x45b69c]
cmp eax, ebx
je 0x43d705
cmp dword [0x45b6a0], ebx
je 0x43d705
push eax
call fcn.00430b0d
push dword [0x45b6a0]
mov esi, eax
call fcn.00430b0d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43d705
test edi, edi
je 0x43d705
call esi
test eax, eax
je 0x43d6fc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43d6fc
test byte [ebp - 0xc], 1
jne 0x43d705
or dword [ebp + 0x10], 0x200000
jmp 0x43d73e
mov eax, dword [0x45b694]
cmp eax, ebx
je 0x43d73e
push eax
call fcn.00430b0d
pop ecx
test eax, eax
je 0x43d73e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43d73e
mov eax, dword [0x45b698]
cmp eax, ebx
je 0x43d73e
push eax
call fcn.00430b0d
pop ecx
test eax, eax
je 0x43d73e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45b690]
call fcn.00430b0d
pop ecx
test eax, eax
je 0x43d75e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43d760
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4423a0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret 4

Function at 0x4424b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4424e6
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4424e8
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x443030
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4594d4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
mov word [ebp - 0x218], ax
push 0x208
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.0042d120
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp + 8]
call fcn.00405160
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x218]
call fcn.00405060
mov ecx, dword [ebp + 8]
push ecx
call fcn.004426e0
add esp, 4
movzx edx, byte [ebp + 0xc]
test edx, edx
je 0x4430cc
mov eax, dword [ebp + 8]
call fcn.00405170
sub eax, 1
mov edi, eax
mov eax, dword [ebp + 8]
call fcn.0040e320
movzx eax, word [eax]
cmp eax, 0x5c
je 0x4430cc
mov ecx, dword [ebp + 8]
push ecx
mov edx, 0x44f674
call fcn.004050a0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bbc1
mov esp, ebp
pop ebp
ret
Function at 0x444d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448ddb
mov eax, dword fs:[0]
push eax
mov eax, 0x10ec
call fcn.0043e270
mov eax, dword [0x4594d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10b4], 0
cmp dword [ebp + 0xc], 0
je 0x444dcf
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jge 0x444df3
mov eax, 0x45006c
mov ecx, dword [ebp + 8]
call fcn.00404fe0
mov ecx, dword [ebp - 0x10b4]
or ecx, 1
mov dword [ebp - 0x10b4], ecx
mov eax, dword [ebp + 8]
jmp 0x444fa8
mov dword [ebp - 0x28], 0
push 0x450070
mov edx, dword [ebp + 0xc]
push edx
call fcn.0042c197
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x444e38
mov eax, 0x450078
mov ecx, dword [ebp + 8]
call fcn.00404fe0
mov eax, dword [ebp - 0x10b4]
or eax, 1
mov dword [ebp - 0x10b4], eax
mov eax, dword [ebp + 8]
jmp 0x444fa8
push 0x100000
push 0
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0042d19a
add esp, 0x10
test eax, eax
je 0x444e75
mov eax, 0x45007c
mov ecx, dword [ebp + 8]
call fcn.00404fe0
mov edx, dword [ebp - 0x10b4]
or edx, 1
mov dword [ebp - 0x10b4], edx
mov eax, dword [ebp + 8]
jmp 0x444fa8
lea eax, [ebp - 0x21]
call fcn.0040e850
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x21]
call fcn.004423a0
mov ecx, dword [ebp - 0x28]
push ecx
push 0x1000
push 1
lea edx, [ebp - 0x10a4]
push edx
call fcn.0042d538
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x444ed2
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x10a4]
push ecx
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x21]
call fcn.00442290
jmp 0x444e93
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x21]
call fcn.004423f0
mov edx, dword [ebp - 0x28]
push edx
call fcn.0042c900
add esp, 4
lea eax, [ebp - 0xa0]
call fcn.00401360
mov dword [ebp - 4], 0
mov dword [ebp - 0x10a8], 0
jmp 0x444f1e
mov eax, dword [ebp - 0x10a8]
add eax, 1
mov dword [ebp - 0x10a8], eax
cmp dword [ebp - 0x10a8], 0x10
jge 0x444f75
xor ecx, ecx
mov word [ebp - 0x10b0], cx
xor edx, edx
mov dword [ebp - 0x10ae], edx
mov word [ebp - 0x10aa], dx
mov eax, dword [ebp - 0x10a8]
movzx ecx, byte [ebp + eax - 0x20]
push ecx
push 0x450080
push 4
lea edx, [ebp - 0x10b0]
push edx
call fcn.0042c092
add esp, 0x10
lea eax, [ebp - 0xa0]
push eax
lea edx, [ebp - 0x10b0]
call fcn.004050a0
jmp 0x444f0f
lea ecx, [ebp - 0xa0]
push ecx
mov esi, dword [ebp + 8]
call fcn.00405020
mov edx, dword [ebp - 0x10b4]
or edx, 1
mov dword [ebp - 0x10b4], edx
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0xa0]
call fcn.00401380
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042bbc1
mov esp, ebp
pop ebp
ret
Function at 0x444fd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4594d4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x218], ax
push 0x208
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.0042d120
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp + 8]
call fcn.00405160
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x218]
call fcn.00405060
mov ecx, dword [ebp + 8]
push ecx
call fcn.00444be0
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bbc1
mov esp, ebp
pop ebp
ret
Function at 0x4074f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x479cab
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.0046ebbe
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407572
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046cad0
mov eax, dword [eax]
push 0x497c38
push eax
call fcn.0045f7e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046ee49
test bl, bl
je 0x407572
push 0x497c38
lea ecx, [esp + 0xc]
call fcn.0046f1d9
push 0x497c44
lea ecx, [esp + 0xc]
call fcn.0046f1d9
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 0x4075ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046ee49
jmp 0x407679
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 0x407632
lea edx, [esp + 0x7c]
push 0x497c40
push edx
call fcn.0045f7e4
add esp, 8
test eax, eax
je 0x407632
lea eax, [esp + 0x7c]
push 0x497c3c
push eax
call fcn.0045f7e4
add esp, 8
test eax, eax
je 0x407632
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 0x4075c2
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.0046ee49
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 0x407e80
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 0x407ee2
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 0x407ef0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x479d2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a1574]
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 0x408028
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x407f56
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046ee49
xor eax, eax
jmp 0x40809f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046ef86
push esi
lea ecx, [esp + 0xc]
call fcn.0046f215
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40807d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00407e80
test eax, eax
jne 0x40807d
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 closesocket
mov ecx, edi
call fcn.00407e80
test eax, eax
jne 0x40807d
lea eax, [esp + 0x14]
push 0x497c54
push eax
call fcn.00460860
mov esi, eax
add esp, 8
test esi, esi
jne 0x40805c
lea ecx, [esp + 0x14]
push 0x497c50
push ecx
call fcn.004607e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40805c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40805f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046ef36
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x407f6e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046ee49
xor eax, eax
jmp 0x40809f
mov byte [esi], 0
push 0x497c4c
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.0046ee49
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