joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4725c4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x472775
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.004453d0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x47278c
call fcn.00445034
mov eax, ebx
call fcn.0042fc20
mov edi, eax
dec edi
test edi, edi
jl 0x47267c
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0042fbf4
mov edx, dword [0x44cb80]
call fcn.00444370
test al, al
je 0x472678
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.0042fbf4
lea edx, [ebp - 0x14]
call fcn.004784f8
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.004453d0
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004450a8
inc esi
dec edi
jne 0x47262a
mov al, byte [0x472790]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x47279c
mov eax, dword [ebp - 0xc]
call fcn.00437dfc
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00444dc8
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.004784f8
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x47278c
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f0]
call fcn.004784f8
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x47278c
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x47278c
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x4727a8
call fcn.00435440
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47277c
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00444d54
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00444d54
lea eax, [ebp - 0x14]
call fcn.00444d30
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00444d54
ret
Function at 0x476070
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x4a2438], 0
je 0x4761bf
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4a1470]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4761bf
mov eax, dword [0x4a243c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4a2438]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x47618e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4a2438]
call fcn.0042794c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x476186
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x476186
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x476186
mov eax, dword [ebp - 0x14]
call fcn.0047ebfc
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x476186
push ebp
call fcn.0047602c
pop ecx
test al, al
jne 0x476186
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x476142
mov eax, dword [ebp - 0x14]
call fcn.0047d758
dec eax
jle 0x476186
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.004443e0
cmp byte [ebp - 1], 0
je 0x476186
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x476186
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4a243c]
call fcn.004757f4
inc edi
dec ebx
jne 0x4760d5
mov eax, dword [0x4a243c]
cmp dword [eax + 8], 0
jle 0x4761a6
mov eax, dword [0x4a243c]
call fcn.00475884
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4761bf
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00475e94
pop ecx
test al, al
jne 0x4761bf
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47976c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x4797b8
mov eax, esi
call fcn.00464864
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4797b8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4797b8
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4798f7
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4797f8
cmp eax, 0x108
ja 0x4797f8
mov eax, esi
call fcn.00464864
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4798ee
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x4798f7
jmp 0x4798ee
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4798d7
cmp eax, 0x20a
ja 0x4798d7
test byte [esi + 0x50], 0x80
jne 0x47982a
sub eax, 0x203
je 0x479827
sub eax, 3
je 0x479827
sub eax, 3
jne 0x47982a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x47983e
dec eax
je 0x479853
dec eax
je 0x479870
dec eax
je 0x479853
jmp 0x479877
mov ecx, ebx
mov eax, dword [0x4a1470]
mov eax, dword [eax]
mov edx, esi
call fcn.0046e2c4
jmp 0x4798ee
cmp byte [esi + 0x5d], 1
jne 0x479869
mov eax, esi
mov si, 0xffed
call fcn.004443e0
jmp 0x4798f7
or word [esi + 0x54], 1
jmp 0x4798ee
and word [esi + 0x54], 0xfffe
jmp 0x4798ee
mov eax, dword [0x4a23f4]
cmp byte [eax + 0x20], 0
je 0x4798ee
mov eax, dword [0x4a23f4]
cmp dword [eax + 0x1c], 0
je 0x4798ee
mov eax, dword [ebx]
mov edx, dword [0x4a23f4]
cmp eax, dword [edx + 0x1c]
jne 0x4798ee
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.004647a8
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004443e0
jmp 0x4798f7
cmp eax, 0xb00b
jne 0x4798ee
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004780a8
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47cdf4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x47ce10
cmp dword [esi + 4], 0
je 0x47ce3d
test byte [ebx + 0x55], 1
jne 0x47ce2f
mov eax, ebx
call fcn.0047ba4c
test eax, eax
jne 0x47ce2f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x47cf4d
mov edx, esi
mov eax, ebx
call fcn.0047c914
jmp 0x47cf4d
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47cf46
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0047ebfc
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004796a0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0047cdf4
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0047ebfc
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47cf4d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x483464
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4a1284]
cmp byte [eax + 0xc], 0
je 0x4835d1
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4835ca
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a2448], 0
jne 0x4834b8
push 0x4835d8
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x4835e0
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a2448], eax
cmp dword [0x49d6fc], 0
jne 0x4835b3
push 0x4835f0
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x49d6fc], eax
cmp dword [0x49d6fc], 0
je 0x4835b3
push 0x4835fc
mov eax, dword [0x49d6fc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a244c], eax
push 0x48360c
mov eax, dword [0x49d6fc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a2450], eax
push 0x483620
mov eax, dword [0x49d6fc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a2454], eax
push 0x483638
mov eax, dword [0x49d6fc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a2458], eax
push 0x483650
mov eax, dword [0x49d6fc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a245c], eax
push 0x483664
mov eax, dword [0x49d6fc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a2460], eax
push 0x48367c
mov eax, dword [0x49d6fc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a2464], eax
push 0x483694
mov eax, dword [0x49d6fc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a2468], eax
push 0x4836b0
mov eax, dword [0x49d6fc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a246c], eax
push 0x4836bc
mov eax, dword [0x49d6fc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a2470], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4835d1
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x485c80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x485c9c
call fcn.00487148
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x485cb8
test bl, 1
je 0x485cb8
call fcn.0048abdc
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x485e9c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.00486ce4
test byte [ebp + 0xd], 0xc0
jne 0x485ec0
mov eax, dword [0x49e4fc]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x485ecd
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x485efa
je 0x485f0c
sub ecx, 0x100
je 0x485f1a
sub ecx, 0x100
je 0x485f21
sub ecx, 0x100
je 0x485f13
jmp 0x485f28
sub ecx, 0x600
je 0x485f21
sub ecx, 0x100
je 0x485f0c
jmp 0x485f28
mov edi, 1
jmp 0x485f2d
mov edi, 2
jmp 0x485f2d
mov edi, 4
jmp 0x485f2d
mov edi, 5
jmp 0x485f2d
mov edi, 3
test byte [ebp + 0xd], 1
je 0x485f54
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x49df74]
test al, 0x80
je 0x485f4d
mov ebx, 0x80
jmp 0x485f66
mov ebx, 1
jmp 0x485f66
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x485f66
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x485f78
je 0x485f81
dec eax
je 0x485f8a
jmp 0x485f93
mov dword [ebp - 4], SysFreeString
jmp 0x485fa2
mov dword [ebp - 4], 0x40000000
jmp 0x485fa2
mov dword [ebp - 4], 0xc0000000
jmp 0x485fa2
push 1
call fcn.004870dc
pop ecx
mov ebx, eax
jmp 0x486092
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x485fbe
sub eax, 0x10
je 0x485fc5
sub eax, 0x10
je 0x485fce
sub eax, 0x10
je 0x485fd7
jmp 0x485fd7
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x485fde
mov dword [ebp - 8], 1
jmp 0x485fde
mov dword [ebp - 8], 2
jmp 0x485fde
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x48604b
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x486040
test byte [ebp + 0xd], 1
je 0x48603b
mov ebx, 0x50
jmp 0x486040
mov ebx, 2
push ebx
call fcn.004870dc
pop ecx
mov ebx, eax
jmp 0x486092
mov edi, esi
push edi
call fcn.00485e00
pop ecx
test eax, eax
je 0x48605f
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x48606b
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00486e04
add esp, 8
mov ebx, eax
inc eax
jne 0x486092
push 4
call fcn.004870dc
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.00486d18
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48ab74
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x48abd6
call fcn.0048ab24
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00484aa4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00484aa4
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x48ac54
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x49f39c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x48ad2e
cmp dword [0x49f398], 0
jne 0x48ad2e
cmp dword [0x49f57c], 0
je 0x48ace8
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0048aa24
add esp, 8
mov ebx, eax
test eax, eax
jne 0x48acce
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0048aa24
add esp, 8
mov ebx, eax
test eax, eax
jne 0x48acce
lea ebx, [ebp - 0x84]
jmp 0x48accf
inc ebx
call fcn.0048ac10
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x48ad69
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x49f3a0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00484aa4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x49f3a3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x48ad69
cmp dword [0x49f398], 0
je 0x48ad48
cmp dword [0x49f398], 0xffffffff
je 0x48ad69
push esi
call dword [0x49f398]
pop ecx
mov eax, dword [0x49f39c]
test eax, eax
je 0x48ad69
cmp dword [0x49f39c], 0xffffffff
je 0x48ad69
cmp byte [eax], 0
je 0x48ad69
push esi
push eax
call fcn.0048ab74
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48b500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4a2cd8], 0
jne 0x48b581
cmp dword [0x4a2cf8], 0
jne 0x48b530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4a2cf8], eax
test eax, eax
jne 0x48b530
push str.GetEnvironmentStrings_failed
call fcn.0048ad80
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4a2cf8]
jmp 0x48b544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00484aa4
pop ecx
mov edi, eax
test eax, eax
jne 0x48b53c
lea edi, [ebp + 1]
push edi
call fcn.00484358
pop ecx
mov ebx, eax
mov dword [0x4a2cdc], ebx
test ebx, ebx
jne 0x48b56e
xor eax, eax
jmp 0x48b644
push edi
mov edx, dword [0x4a2cf8]
push edx
push ebx
call fcn.00484924
add esp, 0xc
jmp 0x48b5a1
xor esi, esi
mov ebx, dword [0x4a2cd8]
jmp 0x48b59b
push eax
call fcn.00484aa4
pop ecx
test eax, eax
jne 0x48b597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x48b58b
lea ebx, [esi + 4]
push 4
mov dword [0x4a2ce0], ebx
inc ebx
push ebx
call fcn.00483e30
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x48b5c4
xor eax, eax
jmp 0x48b644
cmp dword [0x4a2cd8], 0
jne 0x48b5f5
xor esi, esi
mov ebx, dword [0x4a2cdc]
mov eax, dword [esp]
mov ebp, eax
jmp 0x48b5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00484aa4
pop ecx
mov edi, eax
test eax, eax
jne 0x48b5dc
jmp 0x48b626
xor esi, esi
mov ebx, dword [0x4a2cd8]
mov eax, dword [esp]
mov edi, eax
jmp 0x48b620
push eax
call fcn.00484aa4
pop ecx
test eax, eax
je 0x48b615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x48b619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x48b604
mov eax, dword [0x4a2cd8]
test eax, eax
je 0x48b636
push eax
call fcn.00484368
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4a2cd8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x408440
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46eb4b
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.004617f1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4084c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045f2a7
mov eax, dword [eax]
push 0x4881d0
push eax
call fcn.00452004
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00461a7c
test bl, bl
je 0x4084c2
push 0x4881d0
lea ecx, [esp + 0xc]
call fcn.00461e58
push 0x48bd30
lea ecx, [esp + 0xc]
call fcn.00461e58
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 0x4084fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00461a7c
jmp 0x4085c9
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 0x408582
lea edx, [esp + 0x7c]
push 0x48bd2c
push edx
call fcn.00452004
add esp, 8
test eax, eax
je 0x408582
lea eax, [esp + 0x7c]
push 0x48bd28
push eax
call fcn.00452004
add esp, 8
test eax, eax
je 0x408582
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 0x408512
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.00461a7c
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 0x408dc0
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 0x408e22
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 0x408e30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ebcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x492c88]
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 0x408f68
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408e96
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461a7c
xor eax, eax
jmp 0x408fdf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00461c05
push esi
lea ecx, [esp + 0xc]
call fcn.00461e94
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 0x408fbd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00408dc0
test eax, eax
jne 0x408fbd
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 SysReAllocStringLen
mov ecx, edi
call fcn.00408dc0
test eax, eax
jne 0x408fbd
lea eax, [esp + 0x14]
push 0x48bd44
push eax
call fcn.004530e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x408f9c
lea ecx, [esp + 0x14]
push 0x48bd40
push ecx
call fcn.00453060
mov esi, eax
add esp, 8
test esi, esi
jne 0x408f9c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x408f9f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00461bb5
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x408eae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461a7c
xor eax, eax
jmp 0x408fdf
mov byte [esi], 0
push 0x48bd3c
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.00461a7c
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